create_package
async
¶
create_package(
package_name: PackageName,
package_type: PackageType,
package_source: PackageSource,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = None,
package_description: Optional[PackageDescription] = None,
package_configuration: Optional[PackageConfiguration] = None,
engine_version: Optional[EngineVersion] = None,
package_vending_options: Optional[PackageVendingOptions] = None,
package_encryption_options: Optional[PackageEncryptionOptions] = None,
) -> CreatePackageResponse
Creates a package for use with Amazon OpenSearch Service domains. For more information, see Custom packages for Amazon OpenSearch Service.
Parameters:
-
package_name(PackageName) –Unique name for the package.
-
package_type(PackageType) –The type of package.
-
package_description(Optional[PackageDescription], default:None) –Description of the package.
-
package_source(PackageSource) –The Amazon S3 location from which to import the package.
-
package_configuration(Optional[PackageConfiguration], default:None) –The configuration parameters for the package being created.
-
engine_version(Optional[EngineVersion], default:None) –The version of the Amazon OpenSearch Service engine for which is compatible with the package. This can only be specified for package type
ZIP-PLUGIN -
package_vending_options(Optional[PackageVendingOptions], default:None) –The vending options for the package being created. They determine if the package can be vended to other users.
-
package_encryption_options(Optional[PackageEncryptionOptions], default:None) –The encryption parameters for the package being created.
Raises:
-
AccessDeniedException–An error occurred because you don't have permissions to access the resource.
-
BaseException–An error occurred while processing the request.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
InvalidTypeException–An exception for trying to create or access a sub-resource that's either invalid or not supported.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceAlreadyExistsException–An exception for creating a resource that already exists.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/async_open_search.py
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 | |