Skip to main content

domains

Creates, updates, deletes or gets a domain resource or lists domains in a region

Overview

Namedomains
TypeResource
DescriptionAn example resource schema demonstrating some basic constructs and validation rules.
Idaws.opensearchservice.domains

Fields

NameDatatypeDescription
cluster_configobject
domain_namestring
access_policiesobject
ip_address_typestring
engine_versionstring
advanced_optionsobject
log_publishing_optionsobject
snapshot_optionsobject
vpc_optionsobject
node_to_node_encryption_optionsobject
domain_endpoint_optionsobject
cognito_optionsobject
advanced_security_optionsobject
domain_endpointstring
domain_endpoint_v2string
domain_endpointsobject
ebs_optionsobject
idstring
arnstring
domain_arnstring
encryption_at_rest_optionsobject
tagsarrayAn arbitrary set of tags (key-value pairs) for this Domain.
service_software_optionsobject
off_peak_window_optionsobject
software_update_optionsobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual domain.

SELECT
region,
cluster_config,
domain_name,
access_policies,
ip_address_type,
engine_version,
advanced_options,
log_publishing_options,
snapshot_options,
vpc_options,
node_to_node_encryption_options,
domain_endpoint_options,
cognito_options,
advanced_security_options,
domain_endpoint,
domain_endpoint_v2,
domain_endpoints,
ebs_options,
id,
arn,
domain_arn,
encryption_at_rest_options,
tags,
service_software_options,
off_peak_window_options,
software_update_options
FROM aws.opensearchservice.domains
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>';

INSERT example

Use the following StackQL query and manifest file to create a new domain resource, using stack-deploy.

/*+ create */
INSERT INTO aws.opensearchservice.domains (
ClusterConfig,
DomainName,
AccessPolicies,
IPAddressType,
EngineVersion,
AdvancedOptions,
LogPublishingOptions,
SnapshotOptions,
VPCOptions,
NodeToNodeEncryptionOptions,
DomainEndpointOptions,
CognitoOptions,
AdvancedSecurityOptions,
EBSOptions,
EncryptionAtRestOptions,
Tags,
OffPeakWindowOptions,
SoftwareUpdateOptions,
region
)
SELECT
'{{ ClusterConfig }}',
'{{ DomainName }}',
'{{ AccessPolicies }}',
'{{ IPAddressType }}',
'{{ EngineVersion }}',
'{{ AdvancedOptions }}',
'{{ LogPublishingOptions }}',
'{{ SnapshotOptions }}',
'{{ VPCOptions }}',
'{{ NodeToNodeEncryptionOptions }}',
'{{ DomainEndpointOptions }}',
'{{ CognitoOptions }}',
'{{ AdvancedSecurityOptions }}',
'{{ EBSOptions }}',
'{{ EncryptionAtRestOptions }}',
'{{ Tags }}',
'{{ OffPeakWindowOptions }}',
'{{ SoftwareUpdateOptions }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.opensearchservice.domains
WHERE data__Identifier = '<DomainName>'
AND region = 'us-east-1';

Permissions

To operate on the domains resource, the following permissions are required:

Create

es:CreateDomain,
es:DescribeDomain,
es:AddTags,
es:ListTags

Read

es:DescribeDomain,
es:ListTags

Update

es:UpdateDomain,
es:UpgradeDomain,
es:DescribeDomain,
es:AddTags,
es:RemoveTags,
es:ListTags,
es:DescribeDomainChangeProgress

Delete

es:DeleteDomain,
es:DescribeDomain