Class RoleMapping
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentity.model.RoleMapping
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RoleMapping.Builder,RoleMapping>
@Generated("software.amazon.awssdk:codegen") public final class RoleMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RoleMapping.Builder,RoleMapping>
A role mapping.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRoleMapping.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmbiguousRoleResolutionTypeambiguousRoleResolution()If you specify Token or Rules as theType,AmbiguousRoleResolutionis required.StringambiguousRoleResolutionAsString()If you specify Token or Rules as theType,AmbiguousRoleResolutionis required.static RoleMapping.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RulesConfigurationTyperulesConfiguration()The rules to be used for mapping users to roles.List<SdkField<?>>sdkFields()static Class<? extends RoleMapping.Builder>serializableBuilderClass()RoleMapping.BuildertoBuilder()StringtoString()Returns a string representation of this object.RoleMappingTypetype()The role mapping type.StringtypeAsString()The role mapping type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final RoleMappingType 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:
RoleMappingType
-
typeAsString
public final String 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:
RoleMappingType
-
ambiguousRoleResolution
public final AmbiguousRoleResolutionType 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:
AmbiguousRoleResolutionType
-
ambiguousRoleResolutionAsString
public final String 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:
AmbiguousRoleResolutionType
-
rulesConfiguration
public final RulesConfigurationType 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
public RoleMapping.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RoleMapping.Builder,RoleMapping>
-
builder
public static RoleMapping.Builder builder()
-
serializableBuilderClass
public static Class<? extends RoleMapping.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-