Learn Idem

Learn Idem

Powered by Idem Project

aws.rds.db_subnet_group

**Autogenerated function**

Deletes a DB subnet group.  The specified database subnet group must not be associated with any DB instances.

Args:
    name(Text): The Idem name of the DB subnet group.
    resource_id(Text, optional): The AWS RDS DBSubnetGroupName to identify the resource

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: sls

        resource_is_absent:
          aws.rds.db_subnet_group.absent:
            - name: value
**Autogenerated function**

Describe the resource in a way that can be recreated/managed with the corresponding "present" function


Returns a list of DBSubnetGroup descriptions. For an overview of CIDR ranges, go to the Wikipedia Tutorial.


Returns:
    Dict[str, Any]

Examples:

    .. code-block:: bash

        $ idem describe aws.rds.db_subnet_group
**Autogenerated function**

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the
Amazon Web Services Region.

Args:
    name(Text): The Idem name of the DB subnet group.
    db_subnet_group_description(Text): DB Subnet Group description
    resource_id(Text, optional): AWS RDS DBSubnetGroupName to identify the resource
    subnets(List): The EC2 Subnet IDs for the DB subnet group
    tags(Dict or List, optional): Dict in the format of {tag-key: tag-value} or List of tags in the format of
        [{"Key": tag-key, "Value": tag-value}] to associate with the DB instance.
        Each tag consists of a key name and an associated value. Defaults to None.
        * Key (str, optional): The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
            characters. May not begin with aws:.
        * Value(str, optional): The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256
            Unicode characters.

Request Syntax:
    [db-subnet-group-name]:
      aws.rds.db_subnet_group.absent:
        - db_subnet_group_description: 'string'
        - subnets: 'list'
        - tags:
          - Key: 'string'
            Value: 'string'

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: sls

        new-db-subnet-group:
            aws.rds.db_subnet_group.absent:
              - db_subnet_group_description: "should not be blank"
              - subnets:
                - subnet-03e29c119d78899e1
                - subnet-04dd5bc5aa08cbd89
                - subnet-0754289517e31d331
              - tags:
                - Key: name
                  Value: new-db-subnet-group

Full plugin documentation is available on the Idem documentation site - aws.rds.db_subnet_group .

Last updated on 20 Sep 2022
 Edit on GitHub