AWS v6.71.0 published on Friday, Mar 7, 2025 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)
public static Output<GetSecretVersionsResult> getSecretVersions(GetSecretVersionsArgs args, InvokeOptions options)
fn::invoke:
  function: aws:secretsmanager/getSecretVersions:getSecretVersions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SecretId 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.
- IncludeDeprecated 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.
- SecretId 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.
- IncludeDeprecated 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.
- secretId 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.
- includeDeprecated 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.
- secretId 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.
- includeDeprecated 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.
- secretId 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.
- includeDeprecated 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
- SecretId string
- Versions
List<GetSecret Versions Version> 
- List of the versions of the secret. Attributes are specified below.
- IncludeDeprecated bool
- Arn string
- ARN of the secret.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- SecretId string
- Versions
[]GetSecret Versions Version 
- List of the versions of the secret. Attributes are specified below.
- IncludeDeprecated bool
- arn String
- ARN of the secret.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- secretId String
- versions
List<GetSecret Versions Version> 
- List of the versions of the secret. Attributes are specified below.
- includeDeprecated Boolean
- arn string
- ARN of the secret.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- secretId string
- versions
GetSecret Versions Version[] 
- List of the versions of the secret. Attributes are specified below.
- includeDeprecated 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[GetSecret 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
- secretId String
- versions List<Property Map>
- List of the versions of the secret. Attributes are specified below.
- includeDeprecated Boolean
Supporting Types
GetSecretVersionsVersion   
- CreatedTime string
- LastAccessed stringDate 
- Date that this version of the secret was last accessed.
- VersionId string
- Unique version identifier of this version of the secret.
- VersionStages List<string>
- CreatedTime string
- LastAccessed stringDate 
- Date that this version of the secret was last accessed.
- VersionId string
- Unique version identifier of this version of the secret.
- VersionStages []string
- createdTime String
- lastAccessed StringDate 
- Date that this version of the secret was last accessed.
- versionId String
- Unique version identifier of this version of the secret.
- versionStages List<String>
- createdTime string
- lastAccessed stringDate 
- Date that this version of the secret was last accessed.
- versionId string
- Unique version identifier of this version of the secret.
- versionStages 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]
- createdTime String
- lastAccessed StringDate 
- Date that this version of the secret was last accessed.
- versionId String
- Unique version identifier of this version of the secret.
- versionStages List<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.