AgreementService / Paginator / SearchAgreements
SearchAgreements¶
- class AgreementService.Paginator.SearchAgreements¶
paginator = client.get_paginator('search_agreements')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
AgreementService.Client.search_agreements().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( catalog='string', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], sort={ 'sortBy': 'string', 'sortOrder': 'ASCENDING'|'DESCENDING' }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
catalog (string) – The catalog in which the agreement was created.
filters (list) –
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.
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:AgreementTypeAgreementType+StatusAgreementType+EndTimeAgreementType+Status+EndTimeAgreementType+ResourceIdentifierAgreementType+ResourceIdentifier+EndTimeAgreementType+ResourceIdentifier+StatusAgreementType+ResourceIdentifier+Status+EndTimeAgreementType+ResourceTypeAgreementType+ResourceType+EndTimeAgreementType+OfferIdAgreementType+OfferId+EndTimeAgreementType+OfferId+StatusAgreementType+OfferId+Status+EndTimeAgreementType+OfferSetIdAgreementType+OfferSetId+EndTimeAgreementType+OfferSetId+StatusAgreementType+OfferSetId+Status+EndTime
Note
To filter by
EndTime, you can useBeforeEndTime,AfterEndTime, or both.(dict) –
The filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as
offerIdorproductId.name (string) –
The name of the filter.
values (list) –
The filter value.
(string) –
sort (dict) –
An object that contains the
SortByandSortOrderattributes. ForSearchAgreements,SortBysupportsEndTimefor both party types, andStartTimeandLastUpdateTimeonly whenPartyTypeisProposer. The defaultSortByvalue isEndTime.sortBy (string) –
The attribute on which the data is grouped, which can be
EndTime,StartTime, orLastUpdateTime.StartTimeandLastUpdateTimeare supported only whenPartyTypeisProposer. The default value isEndTime.sortOrder (string) –
The sorting order, which can be
ASCENDINGorDESCENDING. The default value isASCENDING.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'agreementViewSummaries': [ { 'agreementId': 'string', 'acceptanceTime': datetime(2015, 1, 1), 'startTime': datetime(2015, 1, 1), 'endTime': datetime(2015, 1, 1), 'lastUpdateTime': datetime(2015, 1, 1), 'agreementType': 'string', 'acceptor': { 'accountId': 'string' }, 'proposer': { 'accountId': 'string' }, 'proposalSummary': { 'resources': [ { 'id': 'string', 'type': 'string' }, ], 'offerId': 'string', 'offerSetId': 'string' }, 'status': 'ACTIVE'|'ARCHIVED'|'CANCELLED'|'EXPIRED'|'RENEWED'|'REPLACED'|'ROLLED_BACK'|'SUPERSEDED'|'TERMINATED', 'entitlements': [ { 'licenseArn': 'string' }, ], 'initialAgreementId': 'string', 'endTimeBehaviorType': 'RENEW'|'REPLACE'|'EXPIRE', 'endTimeBehaviorReasonCode': 'PROPOSER_RENEW_OPTED_OUT'|'ACCEPTOR_RENEW_OPTED_OUT'|'NO_RENEWAL_TERM'|'RENEWAL_LIMIT_EXHAUSTED' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
agreementViewSummaries (list) –
A summary of the agreement, including top-level attributes (for example, the agreement ID, proposer, and acceptor).
(dict) –
A summary of the agreement, including top-level attributes (for example, the agreement ID, proposer, and acceptor).
agreementId (string) –
The unique identifier of the agreement.
acceptanceTime (datetime) –
The date and time that the agreement was accepted.
startTime (datetime) –
The date and time when the agreement starts.
endTime (datetime) –
The date and time when the agreement ends. The field is
nullfor pay-as-you-go agreements, which don’t have end dates.lastUpdateTime (datetime) –
The date and time when the agreement was last updated. An agreement is updated when any of its attributes or accepted terms change. Amendments, renewals, and a party changing whether the agreement renews are all examples.
Use the
BeforeLastUpdateTimeandAfterLastUpdateTimefilters to search on this value, andLastUpdateTimeas theSortByvalue to sort by it. Sorting byLastUpdateTimeis supported only whenPartyTypeisProposer.agreementType (string) –
The type of agreement.
acceptor (dict) –
Details of the party accepting the agreement terms. This is commonly the buyer for
PurchaseAgreement.accountId (string) –
The AWS account ID of the acceptor.
proposer (dict) –
Details of the party proposing the agreement terms, most commonly the seller for
PurchaseAgreement.accountId (string) –
The AWS account ID of the proposer.
proposalSummary (dict) –
A summary of the proposal
resources (list) –
The list of resources involved in the agreement.
(dict) –
The list of resources involved in the agreement.
id (string) –
The unique identifier of the resource.
Note
We mention the term resource, which is most commonly a product, so a
resourceIdis also aproductId.type (string) –
Type of the resource, which is the product (for example,
SaaSProduct,AmiProduct,ContainerProduct).
offerId (string) –
The unique identifier of the offer in AWS Marketplace.
offerSetId (string) –
A unique identifier for the offer set containing this offer. All agreements created from offers in this set include this identifier as context.
status (string) –
The current status of the agreement.
entitlements (list) –
A list of entitlements associated with the agreement.
(dict) –
Represents an entitlement associated with an agreement.
licenseArn (string) –
The Amazon Resource Name (ARN) of the AWS License Manager license associated with the entitlement.
initialAgreementId (string) –
The unique identifier of the very first agreement in a chain of related agreements, such as renewals or replacements. It stays the same across all agreements in that chain, which lets you trace an agreement back to the original. You can also use it as the
InitialAgreementIdfilter value to return every agreement in the same chain.endTimeBehaviorType (string) –
The behavior of the agreement when it reaches its end date. The field is
nullfor agreements that have no end date, because those agreements never reach an end time.Types include:
RENEW– A new agreement is created from the accepted terms of this agreement.REPLACE– A new agreement is created from a different offer than the one this agreement was created from. This happens, for example, when a private offer reaches its end date and the acceptor transitions to the public offer for the product.EXPIRE– The agreement ends and isn’t renewed or replaced.
endTimeBehaviorReasonCode (string) –
The reason why the agreement doesn’t renew at its end date. The field is
nullwhen the agreement renews.More than one reason can apply to the same agreement. When that happens, the operation returns only one reason code, and
PROPOSER_RENEW_OPTED_OUTtakes precedence over all others.The
EnableAutoRenewfield reflects only the acceptor’s preference, and doesn’t reflect the other reasons an agreement might not renew.Reason codes include:
PROPOSER_RENEW_OPTED_OUT– The proposer opted out of renewing the agreement.ACCEPTOR_RENEW_OPTED_OUT– The acceptor opted out of renewing the agreement.NO_RENEWAL_TERM– The accepted terms of the agreement don’t include a renewal term, which is required for an agreement to renew.RENEWAL_LIMIT_EXHAUSTED– The agreement reached the maximum number of renewals allowed by its renewal term.
NextToken (string) –
A token to resume pagination.