Struct: kms.DescribeKeyInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
GrantTokens []*string
A list of grant tokens.
-
KeyId *string
Describes the specified KMS key.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetGrantTokens([]*string) *DescribeKeyInput
operation
SetGrantTokens sets the GrantTokens field's value.
-
SetKeyId(string) *DescribeKeyInput
operation
SetKeyId sets the KeyId 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
GrantTokens []*string
`type:"list"`
A list of grant tokens.
For more information, see Grant Tokens (docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) in the AWS Key Management Service Developer Guide.
KeyId *string
`min:"1" type:"string" required:"true"`
Describes the specified KMS key.
If you specify a predefined Amazon Web Services alias (an Amazon Web Services alias with no key ID), KMS associates the alias with an Amazon Web Services managed key (docs.aws.amazon.com/kms/latest/developerguide/concepts.html##aws-managed-cmk) and returns its KeyId and Arn in the response.
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with “alias/”. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.
For example:
-
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name: alias/ExampleAlias
-
Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
KeyId is a required field
_ struct{}
`type:"structure"`
Method Details
func (s DescribeKeyInput) 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”.
10629 10630 10631 |
// File 'service/kms/api.go', line 10629
|
func (s *DescribeKeyInput) SetGrantTokens(v []*string) *DescribeKeyInput
SetGrantTokens sets the GrantTokens field's value.
10650 10651 10652 10653 |
// File 'service/kms/api.go', line 10650
|
func (s *DescribeKeyInput) SetKeyId(v string) *DescribeKeyInput
SetKeyId sets the KeyId field's value.
10656 10657 10658 10659 |
// File 'service/kms/api.go', line 10656
|
func (s DescribeKeyInput) 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”.
10620 10621 10622 |
// File 'service/kms/api.go', line 10620
|
func (s *DescribeKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 |
// File 'service/kms/api.go', line 10634
|