Struct: kms.DeleteAliasInput

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

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

The alias to be deleted. The alias name must begin with alias/ followed by the alias name, such as alias/ExampleAlias.

AliasName is a required field

_ struct{} `type:"structure"`

Method Details

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



10161
10162
10163
// File 'service/kms/api.go', line 10161

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

func (s *DeleteAliasInput) SetAliasName(v string) *DeleteAliasInput

SetAliasName sets the AliasName field's value.



10182
10183
10184
10185
// File 'service/kms/api.go', line 10182

func (s *DeleteAliasInput) SetAliasName(v string) *DeleteAliasInput { s.AliasName = &v return s }

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



10152
10153
10154
// File 'service/kms/api.go', line 10152

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

func (s *DeleteAliasInput) Validate() error

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



10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
// File 'service/kms/api.go', line 10166

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