DkimIdentity
- class aws_cdk.aws_ses.DkimIdentity
Bases:
object
The identity to use for DKIM.
- ExampleMetadata:
infused
Example:
# my_hosted_zone: route53.IPublicHostedZone ses.EmailIdentity(self, "Identity", identity=ses.Identity.public_hosted_zone(my_hosted_zone), dkim_identity=ses.DkimIdentity.byo_dkim( private_key=SecretValue.secrets_manager("dkim-private-key"), public_key="...base64-encoded-public-key...", selector="selector" ) )
Methods
- abstract bind(email_identity, hosted_zone=None)
Binds this DKIM identity to the email identity.
- Parameters:
email_identity (
EmailIdentity
) –hosted_zone (
Optional
[IPublicHostedZone
]) –
- Return type:
Optional
[DkimIdentityConfig
]
Static Methods
- classmethod byo_dkim(*, private_key, selector, public_key=None)
Bring Your Own DKIM.
- Parameters:
private_key (
SecretValue
) – The private key that’s used to generate a DKIM signature.selector (
str
) – A string that’s used to identify a public key in the DNS configuration for a domain.public_key (
Optional
[str
]) – The public key. If specified, a TXT record with the public key is created. Default: - the validation TXT record with the public key is not created
- See:
https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-bring-your-own.html
- Return type:
- classmethod easy_dkim(signing_key_length=None)
Easy DKIM.
- Parameters:
signing_key_length (
Optional
[EasyDkimSigningKeyLength
]) – The length of the signing key. This can be changed at most once per day.- See:
https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dkim-easy.html
- Return type: