ElasticsearchService / Client / create_package
create_packageΒΆ
- ElasticsearchService.Client.create_package(**kwargs)ΒΆ
Create a package for use with Amazon ES domains.
See also: AWS API Documentation
Request Syntax
response = client.create_package( PackageName='string', PackageType='TXT-DICTIONARY', PackageDescription='string', PackageSource={ 'S3BucketName': 'string', 'S3Key': 'string' } )
- Parameters:
PackageName (string) β
[REQUIRED]
Unique identifier for the package.
PackageType (string) β
[REQUIRED]
Type of package. Currently supports only TXT-DICTIONARY.
PackageDescription (string) β Description of the package.
PackageSource (dict) β
[REQUIRED]
The customer S3 location
PackageSourcefor importing the package.S3BucketName (string) β
Name of the bucket containing the package.
S3Key (string) β
Key (file name) of the package.
- Return type:
dict
- Returns:
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), 'LastUpdatedAt': datetime(2015, 1, 1), 'AvailablePackageVersion': 'string', 'ErrorDetails': { 'ErrorType': 'string', 'ErrorMessage': 'string' } } }
Response Structure
(dict) β
Container for response returned by
CreatePackageoperation.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.
LastUpdatedAt (datetime) β
AvailablePackageVersion (string) β
ErrorDetails (dict) β
Additional information if the package is in an error state. Null otherwise.
ErrorType (string) β
ErrorMessage (string) β
Exceptions
ElasticsearchService.Client.exceptions.BaseExceptionElasticsearchService.Client.exceptions.InternalExceptionElasticsearchService.Client.exceptions.LimitExceededExceptionElasticsearchService.Client.exceptions.InvalidTypeExceptionElasticsearchService.Client.exceptions.ResourceAlreadyExistsExceptionElasticsearchService.Client.exceptions.AccessDeniedExceptionElasticsearchService.Client.exceptions.ValidationException