list_contractual_investments
async
¶
list_contractual_investments(
contract_arn: ArnString,
investment_summary_id: IdentifierString,
*,
config_overrides: Optional[AsyncBillingClientConfig] = None,
next_token: Optional[PageToken] = None,
max_results: Optional[int] = None,
) -> ListContractualInvestmentsResponse
Lists the investments within a specific investment summary. This operation is read-only and paginated.
Parameters:
-
contract_arn(ArnString) –The Amazon Resource Name (ARN) of the contract that contains the investment summary.
-
investment_summary_id(IdentifierString) –The identifier of the investment summary whose investments you want to list.
-
next_token(Optional[PageToken], default:None) –The pagination token that indicates the next set of results to retrieve.
-
max_results(Optional[int], default:None) –The maximum number of investments to return in a single call. Minimum value of 1, maximum value of 100.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The request processing failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The specified ARN in the request doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke ListContractualInvestments
>>> await client.list_contractual_investments(contract_arn='arn:aws:billing::123456789012:contract/1a2b3c4d-5e6f-7a8b-9c0d-111122223333', investment_summary_id='Example-Investment-Summary-Id', max_results=100)
Source code in docs_src/capo_billing/_services/async_billing.py
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 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 | |