This message was deleted.
# yaml
s
This message was deleted.
e
I think the following will work:
Copy code
ses_DomainIdentityVerification:
    type: aws:ses:DomainIdentityVerification
    properties:
      domain:
        fn::invoke:
          function: str:trimPrefix
          arguments:
            # arguments dictionary
            prefix: "production." # the prefix to trim
            string: "${ses_DomainIdentity.id}" # the string from which to trim it
          result: result
result
in an fn block lets you set which field of the result to return rather than the overall result object.
r
@echoing-dinner-19531 wow! Thank you. Was this somewhere in the documentation? Because I sure didn't see it when I was looking
e
Yup, at https://www.pulumi.com/docs/reference/yaml/#fninvoke Hopefully some other useful bits on that page as well
I note this is specific to
fn::invoke
which might have made it a bit less obvious to find
r
@echoing-dinner-19531 Thanks again. It's obvious now that you pointed it out. I think my brain passed over that bit because it didn't have 'result' anywhere in it.