package types
import "github.com/aws/aws-sdk-go-v2/service/cognitoidentity/types"
Index ¶
- type AmbiguousRoleResolutionType
- type CognitoIdentityProvider
- type ConcurrentModificationException
- func (e *ConcurrentModificationException) Error() string
- func (e *ConcurrentModificationException) ErrorCode() string
- func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault
- func (e *ConcurrentModificationException) ErrorMessage() string
- type Credentials
- type DeveloperUserAlreadyRegisteredException
- func (e *DeveloperUserAlreadyRegisteredException) Error() string
- func (e *DeveloperUserAlreadyRegisteredException) ErrorCode() string
- func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault
- func (e *DeveloperUserAlreadyRegisteredException) ErrorMessage() string
- type ErrorCode
- type ExternalServiceException
- func (e *ExternalServiceException) Error() string
- func (e *ExternalServiceException) ErrorCode() string
- func (e *ExternalServiceException) ErrorFault() smithy.ErrorFault
- func (e *ExternalServiceException) ErrorMessage() string
- type IdentityDescription
- type IdentityPoolShortDescription
- type InternalErrorException
- func (e *InternalErrorException) Error() string
- func (e *InternalErrorException) ErrorCode() string
- func (e *InternalErrorException) ErrorFault() smithy.ErrorFault
- func (e *InternalErrorException) ErrorMessage() string
- type InvalidIdentityPoolConfigurationException
- func (e *InvalidIdentityPoolConfigurationException) Error() string
- func (e *InvalidIdentityPoolConfigurationException) ErrorCode() string
- func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFault
- func (e *InvalidIdentityPoolConfigurationException) ErrorMessage() string
- type InvalidParameterException
- func (e *InvalidParameterException) Error() string
- func (e *InvalidParameterException) ErrorCode() string
- func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault
- func (e *InvalidParameterException) ErrorMessage() string
- type LimitExceededException
- func (e *LimitExceededException) Error() string
- func (e *LimitExceededException) ErrorCode() string
- func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
- func (e *LimitExceededException) ErrorMessage() string
- type MappingRule
- type MappingRuleMatchType
- type NotAuthorizedException
- func (e *NotAuthorizedException) Error() string
- func (e *NotAuthorizedException) ErrorCode() string
- func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault
- func (e *NotAuthorizedException) ErrorMessage() string
- type ResourceConflictException
- func (e *ResourceConflictException) Error() string
- func (e *ResourceConflictException) ErrorCode() string
- func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault
- func (e *ResourceConflictException) ErrorMessage() string
- type ResourceNotFoundException
- func (e *ResourceNotFoundException) Error() string
- func (e *ResourceNotFoundException) ErrorCode() string
- func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
- func (e *ResourceNotFoundException) ErrorMessage() string
- type RoleMapping
- type RoleMappingType
- type RulesConfigurationType
- type TooManyRequestsException
- func (e *TooManyRequestsException) Error() string
- func (e *TooManyRequestsException) ErrorCode() string
- func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault
- func (e *TooManyRequestsException) ErrorMessage() string
- type UnprocessedIdentityId
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 (e *ConcurrentModificationException) Error() string
func (*ConcurrentModificationException) ErrorCode ¶
func (e *ConcurrentModificationException) ErrorCode() string
func (*ConcurrentModificationException) ErrorFault ¶
func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault
func (*ConcurrentModificationException) ErrorMessage ¶
func (e *ConcurrentModificationException) ErrorMessage() string
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 (e *DeveloperUserAlreadyRegisteredException) Error() string
func (*DeveloperUserAlreadyRegisteredException) ErrorCode ¶
func (e *DeveloperUserAlreadyRegisteredException) ErrorCode() string
func (*DeveloperUserAlreadyRegisteredException) ErrorFault ¶
func (e *DeveloperUserAlreadyRegisteredException) ErrorFault() smithy.ErrorFault
func (*DeveloperUserAlreadyRegisteredException) ErrorMessage ¶
func (e *DeveloperUserAlreadyRegisteredException) ErrorMessage() string
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
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
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 (e *InvalidIdentityPoolConfigurationException) Error() string
func (*InvalidIdentityPoolConfigurationException) ErrorCode ¶
func (e *InvalidIdentityPoolConfigurationException) ErrorCode() string
func (*InvalidIdentityPoolConfigurationException) ErrorFault ¶
func (e *InvalidIdentityPoolConfigurationException) ErrorFault() smithy.ErrorFault
func (*InvalidIdentityPoolConfigurationException) ErrorMessage ¶
func (e *InvalidIdentityPoolConfigurationException) ErrorMessage() string
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 (e *InvalidParameterException) ErrorFault() smithy.ErrorFault
func (*InvalidParameterException) ErrorMessage ¶
func (e *InvalidParameterException) ErrorMessage() string
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
type MappingRule ¶
type MappingRule struct { // The claim name that must be present in the token, for example, "isAdmin" or // "paid". // // This member is required. Claim *string // The role ARN. // // This member is required. RoleARN *string // The match condition that specifies how closely the claim value in the IdP token // must match Value. // // This member is required. MatchType MappingRuleMatchType // A brief string that the claim must match, for example, "paid" or "yes". // // This member is required. 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
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 (e *ResourceConflictException) ErrorFault() smithy.ErrorFault
func (*ResourceConflictException) ErrorMessage ¶
func (e *ResourceConflictException) ErrorMessage() string
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 (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
func (*ResourceNotFoundException) ErrorMessage ¶
func (e *ResourceNotFoundException) ErrorMessage() string
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. // // This member is required. 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. // // This member is required. 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
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 ¶
- Version
- v0.26.0
- Published
- Oct 1, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 7 hours ago –
Tools for package owners.