Class CfnUserPoolResourceServerProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolResourceServerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolResourceServerProps>
- Enclosing interface:
CfnUserPoolResourceServerProps
@Stability(Stable)
public static final class CfnUserPoolResourceServerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolResourceServerProps>
A builder for
CfnUserPoolResourceServerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.identifier(String identifier) Sets the value ofCfnUserPoolResourceServerProps.getIdentifier()Sets the value ofCfnUserPoolResourceServerProps.getName()Sets the value ofCfnUserPoolResourceServerProps.getScopes()scopes(IResolvable scopes) Sets the value ofCfnUserPoolResourceServerProps.getScopes()userPoolId(String userPoolId) Sets the value ofCfnUserPoolResourceServerProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
Sets the value ofCfnUserPoolResourceServerProps.getIdentifier()- Parameters:
identifier- A unique resource server identifier for the resource server. This parameter is required. The identifier can be an API friendly name likesolar-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.- Returns:
this
-
name
Sets the value ofCfnUserPoolResourceServerProps.getName()- Parameters:
name- A friendly name for the resource server. This parameter is required.- Returns:
this
-
userPoolId
Sets the value ofCfnUserPoolResourceServerProps.getUserPoolId()- Parameters:
userPoolId- The ID of the user pool where you want to create a resource server. This parameter is required.- Returns:
this
-
scopes
Sets the value ofCfnUserPoolResourceServerProps.getScopes()- Parameters:
scopes- A list of scopes. Each scope is a map with keysScopeNameandScopeDescription.- Returns:
this
-
scopes
@Stability(Stable) public CfnUserPoolResourceServerProps.Builder scopes(List<? extends Object> scopes) Sets the value ofCfnUserPoolResourceServerProps.getScopes()- Parameters:
scopes- A list of scopes. Each scope is a map with keysScopeNameandScopeDescription.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolResourceServerProps>- Returns:
- a new instance of
CfnUserPoolResourceServerProps - Throws:
NullPointerException- if any required attribute was not provided
-