AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.secretsmanager.getSecretVersions
Explore with Pulumi AI
Using getSecretVersions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecretVersions(args: GetSecretVersionsArgs, opts?: InvokeOptions): Promise<GetSecretVersionsResult>
function getSecretVersionsOutput(args: GetSecretVersionsOutputArgs, opts?: InvokeOptions): Output<GetSecretVersionsResult>
def get_secret_versions(include_deprecated: Optional[bool] = None,
secret_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretVersionsResult
def get_secret_versions_output(include_deprecated: Optional[pulumi.Input[bool]] = None,
secret_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretVersionsResult]
func GetSecretVersions(ctx *Context, args *GetSecretVersionsArgs, opts ...InvokeOption) (*GetSecretVersionsResult, error)
func GetSecretVersionsOutput(ctx *Context, args *GetSecretVersionsOutputArgs, opts ...InvokeOption) GetSecretVersionsResultOutput
> Note: This function is named GetSecretVersions
in the Go SDK.
public static class GetSecretVersions
{
public static Task<GetSecretVersionsResult> InvokeAsync(GetSecretVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetSecretVersionsResult> Invoke(GetSecretVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretVersionsResult> getSecretVersions(GetSecretVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:secretsmanager/getSecretVersions:getSecretVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Secret
Id string - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- Include
Deprecated bool - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
- Secret
Id string - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- Include
Deprecated bool - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
- secret
Id String - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- include
Deprecated Boolean - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
- secret
Id string - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- include
Deprecated boolean - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
- secret_
id str - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- include_
deprecated bool - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
- secret
Id String - Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.
- include
Deprecated Boolean - If true, all deprecated secret versions are included in the response.
If false, no deprecated secret versions are included in the response. If no value is specified, the default value is
false
.
getSecretVersions Result
The following output properties are available:
- Arn string
- ARN of the secret.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret
Id string - Versions
List<Get
Secret Versions Version> - List of the versions of the secret. Attributes are specified below.
- Include
Deprecated bool
- Arn string
- ARN of the secret.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret
Id string - Versions
[]Get
Secret Versions Version - List of the versions of the secret. Attributes are specified below.
- Include
Deprecated bool
- arn String
- ARN of the secret.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- secret
Id String - versions
List<Get
Secret Versions Version> - List of the versions of the secret. Attributes are specified below.
- include
Deprecated Boolean
- arn string
- ARN of the secret.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- secret
Id string - versions
Get
Secret Versions Version[] - List of the versions of the secret. Attributes are specified below.
- include
Deprecated boolean
- arn str
- ARN of the secret.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- secret_
id str - versions
Sequence[Get
Secret Versions Version] - List of the versions of the secret. Attributes are specified below.
- include_
deprecated bool
- arn String
- ARN of the secret.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- secret
Id String - versions List<Property Map>
- List of the versions of the secret. Attributes are specified below.
- include
Deprecated Boolean
Supporting Types
GetSecretVersionsVersion
- Created
Time string - Last
Accessed stringDate - Date that this version of the secret was last accessed.
- Version
Id string - Unique version identifier of this version of the secret.
- Version
Stages List<string>
- Created
Time string - Last
Accessed stringDate - Date that this version of the secret was last accessed.
- Version
Id string - Unique version identifier of this version of the secret.
- Version
Stages []string
- created
Time String - last
Accessed StringDate - Date that this version of the secret was last accessed.
- version
Id String - Unique version identifier of this version of the secret.
- version
Stages List<String>
- created
Time string - last
Accessed stringDate - Date that this version of the secret was last accessed.
- version
Id string - Unique version identifier of this version of the secret.
- version
Stages string[]
- created_
time str - last_
accessed_ strdate - Date that this version of the secret was last accessed.
- version_
id str - Unique version identifier of this version of the secret.
- version_
stages Sequence[str]
- created
Time String - last
Accessed StringDate - Date that this version of the secret was last accessed.
- version
Id String - Unique version identifier of this version of the secret.
- version
Stages List<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.