update_domain_endpoint_options

CloudSearch.Client.update_domain_endpoint_options(**kwargs)

Updates the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see Configuring Domain Endpoint Options in the Amazon CloudSearch Developer Guide .

See also: AWS API Documentation

Request Syntax

response = client.update_domain_endpoint_options(
    DomainName='string',
    DomainEndpointOptions={
        'EnforceHTTPS': True|False,
        'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07'
    }
)
Parameters
  • DomainName (string) --

    [REQUIRED]

    A string that represents the name of a domain.

  • DomainEndpointOptions (dict) --

    [REQUIRED]

    Whether to require that all requests to the domain arrive over HTTPS. We recommend Policy-Min-TLS-1-2-2019-07 for TLSSecurityPolicy. For compatibility with older clients, the default is Policy-Min-TLS-1-0-2019-07.

    • EnforceHTTPS (boolean) --

      Whether the domain is HTTPS only enabled.

    • TLSSecurityPolicy (string) --

      The minimum required TLS version

Return type

dict

Returns

Response Syntax

{
    'DomainEndpointOptions': {
        'Options': {
            'EnforceHTTPS': True|False,
            'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07'
        },
        'Status': {
            'CreationDate': datetime(2015, 1, 1),
            'UpdateDate': datetime(2015, 1, 1),
            'UpdateVersion': 123,
            'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
            'PendingDeletion': True|False
        }
    }
}

Response Structure

  • (dict) --

    The result of a UpdateDomainEndpointOptions request. Contains the configuration and status of the domain's endpoint options.

    • DomainEndpointOptions (dict) --

      The newly-configured domain endpoint options.

      • Options (dict) --

        The domain endpoint options configured for the domain.

        • EnforceHTTPS (boolean) --

          Whether the domain is HTTPS only enabled.

        • TLSSecurityPolicy (string) --

          The minimum required TLS version

      • Status (dict) --

        The status of the configured domain endpoint options.

        • CreationDate (datetime) --

          A timestamp for when this option was created.

        • UpdateDate (datetime) --

          A timestamp for when this option was last updated.

        • UpdateVersion (integer) --

          A unique integer that indicates when this option was last updated.

        • State (string) --

          The state of processing a change to an option. Possible values:

          • RequiresIndexDocuments : the option's latest value will not be deployed until IndexDocuments has been called and indexing is complete.
          • Processing : the option's latest value is in the process of being activated.
          • Active : the option's latest value is completely deployed.
          • FailedToValidate : the option value is not compatible with the domain's data and cannot be used to index the data. You must either modify the option value or update or remove the incompatible documents.
        • PendingDeletion (boolean) --

          Indicates that the option will be deleted once processing is complete.

Exceptions

  • CloudSearch.Client.exceptions.BaseException
  • CloudSearch.Client.exceptions.InternalException
  • CloudSearch.Client.exceptions.InvalidTypeException
  • CloudSearch.Client.exceptions.LimitExceededException
  • CloudSearch.Client.exceptions.ResourceNotFoundException
  • CloudSearch.Client.exceptions.DisabledOperationException
  • CloudSearch.Client.exceptions.ValidationException