Provides details about an offer set, which is a bundle of offers across multiple products. Includes the seller, availability dates, buyer notes, and associated product-offer pairs.
Parameters:
-
locale
(Optional[Locale], default:
None
)
–
A BCP 47 language tag or comma-separated priority list specifying the preferred locale for response content. See Locale for supported values, constraints, fallback behavior, and the default locale. If omitted, the service returns content in the default locale.
-
offer_set_id
(OfferSetId)
–
The unique identifier of the offer set to retrieve.
Raises:
Examples:
Get offer set with multiple products
>>> client.get_offer_set(locale='en-US', offer_set_id='offerset-sampleId')
Get offer set with only required fields
>>> client.get_offer_set(offer_set_id='offerset-sampleMinimalId')
Get offer set that never expires from a first-party seller
>>> client.get_offer_set(locale='en-US', offer_set_id='offerset-samplePerpetualId')
Source code in docs_src/capo_marketplace_discovery/_services/marketplace_discovery.py
| def get_offer_set(
self,
offer_set_id: "capo_marketplace_discovery.types.offer_set_id.OfferSetId",
*,
config_overrides: Optional[MarketplaceDiscoveryClientConfig] = None,
locale: Optional["capo_marketplace_discovery.types.locale.Locale"] = None,
) -> "capo_marketplace_discovery.types.get_offer_set_output.GetOfferSetOutput":
"""<p>Provides details about an offer set, which is a bundle of offers across multiple products. Includes the seller, availability dates, buyer notes, and associated product-offer pairs.</p>
Args:
locale: <p>A BCP 47 language tag or comma-separated priority list specifying the preferred locale for response content. See <code>Locale</code> for supported values, constraints, fallback behavior, and the default locale. If omitted, the service returns content in the default locale.</p>
offer_set_id: <p>The unique identifier of the offer set to retrieve.</p>
Raises:
capo_marketplace_discovery.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
capo_marketplace_discovery.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of the request.</p>
capo_marketplace_discovery.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_marketplace_discovery.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
capo_marketplace_discovery.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist.</p>
capo_marketplace_discovery.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get offer set with multiple products
>>> client.get_offer_set(locale='en-US', offer_set_id='offerset-sampleId')
Get offer set with only required fields
>>> client.get_offer_set(offer_set_id='offerset-sampleMinimalId')
Get offer set that never expires from a first-party seller
>>> client.get_offer_set(locale='en-US', offer_set_id='offerset-samplePerpetualId')
"""
def _handler(
req: "OperationRequest[capo_marketplace_discovery.types.get_offer_set_input.GetOfferSetInput]",
) -> OperationResponse[
"capo_marketplace_discovery.types.get_offer_set_output.GetOfferSetOutput"
]:
import capo_marketplace_discovery._operations.aws_marketplace_discovery.get_offer_set
output, http_response = (
capo_marketplace_discovery._operations.aws_marketplace_discovery.get_offer_set.get_offer_set(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetOfferSet")
)
input_: capo_marketplace_discovery.types.get_offer_set_input.GetOfferSetInput = {
"offer_set_id": offer_set_id
}
if locale is not None:
input_["locale"] = locale
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|