associate_package
¶
associate_package(
package_id: PackageID,
domain_name: DomainName,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
prerequisite_package_id_list: Optional[PackageIDList] = None,
association_configuration: Optional[PackageAssociationConfiguration] = None,
) -> AssociatePackageResponse
Associates a package with an Amazon OpenSearch Service domain. For more information, see Custom packages for Amazon OpenSearch Service.
Parameters:
-
package_id(PackageID) –Internal ID of the package to associate with a domain. Use
DescribePackagesto find this value. -
domain_name(DomainName) –Name of the domain to associate the package with.
-
prerequisite_package_id_list(Optional[PackageIDList], default:None) –A list of package IDs that must be associated with the domain before the package specified in the request can be associated.
-
association_configuration(Optional[PackageAssociationConfiguration], default:None) –The configuration for associating a package with an Amazon OpenSearch Service domain.
Raises:
-
AccessDeniedException–An error occurred because you don't have permissions to access the resource.
-
BaseException–An error occurred while processing the request.
-
ConflictException–An error occurred because the client attempts to remove a resource that is currently in use.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
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.