Class CfnUserPoolResourceServer.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolResourceServer>
Enclosing class:
CfnUserPoolResourceServer

@Stability(Stable) public static final class CfnUserPoolResourceServer.Builder extends Object implements software.amazon.jsii.Builder<CfnUserPoolResourceServer>
A fluent builder for CfnUserPoolResourceServer.
  • Method Details

    • create

      @Stability(Stable) public static CfnUserPoolResourceServer.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnUserPoolResourceServer.Builder.
    • identifier

      @Stability(Stable) public CfnUserPoolResourceServer.Builder identifier(String identifier)
      A unique resource server identifier for the resource server.

      This could be an HTTPS endpoint where the resource server is located. For example: https://my-weather-api.example.com .

      Parameters:
      identifier - A unique resource server identifier for the resource server. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnUserPoolResourceServer.Builder name(String name)
      A friendly name for the resource server.

      Parameters:
      name - A friendly name for the resource server. This parameter is required.
      Returns:
      this
    • userPoolId

      @Stability(Stable) public CfnUserPoolResourceServer.Builder userPoolId(String userPoolId)
      The user pool ID for the user pool.

      Parameters:
      userPoolId - The user pool ID for the user pool. This parameter is required.
      Returns:
      this
    • scopes

      @Stability(Stable) public CfnUserPoolResourceServer.Builder scopes(IResolvable scopes)
      A list of scopes.

      Each scope is a map with keys ScopeName and ScopeDescription .

      Parameters:
      scopes - A list of scopes. This parameter is required.
      Returns:
      this
    • scopes

      @Stability(Stable) public CfnUserPoolResourceServer.Builder scopes(List<? extends Object> scopes)
      A list of scopes.

      Each scope is a map with keys ScopeName and ScopeDescription .

      Parameters:
      scopes - A list of scopes. This parameter is required.
      Returns:
      this
    • build

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