Class RoleMapping
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RoleMapping.Builder,RoleMapping>
A role mapping.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionIf you specify Token or Rules as theType,AmbiguousRoleResolutionis required.final StringIf you specify Token or Rules as theType,AmbiguousRoleResolutionis required.static RoleMapping.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RulesConfigurationTypeThe rules to be used for mapping users to roles.static Class<? extends RoleMapping.Builder>final StringtoString()Returns a string representation of this object.final RoleMappingTypetype()The role mapping type.final StringThe role mapping type.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The role mapping type. Token will use
cognito:rolesandcognito:preferred_roleclaims 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.If the service returns an enum value that is not available in the current SDK version,
typewill returnRoleMappingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The role mapping type. Token will use
cognito:rolesandcognito:preferred_roleclaims 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. - See Also:
-
typeAsString
The role mapping type. Token will use
cognito:rolesandcognito:preferred_roleclaims 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.If the service returns an enum value that is not available in the current SDK version,
typewill returnRoleMappingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The role mapping type. Token will use
cognito:rolesandcognito:preferred_roleclaims 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. - See Also:
-
ambiguousRoleResolution
If you specify Token or Rules as the
Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the
Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.If the service returns an enum value that is not available in the current SDK version,
ambiguousRoleResolutionwill returnAmbiguousRoleResolutionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromambiguousRoleResolutionAsString().- Returns:
- If you specify Token or Rules as the
Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the
Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype. - See Also:
-
ambiguousRoleResolutionAsString
If you specify Token or Rules as the
Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the
Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.If the service returns an enum value that is not available in the current SDK version,
ambiguousRoleResolutionwill returnAmbiguousRoleResolutionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromambiguousRoleResolutionAsString().- Returns:
- If you specify Token or Rules as the
Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the
Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype. - See Also:
-
rulesConfiguration
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfigurationis required.- Returns:
- The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfigurationis required.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RoleMapping.Builder,RoleMapping>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-