updateQuote method
Updates the specified quote. You can modify the requested capacities, constraints, payment options, payment terms, or Outpost association.
May throw AccessDeniedException.
May throw InternalServerException.
May throw NotFoundException.
May throw ValidationException.
Parameter quoteIdentifier :
The ID of the quote.
Parameter countryCode :
The country code for the Outpost site location.
Parameter description :
A description for the quote.
Parameter outpostIdentifier :
The ID or ARN of the Outpost to associate with the quote. Specify an empty
string to remove the Outpost association.
Parameter requestedCapacities :
The updated capacity requirements for the quote.
Parameter requestedConstraints :
The updated physical constraints for the quote.
Parameter requestedPaymentOptions :
The updated payment options to include in the quote pricing.
Parameter requestedPaymentTerms :
The updated payment terms to include in the quote pricing.
Implementation
Future<UpdateQuoteOutput> updateQuote({
required String quoteIdentifier,
String? countryCode,
String? description,
String? outpostIdentifier,
List<QuoteCapacity>? requestedCapacities,
List<QuoteConstraint>? requestedConstraints,
List<PaymentOption>? requestedPaymentOptions,
List<PaymentTerm>? requestedPaymentTerms,
}) async {
final $payload = <String, dynamic>{
if (countryCode != null) 'CountryCode': countryCode,
if (description != null) 'Description': description,
if (outpostIdentifier != null) 'OutpostIdentifier': outpostIdentifier,
if (requestedCapacities != null)
'RequestedCapacities': requestedCapacities,
if (requestedConstraints != null)
'RequestedConstraints': requestedConstraints,
if (requestedPaymentOptions != null)
'RequestedPaymentOptions':
requestedPaymentOptions.map((e) => e.value).toList(),
if (requestedPaymentTerms != null)
'RequestedPaymentTerms':
requestedPaymentTerms.map((e) => e.value).toList(),
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/quotes/${Uri.encodeComponent(quoteIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return UpdateQuoteOutput.fromJson(response);
}