search_agreements
async
¶
search_agreements(
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
catalog: Optional[Catalog] = None,
filters: Optional[FilterList] = None,
sort: Optional[Sort] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> SearchAgreementsOutput
Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.
Parameters:
-
catalog(Optional[Catalog], default:None) –The catalog in which the agreement was created.
-
filters(Optional[FilterList], default:None) –The filter name and value pair used to return a specific list of results.
The following filters are supported:
-
ResourceIdentifier– The unique identifier of the resource. -
ResourceType– Type of the resource, which is the product (AmiProduct,ContainerProduct,SaaSProduct,ProfessionalServicesProduct, orMachineLearningProduct). -
PartyType– The party type of the caller. UseProposerorAcceptor. -
AcceptorAccountId– The AWS account ID of the party accepting the agreement terms. -
OfferId– The unique identifier of the offer in which the terms are registered in the agreement token. -
Status– The current status of the agreement. Values includeACTIVE,CANCELLED,EXPIRED,RENEWED,REPLACED, andTERMINATED. -
BeforeEndTime– A date used to filter agreements with a date before theendTimeof an agreement. -
AfterEndTime– A date used to filter agreements with a date after theendTimeof an agreement. -
BeforeStartTime– A date used to filter agreements with a date before thestartTimeof an agreement. -
AfterStartTime– A date used to filter agreements with a date after thestartTimeof an agreement. -
BeforeLastUpdateTime– A date used to filter agreements with a date before thelastUpdateTimeof an agreement. -
AfterLastUpdateTime– A date used to filter agreements with a date after thelastUpdateTimeof an agreement. -
AgreementType– The type of agreement. Supported value includesPurchaseAgreement. -
OfferSetId– A unique identifier for the offer set containing this offer. All agreements created from offers in this set include this identifier as context. -
EndTimeBehaviorType– What happens to the agreement when it reaches its end date. Values includeRENEW,REPLACE, andEXPIRE. -
EndTimeBehaviorReasonCode– The reason why the agreement doesn't renew at its end date. Values includePROPOSER_RENEW_OPTED_OUT,ACCEPTOR_RENEW_OPTED_OUT,NO_RENEWAL_TERM, andRENEWAL_LIMIT_EXHAUSTED. -
InitialAgreementId– The unique identifier of the very first agreement in a chain of related agreements. Use this filter to return every agreement in the same chain. -
LicenseArn– The Amazon Resource Name (ARN) of the AWS License Manager license associated with an entitlement granted by the agreement. -
IncludesContactOfType– The type of contact information on file for the agreement. Supported value includesACCEPTOR.
A proposer can use any combination of the preceding filters along with
AgreementType, which is required.The following filter combinations are supported when the
PartyTypeisAcceptor:-
AgreementType -
AgreementType+Status -
AgreementType+EndTime -
AgreementType+Status+EndTime -
AgreementType+ResourceIdentifier -
AgreementType+ResourceIdentifier+EndTime -
AgreementType+ResourceIdentifier+Status -
AgreementType+ResourceIdentifier+Status+EndTime -
AgreementType+ResourceType -
AgreementType+ResourceType+EndTime -
AgreementType+OfferId -
AgreementType+OfferId+EndTime -
AgreementType+OfferId+Status -
AgreementType+OfferId+Status+EndTime -
AgreementType+OfferSetId -
AgreementType+OfferSetId+EndTime -
AgreementType+OfferSetId+Status -
AgreementType+OfferSetId+Status+EndTime
To filter by
EndTime, you can useBeforeEndTime,AfterEndTime, or both. -
-
sort(Optional[Sort], default:None) –An object that contains the
SortByandSortOrderattributes. ForSearchAgreements,SortBysupportsEndTimefor both party types, andStartTimeandLastUpdateTimeonly whenPartyTypeisProposer. The defaultSortByvalue isEndTime. -
max_results(Optional[MaxResults], default:None) –The maximum number of agreements to return in the response.
-
next_token(Optional[NextToken], default:None) –A token to specify where to start pagination.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
InternalServerException–Unexpected error during processing of request.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_marketplace_agreement/_services/async_marketplace_agreement.py
3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 | |