BillingConductor / Client / batch_disassociate_resources_from_custom_line_item

batch_disassociate_resources_from_custom_line_item#

BillingConductor.Client.batch_disassociate_resources_from_custom_line_item(**kwargs)#

Disassociates a batch of resources from a percentage custom line item.

See also: AWS API Documentation

Request Syntax

response = client.batch_disassociate_resources_from_custom_line_item(
    TargetArn='string',
    ResourceArns=[
        'string',
    ],
    BillingPeriodRange={
        'InclusiveStartBillingPeriod': 'string',
        'ExclusiveEndBillingPeriod': 'string'
    }
)
Parameters:
  • TargetArn (string) –

    [REQUIRED]

    A percentage custom line item ARN to disassociate the resources from.

  • ResourceArns (list) –

    [REQUIRED]

    A list containing the ARNs of resources to be disassociated.

    • (string) –

  • BillingPeriodRange (dict) –

    The billing period range in which the custom line item request will be applied.

    • InclusiveStartBillingPeriod (string) – [REQUIRED]

      The inclusive start billing period that defines a billing period range where a custom line is applied.

    • ExclusiveEndBillingPeriod (string) –

      The inclusive end billing period that defines a billing period range where a custom line is applied.

Return type:

dict

Returns:

Response Syntax

{
    'SuccessfullyDisassociatedResources': [
        {
            'Arn': 'string',
            'Error': {
                'Message': 'string',
                'Reason': 'INVALID_ARN'|'SERVICE_LIMIT_EXCEEDED'|'ILLEGAL_CUSTOMLINEITEM'|'INTERNAL_SERVER_EXCEPTION'|'INVALID_BILLING_PERIOD_RANGE'
            }
        },
    ],
    'FailedDisassociatedResources': [
        {
            'Arn': 'string',
            'Error': {
                'Message': 'string',
                'Reason': 'INVALID_ARN'|'SERVICE_LIMIT_EXCEEDED'|'ILLEGAL_CUSTOMLINEITEM'|'INTERNAL_SERVER_EXCEPTION'|'INVALID_BILLING_PERIOD_RANGE'
            }
        },
    ]
}

Response Structure

  • (dict) –

    • SuccessfullyDisassociatedResources (list) –

      A list of DisassociateResourceResponseElement for each resource that’s been disassociated from a percentage custom line item successfully.

      • (dict) –

        A resource disassociation result for a percentage custom line item.

        • Arn (string) –

          The resource ARN that was disassociated from the custom line item.

        • Error (dict) –

          An AssociateResourceError that’s shown if the resource disassociation fails.

          • Message (string) –

            The reason why the resource association failed.

          • Reason (string) –

            A static error code that’s used to classify the type of failure.

    • FailedDisassociatedResources (list) –

      A list of DisassociateResourceResponseElement for each resource that failed disassociation from a percentage custom line item.

      • (dict) –

        A resource disassociation result for a percentage custom line item.

        • Arn (string) –

          The resource ARN that was disassociated from the custom line item.

        • Error (dict) –

          An AssociateResourceError that’s shown if the resource disassociation fails.

          • Message (string) –

            The reason why the resource association failed.

          • Reason (string) –

            A static error code that’s used to classify the type of failure.

Exceptions

  • BillingConductor.Client.exceptions.ThrottlingException

  • BillingConductor.Client.exceptions.ConflictException

  • BillingConductor.Client.exceptions.AccessDeniedException

  • BillingConductor.Client.exceptions.ValidationException

  • BillingConductor.Client.exceptions.InternalServerException

  • BillingConductor.Client.exceptions.ResourceNotFoundException