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