Struct: kms.EnableKeyInput

import "../ibm-cos-sdk-go/service/kms"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

KeyId *string `min:"1" type:"string" required:"true"`

Identifies the KMS key to enable.

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

_ struct{} `type:"structure"`

Method Details

func (s EnableKeyInput) 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”.



11027
11028
11029
// File 'service/kms/api.go', line 11027

func (s EnableKeyInput) GoString() string { return s.String() }

func (s *EnableKeyInput) SetKeyId(v string) *EnableKeyInput

SetKeyId sets the KeyId field's value.



11048
11049
11050
11051
// File 'service/kms/api.go', line 11048

func (s *EnableKeyInput) SetKeyId(v string) *EnableKeyInput { s.KeyId = &v return s }

func (s EnableKeyInput) 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”.



11018
11019
11020
// File 'service/kms/api.go', line 11018

func (s EnableKeyInput) String() string { return awsutil.Prettify(s) }

func (s *EnableKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
// File 'service/kms/api.go', line 11032

func (s *EnableKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EnableKeyInput"} if s.KeyId == nil { invalidParams.Add(request.NewErrParamRequired("KeyId")) } if s.KeyId != nil && len(*s.KeyId) < 1 { invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }