get_offer_terms
async
¶
get_offer_terms(
offer_id: OfferId,
*,
config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
locale: Optional[Locale] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> GetOfferTermsOutput
Retrieves the terms attached to an offer, such as pricing terms (usage-based, contract, Bring Your Own License (BYOL), free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms. The operation returns results in pages. Use nextToken to retrieve the next page.
Parameters:
-
locale(Optional[Locale], default:None) –The preferred locale for response content, as a Best Current Practice 47 (BCP 47) language tag or a comma-separated priority list of language tags. See
Localefor supported values, constraints, fallback behavior, and the default locale. If you omit this field, the service returns content in the default locale. -
offer_id(OfferId) –The unique identifier of the offer whose terms to retrieve.
-
max_results(Optional[int], default:None) –The maximum number of terms to return in each call. If you omit this field, the default is 10. Use
nextTokento retrieve the next page. -
next_token(Optional[NextToken], default:None) –If the service returns
nextToken, more results are available. The value ofnextTokenis a unique pagination token for each page. Make the call again with the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. An expired pagination token returns aValidationException.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Verify that you have the required permissions.
-
InternalServerException–Unexpected error during processing of the request.
-
ThrottlingException–The request was denied due to request throttling. Reduce the frequency of your requests and retry.
-
ValidationException–The input fails to satisfy the constraints specified by the service. Check the
reasonfield for the constraint that failed. -
ResourceNotFoundException–The specified resource doesn't exist. Verify that the identifier is correct.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
GetOfferTerms for Usage-based ML Model offer
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleUsageBasedId')
GetOfferTerms for Usage-based offer with regional pricing
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleRegionalPricingId')
GetOfferTerms for BYOL offer
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleByolId')
GetOfferTerms for configurable upfront pricing
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleConfigUpfrontId')
GetOfferTerms for free trial offer
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleFreeTrialId')
GetOfferTerms for recurring payment
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleRecurringId')
GetOfferTerms for variable payment
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleVariableId')
GetOfferTerms for renewal term
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalId')
GetOfferTerms for renewal term with fixed percentage
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalFixedId')
GetOfferTerms for renewal term with identical pricing (no price increase)
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalNoPriceIncreaseId')
GetOfferTerms for support term
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleSupportId')
GetOfferTerms for validity term with dates
>>> await client.get_offer_terms(locale='en-US', offer_id='offer-sampleValidityId')
GetOfferTerms for net payment term
Source code in docs_src/capo_marketplace_discovery/_services/async_marketplace_discovery.py
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | |