@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 2.21 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSecretRotationOutput = exports.getSecretRotation = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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,
* });
* ```
*/
function getSecretRotation(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:secretsmanager/getSecretRotation:getSecretRotation", {
"region": args.region,
"secretId": args.secretId,
}, opts);
}
exports.getSecretRotation = 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.secretsmanager.getSecretRotation({
* secretId: exampleAwsSecretsmanagerSecret.id,
* });
* ```
*/
function getSecretRotationOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:secretsmanager/getSecretRotation:getSecretRotation", {
"region": args.region,
"secretId": args.secretId,
}, opts);
}
exports.getSecretRotationOutput = getSecretRotationOutput;
//# sourceMappingURL=getSecretRotation.js.map
;