SecretRotationApplication

class aws_cdk.aws_secretsmanager.SecretRotationApplication(application_id, semantic_version, *, is_multi_user=None)

Bases: object

A secret rotation serverless application.

ExampleMetadata:

infused

Example:

# my_secret: secretsmanager.Secret
# my_database: ec2.IConnectable
# my_vpc: ec2.Vpc


secretsmanager.SecretRotation(self, "SecretRotation",
    application=secretsmanager.SecretRotationApplication.MYSQL_ROTATION_SINGLE_USER,  # MySQL single user scheme
    secret=my_secret,
    target=my_database,  # a Connectable
    vpc=my_vpc,  # The VPC where the secret rotation application will be deployed
    exclude_characters=" %+:;{}"
)
Parameters:
  • application_id (str) –

  • semantic_version (str) –

  • is_multi_user (Optional[bool]) – Whether the rotation application uses the mutli user scheme. Default: false

Methods

application_arn_for_partition(partition)

Returns the application ARN for the current partition.

Can be used in combination with a CfnMapping to automatically select the correct ARN based on the current partition.

Parameters:

partition (str) –

Return type:

str

semantic_version_for_partition(partition)

The semantic version of the app for the current partition.

Can be used in combination with a CfnMapping to automatically select the correct version based on the current partition.

Parameters:

partition (str) –

Return type:

str

Attributes

MARIADB_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
MARIADB_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
MONGODB_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
MONGODB_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
MYSQL_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
MYSQL_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
ORACLE_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
ORACLE_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
POSTGRES_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
POSTGRES_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
REDSHIFT_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
REDSHIFT_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
SQLSERVER_ROTATION_MULTI_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
SQLSERVER_ROTATION_SINGLE_USER = <aws_cdk.aws_secretsmanager.SecretRotationApplication object>
application_id

(deprecated) The application identifier of the rotation application.

Deprecated:

only valid when deploying to the ‘aws’ partition. Use applicationArnForPartition instead.

Stability:

deprecated

is_multi_user

Whether the rotation application uses the mutli user scheme.

semantic_version

(deprecated) The semantic version of the rotation application.

Deprecated:

only valid when deploying to the ‘aws’ partition. Use semanticVersionForPartition instead.

Stability:

deprecated