getSecretRotation

Retrieve information about a Secrets Manager secret rotation. To retrieve secret metadata, see the aws.secretsmanager.Secret data source. To retrieve a secret value, see the aws.secretsmanager.SecretVersion data source.

Example Usage

Retrieve Secret Rotation Configuration

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.secretsmanager.SecretsmanagerFunctions;
import com.pulumi.aws.secretsmanager.inputs.GetSecretRotationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = SecretsmanagerFunctions.getSecretRotation(GetSecretRotationArgs.builder()
.secretId(data.aws_secretsmanager_secret().example().id())
.build());
}
}

Return

A collection of values returned by getSecretRotation.

Parameters

argument

A collection of arguments for invoking getSecretRotation.


Return

A collection of values returned by getSecretRotation.

Parameters

secretId

Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.

See also


Return

A collection of values returned by getSecretRotation.

Parameters

argument

Builder for com.pulumi.aws.secretsmanager.kotlin.inputs.GetSecretRotationPlainArgs.

See also