# HostedRotation

A hosted rotation.

Extends: HostedRotation
Implements: IConnectable

- Source: [`aws-secretsmanager/lib/rotation-schedule.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-secretsmanager/lib/rotation-schedule.ts#L231)

## Example

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

secret.addRotationSchedule('RotationSchedule', {
  hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(),
});
```

## Properties

- `connections`: [Connections](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Connections.html) — Security group connections for this hosted rotation.

## Methods

- `bind(secret: ISecret, scope: Construct): CfnRotationSchedule.HostedRotationLambdaProperty` — Binds this hosted rotation to a secret.

- `mariaDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — MariaDB Multi User.

- `mariaDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — MariaDB Single User.

- `mongoDbMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — MongoDB Multi User.

- `mongoDbSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — MongoDB Single User.

- `mysqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — MySQL Multi User.

- `mysqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — MySQL Single User.

- `oracleMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — Oracle Multi User.

- `oracleSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — Oracle Single User.

- `postgreSqlMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — PostgreSQL Multi User.

- `postgreSqlSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — PostgreSQL Single User.

- `redshiftMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — Redshift Multi User.

- `redshiftSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — Redshift Single User.

- `sqlServerMultiUser(options: MultiUserHostedRotationOptions): HostedRotation // chainable` (static) — SQL Server Multi User.

- `sqlServerSingleUser(options?: SingleUserHostedRotationOptions): HostedRotation // chainable` (static) — SQL Server Single User.
