list_contractual_investments
¶
list_contractual_investments(
contract_arn: ArnString,
investment_summary_id: IdentifierString,
*,
config_overrides: Optional[BillingClientConfig] = 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
>>> 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/billing.py
1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 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 | |