Skip to main content

packages

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

Overview

Namepackages
TypeResource
Idaws.es.packages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstring
package_details_listarrayList of PackageDetails objects.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_packagesselectregionDescribes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, and pagination.
create_packageinsertregion, PackageName, PackageType, PackageSourceCreate a package for use with Amazon ES domains.
associate_packageupdatepackage_id, domain_name, regionAssociates a package with an Amazon ES domain.
update_packageupdateregion, PackageID, PackageSourceUpdates a package for use with Amazon ES domains.
delete_packagedeletepackage_id, regionDelete the package.
dissociate_packageexecpackage_id, domain_name, regionDissociates a package from the Amazon ES domain.

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
domain_namestringName of the domain that you want to associate the package with.
package_idstringInternal ID of the package that you want to associate with a domain. Use DescribePackages to find this value.
regionstringAWS region (default: us-east-1)

SELECT examples

Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, and pagination.

SELECT
next_token,
package_details_list
FROM aws.es.packages
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a package for use with Amazon ES domains.

INSERT INTO aws.es.packages (
PackageName,
PackageType,
PackageDescription,
PackageSource,
region
)
SELECT
'{{ PackageName }}' /* required */,
'{{ PackageType }}' /* required */,
'{{ PackageDescription }}',
'{{ PackageSource }}' /* required */,
'{{ region }}'
RETURNING
package_details
;

UPDATE examples

Associates a package with an Amazon ES domain.

UPDATE aws.es.packages
SET
-- No updatable properties
WHERE
package_id = '{{ package_id }}' --required
AND domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
RETURNING
domain_package_details;

DELETE examples

Delete the package.

DELETE FROM aws.es.packages
WHERE package_id = '{{ package_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Dissociates a package from the Amazon ES domain.

EXEC aws.es.packages.dissociate_package
@package_id='{{ package_id }}' --required,
@domain_name='{{ domain_name }}' --required,
@region='{{ region }}' --required
;