Class: Aws::SecretsManager::Types::TagResourceRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::SecretsManager::Types::TagResourceRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-secretsmanager/types.rb
Overview
When making an API call, you may pass TagResourceRequest data as a hash:
{
secret_id: "SecretIdType", # required
tags: [ # required
{
key: "TagKeyType",
value: "TagValueType",
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#secret_id ⇒ String
The identifier for the secret that you want to attach tags to.
-
#tags ⇒ Array<Types::Tag>
The tags to attach to the secret.
Instance Attribute Details
#secret_id ⇒ String
The identifier for the secret that you want to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
2101 2102 2103 2104 2105 2106 |
# File 'lib/aws-sdk-secretsmanager/types.rb', line 2101 class TagResourceRequest < Struct.new( :secret_id, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tags to attach to the secret. Each element in the list consists of a ‘Key` and a `Value`.
This parameter to the API requires a JSON text string argument.
For storing multiple values, we recommend that you use a JSON text string argument and specify key/value pairs. For more information, see [Specifying parameter values for the Amazon Web Services CLI] in the Amazon Web Services CLI User Guide.
[1]: docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters.html
2101 2102 2103 2104 2105 2106 |
# File 'lib/aws-sdk-secretsmanager/types.rb', line 2101 class TagResourceRequest < Struct.new( :secret_id, :tags) SENSITIVE = [] include Aws::Structure end |