Amazon OpenSearch Service

2021/11/23 - Amazon OpenSearch Service - 1 updated api methods

Changes  This release adds an optional parameter dry-run for the UpdateDomainConfig API to perform basic validation checks, and detect the deployment type that will be required for the configuration change, without actually applying the change.

UpdateDomainConfig (updated) Link ΒΆ
Changes (request, response)
Request
{'DryRun': 'boolean'}
Response
{'DryRunResults': {'DeploymentType': 'string', 'Message': 'string'}}

Modifies the cluster configuration of the specified domain, such as setting the instance type and the number of instances.

See also: AWS API Documentation

Request Syntax

client.update_domain_config(
    DomainName='string',
    ClusterConfig={
        'InstanceType': 'm3.medium.search'|'m3.large.search'|'m3.xlarge.search'|'m3.2xlarge.search'|'m4.large.search'|'m4.xlarge.search'|'m4.2xlarge.search'|'m4.4xlarge.search'|'m4.10xlarge.search'|'m5.large.search'|'m5.xlarge.search'|'m5.2xlarge.search'|'m5.4xlarge.search'|'m5.12xlarge.search'|'m5.24xlarge.search'|'r5.large.search'|'r5.xlarge.search'|'r5.2xlarge.search'|'r5.4xlarge.search'|'r5.12xlarge.search'|'r5.24xlarge.search'|'c5.large.search'|'c5.xlarge.search'|'c5.2xlarge.search'|'c5.4xlarge.search'|'c5.9xlarge.search'|'c5.18xlarge.search'|'t3.nano.search'|'t3.micro.search'|'t3.small.search'|'t3.medium.search'|'t3.large.search'|'t3.xlarge.search'|'t3.2xlarge.search'|'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search'|'t2.micro.search'|'t2.small.search'|'t2.medium.search'|'r3.large.search'|'r3.xlarge.search'|'r3.2xlarge.search'|'r3.4xlarge.search'|'r3.8xlarge.search'|'i2.xlarge.search'|'i2.2xlarge.search'|'d2.xlarge.search'|'d2.2xlarge.search'|'d2.4xlarge.search'|'d2.8xlarge.search'|'c4.large.search'|'c4.xlarge.search'|'c4.2xlarge.search'|'c4.4xlarge.search'|'c4.8xlarge.search'|'r4.large.search'|'r4.xlarge.search'|'r4.2xlarge.search'|'r4.4xlarge.search'|'r4.8xlarge.search'|'r4.16xlarge.search'|'i3.large.search'|'i3.xlarge.search'|'i3.2xlarge.search'|'i3.4xlarge.search'|'i3.8xlarge.search'|'i3.16xlarge.search'|'r6g.large.search'|'r6g.xlarge.search'|'r6g.2xlarge.search'|'r6g.4xlarge.search'|'r6g.8xlarge.search'|'r6g.12xlarge.search'|'m6g.large.search'|'m6g.xlarge.search'|'m6g.2xlarge.search'|'m6g.4xlarge.search'|'m6g.8xlarge.search'|'m6g.12xlarge.search'|'c6g.large.search'|'c6g.xlarge.search'|'c6g.2xlarge.search'|'c6g.4xlarge.search'|'c6g.8xlarge.search'|'c6g.12xlarge.search'|'r6gd.large.search'|'r6gd.xlarge.search'|'r6gd.2xlarge.search'|'r6gd.4xlarge.search'|'r6gd.8xlarge.search'|'r6gd.12xlarge.search'|'r6gd.16xlarge.search'|'t4g.small.search'|'t4g.medium.search',
        'InstanceCount': 123,
        'DedicatedMasterEnabled': True|False,
        'ZoneAwarenessEnabled': True|False,
        'ZoneAwarenessConfig': {
            'AvailabilityZoneCount': 123
        },
        'DedicatedMasterType': 'm3.medium.search'|'m3.large.search'|'m3.xlarge.search'|'m3.2xlarge.search'|'m4.large.search'|'m4.xlarge.search'|'m4.2xlarge.search'|'m4.4xlarge.search'|'m4.10xlarge.search'|'m5.large.search'|'m5.xlarge.search'|'m5.2xlarge.search'|'m5.4xlarge.search'|'m5.12xlarge.search'|'m5.24xlarge.search'|'r5.large.search'|'r5.xlarge.search'|'r5.2xlarge.search'|'r5.4xlarge.search'|'r5.12xlarge.search'|'r5.24xlarge.search'|'c5.large.search'|'c5.xlarge.search'|'c5.2xlarge.search'|'c5.4xlarge.search'|'c5.9xlarge.search'|'c5.18xlarge.search'|'t3.nano.search'|'t3.micro.search'|'t3.small.search'|'t3.medium.search'|'t3.large.search'|'t3.xlarge.search'|'t3.2xlarge.search'|'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search'|'t2.micro.search'|'t2.small.search'|'t2.medium.search'|'r3.large.search'|'r3.xlarge.search'|'r3.2xlarge.search'|'r3.4xlarge.search'|'r3.8xlarge.search'|'i2.xlarge.search'|'i2.2xlarge.search'|'d2.xlarge.search'|'d2.2xlarge.search'|'d2.4xlarge.search'|'d2.8xlarge.search'|'c4.large.search'|'c4.xlarge.search'|'c4.2xlarge.search'|'c4.4xlarge.search'|'c4.8xlarge.search'|'r4.large.search'|'r4.xlarge.search'|'r4.2xlarge.search'|'r4.4xlarge.search'|'r4.8xlarge.search'|'r4.16xlarge.search'|'i3.large.search'|'i3.xlarge.search'|'i3.2xlarge.search'|'i3.4xlarge.search'|'i3.8xlarge.search'|'i3.16xlarge.search'|'r6g.large.search'|'r6g.xlarge.search'|'r6g.2xlarge.search'|'r6g.4xlarge.search'|'r6g.8xlarge.search'|'r6g.12xlarge.search'|'m6g.large.search'|'m6g.xlarge.search'|'m6g.2xlarge.search'|'m6g.4xlarge.search'|'m6g.8xlarge.search'|'m6g.12xlarge.search'|'c6g.large.search'|'c6g.xlarge.search'|'c6g.2xlarge.search'|'c6g.4xlarge.search'|'c6g.8xlarge.search'|'c6g.12xlarge.search'|'r6gd.large.search'|'r6gd.xlarge.search'|'r6gd.2xlarge.search'|'r6gd.4xlarge.search'|'r6gd.8xlarge.search'|'r6gd.12xlarge.search'|'r6gd.16xlarge.search'|'t4g.small.search'|'t4g.medium.search',
        'DedicatedMasterCount': 123,
        'WarmEnabled': True|False,
        'WarmType': 'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search',
        'WarmCount': 123,
        'ColdStorageOptions': {
            'Enabled': True|False
        }
    },
    EBSOptions={
        'EBSEnabled': True|False,
        'VolumeType': 'standard'|'gp2'|'io1',
        'VolumeSize': 123,
        'Iops': 123
    },
    SnapshotOptions={
        'AutomatedSnapshotStartHour': 123
    },
    VPCOptions={
        'SubnetIds': [
            'string',
        ],
        'SecurityGroupIds': [
            'string',
        ]
    },
    CognitoOptions={
        'Enabled': True|False,
        'UserPoolId': 'string',
        'IdentityPoolId': 'string',
        'RoleArn': 'string'
    },
    AdvancedOptions={
        'string': 'string'
    },
    AccessPolicies='string',
    LogPublishingOptions={
        'string': {
            'CloudWatchLogsLogGroupArn': 'string',
            'Enabled': True|False
        }
    },
    EncryptionAtRestOptions={
        'Enabled': True|False,
        'KmsKeyId': 'string'
    },
    DomainEndpointOptions={
        'EnforceHTTPS': True|False,
        'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07',
        'CustomEndpointEnabled': True|False,
        'CustomEndpoint': 'string',
        'CustomEndpointCertificateArn': 'string'
    },
    NodeToNodeEncryptionOptions={
        'Enabled': True|False
    },
    AdvancedSecurityOptions={
        'Enabled': True|False,
        'InternalUserDatabaseEnabled': True|False,
        'MasterUserOptions': {
            'MasterUserARN': 'string',
            'MasterUserName': 'string',
            'MasterUserPassword': 'string'
        },
        'SAMLOptions': {
            'Enabled': True|False,
            'Idp': {
                'MetadataContent': 'string',
                'EntityId': 'string'
            },
            'MasterUserName': 'string',
            'MasterBackendRole': 'string',
            'SubjectKey': 'string',
            'RolesKey': 'string',
            'SessionTimeoutMinutes': 123
        }
    },
    AutoTuneOptions={
        'DesiredState': 'ENABLED'|'DISABLED',
        'RollbackOnDisable': 'NO_ROLLBACK'|'DEFAULT_ROLLBACK',
        'MaintenanceSchedules': [
            {
                'StartAt': datetime(2015, 1, 1),
                'Duration': {
                    'Value': 123,
                    'Unit': 'HOURS'
                },
                'CronExpressionForRecurrence': 'string'
            },
        ]
    },
    DryRun=True|False
)
type DomainName

string

param DomainName

[REQUIRED]

The name of the domain you're updating.

type ClusterConfig

dict

param ClusterConfig

The type and number of instances to instantiate for the domain cluster.

  • InstanceType (string) --

    The instance type for an OpenSearch cluster. UltraWarm instance types are not supported for data instances.

  • InstanceCount (integer) --

    The number of instances in the specified domain cluster.

  • DedicatedMasterEnabled (boolean) --

    A boolean value to indicate whether a dedicated master node is enabled. See Dedicated master nodes in Amazon OpenSearch Service for more information.

  • ZoneAwarenessEnabled (boolean) --

    A boolean value to indicate whether zone awareness is enabled. See Configuring a multi-AZ domain in Amazon OpenSearch Service for more information.

  • ZoneAwarenessConfig (dict) --

    The zone awareness configuration for a domain when zone awareness is enabled.

    • AvailabilityZoneCount (integer) --

      An integer value to indicate the number of availability zones for a domain when zone awareness is enabled. This should be equal to number of subnets if VPC endpoints is enabled.

  • DedicatedMasterType (string) --

    The instance type for a dedicated master node.

  • DedicatedMasterCount (integer) --

    Total number of dedicated master nodes, active and on standby, for the cluster.

  • WarmEnabled (boolean) --

    True to enable UltraWarm storage.

  • WarmType (string) --

    The instance type for the OpenSearch cluster's warm nodes.

  • WarmCount (integer) --

    The number of UltraWarm nodes in the cluster.

  • ColdStorageOptions (dict) --

    Specifies the ColdStorageOptions config for a Domain

    • Enabled (boolean) -- [REQUIRED]

      Enable cold storage option. Accepted values true or false

type EBSOptions

dict

param EBSOptions

Specify the type and size of the EBS volume to use.

  • EBSEnabled (boolean) --

    Whether EBS-based storage is enabled.

  • VolumeType (string) --

    The volume type for EBS-based storage.

  • VolumeSize (integer) --

    Integer to specify the size of an EBS volume.

  • Iops (integer) --

    The IOPD for a Provisioned IOPS EBS volume (SSD).

type SnapshotOptions

dict

param SnapshotOptions

Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours.

  • AutomatedSnapshotStartHour (integer) --

    The time, in UTC format, when the service takes a daily automated snapshot of the specified domain. Default is 0 hours.

type VPCOptions

dict

param VPCOptions

Options to specify the subnets and security groups for the VPC endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC.

  • SubnetIds (list) --

    The subnets for the VPC endpoint.

    • (string) --

  • SecurityGroupIds (list) --

    The security groups for the VPC endpoint.

    • (string) --

type CognitoOptions

dict

param CognitoOptions

Options to specify the Cognito user and identity pools for OpenSearch Dashboards authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

  • Enabled (boolean) --

    The option to enable Cognito for OpenSearch Dashboards authentication.

  • UserPoolId (string) --

    The Cognito user pool ID for OpenSearch Dashboards authentication.

  • IdentityPoolId (string) --

    The Cognito identity pool ID for OpenSearch Dashboards authentication.

  • RoleArn (string) --

    The role ARN that provides OpenSearch permissions for accessing Cognito resources.

type AdvancedOptions

dict

param AdvancedOptions

Modifies the advanced option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true . See Advanced options for more information.

  • (string) --

    • (string) --

type AccessPolicies

string

param AccessPolicies

IAM access policy as a JSON-formatted string.

type LogPublishingOptions

dict

param LogPublishingOptions

Map of LogType and LogPublishingOption , each containing options to publish a given type of OpenSearch log.

  • (string) --

    Type of log file. Can be one of the following:

    • INDEX_SLOW_LOGS: Index slow logs contain insert requests that took more time than configured index query log threshold to execute.

    • SEARCH_SLOW_LOGS: Search slow logs contain search queries that took more time than configured search query log threshold to execute.

    • ES_APPLICATION_LOGS: OpenSearch application logs contain information about errors and warnings raised during the operation of the service and can be useful for troubleshooting.

    • AUDIT_LOGS: Audit logs contain records of user requests for access from the domain.

    • (dict) --

      Log Publishing option that is set for a given domain. Attributes and their details:

      • CloudWatchLogsLogGroupArn: ARN of the Cloudwatch log group to publish logs to.

      • Enabled: Whether the log publishing for a given log type is enabled or not.

      • CloudWatchLogsLogGroupArn (string) --

        ARN of the Cloudwatch log group to publish logs to.

      • Enabled (boolean) --

        Whether the given log publishing option is enabled or not.

type EncryptionAtRestOptions

dict

param EncryptionAtRestOptions

Specifies encryption of data at rest options.

  • Enabled (boolean) --

    The option to enable encryption at rest.

  • KmsKeyId (string) --

    The KMS key ID for encryption at rest options.

type DomainEndpointOptions

dict

param DomainEndpointOptions

Options to specify configuration that will be applied to the domain endpoint.

  • EnforceHTTPS (boolean) --

    Whether only HTTPS endpoint should be enabled for the domain.

  • TLSSecurityPolicy (string) --

    Specify the TLS security policy to apply to the HTTPS endpoint of the domain. Can be one of the following values:

    • Policy-Min-TLS-1-0-2019-07: TLS security policy which supports TLSv1.0 and higher.

    • Policy-Min-TLS-1-2-2019-07: TLS security policy which supports only TLSv1.2

  • CustomEndpointEnabled (boolean) --

    Whether to enable a custom endpoint for the domain.

  • CustomEndpoint (string) --

    The fully qualified domain for your custom endpoint.

  • CustomEndpointCertificateArn (string) --

    The ACM certificate ARN for your custom endpoint.

type NodeToNodeEncryptionOptions

dict

param NodeToNodeEncryptionOptions

Specifies node-to-node encryption options.

  • Enabled (boolean) --

    True to enable node-to-node encryption.

type AdvancedSecurityOptions

dict

param AdvancedSecurityOptions

Specifies advanced security options.

  • Enabled (boolean) --

    True if advanced security is enabled.

  • InternalUserDatabaseEnabled (boolean) --

    True if the internal user database is enabled.

  • MasterUserOptions (dict) --

    Credentials for the master user: username and password, ARN, or both.

    • MasterUserARN (string) --

      ARN for the master user (if IAM is enabled).

    • MasterUserName (string) --

      The master user's username, which is stored in the Amazon OpenSearch Service domain's internal database.

    • MasterUserPassword (string) --

      The master user's password, which is stored in the Amazon OpenSearch Service domain's internal database.

  • SAMLOptions (dict) --

    The SAML application configuration for the domain.

    • Enabled (boolean) --

      True if SAML is enabled.

    • Idp (dict) --

      The SAML Identity Provider's information.

      • MetadataContent (string) -- [REQUIRED]

        The metadata of the SAML application in XML format.

      • EntityId (string) -- [REQUIRED]

        The unique entity ID of the application in SAML identity provider.

    • MasterUserName (string) --

      The SAML master username, which is stored in the Amazon OpenSearch Service domain's internal database.

    • MasterBackendRole (string) --

      The backend role that the SAML master user is mapped to.

    • SubjectKey (string) --

      Element of the SAML assertion to use for username. Default is NameID.

    • RolesKey (string) --

      Element of the SAML assertion to use for backend roles. Default is roles.

    • SessionTimeoutMinutes (integer) --

      The duration, in minutes, after which a user session becomes inactive. Acceptable values are between 1 and 1440, and the default value is 60.

type AutoTuneOptions

dict

param AutoTuneOptions

Specifies Auto-Tune options.

  • DesiredState (string) --

    The Auto-Tune desired state. Valid values are ENABLED and DISABLED.

  • RollbackOnDisable (string) --

    The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.

  • MaintenanceSchedules (list) --

    A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.

type DryRun

boolean

param DryRun

This flag, when set to True, specifies whether the UpdateDomain request should return the results of validation checks (DryRunResults) without actually applying the change.

rtype

dict

returns

Response Syntax

{
    'DomainConfig': {
        'EngineVersion': {
            'Options': 'string',
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'ClusterConfig': {
            'Options': {
                'InstanceType': 'm3.medium.search'|'m3.large.search'|'m3.xlarge.search'|'m3.2xlarge.search'|'m4.large.search'|'m4.xlarge.search'|'m4.2xlarge.search'|'m4.4xlarge.search'|'m4.10xlarge.search'|'m5.large.search'|'m5.xlarge.search'|'m5.2xlarge.search'|'m5.4xlarge.search'|'m5.12xlarge.search'|'m5.24xlarge.search'|'r5.large.search'|'r5.xlarge.search'|'r5.2xlarge.search'|'r5.4xlarge.search'|'r5.12xlarge.search'|'r5.24xlarge.search'|'c5.large.search'|'c5.xlarge.search'|'c5.2xlarge.search'|'c5.4xlarge.search'|'c5.9xlarge.search'|'c5.18xlarge.search'|'t3.nano.search'|'t3.micro.search'|'t3.small.search'|'t3.medium.search'|'t3.large.search'|'t3.xlarge.search'|'t3.2xlarge.search'|'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search'|'t2.micro.search'|'t2.small.search'|'t2.medium.search'|'r3.large.search'|'r3.xlarge.search'|'r3.2xlarge.search'|'r3.4xlarge.search'|'r3.8xlarge.search'|'i2.xlarge.search'|'i2.2xlarge.search'|'d2.xlarge.search'|'d2.2xlarge.search'|'d2.4xlarge.search'|'d2.8xlarge.search'|'c4.large.search'|'c4.xlarge.search'|'c4.2xlarge.search'|'c4.4xlarge.search'|'c4.8xlarge.search'|'r4.large.search'|'r4.xlarge.search'|'r4.2xlarge.search'|'r4.4xlarge.search'|'r4.8xlarge.search'|'r4.16xlarge.search'|'i3.large.search'|'i3.xlarge.search'|'i3.2xlarge.search'|'i3.4xlarge.search'|'i3.8xlarge.search'|'i3.16xlarge.search'|'r6g.large.search'|'r6g.xlarge.search'|'r6g.2xlarge.search'|'r6g.4xlarge.search'|'r6g.8xlarge.search'|'r6g.12xlarge.search'|'m6g.large.search'|'m6g.xlarge.search'|'m6g.2xlarge.search'|'m6g.4xlarge.search'|'m6g.8xlarge.search'|'m6g.12xlarge.search'|'c6g.large.search'|'c6g.xlarge.search'|'c6g.2xlarge.search'|'c6g.4xlarge.search'|'c6g.8xlarge.search'|'c6g.12xlarge.search'|'r6gd.large.search'|'r6gd.xlarge.search'|'r6gd.2xlarge.search'|'r6gd.4xlarge.search'|'r6gd.8xlarge.search'|'r6gd.12xlarge.search'|'r6gd.16xlarge.search'|'t4g.small.search'|'t4g.medium.search',
                'InstanceCount': 123,
                'DedicatedMasterEnabled': True|False,
                'ZoneAwarenessEnabled': True|False,
                'ZoneAwarenessConfig': {
                    'AvailabilityZoneCount': 123
                },
                'DedicatedMasterType': 'm3.medium.search'|'m3.large.search'|'m3.xlarge.search'|'m3.2xlarge.search'|'m4.large.search'|'m4.xlarge.search'|'m4.2xlarge.search'|'m4.4xlarge.search'|'m4.10xlarge.search'|'m5.large.search'|'m5.xlarge.search'|'m5.2xlarge.search'|'m5.4xlarge.search'|'m5.12xlarge.search'|'m5.24xlarge.search'|'r5.large.search'|'r5.xlarge.search'|'r5.2xlarge.search'|'r5.4xlarge.search'|'r5.12xlarge.search'|'r5.24xlarge.search'|'c5.large.search'|'c5.xlarge.search'|'c5.2xlarge.search'|'c5.4xlarge.search'|'c5.9xlarge.search'|'c5.18xlarge.search'|'t3.nano.search'|'t3.micro.search'|'t3.small.search'|'t3.medium.search'|'t3.large.search'|'t3.xlarge.search'|'t3.2xlarge.search'|'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search'|'t2.micro.search'|'t2.small.search'|'t2.medium.search'|'r3.large.search'|'r3.xlarge.search'|'r3.2xlarge.search'|'r3.4xlarge.search'|'r3.8xlarge.search'|'i2.xlarge.search'|'i2.2xlarge.search'|'d2.xlarge.search'|'d2.2xlarge.search'|'d2.4xlarge.search'|'d2.8xlarge.search'|'c4.large.search'|'c4.xlarge.search'|'c4.2xlarge.search'|'c4.4xlarge.search'|'c4.8xlarge.search'|'r4.large.search'|'r4.xlarge.search'|'r4.2xlarge.search'|'r4.4xlarge.search'|'r4.8xlarge.search'|'r4.16xlarge.search'|'i3.large.search'|'i3.xlarge.search'|'i3.2xlarge.search'|'i3.4xlarge.search'|'i3.8xlarge.search'|'i3.16xlarge.search'|'r6g.large.search'|'r6g.xlarge.search'|'r6g.2xlarge.search'|'r6g.4xlarge.search'|'r6g.8xlarge.search'|'r6g.12xlarge.search'|'m6g.large.search'|'m6g.xlarge.search'|'m6g.2xlarge.search'|'m6g.4xlarge.search'|'m6g.8xlarge.search'|'m6g.12xlarge.search'|'c6g.large.search'|'c6g.xlarge.search'|'c6g.2xlarge.search'|'c6g.4xlarge.search'|'c6g.8xlarge.search'|'c6g.12xlarge.search'|'r6gd.large.search'|'r6gd.xlarge.search'|'r6gd.2xlarge.search'|'r6gd.4xlarge.search'|'r6gd.8xlarge.search'|'r6gd.12xlarge.search'|'r6gd.16xlarge.search'|'t4g.small.search'|'t4g.medium.search',
                'DedicatedMasterCount': 123,
                'WarmEnabled': True|False,
                'WarmType': 'ultrawarm1.medium.search'|'ultrawarm1.large.search'|'ultrawarm1.xlarge.search',
                'WarmCount': 123,
                'ColdStorageOptions': {
                    'Enabled': True|False
                }
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'EBSOptions': {
            'Options': {
                'EBSEnabled': True|False,
                'VolumeType': 'standard'|'gp2'|'io1',
                'VolumeSize': 123,
                'Iops': 123
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'AccessPolicies': {
            'Options': 'string',
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'SnapshotOptions': {
            'Options': {
                'AutomatedSnapshotStartHour': 123
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'VPCOptions': {
            'Options': {
                'VPCId': 'string',
                'SubnetIds': [
                    'string',
                ],
                'AvailabilityZones': [
                    'string',
                ],
                'SecurityGroupIds': [
                    'string',
                ]
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'CognitoOptions': {
            'Options': {
                'Enabled': True|False,
                'UserPoolId': 'string',
                'IdentityPoolId': 'string',
                'RoleArn': 'string'
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'EncryptionAtRestOptions': {
            'Options': {
                'Enabled': True|False,
                'KmsKeyId': 'string'
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'NodeToNodeEncryptionOptions': {
            'Options': {
                'Enabled': True|False
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'AdvancedOptions': {
            'Options': {
                'string': 'string'
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'LogPublishingOptions': {
            'Options': {
                'string': {
                    'CloudWatchLogsLogGroupArn': 'string',
                    'Enabled': True|False
                }
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'DomainEndpointOptions': {
            'Options': {
                'EnforceHTTPS': True|False,
                'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07',
                'CustomEndpointEnabled': True|False,
                'CustomEndpoint': 'string',
                'CustomEndpointCertificateArn': 'string'
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'AdvancedSecurityOptions': {
            'Options': {
                'Enabled': True|False,
                'InternalUserDatabaseEnabled': True|False,
                'SAMLOptions': {
                    'Enabled': True|False,
                    'Idp': {
                        'MetadataContent': 'string',
                        'EntityId': 'string'
                    },
                    'SubjectKey': 'string',
                    'RolesKey': 'string',
                    'SessionTimeoutMinutes': 123
                }
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'RequiresIndexDocuments'|'Processing'|'Active',
                'PendingDeletion': True|False
            }
        },
        'AutoTuneOptions': {
            'Options': {
                'DesiredState': 'ENABLED'|'DISABLED',
                'RollbackOnDisable': 'NO_ROLLBACK'|'DEFAULT_ROLLBACK',
                'MaintenanceSchedules': [
                    {
                        'StartAt': datetime(2015, 1, 1),
                        'Duration': {
                            'Value': 123,
                            'Unit': 'HOURS'
                        },
                        'CronExpressionForRecurrence': 'string'
                    },
                ]
            },
            'Status': {
                'CreationDate': datetime(2015, 1, 1),
                'UpdateDate': datetime(2015, 1, 1),
                'UpdateVersion': 123,
                'State': 'ENABLED'|'DISABLED'|'ENABLE_IN_PROGRESS'|'DISABLE_IN_PROGRESS'|'DISABLED_AND_ROLLBACK_SCHEDULED'|'DISABLED_AND_ROLLBACK_IN_PROGRESS'|'DISABLED_AND_ROLLBACK_COMPLETE'|'DISABLED_AND_ROLLBACK_ERROR'|'ERROR',
                'ErrorMessage': 'string',
                'PendingDeletion': True|False
            }
        }
    },
    'DryRunResults': {
        'DeploymentType': 'string',
        'Message': 'string'
    }
}

Response Structure

  • (dict) --

    The result of an UpdateDomain request. Contains the status of the domain being updated.

    • DomainConfig (dict) --

      The status of the updated domain.

      • EngineVersion (dict) --

        String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the OpenSearch or Elasticsearch domain.

        • Options (string) --

          The OpenSearch version for the specified OpenSearch domain.

        • Status (dict) --

          The status of the OpenSearch version options for the specified OpenSearch domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • ClusterConfig (dict) --

        The ClusterConfig for the domain.

        • Options (dict) --

          The cluster configuration for the specified domain.

          • InstanceType (string) --

            The instance type for an OpenSearch cluster. UltraWarm instance types are not supported for data instances.

          • InstanceCount (integer) --

            The number of instances in the specified domain cluster.

          • DedicatedMasterEnabled (boolean) --

            A boolean value to indicate whether a dedicated master node is enabled. See Dedicated master nodes in Amazon OpenSearch Service for more information.

          • ZoneAwarenessEnabled (boolean) --

            A boolean value to indicate whether zone awareness is enabled. See Configuring a multi-AZ domain in Amazon OpenSearch Service for more information.

          • ZoneAwarenessConfig (dict) --

            The zone awareness configuration for a domain when zone awareness is enabled.

            • AvailabilityZoneCount (integer) --

              An integer value to indicate the number of availability zones for a domain when zone awareness is enabled. This should be equal to number of subnets if VPC endpoints is enabled.

          • DedicatedMasterType (string) --

            The instance type for a dedicated master node.

          • DedicatedMasterCount (integer) --

            Total number of dedicated master nodes, active and on standby, for the cluster.

          • WarmEnabled (boolean) --

            True to enable UltraWarm storage.

          • WarmType (string) --

            The instance type for the OpenSearch cluster's warm nodes.

          • WarmCount (integer) --

            The number of UltraWarm nodes in the cluster.

          • ColdStorageOptions (dict) --

            Specifies the ColdStorageOptions config for a Domain

            • Enabled (boolean) --

              Enable cold storage option. Accepted values true or false

        • Status (dict) --

          The cluster configuration status for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • EBSOptions (dict) --

        The EBSOptions for the domain.

        • Options (dict) --

          The EBS options for the specified domain.

          • EBSEnabled (boolean) --

            Whether EBS-based storage is enabled.

          • VolumeType (string) --

            The volume type for EBS-based storage.

          • VolumeSize (integer) --

            Integer to specify the size of an EBS volume.

          • Iops (integer) --

            The IOPD for a Provisioned IOPS EBS volume (SSD).

        • Status (dict) --

          The status of the EBS options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • AccessPolicies (dict) --

        IAM access policy as a JSON-formatted string.

        • Options (string) --

          The access policy configured for the domain. Access policies can be resource-based, IP-based, or IAM-based. See Configuring access policies for more information.

        • Status (dict) --

          The status of the access policy for the domain. See OptionStatus for the status information that's included.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • SnapshotOptions (dict) --

        The SnapshotOptions for the domain.

        • Options (dict) --

          The daily snapshot options specified for the domain.

          • AutomatedSnapshotStartHour (integer) --

            The time, in UTC format, when the service takes a daily automated snapshot of the specified domain. Default is 0 hours.

        • Status (dict) --

          The status of a daily automated snapshot.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • VPCOptions (dict) --

        The VPCOptions for the specified domain. For more information, see Launching your Amazon OpenSearch Service domains using a VPC.

        • Options (dict) --

          The VPC options for the specified domain.

          • VPCId (string) --

            The VPC ID for the domain. Exists only if the domain was created with VPCOptions .

          • SubnetIds (list) --

            The subnets for the VPC endpoint.

            • (string) --

          • AvailabilityZones (list) --

            The Availability Zones for the domain. Exists only if the domain was created with VPCOptions .

            • (string) --

          • SecurityGroupIds (list) --

            The security groups for the VPC endpoint.

            • (string) --

        • Status (dict) --

          The status of the VPC options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • CognitoOptions (dict) --

        The CognitoOptions for the specified domain. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

        • Options (dict) --

          Cognito options for the specified domain.

          • Enabled (boolean) --

            The option to enable Cognito for OpenSearch Dashboards authentication.

          • UserPoolId (string) --

            The Cognito user pool ID for OpenSearch Dashboards authentication.

          • IdentityPoolId (string) --

            The Cognito identity pool ID for OpenSearch Dashboards authentication.

          • RoleArn (string) --

            The role ARN that provides OpenSearch permissions for accessing Cognito resources.

        • Status (dict) --

          The status of the Cognito options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • EncryptionAtRestOptions (dict) --

        The EncryptionAtRestOptions for the domain.

        • Options (dict) --

          The Encryption At Rest options for the specified domain.

          • Enabled (boolean) --

            The option to enable encryption at rest.

          • KmsKeyId (string) --

            The KMS key ID for encryption at rest options.

        • Status (dict) --

          The status of the Encryption At Rest options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • NodeToNodeEncryptionOptions (dict) --

        The NodeToNodeEncryptionOptions for the domain.

        • Options (dict) --

          The node-to-node encryption options for the specified domain.

          • Enabled (boolean) --

            True to enable node-to-node encryption.

        • Status (dict) --

          The status of the node-to-node encryption options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • AdvancedOptions (dict) --

        The AdvancedOptions for the domain. See Advanced options for more information.

        • Options (dict) --

          The status of advanced options for the specified domain.

          • (string) --

            • (string) --

        • Status (dict) --

          The OptionStatus for advanced options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • LogPublishingOptions (dict) --

        Log publishing options for the given domain.

        • Options (dict) --

          The log publishing options configured for the domain.

          • (string) --

            Type of log file. Can be one of the following:

            • INDEX_SLOW_LOGS: Index slow logs contain insert requests that took more time than configured index query log threshold to execute.

            • SEARCH_SLOW_LOGS: Search slow logs contain search queries that took more time than configured search query log threshold to execute.

            • ES_APPLICATION_LOGS: OpenSearch application logs contain information about errors and warnings raised during the operation of the service and can be useful for troubleshooting.

            • AUDIT_LOGS: Audit logs contain records of user requests for access from the domain.

            • (dict) --

              Log Publishing option that is set for a given domain. Attributes and their details:

              • CloudWatchLogsLogGroupArn: ARN of the Cloudwatch log group to publish logs to.

              • Enabled: Whether the log publishing for a given log type is enabled or not.

              • CloudWatchLogsLogGroupArn (string) --

                ARN of the Cloudwatch log group to publish logs to.

              • Enabled (boolean) --

                Whether the given log publishing option is enabled or not.

        • Status (dict) --

          The status of the log publishing options for the domain. See OptionStatus for the status information that's included.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • DomainEndpointOptions (dict) --

        The DomainEndpointOptions for the domain.

        • Options (dict) --

          Options to configure the endpoint for the domain.

          • EnforceHTTPS (boolean) --

            Whether only HTTPS endpoint should be enabled for the domain.

          • TLSSecurityPolicy (string) --

            Specify the TLS security policy to apply to the HTTPS endpoint of the domain. Can be one of the following values:

            • Policy-Min-TLS-1-0-2019-07: TLS security policy which supports TLSv1.0 and higher.

            • Policy-Min-TLS-1-2-2019-07: TLS security policy which supports only TLSv1.2

          • CustomEndpointEnabled (boolean) --

            Whether to enable a custom endpoint for the domain.

          • CustomEndpoint (string) --

            The fully qualified domain for your custom endpoint.

          • CustomEndpointCertificateArn (string) --

            The ACM certificate ARN for your custom endpoint.

        • Status (dict) --

          The status of the endpoint options for the domain. See OptionStatus for the status information that's included.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • AdvancedSecurityOptions (dict) --

        Specifies AdvancedSecurityOptions for the domain.

        • Options (dict) --

          Advanced security options for the specified domain.

          • Enabled (boolean) --

            True if advanced security is enabled.

          • InternalUserDatabaseEnabled (boolean) --

            True if the internal user database is enabled.

          • SAMLOptions (dict) --

            Describes the SAML application configured for a domain.

            • Enabled (boolean) --

              True if SAML is enabled.

            • Idp (dict) --

              Describes the SAML identity provider's information.

              • MetadataContent (string) --

                The metadata of the SAML application in XML format.

              • EntityId (string) --

                The unique entity ID of the application in SAML identity provider.

            • SubjectKey (string) --

              The key used for matching the SAML subject attribute.

            • RolesKey (string) --

              The key used for matching the SAML roles attribute.

            • SessionTimeoutMinutes (integer) --

              The duration, in minutes, after which a user session becomes inactive.

        • Status (dict) --

          Status of the advanced security options for the specified domain.

          • CreationDate (datetime) --

            The timestamp of when the entity was created.

          • UpdateDate (datetime) --

            The timestamp of the last time the entity was updated.

          • UpdateVersion (integer) --

            The latest version of the entity.

          • State (string) --

            Provides the OptionState for the domain.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

      • AutoTuneOptions (dict) --

        Specifies AutoTuneOptions for the domain.

        • Options (dict) --

          Specifies Auto-Tune options for the domain.

          • DesiredState (string) --

            The Auto-Tune desired state. Valid values are ENABLED and DISABLED.

          • RollbackOnDisable (string) --

            The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.

          • MaintenanceSchedules (list) --

            A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.

        • Status (dict) --

          The status of the Auto-Tune options for the domain.

          • CreationDate (datetime) --

            The timestamp of the Auto-Tune options creation date.

          • UpdateDate (datetime) --

            The timestamp of when the Auto-Tune options were last updated.

          • UpdateVersion (integer) --

            The latest version of the Auto-Tune options.

          • State (string) --

            The AutoTuneState for the domain.

          • ErrorMessage (string) --

            The error message while enabling or disabling Auto-Tune.

          • PendingDeletion (boolean) --

            Indicates whether the domain is being deleted.

    • DryRunResults (dict) --

      Contains result of DryRun.

      • DeploymentType (string) --

        Specifies the way in which Amazon OpenSearch Service applies the update. Possible responses are Blue/Green (the update requires a blue/green deployment), DynamicUpdate (no blue/green required), Undetermined (the domain is undergoing an update and can't predict the deployment type; try again after the update is complete), and None (the request doesn't include any configuration changes).

      • Message (string) --

        Contains an optional message associated with the DryRunResults.