cancelChangeSet method
Used to cancel an open change request. Must be sent before the status of
the request changes to APPLYING
, the final stage of
completing your change request. You can describe a change during the
60-day request history retention period for API calls.
May throw InternalServiceException. May throw AccessDeniedException. May throw ValidationException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw ThrottlingException.
Parameter catalog
:
Required. The catalog related to the request. Fixed value:
AWSMarketplace
.
Parameter changeSetId
:
Required. The unique identifier of the StartChangeSet
request
that you want to cancel.
Implementation
Future<CancelChangeSetResponse> cancelChangeSet({
required String catalog,
required String changeSetId,
}) async {
ArgumentError.checkNotNull(catalog, 'catalog');
_s.validateStringLength(
'catalog',
catalog,
1,
64,
isRequired: true,
);
ArgumentError.checkNotNull(changeSetId, 'changeSetId');
_s.validateStringLength(
'changeSetId',
changeSetId,
1,
255,
isRequired: true,
);
final $query = <String, List<String>>{
'catalog': [catalog],
'changeSetId': [changeSetId],
};
final response = await _protocol.send(
payload: null,
method: 'PATCH',
requestUri: '/CancelChangeSet',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return CancelChangeSetResponse.fromJson(response);
}