@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.548Z") @Stability(value=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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnUserPoolResourceServer.Builder
A fluent builder for
CfnUserPoolResourceServer. |
static interface |
CfnUserPoolResourceServer.ResourceServerScopeTypeProperty
A resource server scope.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnUserPoolResourceServer(Construct scope,
String id,
CfnUserPoolResourceServerProps props)
Create a new `AWS::Cognito::UserPoolResourceServer`.
|
protected |
CfnUserPoolResourceServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnUserPoolResourceServer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getIdentifier()
A unique resource server identifier for the resource server.
|
String |
getName()
A friendly name for the resource server.
|
Object |
getScopes()
A list of scopes.
|
String |
getUserPoolId()
The user pool ID for the user pool.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setIdentifier(String value)
A unique resource server identifier for the resource server.
|
void |
setName(String value)
A friendly name for the resource server.
|
void |
setScopes(IResolvable value)
A list of scopes.
|
void |
setScopes(List<Object> value)
A list of scopes.
|
void |
setUserPoolId(String value)
The user pool ID for the user pool.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnUserPoolResourceServer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnUserPoolResourceServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnUserPoolResourceServer(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnUserPoolResourceServerProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getIdentifier()
This could be an HTTPS endpoint where the resource server is located. For example: https://my-weather-api.example.com .
@Stability(value=Stable)
public void setIdentifier(@NotNull
String value)
This could be an HTTPS endpoint where the resource server is located. For example: https://my-weather-api.example.com .
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getUserPoolId()
@Stability(value=Stable)
public void setUserPoolId(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getScopes()
Each scope is a map with keys ScopeName and ScopeDescription .
@Stability(value=Stable)
public void setScopes(@Nullable
IResolvable value)
Each scope is a map with keys ScopeName and ScopeDescription .
Copyright © 2022. All rights reserved.