Struct: kms.AlreadyExistsException

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

Overview

The request was rejected because it attempted to create a resource that already exists.

Implemented Interfaces

s3crypto.Cipher, awserr.Error, s3manager.ReadSeekerWriteTo, awserr.RequestFailure, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Message_ *string `locationName:"message" type:"string"`

RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

_ struct{} `type:"structure"`

Method Details

func (s *AlreadyExistsException) Code() string

Code returns the exception type name.



8010
8011
8012
// File 'service/kms/api.go', line 8010

func (s *AlreadyExistsException) Code() string { return "AlreadyExistsException" }

func (s *AlreadyExistsException) Error() string



8027
8028
8029
// File 'service/kms/api.go', line 8027

func (s *AlreadyExistsException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) }

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



7999
8000
8001
// File 'service/kms/api.go', line 7999

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

func (s *AlreadyExistsException) Message() string

Message returns the exception's message.



8015
8016
8017
8018
8019
8020
// File 'service/kms/api.go', line 8015

func (s *AlreadyExistsException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" }

func (s *AlreadyExistsException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



8023
8024
8025
// File 'service/kms/api.go', line 8023

func (s *AlreadyExistsException) OrigErr() error { return nil }

func (s *AlreadyExistsException) RequestID() string

RequestID returns the service's response RequestID for request.



8037
8038
8039
// File 'service/kms/api.go', line 8037

func (s *AlreadyExistsException) RequestID() string { return s.RespMetadata.RequestID }

func (s *AlreadyExistsException) StatusCode() int

Status code returns the HTTP status code for the request's response error.



8032
8033
8034
// File 'service/kms/api.go', line 8032

func (s *AlreadyExistsException) StatusCode() int { return s.RespMetadata.StatusCode }

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



7990
7991
7992
// File 'service/kms/api.go', line 7990

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