@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-06-22T23:27:58.921Z")
public interface UserPoolResourceServerOptions
Example:
UserPool pool = new UserPool(this, "Pool"); ResourceServerScope readOnlyScope = ResourceServerScope.Builder.create().scopeName("read").scopeDescription("Read-only access").build(); ResourceServerScope fullAccessScope = ResourceServerScope.Builder.create().scopeName("*").scopeDescription("Full access").build(); UserPoolResourceServer userServer = pool.addResourceServer("ResourceServer", UserPoolResourceServerOptions.builder() .identifier("users") .scopes(List.of(readOnlyScope, fullAccessScope)) .build()); UserPoolClient readOnlyClient = pool.addClient("read-only-client", UserPoolClientOptions.builder() // ... .oAuth(OAuthSettings.builder() // ... .scopes(List.of(OAuthScope.resourceServer(userServer, readOnlyScope))) .build()) .build()); UserPoolClient fullAccessClient = pool.addClient("full-access-client", UserPoolClientOptions.builder() // ... .oAuth(OAuthSettings.builder() // ... .scopes(List.of(OAuthScope.resourceServer(userServer, fullAccessScope))) .build()) .build());
Modifier and Type | Interface and Description |
---|---|
static class |
UserPoolResourceServerOptions.Builder
A builder for
UserPoolResourceServerOptions |
static class |
UserPoolResourceServerOptions.Jsii$Proxy
An implementation for
UserPoolResourceServerOptions |
Modifier and Type | Method and Description |
---|---|
static UserPoolResourceServerOptions.Builder |
builder() |
java.lang.String |
getIdentifier()
A unique resource server identifier for the resource server.
|
default java.util.List<ResourceServerScope> |
getScopes()
Oauth scopes.
|
default java.lang.String |
getUserPoolResourceServerName()
A friendly name for the resource server.
|
java.lang.String getIdentifier()
default java.util.List<ResourceServerScope> getScopes()
Default: - No scopes will be added
default java.lang.String getUserPoolResourceServerName()
Default: - same as `identifier`
static UserPoolResourceServerOptions.Builder builder()