db_proxy#

States module for managing Rds Db Proxys.

async idem_aws.states.aws.rds.db_proxy.present(hub, ctx, name: str, db_proxy_name: str, engine_family: str, auth: ~typing.List[~types.UserAuthConfig], role_arn: str, vpc_subnet_ids: ~typing.List[str], vpc_security_group_ids: ~typing.List[str] = None, require_tls: bool = None, idle_client_timeout: int = None, debug_logging: bool = None, tags: ~typing.Dict[str, str] = None, resource_id: str = None, timeout: ~types.Timeout configuration.Timeout = None) Dict[str, Any][source]#

Creates a new DB proxy.

Parameters:
  • db_proxy_name (str) – The identifier for the proxy. This name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can’t end with a hyphen or contain two consecutive hyphens.

  • engine_family (str) – The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL Server, specify SQLSERVER.

  • auth (List[dict[str, Any]]) –

    The authorization mechanism that the proxy uses.

    • Description (str, Optional): A user-specified description about the authentication used by a proxy to log in as a specific

    database user.

    • UserName (str, Optional): The name of the database user to which the proxy connects.

    • AuthScheme (str, Optional): The type of authentication that the proxy uses for connections from the proxy to the underlying

    database.

    • SecretArn (str, Optional): The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to

    the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager.

    • IAMAuth (str, Optional): Whether to require or disallow Amazon Web Services Identity and Access Management (IAM)

    authentication for connections to the proxy. The ENABLED value is valid only for proxies with RDS for Microsoft SQL Server.

    • ClientPasswordAuthType (str, Optional): The type of authentication the proxy uses for connections from clients.

  • role_arn (str) – The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services Secrets Manager.

  • vpc_subnet_ids (List[str]) – One or more VPC subnet IDs to associate with the new proxy.

  • name (str) – Idem name of the resource.

  • vpc_security_group_ids (List[str], Optional) – One or more VPC security group IDs to associate with the new proxy. Defaults to None.

  • require_tls (bool, Optional) – A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy. Defaults to None.

  • idle_client_timeout (int, Optional) – The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database. Defaults to None.

  • debug_logging (bool, Optional) – Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. Defaults to None.

  • tags (Dict[str, str], Optional) – The tags to apply to the resource.

  • resource_id (str, Optional) – Db_proxy unique ID. Defaults to None.

  • timeout (dict, Optional) –

    Timeout configuration for create/update of AWS DB Cluster.

    • create (dict, Optional):

      Timeout configuration for creating DB Cluster.

      • delay(int, Optional):

        The amount of time in seconds to wait between attempts.

      • max_attempts(int, Optional):

        Customized timeout configuration containing delay and max attempts.

    • update(dict, Optional):

      Timeout configuration for updating DB Cluster

      • delay(int, Optional):

        The amount of time in seconds to wait between attempts.

      • max_attempts(int, Optional):

        Customized timeout configuration containing delay and max attempts.

Returns:

Dict[str, Any]

Example

idem_test_aws.rds.db_proxy_is_present:
    aws.rds.db_proxy.present:
    - db_proxy_name: string
    - engine_family: string
    - auth:
      - auth_scheme: string
        client_password_auth_type: string
        description: string
        iam_auth: string
        secret_arn: string
        user_name: string
    - role_arn: string
    - vpc_subnet_ids:
      - value
    - vpc_security_group_ids:
      - value
    - require_tls: bool
    - idle_client_timeout: int
    - debug_logging: bool
    - tags:
      - key: string
        value: string
async idem_aws.states.aws.rds.db_proxy.absent(hub, ctx, name: str, resource_id: str = None, timeout: ~types.Specifies timeout for deletion of DB Proxy.Timeout = None) Dict[str, Any][source]#

Deletes an existing DB proxy.

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

  • resource_id (str, Optional) – Db_proxy unique ID. Defaults to None.

  • timeout (dict, Optional) –

    Timeout configuration for delete of AWS RDS DB Proxy.

    • delete (dict, Optional):

      Timeout configuration for deleting DB Cluster.

      • delay(int, Optional):

        The amount of time in seconds to wait between attempts.

      • max_attempts(int, Optional):

        Customized timeout configuration containing delay and max attempts.

Returns:

Dict[str, Any]

Example

idem_test_aws.rds.db_proxy_is_absent:
  aws.rds.db_proxy.absent:
  - db_proxy_name: string
async idem_aws.states.aws.rds.db_proxy.describe(hub, ctx) Dict[str, Dict[str, Any]][source]#

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

Returns information about DB proxies.

Returns:

Dict[str, Any]

Example

$ idem describe aws.rds.db_proxy