dissociatePackage method

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

Dissociates a package from the Amazon ES domain.

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

Parameter domainName : Name of the domain that you want to associate the package with.

Parameter packageID : Internal ID of the package that you want 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:
        '/2015-01-01/packages/dissociate/${Uri.encodeComponent(packageID)}/${Uri.encodeComponent(domainName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DissociatePackageResponse.fromJson(response);
}