---
type: resource-type
title: RotationSchedule
description: aws resource type AWS::SecretsManager::RotationSchedule
name: RotationSchedule
lexicon: aws
resource_type: AWS::SecretsManager::RotationSchedule
---
`AWS::SecretsManager::RotationSchedule`, a resource type of the aws lexicon.

## Properties

- `SecretId` (`string`, required): The ARN or name of the secret to rotate.
- `ExternalSecretRotationMetadata` (`RotationSchedule_ExternalSecretRotationMetadataItem[]`, optional): The list of metadata needed to successfully rotate a managed external secret.
- `ExternalSecretRotationRoleArn` (`string`, optional): The ARN of the IAM role that is used by Secrets Manager to rotate a managed external secret.
- `HostedRotationLambda` (`RotationSchedule_HostedRotationLambda`, optional): Creates a new Lambda rotation function based on one of the Secrets Manager rotation function templates. To use a rotation function that already exists, specify RotationLambdaARN instead.
- `Id` (`string`, optional): The ARN of the secret.
- `RotateImmediatelyOnUpdate` (`boolean`, optional): Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window.
- `RotationLambdaARN` (`string`, optional): The ARN of an existing Lambda rotation function. To specify a rotation function that is also defined in this template, use the Ref function.
- `RotationRules` (`RotationSchedule_RotationRules`, optional): A structure that defines the rotation configuration for this secret.

## Attributes

- `Id`
