Skip to content

CreateTermsRequest

Source code in docs_src/capo_cognito_identity_provider/types/create_terms_request.py
class CreateTermsRequest(TypedDict, closed=True):
    user_pool_id: (
        "capo_cognito_identity_provider.types.user_pool_id_type.UserPoolIdType"
    )
    """<p>The ID of the user pool where you want to create terms documents.</p>"""
    client_id: "capo_cognito_identity_provider.types.client_id_type.ClientIdType"
    """<p>The ID of the app client where you want to create terms documents. Must be an app client in the requested user pool.</p>"""
    terms_name: "capo_cognito_identity_provider.types.terms_name_type.TermsNameType"
    """<p>A friendly name for the document that you want to create in the current request. Must begin with <code>terms-of-use</code> or <code>privacy-policy</code> as identification of the document type. Provide URLs for both <code>terms-of-use</code> and <code>privacy-policy</code> in separate requests.</p>"""
    terms_source: (
        "capo_cognito_identity_provider.types.terms_source_type.TermsSourceType"
    )
    """<p>This parameter is reserved for future use and currently accepts only one value.</p>"""
    enforcement: "capo_cognito_identity_provider.types.terms_enforcement_type.TermsEnforcementType"
    """<p>This parameter is reserved for future use and currently accepts only one value.</p>"""
    links: NotRequired["capo_cognito_identity_provider.types.links_type.LinksType"]
    """<p>A map of URLs to languages. For each localized language that will view the requested <code>TermsName</code>, assign a URL. A selection of <code>cognito:default</code> displays for all languages that don't have a language-specific URL.</p> <p>For example, <code>"cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es"</code>.</p>"""

client_id instance-attribute

client_id: ClientIdType

The ID of the app client where you want to create terms documents. Must be an app client in the requested user pool.

enforcement instance-attribute

enforcement: TermsEnforcementType

This parameter is reserved for future use and currently accepts only one value.

links: NotRequired[LinksType]

A map of URLs to languages. For each localized language that will view the requested TermsName, assign a URL. A selection of cognito:default displays for all languages that don't have a language-specific URL.

For example, "cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es".

terms_name instance-attribute

terms_name: TermsNameType

A friendly name for the document that you want to create in the current request. Must begin with terms-of-use or privacy-policy as identification of the document type. Provide URLs for both terms-of-use and privacy-policy in separate requests.

terms_source instance-attribute

terms_source: TermsSourceType

This parameter is reserved for future use and currently accepts only one value.

user_pool_id instance-attribute

user_pool_id: UserPoolIdType

The ID of the user pool where you want to create terms documents.