Skip to content
v2.278.0

HostedRotation Class ​

A hosted rotation.

Example ​

ts
const secret = new secretsmanager.Secret(this, 'Secret');

secret.addRotationSchedule('RotationSchedule', {
  hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(),
});
python
secret = secretsmanager.Secret(self, "Secret")

secret.add_rotation_schedule("RotationSchedule",
    hosted_rotation=secretsmanager.HostedRotation.mysql_single_user()
)
java
Secret secret = new Secret(this, "Secret");

secret.addRotationSchedule("RotationSchedule", RotationScheduleOptions.builder()
        .hostedRotation(HostedRotation.mysqlSingleUser())
        .build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
var secret = new Secret(this, "Secret");

secret.AddRotationSchedule("RotationSchedule", new RotationScheduleOptions {
    HostedRotation = HostedRotation.MysqlSingleUser()
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
secret := secretsmanager.NewSecret(this, jsii.String("Secret"))

secret.addRotationSchedule(jsii.String("RotationSchedule"), &RotationScheduleOptions{
	HostedRotation: secretsmanager.HostedRotation_MysqlSingleUser(),
})

Properties ​

connectionsConnectionsconnectionsConnectionsconnectionsConnectionsConnectionsConnectionsConnectionsConnections #
Security group connections for this hosted rotation.

Methods ​

bind(secret: ISecret, scope: Construct): CfnRotationSchedule.HostedRotationLambdaPropertydef bind(self, secret: ISecret, scope: Construct) -> HostedRotationLambdaPropertypublic HostedRotationLambdaProperty bind(ISecret secret, Construct scope)public HostedRotationLambdaProperty Bind(ISecret secret, Construct scope)func Bind(Secret ISecret, Scope Construct) HostedRotationLambdaProperty #
Binds this hosted rotation to a secret.
mariaDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def maria_db_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation mariaDbMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation MariaDbMultiUser(MultiUserHostedRotationOptions options)func MariaDbMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
MariaDB Multi User.
mariaDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def maria_db_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation mariaDbSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation MariaDbSingleUser(SingleUserHostedRotationOptions? options = null)func MariaDbSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
MariaDB Single User.
mongoDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def mongo_db_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation mongoDbMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation MongoDbMultiUser(MultiUserHostedRotationOptions options)func MongoDbMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
MongoDB Multi User.
mongoDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def mongo_db_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation mongoDbSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation MongoDbSingleUser(SingleUserHostedRotationOptions? options = null)func MongoDbSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
MongoDB Single User.
mysqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def mysql_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation mysqlMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation MysqlMultiUser(MultiUserHostedRotationOptions options)func MysqlMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
MySQL Multi User.
mysqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def mysql_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation mysqlSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation MysqlSingleUser(SingleUserHostedRotationOptions? options = null)func MysqlSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
MySQL Single User.
oracleMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def oracle_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation oracleMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation OracleMultiUser(MultiUserHostedRotationOptions options)func OracleMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
Oracle Multi User.
oracleSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def oracle_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation oracleSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation OracleSingleUser(SingleUserHostedRotationOptions? options = null)func OracleSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
Oracle Single User.
postgreSqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def postgre_sql_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation postgreSqlMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation PostgreSqlMultiUser(MultiUserHostedRotationOptions options)func PostgreSqlMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
PostgreSQL Multi User.
postgreSqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def postgre_sql_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation postgreSqlSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation PostgreSqlSingleUser(SingleUserHostedRotationOptions? options = null)func PostgreSqlSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
PostgreSQL Single User.
redshiftMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def redshift_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation redshiftMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation RedshiftMultiUser(MultiUserHostedRotationOptions options)func RedshiftMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
Redshift Multi User.
redshiftSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def redshift_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation redshiftSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation RedshiftSingleUser(SingleUserHostedRotationOptions? options = null)func RedshiftSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
Redshift Single User.
sqlServerMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable@staticmethod def sql_server_multi_user(options: MultiUserHostedRotationOptions) -> HostedRotationpublic static HostedRotation sqlServerMultiUser(MultiUserHostedRotationOptions options)public static HostedRotation SqlServerMultiUser(MultiUserHostedRotationOptions options)func SqlServerMultiUser(Options MultiUserHostedRotationOptions) HostedRotation static #
SQL Server Multi User.
sqlServerSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable@staticmethod def sql_server_single_user(options: typing.Optional[SingleUserHostedRotationOptions] = None) -> HostedRotationpublic static HostedRotation sqlServerSingleUser(SingleUserHostedRotationOptions options)public static HostedRotation SqlServerSingleUser(SingleUserHostedRotationOptions? options = null)func SqlServerSingleUser(Options SingleUserHostedRotationOptions) HostedRotation static #
SQL Server Single User.