getOfferTerms method
Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.
May throw ResourceNotFoundException.
Parameter offerId :
The unique identifier of the offer whose terms to retrieve.
Parameter maxResults :
The maximum number of results that are returned per call. You can use
nextToken to get more results.
Parameter nextToken :
If nextToken is returned, there are more results available.
Make the call again using the returned token to retrieve the next page.
Implementation
Future<GetOfferTermsOutput> getOfferTerms({
required String offerId,
int? maxResults,
String? nextToken,
}) async {
final $payload = <String, dynamic>{
'offerId': offerId,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2026-02-05/getOfferTerms',
exceptionFnMap: _exceptionFns,
);
return GetOfferTermsOutput.fromJson(response);
}