list_agreement_approvals
¶
list_agreement_approvals(
party_type: AgreementApprovalPartyType,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
catalog: Optional[Catalog] = None,
agreement_request_id: Optional[AgreementRequestId] = None,
approval_type: Optional[AgreementApprovalType] = None,
status: Optional[AgreementApprovalStatus] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListAgreementApprovalsOutput
Lists agreement approvals available to you as a buyer. Use REQUESTER as the partyType to list the agreement approvals that your account started. Use AWS_ORGANIZATION_ADMIN to list the agreement approvals in your AWS organization, if your account is the management account or a delegated administrator of the organization. You can filter the results by agreement request, approval type, and status.
Parameters:
-
catalog(Optional[Catalog], default:None) –An optional parameter to filter agreement approvals by catalog (for example,
AWSMarketplace). -
party_type(AgreementApprovalPartyType) –The party type for the agreement approvals. Required parameter. Use
REQUESTERto list agreement approvals for agreement requests that you created, orAWS_ORGANIZATION_ADMINto list agreement approvals as an AWS Organizations administrator. -
agreement_request_id(Optional[AgreementRequestId], default:None) –An optional parameter to filter agreement approvals for a specific agreement request.
-
approval_type(Optional[AgreementApprovalType], default:None) –An optional parameter to filter agreement approvals by type. The only valid value is
BUYER_AGREEMENT_APPROVAL. -
status(Optional[AgreementApprovalStatus], default:None) –An optional parameter to filter agreement approvals by status. Valid values include
PENDING_APPROVAL,APPROVED,REJECTED,EXPIRED, andCANCELLED. If you don't specify a status, agreement approvals of all statuses are returned. -
max_results(Optional[MaxResults], default:None) –The maximum number of agreement approvals to return in a single response (1-50). Default is 20.
-
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.
Examples:
List agreement approvals
>>> client.list_agreement_approvals(party_type='REQUESTER', status='PENDING_APPROVAL', max_results=10)
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 | |