BillingConductor.Client.
list_resources_associated_to_custom_line_item
(**kwargs)¶List the resources that are associated to a custom line item.
See also: AWS API Documentation
Request Syntax
response = client.list_resources_associated_to_custom_line_item(
BillingPeriod='string',
Arn='string',
MaxResults=123,
NextToken='string',
Filters={
'Relationship': 'PARENT'|'CHILD'
}
)
[REQUIRED]
The ARN of the custom line item for which the resource associations will be listed.
(Optional) A ListResourcesAssociatedToCustomLineItemFilter
that can specify the types of resources that should be retrieved.
The type of relationship between the custom line item and the associated resource.
dict
Response Syntax
{
'Arn': 'string',
'AssociatedResources': [
{
'Arn': 'string',
'Relationship': 'PARENT'|'CHILD',
'EndBillingPeriod': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Arn (string) --
The custom line item ARN for which the resource associations are listed.
AssociatedResources (list) --
A list of ListResourcesAssociatedToCustomLineItemResponseElement
for each resource association retrieved.
(dict) --
A representation of a resource association for a custom line item.
Arn (string) --
The ARN of the associated resource.
Relationship (string) --
The type of relationship between the custom line item and the associated resource.
EndBillingPeriod (string) --
The end billing period of the associated resource.
NextToken (string) --
The pagination token to be used in subsequent requests to retrieve additional results.
Exceptions
BillingConductor.Client.exceptions.ThrottlingException
BillingConductor.Client.exceptions.AccessDeniedException
BillingConductor.Client.exceptions.ValidationException
BillingConductor.Client.exceptions.InternalServerException
BillingConductor.Client.exceptions.ResourceNotFoundException