Class CfnUserPoolResourceServer.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolResourceServer>
- Enclosing class:
CfnUserPoolResourceServer
@Stability(Stable)
public static final class CfnUserPoolResourceServer.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolResourceServer>
A fluent builder for
CfnUserPoolResourceServer
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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 CfnUserPoolResourceServer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnUserPoolResourceServer.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.com
as 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:
-
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:
-
scopes
A list of scopes.Each scope is a map with keys
ScopeName
andScopeDescription
.- Parameters:
scopes
- A list of scopes. This parameter is required.- Returns:
this
- See Also:
-
scopes
A list of scopes.Each scope is a map with keys
ScopeName
andScopeDescription
.- Parameters:
scopes
- A list of scopes. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolResourceServer>
- Returns:
- a newly built instance of
CfnUserPoolResourceServer
.
-