code.dwrz.net

Go monorepo.
Log | Files | Refs

errors.go (7000B)


      1 // Code generated by smithy-go-codegen DO NOT EDIT.
      2 
      3 package types
      4 
      5 import (
      6 	"fmt"
      7 	smithy "github.com/aws/smithy-go"
      8 )
      9 
     10 // The web identity token that was passed is expired or is not valid. Get a new
     11 // identity token from the identity provider and then retry the request.
     12 type ExpiredTokenException struct {
     13 	Message *string
     14 
     15 	noSmithyDocumentSerde
     16 }
     17 
     18 func (e *ExpiredTokenException) Error() string {
     19 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     20 }
     21 func (e *ExpiredTokenException) ErrorMessage() string {
     22 	if e.Message == nil {
     23 		return ""
     24 	}
     25 	return *e.Message
     26 }
     27 func (e *ExpiredTokenException) ErrorCode() string             { return "ExpiredTokenException" }
     28 func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     29 
     30 // The request could not be fulfilled because the identity provider (IDP) that was
     31 // asked to verify the incoming identity token could not be reached. This is often
     32 // a transient error caused by network conditions. Retry the request a limited
     33 // number of times so that you don't exceed the request rate. If the error
     34 // persists, the identity provider might be down or not responding.
     35 type IDPCommunicationErrorException struct {
     36 	Message *string
     37 
     38 	noSmithyDocumentSerde
     39 }
     40 
     41 func (e *IDPCommunicationErrorException) Error() string {
     42 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     43 }
     44 func (e *IDPCommunicationErrorException) ErrorMessage() string {
     45 	if e.Message == nil {
     46 		return ""
     47 	}
     48 	return *e.Message
     49 }
     50 func (e *IDPCommunicationErrorException) ErrorCode() string             { return "IDPCommunicationError" }
     51 func (e *IDPCommunicationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     52 
     53 // The identity provider (IdP) reported that authentication failed. This might be
     54 // because the claim is invalid. If this error is returned for the
     55 // AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired
     56 // or has been explicitly revoked.
     57 type IDPRejectedClaimException struct {
     58 	Message *string
     59 
     60 	noSmithyDocumentSerde
     61 }
     62 
     63 func (e *IDPRejectedClaimException) Error() string {
     64 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     65 }
     66 func (e *IDPRejectedClaimException) ErrorMessage() string {
     67 	if e.Message == nil {
     68 		return ""
     69 	}
     70 	return *e.Message
     71 }
     72 func (e *IDPRejectedClaimException) ErrorCode() string             { return "IDPRejectedClaim" }
     73 func (e *IDPRejectedClaimException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     74 
     75 // The error returned if the message passed to DecodeAuthorizationMessage was
     76 // invalid. This can happen if the token contains invalid characters, such as
     77 // linebreaks.
     78 type InvalidAuthorizationMessageException struct {
     79 	Message *string
     80 
     81 	noSmithyDocumentSerde
     82 }
     83 
     84 func (e *InvalidAuthorizationMessageException) Error() string {
     85 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     86 }
     87 func (e *InvalidAuthorizationMessageException) ErrorMessage() string {
     88 	if e.Message == nil {
     89 		return ""
     90 	}
     91 	return *e.Message
     92 }
     93 func (e *InvalidAuthorizationMessageException) ErrorCode() string {
     94 	return "InvalidAuthorizationMessageException"
     95 }
     96 func (e *InvalidAuthorizationMessageException) ErrorFault() smithy.ErrorFault {
     97 	return smithy.FaultClient
     98 }
     99 
    100 // The web identity token that was passed could not be validated by Amazon Web
    101 // Services. Get a new identity token from the identity provider and then retry the
    102 // request.
    103 type InvalidIdentityTokenException struct {
    104 	Message *string
    105 
    106 	noSmithyDocumentSerde
    107 }
    108 
    109 func (e *InvalidIdentityTokenException) Error() string {
    110 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    111 }
    112 func (e *InvalidIdentityTokenException) ErrorMessage() string {
    113 	if e.Message == nil {
    114 		return ""
    115 	}
    116 	return *e.Message
    117 }
    118 func (e *InvalidIdentityTokenException) ErrorCode() string             { return "InvalidIdentityToken" }
    119 func (e *InvalidIdentityTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    120 
    121 // The request was rejected because the policy document was malformed. The error
    122 // message describes the specific error.
    123 type MalformedPolicyDocumentException struct {
    124 	Message *string
    125 
    126 	noSmithyDocumentSerde
    127 }
    128 
    129 func (e *MalformedPolicyDocumentException) Error() string {
    130 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    131 }
    132 func (e *MalformedPolicyDocumentException) ErrorMessage() string {
    133 	if e.Message == nil {
    134 		return ""
    135 	}
    136 	return *e.Message
    137 }
    138 func (e *MalformedPolicyDocumentException) ErrorCode() string             { return "MalformedPolicyDocument" }
    139 func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    140 
    141 // The request was rejected because the total packed size of the session policies
    142 // and session tags combined was too large. An Amazon Web Services conversion
    143 // compresses the session policy document, session policy ARNs, and session tags
    144 // into a packed binary format that has a separate limit. The error message
    145 // indicates by percentage how close the policies and tags are to the upper size
    146 // limit. For more information, see Passing Session Tags in STS
    147 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) in the
    148 // IAM User Guide. You could receive this error even though you meet other defined
    149 // session policy and session tag limits. For more information, see IAM and STS
    150 // Entity Character Limits
    151 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length)
    152 // in the IAM User Guide.
    153 type PackedPolicyTooLargeException struct {
    154 	Message *string
    155 
    156 	noSmithyDocumentSerde
    157 }
    158 
    159 func (e *PackedPolicyTooLargeException) Error() string {
    160 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    161 }
    162 func (e *PackedPolicyTooLargeException) ErrorMessage() string {
    163 	if e.Message == nil {
    164 		return ""
    165 	}
    166 	return *e.Message
    167 }
    168 func (e *PackedPolicyTooLargeException) ErrorCode() string             { return "PackedPolicyTooLarge" }
    169 func (e *PackedPolicyTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    170 
    171 // STS is not activated in the requested region for the account that is being asked
    172 // to generate credentials. The account administrator must use the IAM console to
    173 // activate STS in that region. For more information, see Activating and
    174 // Deactivating Amazon Web Services STS in an Amazon Web Services Region
    175 // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
    176 // in the IAM User Guide.
    177 type RegionDisabledException struct {
    178 	Message *string
    179 
    180 	noSmithyDocumentSerde
    181 }
    182 
    183 func (e *RegionDisabledException) Error() string {
    184 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    185 }
    186 func (e *RegionDisabledException) ErrorMessage() string {
    187 	if e.Message == nil {
    188 		return ""
    189 	}
    190 	return *e.Message
    191 }
    192 func (e *RegionDisabledException) ErrorCode() string             { return "RegionDisabledException" }
    193 func (e *RegionDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }