RoleMapping
public struct RoleMapping : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
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.
Declaration
Swift
public let ambiguousRoleResolution: AmbiguousRoleResolutionType?
-
The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfiguration is required.
Declaration
Swift
public let rulesConfiguration: RulesConfigurationType?
-
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.
Declaration
Swift
public let type: RoleMappingType
-
Undocumented
Declaration
Swift
public init(ambiguousRoleResolution: AmbiguousRoleResolutionType? = nil, rulesConfiguration: RulesConfigurationType? = nil, type: RoleMappingType)
-
Declaration
Swift
public func validate(name: String) throws