Struct: kms.TagResourceInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
KeyId *string
Identifies a customer managed key in the account and Region.
-
Tags []*Tag
One or more tags.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetKeyId(string) *TagResourceInput
operation
SetKeyId sets the KeyId field's value.
-
SetTags([]*Tag) *TagResourceInput
operation
SetTags sets the Tags field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Structure Field Details
KeyId *string
`min:"1" type:"string" required:"true"`
Identifies a customer managed key in the account and Region.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
KeyId is a required field
Tags []*Tag
`type:"list" required:"true"`
One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
You cannot have more than one tag on a KMS key with the same tag key. If you specify an existing tag key with a different tag value, KMS replaces the current tag value with the specified one.
Tags is a required field
_ struct{}
`type:"structure"`
Method Details
func (s TagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
16667 16668 16669 |
// File 'service/kms/api.go', line 16667
|
func (s *TagResourceInput) SetKeyId(v string) *TagResourceInput
SetKeyId sets the KeyId field's value.
16701 16702 16703 16704 |
// File 'service/kms/api.go', line 16701
|
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput
SetTags sets the Tags field's value.
16707 16708 16709 16710 |
// File 'service/kms/api.go', line 16707
|
func (s TagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
16658 16659 16660 |
// File 'service/kms/api.go', line 16658
|
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 |
// File 'service/kms/api.go', line 16672
|