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,
region: Optional[str] = None,
secret_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretVersionsResult
def get_secret_versions_output(include_deprecated: Optional[pulumi.Input[bool]] = None,
region: Optional[pulumi.Input[str]] = 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:
- 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. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
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
- Region 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
- Region 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
- region 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
- region 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
- region 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
- region 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 - Date and time this version of the secret was created.
- 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> - List of staging labels attached to the version.
- Created
Time string - Date and time this version of the secret was created.
- 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 - List of staging labels attached to the version.
- created
Time String - Date and time this version of the secret was created.
- 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> - List of staging labels attached to the version.
- created
Time string - Date and time this version of the secret was created.
- 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[] - List of staging labels attached to the version.
- created_
time str - Date and time this version of the secret was created.
- 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] - List of staging labels attached to the version.
- created
Time String - Date and time this version of the secret was created.
- 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> - List of staging labels attached to the version.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
