Class CfnUserPoolResourceServer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cognito.CfnUserPoolResourceServer
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:59.122Z") @Stability(Stable) public class CfnUserPoolResourceServer extends CfnResource implements IInspectable
The AWS::Cognito::UserPoolResourceServer resource creates a new OAuth2.0 resource server and defines custom scopes in it.

If you don't specify a value for a parameter, Amazon Cognito sets it to a default value.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cognito.*;
 CfnUserPoolResourceServer cfnUserPoolResourceServer = CfnUserPoolResourceServer.Builder.create(this, "MyCfnUserPoolResourceServer")
         .identifier("identifier")
         .name("name")
         .userPoolId("userPoolId")
         // the properties below are optional
         .scopes(List.of(ResourceServerScopeTypeProperty.builder()
                 .scopeDescription("scopeDescription")
                 .scopeName("scopeName")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnUserPoolResourceServer

      protected CfnUserPoolResourceServer(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnUserPoolResourceServer

      protected CfnUserPoolResourceServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnUserPoolResourceServer

      @Stability(Stable) public CfnUserPoolResourceServer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserPoolResourceServerProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getIdentifier

      @Stability(Stable) @NotNull public String getIdentifier()
      A unique resource server identifier for the resource server.
    • setIdentifier

      @Stability(Stable) public void setIdentifier(@NotNull String value)
      A unique resource server identifier for the resource server.
    • getName

      @Stability(Stable) @NotNull public String getName()
      A friendly name for the resource server.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      A friendly name for the resource server.
    • getUserPoolId

      @Stability(Stable) @NotNull public String getUserPoolId()
      The user pool ID for the user pool.
    • setUserPoolId

      @Stability(Stable) public void setUserPoolId(@NotNull String value)
      The user pool ID for the user pool.
    • getScopes

      @Stability(Stable) @Nullable public Object getScopes()
      A list of scopes.
    • setScopes

      @Stability(Stable) public void setScopes(@Nullable IResolvable value)
      A list of scopes.
    • setScopes

      @Stability(Stable) public void setScopes(@Nullable List<Object> value)
      A list of scopes.