Class CfnUserPoolResourceServerPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolResourceServerPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolResourceServerPropsMixin>
- Enclosing class:
CfnUserPoolResourceServerPropsMixin
@Stability(Stable)
public static final class CfnUserPoolResourceServerPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolResourceServerPropsMixin>
A fluent builder for
CfnUserPoolResourceServerPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) identifier(String identifier) A unique resource server identifier for the resource server.A friendly name for the resource server.A list of scopes.scopes(IResolvable scopes) A list of scopes.userPoolId(String userPoolId) The ID of the user pool where you want to create a resource server.
-
Method Details
-
create
@Stability(Stable) public static CfnUserPoolResourceServerPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnUserPoolResourceServerPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnUserPoolResourceServerPropsMixin.Builder.
-
identifier
A unique resource server identifier for the resource server.The identifier can be an API friendly name like
solar-system-data. You can also set an API URL likehttps://solar-system-data-api.example.comas your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.- Parameters:
identifier- A unique resource server identifier for the resource server. This parameter is required.- Returns:
this- See Also:
-
name
A friendly name for the resource server.- Parameters:
name- A friendly name for the resource server. This parameter is required.- Returns:
this- See Also:
-
scopes
A list of scopes.Each scope is a map with keys
ScopeNameandScopeDescription.- Parameters:
scopes- A list of scopes. This parameter is required.- Returns:
this- See Also:
-
scopes
@Stability(Stable) public CfnUserPoolResourceServerPropsMixin.Builder scopes(List<? extends Object> scopes) A list of scopes.Each scope is a map with keys
ScopeNameandScopeDescription.- Parameters:
scopes- A list of scopes. This parameter is required.- Returns:
this- See Also:
-
userPoolId
The ID of the user pool where you want to create a resource server.- Parameters:
userPoolId- The ID of the user pool where you want to create a resource server. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolResourceServerPropsMixin>- Returns:
- a newly built instance of
CfnUserPoolResourceServerPropsMixin.
-