1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// Secrets Manager can't decrypt the protected secret text using the provided KMS 11// key. 12type DecryptionFailure struct { 13 Message *string 14 15 noSmithyDocumentSerde 16} 17 18func (e *DecryptionFailure) Error() string { 19 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 20} 21func (e *DecryptionFailure) ErrorMessage() string { 22 if e.Message == nil { 23 return "" 24 } 25 return *e.Message 26} 27func (e *DecryptionFailure) ErrorCode() string { return "DecryptionFailure" } 28func (e *DecryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 29 30// Secrets Manager can't encrypt the protected secret text using the provided KMS 31// key. Check that the customer master key (CMK) is available, enabled, and not in 32// an invalid state. For more information, see How Key State Affects Use of a 33// Customer Master Key 34// (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). 35type EncryptionFailure struct { 36 Message *string 37 38 noSmithyDocumentSerde 39} 40 41func (e *EncryptionFailure) Error() string { 42 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 43} 44func (e *EncryptionFailure) ErrorMessage() string { 45 if e.Message == nil { 46 return "" 47 } 48 return *e.Message 49} 50func (e *EncryptionFailure) ErrorCode() string { return "EncryptionFailure" } 51func (e *EncryptionFailure) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 52 53// An error occurred on the server side. 54type InternalServiceError struct { 55 Message *string 56 57 noSmithyDocumentSerde 58} 59 60func (e *InternalServiceError) Error() string { 61 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 62} 63func (e *InternalServiceError) ErrorMessage() string { 64 if e.Message == nil { 65 return "" 66 } 67 return *e.Message 68} 69func (e *InternalServiceError) ErrorCode() string { return "InternalServiceError" } 70func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 71 72// You provided an invalid NextToken value. 73type InvalidNextTokenException struct { 74 Message *string 75 76 noSmithyDocumentSerde 77} 78 79func (e *InvalidNextTokenException) Error() string { 80 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 81} 82func (e *InvalidNextTokenException) ErrorMessage() string { 83 if e.Message == nil { 84 return "" 85 } 86 return *e.Message 87} 88func (e *InvalidNextTokenException) ErrorCode() string { return "InvalidNextTokenException" } 89func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 90 91// You provided an invalid value for a parameter. 92type InvalidParameterException struct { 93 Message *string 94 95 noSmithyDocumentSerde 96} 97 98func (e *InvalidParameterException) Error() string { 99 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 100} 101func (e *InvalidParameterException) ErrorMessage() string { 102 if e.Message == nil { 103 return "" 104 } 105 return *e.Message 106} 107func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } 108func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 109 110// You provided a parameter value that is not valid for the current state of the 111// resource. Possible causes: 112// 113// * You tried to perform the operation on a secret 114// that's currently marked deleted. 115// 116// * You tried to enable rotation on a secret 117// that doesn't already have a Lambda function ARN configured and you didn't 118// include such an ARN as a parameter in this call. 119type InvalidRequestException struct { 120 Message *string 121 122 noSmithyDocumentSerde 123} 124 125func (e *InvalidRequestException) Error() string { 126 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 127} 128func (e *InvalidRequestException) ErrorMessage() string { 129 if e.Message == nil { 130 return "" 131 } 132 return *e.Message 133} 134func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } 135func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 136 137// The request failed because it would exceed one of the Secrets Manager internal 138// limits. 139type LimitExceededException struct { 140 Message *string 141 142 noSmithyDocumentSerde 143} 144 145func (e *LimitExceededException) Error() string { 146 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 147} 148func (e *LimitExceededException) ErrorMessage() string { 149 if e.Message == nil { 150 return "" 151 } 152 return *e.Message 153} 154func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 155func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 156 157// You provided a resource-based policy with syntax errors. 158type MalformedPolicyDocumentException struct { 159 Message *string 160 161 noSmithyDocumentSerde 162} 163 164func (e *MalformedPolicyDocumentException) Error() string { 165 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 166} 167func (e *MalformedPolicyDocumentException) ErrorMessage() string { 168 if e.Message == nil { 169 return "" 170 } 171 return *e.Message 172} 173func (e *MalformedPolicyDocumentException) ErrorCode() string { 174 return "MalformedPolicyDocumentException" 175} 176func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 177 178// The request failed because you did not complete all the prerequisite steps. 179type PreconditionNotMetException struct { 180 Message *string 181 182 noSmithyDocumentSerde 183} 184 185func (e *PreconditionNotMetException) Error() string { 186 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 187} 188func (e *PreconditionNotMetException) ErrorMessage() string { 189 if e.Message == nil { 190 return "" 191 } 192 return *e.Message 193} 194func (e *PreconditionNotMetException) ErrorCode() string { return "PreconditionNotMetException" } 195func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 196 197// The BlockPublicPolicy parameter is set to true and the resource policy did not 198// prevent broad access to the secret. 199type PublicPolicyException struct { 200 Message *string 201 202 noSmithyDocumentSerde 203} 204 205func (e *PublicPolicyException) Error() string { 206 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 207} 208func (e *PublicPolicyException) ErrorMessage() string { 209 if e.Message == nil { 210 return "" 211 } 212 return *e.Message 213} 214func (e *PublicPolicyException) ErrorCode() string { return "PublicPolicyException" } 215func (e *PublicPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 216 217// A resource with the ID you requested already exists. 218type ResourceExistsException struct { 219 Message *string 220 221 noSmithyDocumentSerde 222} 223 224func (e *ResourceExistsException) Error() string { 225 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 226} 227func (e *ResourceExistsException) ErrorMessage() string { 228 if e.Message == nil { 229 return "" 230 } 231 return *e.Message 232} 233func (e *ResourceExistsException) ErrorCode() string { return "ResourceExistsException" } 234func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 235 236// We can't find the resource that you asked for. 237type ResourceNotFoundException struct { 238 Message *string 239 240 noSmithyDocumentSerde 241} 242 243func (e *ResourceNotFoundException) Error() string { 244 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 245} 246func (e *ResourceNotFoundException) ErrorMessage() string { 247 if e.Message == nil { 248 return "" 249 } 250 return *e.Message 251} 252func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 253func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 254