create_package
¶
create_package(
package_name: PackageName,
package_type: PackageType,
package_source: PackageSource,
*,
config_overrides: Optional[ElasticsearchServiceClientConfig] = None,
package_description: Optional[PackageDescription] = None,
) -> CreatePackageResponse
Create a package for use with Amazon ES domains.
Parameters:
-
package_name(PackageName) –Unique identifier for the package.
-
package_type(PackageType) –Type of package. Currently supports only TXT-DICTIONARY.
-
package_description(Optional[PackageDescription], default:None) –Description of the package.
-
package_source(PackageSource) –The customer S3 location
PackageSourcefor importing the package.
Raises:
-
AccessDeniedException–An error occurred because user does not have permissions to access the resource. Returns HTTP status code 403.
-
BaseException–An error occurred while processing the request.
-
InternalException–The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.
-
InvalidTypeException–An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409.
-
LimitExceededException–An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists. Gives http status code of 400.
-
ValidationException–An exception for missing / invalid input fields. Gives http status code of 400.
-
UnknownServiceError–The service returned an error code this client does not model.