subscription#

Exec module for managing SNS Subscription.

async idem_aws.exec.aws.sns.subscription.get(hub, ctx, name: str, topic_arn: str = None, resource_id: str = None) Dict[str, Any][source]#

Get Subscription from either topic arn or resource id.

Parameters:
  • name (str) – An Idem name of the state for logging.

  • topic_arn (str, Optional) – Topic ARN

  • resource_id (str, Optional) – Subscription ARN

async idem_aws.exec.aws.sns.subscription.list_(hub, ctx, name: str = None, topic_arn: str = None, resource_id: str = None) Dict[source]#

Use an un-managed Subscription as a data-source.

Parameters:
  • name (str) – The name of the Idem state.

  • topic_arn (str, Optional) – Topic ARN

  • resource_id (str, Optional) – Subscription ARN