Struct: kms.UntagResourceInput

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 from which you are removing tags.

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

TagKeys []*string `type:"list" required:"true"`

One or more tag keys. Specify only the tag keys, not the tag values.

TagKeys is a required field

_ struct{} `type:"structure"`

Method Details

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



16837
16838
16839
// File 'service/kms/api.go', line 16837

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

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

SetKeyId sets the KeyId field's value.



16861
16862
16863
16864
// File 'service/kms/api.go', line 16861

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

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.



16867
16868
16869
16870
// File 'service/kms/api.go', line 16867

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s }

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



16828
16829
16830
// File 'service/kms/api.go', line 16828

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

func (s *UntagResourceInput) Validate() error

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



16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
// File 'service/kms/api.go', line 16842

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