rich-motorcycle-71684
03/16/2023, 7:41 AMses_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
...
Error: aws:ses/domainIdentityVerification:DomainIdentityVerification is not assignable from {domain: str:index:trimPrefixResult}
echoing-dinner-19531
03/25/2023, 9:47 PMses_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.rich-motorcycle-71684
03/27/2023, 12:32 AMechoing-dinner-19531
03/27/2023, 7:47 AMfn::invoke
which might have made it a bit less obvious to findrich-motorcycle-71684
03/28/2023, 4:13 AM