search_agreements
¶
search_agreements(
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = 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/marketplace_agreement.py
3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 | |