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
-
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.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.- 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 user pool ID for the user pool. This parameter is required.- Returns:
this
-
scopes
Sets the value ofCfnUserPoolResourceServerProps.getScopes()
- Parameters:
scopes
- A list of scopes. Each scope is a map with keysScopeName
andScopeDescription
.- 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 keysScopeName
andScopeDescription
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolResourceServerProps>
- Returns:
- a new instance of
CfnUserPoolResourceServerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-