简体   繁体   中英

AWS SES ConfigurationSet Delivery Option using AWS CLI

I'm struggling to fully understand the way configuration sets and their associated delivery options work.

I'm trying to ensure that each message sent via AWS SES will enforce tls encryption rather than using the default opportunistic approach.

As per official documentation I have created a new set using AWS cli:

aws ses put-configuration-set-delivery-options --configuration-set-name TlsEncryption --delivery-options TlsPolicy=Require

But I cannot seem to be able to verify that this delivery option is actually attached to this configuration set.

When I run

aws ses describe-configuration-set --configuration-set-name=TlsEncryption

I only get

{
  "ConfigurationSet": {
    "Name": "TlsEncryption"
  }
}

therefore I'm unsure whether the delivery option has been actually set on it and will work with each call when using X-SES-CONFIGURATION-SET: TlsEncryption or not.

Could someone shine some light on it please?

It's buried in the AWS CLI enumerations.

aws ses describe-configuration-set --configuration-set-name tls-config-set --configuration-set-attribute-names deliveryOptions --region=eu-west-1

Note, the magic enum is deliveryOptions

{
    "ConfigurationSet": {
        "Name": "tls-config-set"
    },
    "DeliveryOptions": {
        "TlsPolicy": "Require"
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM