Skip to main content

domains_for_packages

Creates, updates, deletes, gets or lists a domains_for_packages resource.

Overview

Namedomains_for_packages
TypeResource
Idaws.opensearch.domains_for_packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
domain_package_details_listarrayInformation about all domains associated with a package.
next_tokenstringWhen nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_domains_for_packageselectpackage_id, regionmaxResults, nextTokenLists all Amazon OpenSearch Service domains associated with a given package. For more information, see Custom packages for Amazon OpenSearch Service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
package_idstringThe unique identifier of the package for which to list associated domains.
regionstringAWS region (default: us-east-1)
maxResultsintegerAn optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
nextTokenstringIf your initial ListDomainsForPackage operation returns a nextToken, you can include the returned nextToken in subsequent ListDomainsForPackage operations, which returns results in the next page.

SELECT examples

Lists all Amazon OpenSearch Service domains associated with a given package. For more information, see Custom packages for Amazon OpenSearch Service.

SELECT
domain_package_details_list,
next_token
FROM aws.opensearch.domains_for_packages
WHERE package_id = '{{ package_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;