package types

import "github.com/aws/aws-sdk-go-v2/service/cognitoidentity/types"

Index

Types

type AmbiguousRoleResolutionType

type AmbiguousRoleResolutionType string
const (
	AmbiguousRoleResolutionTypeAuthenticated_role AmbiguousRoleResolutionType = "AuthenticatedRole"
	AmbiguousRoleResolutionTypeDeny               AmbiguousRoleResolutionType = "Deny"
)

Enum values for AmbiguousRoleResolutionType

type CognitoIdentityProvider

type CognitoIdentityProvider struct {
	// The client ID for the Amazon Cognito user pool.
	ClientId *string
	// The provider name for an Amazon Cognito user pool. For example,
	// cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.
	ProviderName *string
	// TRUE if server-side token validation is enabled for the identity provider’s
	// token. Once you set ServerSideTokenCheck to TRUE for an identity pool, that
	// identity pool will check with the integrated user pools to make sure that the
	// user has not been globally signed out or deleted before the identity pool
	// provides an OIDC token or AWS credentials for the user. If the user is signed
	// out or deleted, the identity pool will return a 400 Not Authorized error.
	ServerSideTokenCheck *bool
}

A provider representing an Amazon Cognito user pool and its client ID.

type ConcurrentModificationException

type ConcurrentModificationException struct {
	Message *string
}

Thrown if there are parallel requests to modify a resource.

func (*ConcurrentModificationException) Error

func (*ConcurrentModificationException) ErrorCode

func (e *ConcurrentModificationException) ErrorCode() string

func (*ConcurrentModificationException) ErrorFault

func (*ConcurrentModificationException) ErrorMessage

func (e *ConcurrentModificationException) ErrorMessage() string

func (*ConcurrentModificationException) GetMessage

func (e *ConcurrentModificationException) GetMessage() string

func (*ConcurrentModificationException) HasMessage

func (e *ConcurrentModificationException) HasMessage() bool

type Credentials

type Credentials struct {
	// The Secret Access Key portion of the credentials
	SecretKey *string
	// The Access Key portion of the credentials.
	AccessKeyId *string
	// The date at which these credentials will expire.
	Expiration *time.Time
	// The Session Token portion of the credentials
	SessionToken *string
}

Credentials for the provided identity ID.

type DeveloperUserAlreadyRegisteredException

type DeveloperUserAlreadyRegisteredException struct {
	Message *string
}

The provided developer user identifier is already registered with Cognito under a different identity ID.

func (*DeveloperUserAlreadyRegisteredException) Error

func (*DeveloperUserAlreadyRegisteredException) ErrorCode

func (*DeveloperUserAlreadyRegisteredException) ErrorFault

func (*DeveloperUserAlreadyRegisteredException) ErrorMessage

func (*DeveloperUserAlreadyRegisteredException) GetMessage

func (*DeveloperUserAlreadyRegisteredException) HasMessage

type ErrorCode

type ErrorCode string
const (
	ErrorCodeAccess_denied         ErrorCode = "AccessDenied"
	ErrorCodeInternal_server_error ErrorCode = "InternalServerError"
)

Enum values for ErrorCode

type ExternalServiceException

type ExternalServiceException struct {
	Message *string
}

An exception thrown when a dependent service such as Facebook or Twitter is not responding

func (*ExternalServiceException) Error

func (e *ExternalServiceException) Error() string

func (*ExternalServiceException) ErrorCode

func (e *ExternalServiceException) ErrorCode() string

func (*ExternalServiceException) ErrorFault

func (e *ExternalServiceException) ErrorFault() smithy.ErrorFault

func (*ExternalServiceException) ErrorMessage

func (e *ExternalServiceException) ErrorMessage() string

func (*ExternalServiceException) GetMessage

func (e *ExternalServiceException) GetMessage() string

func (*ExternalServiceException) HasMessage

func (e *ExternalServiceException) HasMessage() bool

type IdentityDescription

type IdentityDescription struct {
	// Date on which the identity was last modified.
	LastModifiedDate *time.Time
	// Date on which the identity was created.
	CreationDate *time.Time
	// A unique identifier in the format REGION:GUID.
	IdentityId *string
	// The provider names.
	Logins []*string
}

A description of the identity.

type IdentityPoolShortDescription

type IdentityPoolShortDescription struct {
	// A string that you provide.
	IdentityPoolName *string
	// An identity pool ID in the format REGION:GUID.
	IdentityPoolId *string
}

A description of the identity pool.

type InternalErrorException

type InternalErrorException struct {
	Message *string
}

Thrown when the service encounters an error during processing the request.

func (*InternalErrorException) Error

func (e *InternalErrorException) Error() string

func (*InternalErrorException) ErrorCode

func (e *InternalErrorException) ErrorCode() string

func (*InternalErrorException) ErrorFault

func (e *InternalErrorException) ErrorFault() smithy.ErrorFault

func (*InternalErrorException) ErrorMessage

func (e *InternalErrorException) ErrorMessage() string

func (*InternalErrorException) GetMessage

func (e *InternalErrorException) GetMessage() string

func (*InternalErrorException) HasMessage

func (e *InternalErrorException) HasMessage() bool

type InvalidIdentityPoolConfigurationException

type InvalidIdentityPoolConfigurationException struct {
	Message *string
}

Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.

func (*InvalidIdentityPoolConfigurationException) Error

func (*InvalidIdentityPoolConfigurationException) ErrorCode

func (*InvalidIdentityPoolConfigurationException) ErrorFault

func (*InvalidIdentityPoolConfigurationException) ErrorMessage

func (*InvalidIdentityPoolConfigurationException) GetMessage

func (*InvalidIdentityPoolConfigurationException) HasMessage

type InvalidParameterException

type InvalidParameterException struct {
	Message *string
}

Thrown for missing or bad input parameter(s).

func (*InvalidParameterException) Error

func (e *InvalidParameterException) Error() string

func (*InvalidParameterException) ErrorCode

func (e *InvalidParameterException) ErrorCode() string

func (*InvalidParameterException) ErrorFault

func (*InvalidParameterException) ErrorMessage

func (e *InvalidParameterException) ErrorMessage() string

func (*InvalidParameterException) GetMessage

func (e *InvalidParameterException) GetMessage() string

func (*InvalidParameterException) HasMessage

func (e *InvalidParameterException) HasMessage() bool

type LimitExceededException

type LimitExceededException struct {
	Message *string
}

Thrown when the total number of user pools has exceeded a preset limit.

func (*LimitExceededException) Error

func (e *LimitExceededException) Error() string

func (*LimitExceededException) ErrorCode

func (e *LimitExceededException) ErrorCode() string

func (*LimitExceededException) ErrorFault

func (e *LimitExceededException) ErrorFault() smithy.ErrorFault

func (*LimitExceededException) ErrorMessage

func (e *LimitExceededException) ErrorMessage() string

func (*LimitExceededException) GetMessage

func (e *LimitExceededException) GetMessage() string

func (*LimitExceededException) HasMessage

func (e *LimitExceededException) HasMessage() bool

type MappingRule

type MappingRule struct {
	// The claim name that must be present in the token, for example, "isAdmin" or
	// "paid".
	Claim *string
	// The role ARN.
	RoleARN *string
	// The match condition that specifies how closely the claim value in the IdP token
	// must match Value.
	MatchType MappingRuleMatchType
	// A brief string that the claim must match, for example, "paid" or "yes".
	Value *string
}

A rule that maps a claim name, a claim value, and a match type to a role ARN.

type MappingRuleMatchType

type MappingRuleMatchType string
const (
	MappingRuleMatchTypeEquals      MappingRuleMatchType = "Equals"
	MappingRuleMatchTypeContains    MappingRuleMatchType = "Contains"
	MappingRuleMatchTypeStarts_with MappingRuleMatchType = "StartsWith"
	MappingRuleMatchTypeNot_equal   MappingRuleMatchType = "NotEqual"
)

Enum values for MappingRuleMatchType

type NotAuthorizedException

type NotAuthorizedException struct {
	Message *string
}

Thrown when a user is not authorized to access the requested resource.

func (*NotAuthorizedException) Error

func (e *NotAuthorizedException) Error() string

func (*NotAuthorizedException) ErrorCode

func (e *NotAuthorizedException) ErrorCode() string

func (*NotAuthorizedException) ErrorFault

func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault

func (*NotAuthorizedException) ErrorMessage

func (e *NotAuthorizedException) ErrorMessage() string

func (*NotAuthorizedException) GetMessage

func (e *NotAuthorizedException) GetMessage() string

func (*NotAuthorizedException) HasMessage

func (e *NotAuthorizedException) HasMessage() bool

type ResourceConflictException

type ResourceConflictException struct {
	Message *string
}

Thrown when a user tries to use a login which is already linked to another account.

func (*ResourceConflictException) Error

func (e *ResourceConflictException) Error() string

func (*ResourceConflictException) ErrorCode

func (e *ResourceConflictException) ErrorCode() string

func (*ResourceConflictException) ErrorFault

func (*ResourceConflictException) ErrorMessage

func (e *ResourceConflictException) ErrorMessage() string

func (*ResourceConflictException) GetMessage

func (e *ResourceConflictException) GetMessage() string

func (*ResourceConflictException) HasMessage

func (e *ResourceConflictException) HasMessage() bool

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string
}

Thrown when the requested resource (for example, a dataset or record) does not exist.

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

func (*ResourceNotFoundException) GetMessage

func (e *ResourceNotFoundException) GetMessage() string

func (*ResourceNotFoundException) HasMessage

func (e *ResourceNotFoundException) HasMessage() bool

type RoleMapping

type RoleMapping struct {
	// The role mapping type. Token will use cognito:roles and cognito:preferred_role
	// claims from the Cognito identity provider token to map groups to roles. Rules
	// will attempt to match claims from the token to map to a role.
	Type RoleMappingType
	// The rules to be used for mapping users to roles. If you specify Rules as the
	// role mapping type, RulesConfiguration is required.
	RulesConfiguration *RulesConfigurationType
	// If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
	// Specifies the action to be taken if either no rules match the claim value for
	// the Rules type, or there is no cognito:preferred_role claim and there are
	// multiple cognito:roles matches for the Token type.
	AmbiguousRoleResolution AmbiguousRoleResolutionType
}

A role mapping.

type RoleMappingType

type RoleMappingType string
const (
	RoleMappingTypeToken RoleMappingType = "Token"
	RoleMappingTypeRules RoleMappingType = "Rules"
)

Enum values for RoleMappingType

type RulesConfigurationType

type RulesConfigurationType struct {
	// An array of rules. You can specify up to 25 rules per identity provider. Rules
	// are evaluated in order. The first one to match specifies the role.
	Rules []*MappingRule
}

A container for rules.

type TooManyRequestsException

type TooManyRequestsException struct {
	Message *string
}

Thrown when a request is throttled.

func (*TooManyRequestsException) Error

func (e *TooManyRequestsException) Error() string

func (*TooManyRequestsException) ErrorCode

func (e *TooManyRequestsException) ErrorCode() string

func (*TooManyRequestsException) ErrorFault

func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault

func (*TooManyRequestsException) ErrorMessage

func (e *TooManyRequestsException) ErrorMessage() string

func (*TooManyRequestsException) GetMessage

func (e *TooManyRequestsException) GetMessage() string

func (*TooManyRequestsException) HasMessage

func (e *TooManyRequestsException) HasMessage() bool

type UnprocessedIdentityId

type UnprocessedIdentityId struct {
	// The error code indicating the type of error that occurred.
	ErrorCode ErrorCode
	// A unique identifier in the format REGION:GUID.
	IdentityId *string
}

An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

Source Files

enums.go errors.go types.go

Version
v0.1.0
Published
Sep 29, 2020
Platform
js/wasm
Imports
4 packages
Last checked
3 hours ago

Tools for package owners.