dissociatePackage method

Future<DissociatePackageResponse> dissociatePackage({
  1. required String domainName,
  2. required String packageID,
})

Dissociates a package from the Amazon OpenSearch Service domain.

May throw BaseException. May throw InternalException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw ValidationException. May throw ConflictException.

Parameter domainName : The name of the domain to associate the package with.

Parameter packageID : The internal ID of the package to associate with a domain. Use DescribePackages to find this value.

Implementation

Future<DissociatePackageResponse> dissociatePackage({
  required String domainName,
  required String packageID,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  ArgumentError.checkNotNull(packageID, 'packageID');
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/2021-01-01/packages/dissociate/${Uri.encodeComponent(packageID)}/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DissociatePackageResponse.fromJson(response);
}