AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . opensearch ]
Deletes an Amazon OpenSearch Service domain and all of its data. You can't recover a domain after you delete it.
See also: AWS API Documentation
delete-domain
--domain-name <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
--domain-name
(string)
The name of the domain you want to permanently delete.
--cli-input-json
(string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command's default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
DomainStatus -> (structure)
The status of the domain being deleted.
DomainId -> (string)
Unique identifier for the domain.DomainName -> (string)
Name of the domain. Domain names are unique across all domains owned by the same account within an Amazon Web Services Region.ARN -> (string)
The Amazon Resource Name (ARN) of the domain. For more information, see IAM identifiers in the AWS Identity and Access Management User Guide .Created -> (boolean)
Creation status of an OpenSearch Service domain. True if domain creation is complete. False if domain creation is still in progress.Deleted -> (boolean)
Deletion status of an OpenSearch Service domain. True if domain deletion is complete. False if domain deletion is still in progress. Once deletion is complete, the status of the domain is no longer returned.Endpoint -> (string)
Domain-specific endpoint used to submit index, search, and data upload requests to the domain.EndpointV2 -> (string)
IfIPAddressType
to set todualstack
, a version 2 domain endpoint is provisioned. This endpoint functions like a normal endpoint, except that it works with both IPv4 and IPv6 IP addresses. Normal endpoints work only with IPv4 IP addresses.Endpoints -> (map)
The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints. For example:
- IPv4 IP addresses -
'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'
- Dual stack IP addresses -
'vpcv2':'vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.aos.us-east-1.on.aws'
key -> (string)
value -> (string)
The domain endpoint to which index and search requests are submitted. For example,search-imdb-movies-oopcnjfn6ugo.eu-west-1.es.amazonaws.com
ordoc-imdb-movies-oopcnjfn6u.eu-west-1.es.amazonaws.com
.DomainEndpointV2HostedZoneId -> (string)
The dual stack hosted zone ID for the domain.Processing -> (boolean)
The status of the domain configuration. True if OpenSearch Service is processing configuration changes. False if the configuration is active.UpgradeProcessing -> (boolean)
The status of a domain version upgrade to a new version of OpenSearch or Elasticsearch. True if OpenSearch Service is in the process of a version upgrade. False if the configuration is active.EngineVersion -> (string)
Version of OpenSearch or Elasticsearch that the domain is running, in the formatElasticsearch_X.Y
orOpenSearch_X.Y
.ClusterConfig -> (structure)
Container for the cluster configuration of the domain.
InstanceType -> (string)
Instance type of data nodes in the cluster.InstanceCount -> (integer)
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.DedicatedMasterEnabled -> (boolean)
Indicates whether dedicated master nodes are enabled for the cluster.``True`` if the cluster will use a dedicated master node.``False`` if the cluster will not.ZoneAwarenessEnabled -> (boolean)
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .ZoneAwarenessConfig -> (structure)
Container for zone awareness configuration options. Only required if
ZoneAwarenessEnabled
istrue
.AvailabilityZoneCount -> (integer)
If you enabled multiple Availability Zones, this value is the number of zones that you want the domain to use. Valid values are2
and3
. If your domain is provisioned within a VPC, this value be equal to number of subnets.DedicatedMasterType -> (string)
OpenSearch Service instance type of the dedicated master nodes in the cluster.DedicatedMasterCount -> (integer)
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.WarmEnabled -> (boolean)
Whether to enable warm storage for the cluster.WarmType -> (string)
The instance type for the cluster's warm nodes.WarmCount -> (integer)
The number of warm nodes in the cluster.ColdStorageOptions -> (structure)
Container for cold storage configuration options.
Enabled -> (boolean)
Whether to enable or disable cold storage on the domain. You must enable UltraWarm storage to enable cold storage.MultiAZWithStandbyEnabled -> (boolean)
A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .NodeOptions -> (list)
List of node options for the domain.
(structure)
Container for specifying node type.
NodeType -> (string)
Container for node type like coordinating.NodeConfig -> (structure)
Container for specifying configuration of any node type.
Enabled -> (boolean)
A boolean that indicates whether a particular node type is enabled or not.Type -> (string)
The instance type of a particular node type in the cluster.Count -> (integer)
The number of nodes of a particular node type in the cluster.EBSOptions -> (structure)
Container for EBS-based storage settings for the domain.
EBSEnabled -> (boolean)
Indicates whether EBS volumes are attached to data nodes in an OpenSearch Service domain.VolumeType -> (string)
Specifies the type of EBS volumes attached to data nodes.VolumeSize -> (integer)
Specifies the size (in GiB) of EBS volumes attached to data nodes.Iops -> (integer)
Specifies the baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for thegp3
and provisioned IOPS EBS volume types.Throughput -> (integer)
Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for thegp3
volume type.AccessPolicies -> (string)
Identity and Access Management (IAM) policy document specifying the access policies for the domain.IPAddressType -> (string)
The type of IP addresses supported by the endpoint for the domain.SnapshotOptions -> (structure)
DEPRECATED. Container for parameters required to configure automated snapshots of domain indexes.
AutomatedSnapshotStartHour -> (integer)
The time, in UTC format, when OpenSearch Service takes a daily automated snapshot of the specified domain. Default is0
hours.VPCOptions -> (structure)
The VPC configuration for the domain.
VPCId -> (string)
The ID for your VPC. Amazon VPC generates this value when you create a VPC.SubnetIds -> (list)
A list of subnet IDs associated with the VPC endpoints for the domain.
(string)
AvailabilityZones -> (list)
The list of Availability Zones associated with the VPC subnets.
(string)
SecurityGroupIds -> (list)
The list of security group IDs associated with the VPC endpoints for the domain.
(string)
CognitoOptions -> (structure)
Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards.
Enabled -> (boolean)
Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.UserPoolId -> (string)
The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.IdentityPoolId -> (string)
The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.RoleArn -> (string)
TheAmazonOpenSearchServiceCognitoAccess
role that allows OpenSearch Service to configure your user pool and identity pool.EncryptionAtRestOptions -> (structure)
Encryption at rest settings for the domain.
Enabled -> (boolean)
True to enable encryption at rest.KmsKeyId -> (string)
The KMS key ID. Takes the form1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a
.NodeToNodeEncryptionOptions -> (structure)
Whether node-to-node encryption is enabled or disabled.
Enabled -> (boolean)
True to enable node-to-node encryption.AdvancedOptions -> (map)
Key-value pairs that specify advanced configuration options.
key -> (string)
value -> (string)
LogPublishingOptions -> (map)
Log publishing options for the domain.
key -> (string)
The type of log file. Can be one of the following:
- INDEX_SLOW_LOGS - Index slow logs contain insert requests that took more time than the configured index query log threshold to execute.
- SEARCH_SLOW_LOGS - Search slow logs contain search queries that took more time than the 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 to the domain.
value -> (structure)
Specifies whether the Amazon OpenSearch Service domain publishes the OpenSearch application and slow logs to Amazon CloudWatch. For more information, see Monitoring OpenSearch logs with Amazon CloudWatch Logs .
Note
After you enable log publishing, you still have to enable the collection of slow logs using the OpenSearch REST API.CloudWatchLogsLogGroupArn -> (string)
The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs to.Enabled -> (boolean)
Whether the log should be published.ServiceSoftwareOptions -> (structure)
The current status of the domain's service software.
CurrentVersion -> (string)
The current service software version present on the domain.NewVersion -> (string)
The new service software version, if one is available.UpdateAvailable -> (boolean)
True if you're able to update your service software version. False if you can't update your service software version.Cancellable -> (boolean)
True if you're able to cancel your service software version update. False if you can't cancel your service software update.UpdateStatus -> (string)
The status of your service software update.Description -> (string)
A description of the service software update status.AutomatedUpdateDate -> (timestamp)
The timestamp, in Epoch time, until which you can manually request a service software update. After this date, we automatically update your service software.OptionalDeployment -> (boolean)
True if a service software is never automatically updated. False if a service software is automatically updated after the automated update date.DomainEndpointOptions -> (structure)
Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.
EnforceHTTPS -> (boolean)
True to require that all traffic to the domain arrive over HTTPS.TLSSecurityPolicy -> (string)
Specify the TLS security policy to apply to the HTTPS endpoint of the domain. The policy can be one of the following values:
- Policy-Min-TLS-1-0-2019-07: TLS security policy that supports TLS version 1.0 to TLS version 1.2
- Policy-Min-TLS-1-2-2019-07: TLS security policy that supports only TLS version 1.2
- Policy-Min-TLS-1-2-PFS-2023-10: TLS security policy that supports TLS version 1.2 to TLS version 1.3 with perfect forward secrecy cipher suites
CustomEndpointEnabled -> (boolean)
Whether to enable a custom endpoint for the domain.CustomEndpoint -> (string)
The fully qualified URL for the custom endpoint.CustomEndpointCertificateArn -> (string)
The ARN for your security certificate, managed in Amazon Web Services Certificate Manager (ACM).AdvancedSecurityOptions -> (structure)
Settings for fine-grained access control.
Enabled -> (boolean)
True if fine-grained access control is enabled.InternalUserDatabaseEnabled -> (boolean)
True if the internal user database is enabled.SAMLOptions -> (structure)
Container for information about the SAML configuration for OpenSearch Dashboards.
Enabled -> (boolean)
True if SAML is enabled.Idp -> (structure)
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 the 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.JWTOptions -> (structure)
Container for information about the JWT configuration of the Amazon OpenSearch Service.
Enabled -> (boolean)
True if JWT use is enabled.SubjectKey -> (string)
The key used for matching the JWT subject attribute.RolesKey -> (string)
The key used for matching the JWT roles attribute.PublicKey -> (string)
The key used to verify the signature of incoming JWT requests.AnonymousAuthDisableDate -> (timestamp)
Date and time when the migration period will be disabled. Only necessary when enabling fine-grained access control on an existing domain .AnonymousAuthEnabled -> (boolean)
True if a 30-day migration period is enabled, during which administrators can create role mappings. Only necessary when enabling fine-grained access control on an existing domain .IdentityCenterOptions -> (structure)
Container for IAM Identity Center Option control for the domain.
EnabledAPIAccess -> (boolean)
True to enable IAM Identity Center for API access in Amazon OpenSearch Service.IdentityCenterInstanceARN -> (string)
The ARN for IAM Identity Center Instance.SubjectKey -> (string)
Specify the attribute that contains the subject (username, userID, email) of IAM Identity Center.RolesKey -> (string)
Specify the attribute that contains the backend role (groupName, groupID) of IAM Identity CenterIdentityCenterApplicationARN -> (string)
The ARN for IAM Identity Center Application which will integrate with Amazon OpenSearch Service.IdentityStoreId -> (string)
The ID of IAM Identity Store.AutoTuneOptions -> (structure)
Auto-Tune settings for the domain.
State -> (string)
The current state of Auto-Tune on the domain.ErrorMessage -> (string)
Any errors that occurred while enabling or disabling Auto-Tune.UseOffPeakWindow -> (boolean)
Whether the domain's off-peak window will be used to deploy Auto-Tune changes rather than a maintenance schedule.ChangeProgressDetails -> (structure)
Information about a configuration change happening on the domain.
ChangeId -> (string)
The ID of the configuration change.Message -> (string)
A message corresponding to the status of the configuration change.ConfigChangeStatus -> (string)
The current status of the configuration change.InitiatedBy -> (string)
The IAM principal who initiated the configuration change.StartTime -> (timestamp)
The time that the configuration change was initiated, in Universal Coordinated Time (UTC).LastUpdatedTime -> (timestamp)
The last time that the configuration change was updated.OffPeakWindowOptions -> (structure)
Options that specify a custom 10-hour window during which OpenSearch Service can perform configuration changes on the domain.
Enabled -> (boolean)
Whether to enable an off-peak window.
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
OffPeakWindow -> (structure)
Off-peak window settings for the domain.
WindowStartTime -> (structure)
A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.
Hours -> (long)
The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time. For example,17
refers to 5:00 P.M. UTC.Minutes -> (long)
The start minute of the window, in UTC.SoftwareUpdateOptions -> (structure)
Service software update options for the domain.
AutoSoftwareUpdateEnabled -> (boolean)
Whether automatic service software updates are enabled for the domain.DomainProcessingStatus -> (string)
The status of any changes that are currently in progress for the domain.ModifyingProperties -> (list)
Information about the domain properties that are currently being modified.
(structure)
Information about the domain properties that are currently being modified.
Name -> (string)
The name of the property that is currently being modified.ActiveValue -> (string)
The current value of the domain property that is being modified.PendingValue -> (string)
The value that the property that is currently being modified will eventually have.ValueType -> (string)
The type of value that is currently being modified. Properties can have two types:
PLAIN_TEXT
: Contain direct values such as "1", "True", or "c5.large.search".STRINGIFIED_JSON
: Contain content in JSON format, such as {"Enabled":"True"}".AIMLOptions -> (structure)
Container for parameters required to enable all machine learning features.
NaturalLanguageQueryGenerationOptions -> (structure)
Container for parameters required for natural language query generation on the specified domain.
DesiredState -> (string)
The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.CurrentState -> (string)
The current state of the natural language query generation feature, indicating completion, in progress, or failure.