Class SecretRotationApplication
- Namespace
- Amazon.CDK.AWS.SecretsManager
- Assembly
- Amazon.CDK.AWS.SecretsManager.dll
A secret rotation serverless application.
public class SecretRotationApplication : DeputyBase
- Inheritance
-
SecretRotationApplication
Examples
Secret mySecret;
IConnectable myDatabase;
Vpc myVpc;
new SecretRotation(this, "SecretRotation", new SecretRotationProps {
Application = SecretRotationApplication.MYSQL_ROTATION_SINGLE_USER, // MySQL single user scheme
Secret = mySecret,
Target = myDatabase, // a Connectable
Vpc = myVpc, // The VPC where the secret rotation application will be deployed
ExcludeCharacters = " %+:;{}"
});
Remarks
ExampleMetadata: infused
Constructors
SecretRotationApplication(string, string, ISecretRotationApplicationOptions?)
public SecretRotationApplication(string applicationId, string semanticVersion, ISecretRotationApplicationOptions? options = null)
Parameters
applicationIdstringsemanticVersionstringoptionsISecretRotationApplicationOptions
Properties
ApplicationId
(deprecated) The application identifier of the rotation application.
[Obsolete("only valid when deploying to the 'aws' partition. Use `applicationArnForPartition` instead.")]
public virtual string ApplicationId { get; }
Property Value
Remarks
Stability: Deprecated
IsMultiUser
Whether the rotation application uses the mutli user scheme.
public virtual bool? IsMultiUser { get; }
Property Value
- bool?
MARIADB_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for RDS MariaDB using the multi user rotation scheme.
public static SecretRotationApplication MARIADB_ROTATION_MULTI_USER { get; }
Property Value
MARIADB_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for RDS MariaDB using the single user rotation scheme.
public static SecretRotationApplication MARIADB_ROTATION_SINGLE_USER { get; }
Property Value
MONGODB_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for MongoDB using the multi user rotation scheme.
public static SecretRotationApplication MONGODB_ROTATION_MULTI_USER { get; }
Property Value
MONGODB_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for MongoDB using the single user rotation scheme.
public static SecretRotationApplication MONGODB_ROTATION_SINGLE_USER { get; }
Property Value
MYSQL_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for RDS MySQL using the multi user rotation scheme.
public static SecretRotationApplication MYSQL_ROTATION_MULTI_USER { get; }
Property Value
MYSQL_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for RDS MySQL using the single user rotation scheme.
public static SecretRotationApplication MYSQL_ROTATION_SINGLE_USER { get; }
Property Value
ORACLE_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for RDS Oracle using the multi user rotation scheme.
public static SecretRotationApplication ORACLE_ROTATION_MULTI_USER { get; }
Property Value
ORACLE_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for RDS Oracle using the single user rotation scheme.
public static SecretRotationApplication ORACLE_ROTATION_SINGLE_USER { get; }
Property Value
POSTGRES_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for RDS PostgreSQL using the multi user rotation scheme.
public static SecretRotationApplication POSTGRES_ROTATION_MULTI_USER { get; }
Property Value
POSTGRES_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for RDS PostgreSQL using the single user rotation scheme.
public static SecretRotationApplication POSTGRES_ROTATION_SINGLE_USER { get; }
Property Value
REDSHIFT_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for Amazon Redshift using the multi user rotation scheme.
public static SecretRotationApplication REDSHIFT_ROTATION_MULTI_USER { get; }
Property Value
REDSHIFT_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for Amazon Redshift using the single user rotation scheme.
public static SecretRotationApplication REDSHIFT_ROTATION_SINGLE_USER { get; }
Property Value
SQLSERVER_ROTATION_MULTI_USER
Conducts an AWS SecretsManager secret rotation for RDS SQL Server using the multi user rotation scheme.
public static SecretRotationApplication SQLSERVER_ROTATION_MULTI_USER { get; }
Property Value
SQLSERVER_ROTATION_SINGLE_USER
Conducts an AWS SecretsManager secret rotation for RDS SQL Server using the single user rotation scheme.
public static SecretRotationApplication SQLSERVER_ROTATION_SINGLE_USER { get; }
Property Value
SemanticVersion
(deprecated) The semantic version of the rotation application.
[Obsolete("only valid when deploying to the 'aws' partition. Use `semanticVersionForPartition` instead.")]
public virtual string SemanticVersion { get; }
Property Value
Remarks
Stability: Deprecated
Methods
ApplicationArnForPartition(string)
Returns the application ARN for the current partition.
public virtual string ApplicationArnForPartition(string partition)
Parameters
partitionstring
Returns
Remarks
Can be used in combination with a CfnMapping to automatically select the correct ARN based on the current partition.
SemanticVersionForPartition(string)
The semantic version of the app for the current partition.
public virtual string SemanticVersionForPartition(string partition)
Parameters
partitionstring
Returns
Remarks
Can be used in combination with a CfnMapping to automatically select the correct version based on the current partition.