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 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

      @Stability(Stable) public UserPoolResourceServer.Builder identifier(String 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

      @Stability(Stable) public UserPoolResourceServer.Builder userPool(IUserPool 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

      @Stability(Stable) public UserPoolResourceServer build()
      Specified by:
      build in interface software.amazon.jsii.Builder<UserPoolResourceServer>
      Returns:
      a newly built instance of UserPoolResourceServer.