Amazon CloudSearch

2019/11/13 - Amazon CloudSearch - 2 new api methods

Changes  Amazon CloudSearch domains let you require that all traffic to the domain arrive over HTTPS. This security feature helps you block clients that send unencrypted requests to the domain.

UpdateDomainEndpointOptions (new) Link ¶

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

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'
    }
)
type DomainName

string

param DomainName

[REQUIRED]

A string that represents the name of a domain.

type DomainEndpointOptions

dict

param DomainEndpointOptions

[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

rtype

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.

DescribeDomainEndpointOptions (new) Link ¶

Returns 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

client.describe_domain_endpoint_options(
    DomainName='string',
    Deployed=True|False
)
type DomainName

string

param DomainName

[REQUIRED]

A string that represents the name of a domain.

type Deployed

boolean

param Deployed

Whether to retrieve the latest configuration (which might be in a Processing state) or the current, active configuration. Defaults to false .

rtype

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 DescribeDomainEndpointOptions request. Contains the status and configuration of a search domain's endpoint options.

    • DomainEndpointOptions (dict) --

      The status and configuration of a search domain's 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.