aws-cdk-lib.aws_secretsmanager.HostedRotation
static maria
static maria
static mongo
static mongo
static mysql
static mysql
static oracle
static oracle
static postgre
static postgre
static redshift
static redshift
static sql
static sql
class HostedRotation
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SecretsManager.HostedRotation |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager#HostedRotation |
![]() | software.amazon.awscdk.services.secretsmanager.HostedRotation |
![]() | aws_cdk.aws_secretsmanager.HostedRotation |
![]() | aws-cdk-lib » aws_secretsmanager » HostedRotation |
Implements
IConnectable
A hosted rotation.
Example
const secret = new secretsmanager.Secret(this, 'Secret');
secret.addRotationSchedule('RotationSchedule', {
hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(),
rotateImmediatelyOnUpdate: false, // by default, Secrets Manager rotates the secret immediately
});
Properties
Name | Type | Description |
---|---|---|
connections | Connections | Security group connections for this hosted rotation. |
connections
Type:
Connections
Security group connections for this hosted rotation.
Methods
Name | Description |
---|---|
bind(secret, scope) | Binds this hosted rotation to a secret. |
static maria | MariaDB Multi User. |
static maria | MariaDB Single User. |
static mongo | MongoDB Multi User. |
static mongo | MongoDB Single User. |
static mysql | MySQL Multi User. |
static mysql | MySQL Single User. |
static oracle | Oracle Multi User. |
static oracle | Oracle Single User. |
static postgre | PostgreSQL Multi User. |
static postgre | PostgreSQL Single User. |
static redshift | Redshift Multi User. |
static redshift | Redshift Single User. |
static sql | SQL Server Multi User. |
static sql | SQL Server Single User. |
bind(secret, scope)
public bind(secret: ISecret, scope: Construct): HostedRotationLambdaProperty
Parameters
Returns
Binds this hosted rotation to a secret.
DbMultiUser(options)
static mariapublic static mariaDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
MariaDB Multi User.
DbSingleUser(options?)
static mariapublic static mariaDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
MariaDB Single User.
DbMultiUser(options)
static mongopublic static mongoDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
MongoDB Multi User.
DbSingleUser(options?)
static mongopublic static mongoDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
MongoDB Single User.
MultiUser(options)
static mysqlpublic static mysqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
MySQL Multi User.
SingleUser(options?)
static mysqlpublic static mysqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
MySQL Single User.
MultiUser(options)
static oraclepublic static oracleMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
Oracle Multi User.
SingleUser(options?)
static oraclepublic static oracleSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
Oracle Single User.
SqlMultiUser(options)
static postgrepublic static postgreSqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
PostgreSQL Multi User.
SqlSingleUser(options?)
static postgrepublic static postgreSqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
PostgreSQL Single User.
MultiUser(options)
static redshiftpublic static redshiftMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
Redshift Multi User.
SingleUser(options?)
static redshiftpublic static redshiftSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
Redshift Single User.
ServerMultiUser(options)
static sqlpublic static sqlServerMultiUser(options: MultiUserHostedRotationOptions): HostedRotation
Parameters
- options
Multi
User Hosted Rotation Options
Returns
SQL Server Multi User.
ServerSingleUser(options?)
static sqlpublic static sqlServerSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation
Parameters
- options
Single
User Hosted Rotation Options
Returns
SQL Server Single User.