Class CfnTermsPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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.cfnpropertymixins.services.cognito.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnTermsPropsMixin cfnTermsPropsMixin = CfnTermsPropsMixin.Builder.create(CfnTermsMixinProps.builder()
.clientId("clientId")
.enforcement("enforcement")
.links(Map.of(
"linksKey", "links"))
.termsName("termsName")
.termsSource("termsSource")
.userPoolId("userPoolId")
.build())
.strategy(mergeStrategy)
.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.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Cognito::Terms.CfnTermsPropsMixin(CfnTermsMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Cognito::Terms.protectedCfnTermsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTermsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnTermsMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnTermsPropsMixin
protected CfnTermsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTermsPropsMixin
protected CfnTermsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTermsPropsMixin
@Stability(Stable) public CfnTermsPropsMixin(@NotNull CfnTermsMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Cognito::Terms.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnTermsPropsMixin
Create a mixin to apply properties toAWS::Cognito::Terms.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-