db_subnet_group#

Exec module for managing DB Subnet Group resources.

async idem_aws.exec.aws.docdb.db_subnet_group.get(hub, ctx, resource_id: str)[source]#

Get Document DB Subnet Group details from AWS given a AWS Document DB Subnet Group Name.

Parameters:

resource_id (str) – AWS Document DB Subnet Group Name

Returns:

{"result": True|False, "comment": A message List, "ret": None|Dict}

Examples

Calling this exec module function from the cli with resource_id

idem exec aws.docdb.db_subnet_group.get resource_id="resource_id"

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.docdb.db_subnet_group.get
    - kwargs:
        resource_id: resource_id
async idem_aws.exec.aws.docdb.db_subnet_group.list_(hub, ctx, DBSubnetGroupName: str = None, filters: List = None) Dict[source]#

Get list of Document DB Subnet Group details from AWS.

Use an un-managed DocDb Subnet as a data-source. Supply one of the inputs as the filter.

Parameters:
Returns:

{"result": True|False, "comment": A message List, "ret": None|List}

Examples

Calling from the CLI:

idem exec aws.docdb.db_subnet_group.list DBSubnetGroupName=dbg1 filters='[{"name": "filter_name", "values": ["filter_value1"]}]'

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.docdb.db_subnet_group.list
    - kwargs:
        DBSubnetGroupName: dbg1
        filters:
          - name: filter-name
            values:
                - filter_value