Class CfnUserPoolGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Cognito::UserPoolGroup.
Specifies a new group in the identified user pool.
Calling this action requires developer credentials.
If you don't specify a value for a parameter, Amazon Cognito sets it to a default value.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
CfnUserPoolGroup cfnUserPoolGroup = CfnUserPoolGroup.Builder.create(this, "MyCfnUserPoolGroup")
.userPoolId("userPoolId")
// the properties below are optional
.description("description")
.groupName("groupName")
.precedence(123)
.roleArn("roleArn")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnUserPoolGroup(Construct scope, String id, CfnUserPoolGroupProps props) Create a newAWS::Cognito::UserPoolGroup.protectedCfnUserPoolGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUserPoolGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA string containing the description of the group.The name of the group.A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool.The role Amazon Resource Name (ARN) for the group.The user pool ID for the user pool.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A string containing the description of the group.voidsetGroupName(String value) The name of the group.voidsetPrecedence(Number value) A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool.voidsetRoleArn(String value) The role Amazon Resource Name (ARN) for the group.voidsetUserPoolId(String value) The user pool ID for the user pool.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnUserPoolGroup
protected CfnUserPoolGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnUserPoolGroup
protected CfnUserPoolGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnUserPoolGroup
@Stability(Stable) public CfnUserPoolGroup(@NotNull Construct scope, @NotNull String id, @NotNull CfnUserPoolGroupProps props) Create a newAWS::Cognito::UserPoolGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getUserPoolId
The user pool ID for the user pool. -
setUserPoolId
The user pool ID for the user pool. -
getDescription
A string containing the description of the group. -
setDescription
A string containing the description of the group. -
getGroupName
The name of the group.Must be unique.
-
setGroupName
The name of the group.Must be unique.
-
getPrecedence
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool.Zero is the highest precedence value. Groups with lower
Precedencevalues take precedence over groups with higher or nullPrecedencevalues. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for thecognito:rolesandcognito:preferred_roleclaims.Two groups can have the same
Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the samePrecedencehave the same role ARN, that role is used in thecognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, thecognito:preferred_roleclaim isn't set in users' tokens.The default
Precedencevalue is null. The maximumPrecedencevalue is2^31-1. -
setPrecedence
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool.Zero is the highest precedence value. Groups with lower
Precedencevalues take precedence over groups with higher or nullPrecedencevalues. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for thecognito:rolesandcognito:preferred_roleclaims.Two groups can have the same
Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the samePrecedencehave the same role ARN, that role is used in thecognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, thecognito:preferred_roleclaim isn't set in users' tokens.The default
Precedencevalue is null. The maximumPrecedencevalue is2^31-1. -
getRoleArn
The role Amazon Resource Name (ARN) for the group. -
setRoleArn
The role Amazon Resource Name (ARN) for the group.
-