import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.secretsmanager.getSecretRotation({ * secretId: exampleAwsSecretsmanagerSecret.id, * }); * ``` */ export declare function getSecretRotation(args: GetSecretRotationArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSecretRotation. */ export interface GetSecretRotationArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret. */ secretId: string; } /** * A collection of values returned by getSecretRotation. */ export interface GetSecretRotationResult { /** * Metadata required by the external secret partner. See `externalSecretRotationMetadata` below. */ readonly externalSecretRotationMetadatas: outputs.secretsmanager.GetSecretRotationExternalSecretRotationMetadata[]; /** * ARN of the IAM role that allows Secrets Manager to rotate the secret held by a third-party partner. */ readonly externalSecretRotationRoleArn: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; /** * Whether automatic rotation is enabled for this secret. */ readonly rotationEnabled: boolean; /** * ARN of the lambda function used for rotation. */ readonly rotationLambdaArn: string; /** * Configuration block for rotation rules. See `rotationRules` below. */ readonly rotationRules: outputs.secretsmanager.GetSecretRotationRotationRule[]; readonly secretId: string; } /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.secretsmanager.getSecretRotation({ * secretId: exampleAwsSecretsmanagerSecret.id, * }); * ``` */ export declare function getSecretRotationOutput(args: GetSecretRotationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSecretRotation. */ export interface GetSecretRotationOutputArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret. */ secretId: pulumi.Input; } //# sourceMappingURL=getSecretRotation.d.ts.map