Documentation
¶
Index ¶
- Constants
- func WithNamespace(err error, namespace string) error
- type APIError
- type Error
- func AccessDeniedAssumeRoleWithWebIdentity() Error
- func AccessDeniedIAMAction(callerArn, action string) Error
- func AccessDeniedOIDCProvider(callerAccountID, resourceArn string) Error
- func AccessKeyIDTooLong(maxLength int) Error
- func AccessKeyIDTooShort(minLength int) Error
- func AccessKeysLimitExceeded(maxKeys int) Error
- func ClientIdsPerOpenIdConnectProviderLimitExceeded(max int) Error
- func ConcurrentModification() Error
- func DurationExceedsMaxSessionDuration() Error
- func DurationSecondsTooHigh(value string) Error
- func DurationSecondsTooLow(value string) Error
- func EntityAlreadyExistsOIDCProvider(url string) Error
- func EntityAlreadyExistsRole(roleName string) Error
- func EntityAlreadyExistsUser(userName string) Error
- func ExpiredWebIdentityToken(now, exp int64) Error
- func GetAPIError(code ErrorCode) Error
- func IncompleteSignatureHeadersNotSigned(headers []string) Error
- func IncompleteSignatureInvalidXAmzDate(date string) Error
- func IncompleteSignatureMalformedComponent(component string) Error
- func IncompleteSignatureMalformedCredential(credential string) Error
- func IncompleteSignatureMissingAuthorizationComponent(component, authorization string) Error
- func IncompleteSignatureMissingDate(authorization string) Error
- func IncompleteSignatureMissingQueryParameter(parameter string) Error
- func IncorrectServiceScope(expectedService string) Error
- func InlinePolicyQuotaExceeded(entityKind, entityName string, maxBytes int) Error
- func InvalidAccessKeyStatus(value string) Error
- func InvalidAction(action, version string) Error
- func InvalidCharset(field string) Error
- func InvalidDescriptionCharset(field string) Error
- func InvalidIdentityTokenClaims() Error
- func InvalidIdentityTokenIDPCommunicationError() Error
- func InvalidIdentityTokenMalformed() Error
- func InvalidIdentityTokenMissingClaim(claim string) Error
- func InvalidIdentityTokenMultipleAudiences() Error
- func InvalidInput(message string) Error
- func InvalidPath(field string) Error
- func InvalidRoleSessionName(value string) Error
- func InvalidTagKey(index int) Error
- func InvalidTagValue(index int) Error
- func InvalidUserName(field string) Error
- func MalformedInput() Error
- func MalformedPolicyDocument(message string) Error
- func MaxSessionDurationTooHigh() Error
- func MaxSessionDurationTooLow() Error
- func MissingParameter(parameter string) Error
- func MissingTagKey(index int) Error
- func MissingTagValue(index int) Error
- func MissingValue(field string) Error
- func MustSpecifyUserName() Error
- func NoSuchEntityAccessKey(accessKeyID string) Error
- func NoSuchEntityOIDCProviderDelete(arn string) Error
- func NoSuchEntityOIDCProviderGet(arn string) Error
- func NoSuchEntityRole(roleName string) Error
- func NoSuchEntityRolePolicy(roleName, policyName string) Error
- func NoSuchEntityUser(userName string) Error
- func NoSuchEntityUserPolicy(userName, policyName string) Error
- func OIDCProvidersPerAccountLimitExceeded(max int) Error
- func OpenIdIdpCommunicationError(url string) Error
- func PathTooLong(field string, maxLength int) Error
- func SignatureDoesNotMatchExpired(requestTime, serverTime time.Time, allowedSkew time.Duration) Error
- func SignatureDoesNotMatchNotYetCurrent(requestTime, serverTime time.Time, allowedSkew time.Duration) Error
- func TagKeyTooLong(index int) Error
- func TagKeyTooShort(index int) Error
- func TagValueTooLong(index int) Error
- func ThumbprintListEmpty() Error
- func ThumbprintListTooLong(max int) Error
- func TrustPolicySizeLimitExceeded(maxBytes int) Error
- func UnsupportedParameter(parameter string) Error
- func UserNameTooLong(field string, maxLength int) Error
- func ValidationError(message string) Error
- func ValueTooLong(field string, maxLength int) Error
- func ValueTooShort(field string, minLength int) Error
- type ErrorCode
- type ErrorType
Constants ¶
const ( Namespace = "https://iam.amazonaws.com/doc/2010-05-08/" AWSFaultNamespace = "http://webservices.amazon.com/AWSFault/2005-15-09" STSNamespace = "https://sts.amazonaws.com/doc/2011-06-15/" )
Variables ¶
This section is empty.
Functions ¶
func WithNamespace ¶
WithNamespace returns err with its XML namespace overridden to namespace, for errors that must render under a different service's namespace than the one they were originally constructed with (STS actions sharing this gateway's IAM endpoint being the only current case). It never overrides an already-explicit namespace (e.g. InvalidAction's AWSFaultNamespace, used for a request whose Version doesn't even resolve to a known action.
Types ¶
type Error ¶
type Error struct {
Type ErrorType
Code string
Message string
HTTPStatusCode int
XMLNamespace string
}
func AccessDeniedAssumeRoleWithWebIdentity ¶
func AccessDeniedAssumeRoleWithWebIdentity() Error
func AccessDeniedIAMAction ¶
func AccessDeniedOIDCProvider ¶
AccessDeniedOIDCProvider is returned when a well-formed OIDC provider ARN references an account id other than callerAccountID.
func AccessKeyIDTooLong ¶
func AccessKeyIDTooShort ¶
func AccessKeysLimitExceeded ¶
func ConcurrentModification ¶
func ConcurrentModification() Error
func DurationExceedsMaxSessionDuration ¶
func DurationExceedsMaxSessionDuration() Error
func DurationSecondsTooHigh ¶
func DurationSecondsTooLow ¶
func EntityAlreadyExistsRole ¶
func EntityAlreadyExistsUser ¶
func ExpiredWebIdentityToken ¶
func GetAPIError ¶
func IncorrectServiceScope ¶
func InvalidAccessKeyStatus ¶
func InvalidAction ¶
func InvalidCharset ¶
func InvalidIdentityTokenClaims ¶
func InvalidIdentityTokenClaims() Error
func InvalidIdentityTokenIDPCommunicationError ¶
func InvalidIdentityTokenIDPCommunicationError() Error
func InvalidIdentityTokenMalformed ¶
func InvalidIdentityTokenMalformed() Error
func InvalidIdentityTokenMultipleAudiences ¶
func InvalidIdentityTokenMultipleAudiences() Error
func InvalidInput ¶
func InvalidPath ¶
func InvalidRoleSessionName ¶
func InvalidTagKey ¶
func InvalidTagValue ¶
func InvalidUserName ¶
func MalformedInput ¶
func MalformedInput() Error
func MalformedPolicyDocument ¶
func MaxSessionDurationTooHigh ¶
func MaxSessionDurationTooHigh() Error
func MaxSessionDurationTooLow ¶
func MaxSessionDurationTooLow() Error
func MissingParameter ¶
func MissingTagKey ¶
MissingTagKey reports a Tags member supplying a Value with no Key.
func MissingTagValue ¶
MissingTagValue reports a Tags member supplying a Key with no Value. A tag value may be empty, but the parameter itself must be present.
func MissingValue ¶
func MustSpecifyUserName ¶
func MustSpecifyUserName() Error
func NoSuchEntityAccessKey ¶
func NoSuchEntityOIDCProviderDelete ¶
NoSuchEntityOIDCProviderDelete is the wording DeleteOpenIDConnectProvider and the provider tagging actions use, distinct from the one NoSuchEntityOIDCProviderGet reports.
func NoSuchEntityRole ¶
func NoSuchEntityRolePolicy ¶
func NoSuchEntityUser ¶
func NoSuchEntityUserPolicy ¶
func PathTooLong ¶
func TagKeyTooLong ¶
func TagValueTooLong ¶
func ThumbprintListEmpty ¶
func ThumbprintListEmpty() Error
func ThumbprintListTooLong ¶
func UnsupportedParameter ¶
func UserNameTooLong ¶
func ValidationError ¶
func ValueTooLong ¶
func ValueTooShort ¶
func (Error) StatusCode ¶
type ErrorCode ¶
type ErrorCode int
const ( ErrInternalFailure ErrorCode = iota ErrSignatureDoesNotMatch ErrMissingAuthenticationToken ErrIncompleteSignature ErrUnsupportedSignatureVersion ErrMissingAuthorizationComponents ErrIncorrectService ErrInvalidCredentialDate ErrInvalidTerminal ErrUnsupportedQueryAlgorithm ErrInvalidRegion ErrMissingHostSignedHeader ErrInvalidClientTokenID ErrInvalidContentLength ErrThrottling ErrTooManyTags ErrTooManyTagKeys ErrInvalidTagKeys ErrTagLimitExceeded ErrInvalidPathPrefix ErrDuplicateTagKeys ErrDuplicateExactTagKeys ErrInvalidAccessKeyIDChars ErrDeleteConflict ErrDeleteConflictPolicies ErrMaxItemsTooLow ErrMaxItemsTooHigh )