domain_identity#
Exec module for managing SES Domain Identity.
- async idem_aws.exec.aws.ses.domain_identity.get(hub, ctx, resource_id: str)[source]#
Get SES domain identity from AWS account.
Get a single domain identity from AWS.
- Parameters:
resource_id (str) – The domain identity.
- Returns:
Returns domain identity in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.ses.domain_identity.get resource_id="example.com"
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.ses.domain_identity.get - kwargs: resource_id:"example.com"
- async idem_aws.exec.aws.ses.domain_identity.list_(hub, ctx, identities: list = None)[source]#
List SES domain identities from AWS account.
Fetch a list of domain identities from AWS. The function returns empty list when no resource is found.
- Parameters:
identities (str, Optional) – The domain identities. If no identity is specified, it will return all the identities present in AWS account.
- Returns:
Return domain identities in present format
- Return type:
Dict[str, Any]
Examples
Calling this exec module function from the cli
idem exec aws.ses.domain_identity.list identity=["example.com"]
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.ses.domain_identity.list - kwargs: identity:"example.com"