Class CfnTerms
- All Implemented Interfaces:
IInspectable,ITermsRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
When Terms and conditions and Privacy policy documents are configured, the app client displays links to them in the sign-up page of managed login for the app client.
You can provide URLs for terms documents in the languages that are supported by managed login localization . Amazon Cognito directs users to the terms documents for their current language, with fallback to default if no document exists for the language.
Each request accepts one type of terms document and a map of language-to-link for that document type. You must provide both types of terms documents in at least one language before Amazon Cognito displays your terms documents. Supply each type in separate requests.
For more information, see Terms documents .
Amazon Cognito evaluates AWS Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more - Signing AWS API Requests
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.*;
CfnTerms cfnTerms = CfnTerms.Builder.create(this, "MyCfnTerms")
.enforcement("enforcement")
.links(Map.of(
"linksKey", "links"))
.termsName("termsName")
.termsSource("termsSource")
.userPoolId("userPoolId")
// the properties below are optional
.clientId("clientId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cognito.ITermsRef
ITermsRef.Jsii$Default, ITermsRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTerms(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTerms(software.amazon.jsii.JsiiObjectRef objRef) CfnTerms(software.constructs.Construct scope, String id, CfnTermsProps props) Create a newAWS::Cognito::Terms. -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the terms documents.The ID of the app client that the terms documents are assigned to.This parameter is reserved for future use and currently accepts one value.getLinks()A map of URLs to languages.The type and friendly name of the terms documents.A reference to a Terms resource.This parameter is reserved for future use and currently accepts one value.The ID of the user pool that contains the terms documents.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnTerms(Object x) Checks whether the given object is a CfnTerms.renderProperties(Map<String, Object> props) voidsetClientId(String value) The ID of the app client that the terms documents are assigned to.voidsetEnforcement(String value) This parameter is reserved for future use and currently accepts one value.voidA map of URLs to languages.voidsetLinks(IResolvable value) A map of URLs to languages.voidsetTermsName(String value) The type and friendly name of the terms documents.voidsetTermsSource(String value) This parameter is reserved for future use and currently accepts one value.voidsetUserPoolId(String value) The ID of the user pool that contains the terms documents.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTerms
protected CfnTerms(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTerms
protected CfnTerms(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTerms
@Stability(Stable) public CfnTerms(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTermsProps props) Create a newAWS::Cognito::Terms.- 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
-
isCfnTerms
Checks whether the given object is a CfnTerms.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrTermsId
The ID of the terms documents. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTermsRef
A reference to a Terms resource.- Specified by:
getTermsRefin interfaceITermsRef
-
getEnforcement
This parameter is reserved for future use and currently accepts one value. -
setEnforcement
This parameter is reserved for future use and currently accepts one value. -
getLinks
A map of URLs to languages.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setLinks
A map of URLs to languages. -
setLinks
A map of URLs to languages. -
getTermsName
The type and friendly name of the terms documents. -
setTermsName
The type and friendly name of the terms documents. -
getTermsSource
This parameter is reserved for future use and currently accepts one value. -
setTermsSource
This parameter is reserved for future use and currently accepts one value. -
getUserPoolId
The ID of the user pool that contains the terms documents. -
setUserPoolId
The ID of the user pool that contains the terms documents. -
getClientId
The ID of the app client that the terms documents are assigned to. -
setClientId
The ID of the app client that the terms documents are assigned to.
-