2020/03/25 - Amazon Elasticsearch Service - 7 new api methods
Changes Adding support for customer packages (dictionary files) to Amazon Elasticsearch Service
Describes all packages available to Amazon ES. Includes options for filtering, limiting the number of results, and pagination.
See also: AWS API Documentation
Request Syntax
client.describe_packages( Filters=[ { 'Name': 'PackageID'|'PackageName'|'PackageStatus', 'Value': [ 'string', ] }, ], MaxResults=123, NextToken='string' )
list
Only returns packages that match the DescribePackagesFilterList values.
(dict) --
Filter to apply in DescribePackage response.
Name (string) --
Any field from PackageDetails .
Value (list) --
A list of values for the specified field.
(string) --
integer
Limits results to a maximum number of packages.
string
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
dict
Response Syntax
{ 'PackageDetailsList': [ { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'PackageDescription': 'string', 'PackageStatus': 'COPYING'|'COPY_FAILED'|'VALIDATING'|'VALIDATION_FAILED'|'AVAILABLE'|'DELETING'|'DELETED'|'DELETE_FAILED', 'CreatedAt': datetime(2015, 1, 1), 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Container for response returned by `` DescribePackages `` operation.
PackageDetailsList (list) --
List of PackageDetails objects.
(dict) --
Basic information about a package.
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
PackageDescription (string) --
User-specified description of the package.
PackageStatus (string) --
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
CreatedAt (datetime) --
Timestamp which tells creation date of the package.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
NextToken (string) --
Create a package for use with Amazon ES domains.
See also: AWS API Documentation
Request Syntax
client.create_package( PackageName='string', PackageType='TXT-DICTIONARY', PackageDescription='string', PackageSource={ 'S3BucketName': 'string', 'S3Key': 'string' } )
string
[REQUIRED]
Unique identifier for the package.
string
[REQUIRED]
Type of package. Currently supports only TXT-DICTIONARY.
string
Description of the package.
dict
[REQUIRED]
The customer S3 location PackageSource for importing the package.
S3BucketName (string) --
Name of the bucket containing the package.
S3Key (string) --
Key (file name) of the package.
dict
Response Syntax
{ 'PackageDetails': { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'PackageDescription': 'string', 'PackageStatus': 'COPYING'|'COPY_FAILED'|'VALIDATING'|'VALIDATION_FAILED'|'AVAILABLE'|'DELETING'|'DELETED'|'DELETE_FAILED', 'CreatedAt': datetime(2015, 1, 1), 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } } }
Response Structure
(dict) --
Container for response returned by `` CreatePackage `` operation.
PackageDetails (dict) --
Information about the package PackageDetails .
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
PackageDescription (string) --
User-specified description of the package.
PackageStatus (string) --
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
CreatedAt (datetime) --
Timestamp which tells creation date of the package.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
Lists all Amazon ES domains associated with the package.
See also: AWS API Documentation
Request Syntax
client.list_domains_for_package( PackageID='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The package for which to list domains.
integer
Limits results to a maximum number of domains.
string
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
dict
Response Syntax
{ 'DomainPackageDetailsList': [ { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'LastUpdated': datetime(2015, 1, 1), 'DomainName': 'string', 'DomainPackageStatus': 'ASSOCIATING'|'ASSOCIATION_FAILED'|'ACTIVE'|'DISSOCIATING'|'DISSOCIATION_FAILED', 'ReferencePath': 'string', 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Container for response parameters to `` ListDomainsForPackage `` operation.
DomainPackageDetailsList (list) --
List of DomainPackageDetails objects.
(dict) --
Information on a package that is associated with a domain.
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
LastUpdated (datetime) --
Timestamp of the most-recent update to the association status.
DomainName (string) --
Name of the domain you've associated a package with.
DomainPackageStatus (string) --
State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
ReferencePath (string) --
The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
NextToken (string) --
Dissociates a package from the Amazon ES domain.
See also: AWS API Documentation
Request Syntax
client.dissociate_package( PackageID='string', DomainName='string' )
string
[REQUIRED]
Internal ID of the package that you want to associate with a domain. Use DescribePackages to find this value.
string
[REQUIRED]
Name of the domain that you want to associate the package with.
dict
Response Syntax
{ 'DomainPackageDetails': { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'LastUpdated': datetime(2015, 1, 1), 'DomainName': 'string', 'DomainPackageStatus': 'ASSOCIATING'|'ASSOCIATION_FAILED'|'ACTIVE'|'DISSOCIATING'|'DISSOCIATION_FAILED', 'ReferencePath': 'string', 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } } }
Response Structure
(dict) --
Container for response returned by `` DissociatePackage `` operation.
DomainPackageDetails (dict) --
DomainPackageDetails
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
LastUpdated (datetime) --
Timestamp of the most-recent update to the association status.
DomainName (string) --
Name of the domain you've associated a package with.
DomainPackageStatus (string) --
State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
ReferencePath (string) --
The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
Delete the package.
See also: AWS API Documentation
Request Syntax
client.delete_package( PackageID='string' )
string
[REQUIRED]
Internal ID of the package that you want to delete. Use DescribePackages to find this value.
dict
Response Syntax
{ 'PackageDetails': { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'PackageDescription': 'string', 'PackageStatus': 'COPYING'|'COPY_FAILED'|'VALIDATING'|'VALIDATION_FAILED'|'AVAILABLE'|'DELETING'|'DELETED'|'DELETE_FAILED', 'CreatedAt': datetime(2015, 1, 1), 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } } }
Response Structure
(dict) --
Container for response parameters to `` DeletePackage `` operation.
PackageDetails (dict) --
PackageDetails
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
PackageDescription (string) --
User-specified description of the package.
PackageStatus (string) --
Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED
CreatedAt (datetime) --
Timestamp which tells creation date of the package.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
Associates a package with an Amazon ES domain.
See also: AWS API Documentation
Request Syntax
client.associate_package( PackageID='string', DomainName='string' )
string
[REQUIRED]
Internal ID of the package that you want to associate with a domain. Use DescribePackages to find this value.
string
[REQUIRED]
Name of the domain that you want to associate the package with.
dict
Response Syntax
{ 'DomainPackageDetails': { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'LastUpdated': datetime(2015, 1, 1), 'DomainName': 'string', 'DomainPackageStatus': 'ASSOCIATING'|'ASSOCIATION_FAILED'|'ACTIVE'|'DISSOCIATING'|'DISSOCIATION_FAILED', 'ReferencePath': 'string', 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } } }
Response Structure
(dict) --
Container for response returned by `` AssociatePackage `` operation.
DomainPackageDetails (dict) --
DomainPackageDetails
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
LastUpdated (datetime) --
Timestamp of the most-recent update to the association status.
DomainName (string) --
Name of the domain you've associated a package with.
DomainPackageStatus (string) --
State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
ReferencePath (string) --
The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
Lists all packages associated with the Amazon ES domain.
See also: AWS API Documentation
Request Syntax
client.list_packages_for_domain( DomainName='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The name of the domain for which you want to list associated packages.
integer
Limits results to a maximum number of packages.
string
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.
dict
Response Syntax
{ 'DomainPackageDetailsList': [ { 'PackageID': 'string', 'PackageName': 'string', 'PackageType': 'TXT-DICTIONARY', 'LastUpdated': datetime(2015, 1, 1), 'DomainName': 'string', 'DomainPackageStatus': 'ASSOCIATING'|'ASSOCIATION_FAILED'|'ACTIVE'|'DISSOCIATING'|'DISSOCIATION_FAILED', 'ReferencePath': 'string', 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Container for response parameters to `` ListPackagesForDomain `` operation.
DomainPackageDetailsList (list) --
List of DomainPackageDetails objects.
(dict) --
Information on a package that is associated with a domain.
PackageID (string) --
Internal ID of the package.
PackageName (string) --
User specified name of the package.
PackageType (string) --
Currently supports only TXT-DICTIONARY.
LastUpdated (datetime) --
Timestamp of the most-recent update to the association status.
DomainName (string) --
Name of the domain you've associated a package with.
DomainPackageStatus (string) --
State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
ReferencePath (string) --
The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file.
ErrorDetails (dict) --
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) --
ErrorMessage (string) --
NextToken (string) --
Pagination token that needs to be supplied to the next call to get the next page of results.