Class UserPoolResourceServer.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolResourceServer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolResourceServer>
- Enclosing class:
UserPoolResourceServer
@Stability(Stable)
public static final class UserPoolResourceServer.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolResourceServer>
A fluent builder for
UserPoolResourceServer
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
identifier
(String identifier) A unique resource server identifier for the resource server.scopes
(List<? extends ResourceServerScope> scopes) Oauth scopes.The user pool to add this resource server to.userPoolResourceServerName
(String userPoolResourceServerName) A friendly name for the resource server.
-
Method Details
-
create
@Stability(Stable) public static UserPoolResourceServer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
UserPoolResourceServer.Builder
.
-
identifier
A unique resource server identifier for the resource server.- Parameters:
identifier
- A unique resource server identifier for the resource server. This parameter is required.- Returns:
this
-
scopes
@Stability(Stable) public UserPoolResourceServer.Builder scopes(List<? extends ResourceServerScope> scopes) Oauth scopes.Default: - No scopes will be added
- Parameters:
scopes
- Oauth scopes. This parameter is required.- Returns:
this
-
userPoolResourceServerName
@Stability(Stable) public UserPoolResourceServer.Builder userPoolResourceServerName(String userPoolResourceServerName) A friendly name for the resource server.Default: - same as `identifier`
- Parameters:
userPoolResourceServerName
- A friendly name for the resource server. This parameter is required.- Returns:
this
-
userPool
The user pool to add this resource server to.- Parameters:
userPool
- The user pool to add this resource server to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolResourceServer>
- Returns:
- a newly built instance of
UserPoolResourceServer
.
-