Create Terms
| cognitoidentityprovider_create_terms | R Documentation |
Creates terms documents for the requested app client¶
Description¶
Creates terms documents for the requested app client. 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 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
Usage¶
cognitoidentityprovider_create_terms(UserPoolId, ClientId, TermsName,
TermsSource, Enforcement, Links)
Arguments¶
UserPoolId |
[required] The ID of the user pool where you want to create terms documents. |
ClientId |
[required] The ID of the app client where you want to create terms documents. Must be an app client in the requested user pool. |
TermsName |
[required] A friendly name for the document that you want to
create in the current request. Must begin with |
TermsSource |
[required] This parameter is reserved for future use and currently accepts only one value. |
Enforcement |
[required] This parameter is reserved for future use and currently accepts only one value. |
Links |
A map of URLs to languages. For each localized language that will
view the requested For example, |
Value¶
A list with the following syntax:
list(
Terms = list(
TermsId = "string",
UserPoolId = "string",
ClientId = "string",
TermsName = "string",
TermsSource = "LINK",
Enforcement = "NONE",
Links = list(
"string"
),
CreationDate = as.POSIXct(
"2015-01-01"
),
LastModifiedDate = as.POSIXct(
"2015-01-01"
)
)
)
Request syntax¶
svc$create_terms(
UserPoolId = "string",
ClientId = "string",
TermsName = "string",
TermsSource = "LINK",
Enforcement = "NONE",
Links = list(
"string"
)
)