EC2 / Client / modify_vpc_endpoint_payer_responsibility

modify_vpc_endpoint_payer_responsibility

EC2.Client.modify_vpc_endpoint_payer_responsibility(**kwargs)

Modifies the billing account for VPC endpoint usage/charges.

See also: AWS API Documentation

Request Syntax

response = client.modify_vpc_endpoint_payer_responsibility(
    DryRun=True|False,
    ServiceId='string',
    VpcEndpointId='string',
    PayerResponsibility='vpc-endpoint-account'|'vpc-endpoint-service-account',
    Scope='vpc-endpoint-charges'
)
Parameters:
  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • ServiceId (string) – The ID of the VPC endpoint service.

  • VpcEndpointId (string) –

    [REQUIRED]

    The ID of the VPC endpoint.

  • PayerResponsibility (string) –

    [REQUIRED]

    The Amazon Web Services account to which the usage of VPC endpoint is charged.

  • Scope (string) –

    [REQUIRED]

    The scope of usage/charges for which the billing account is being modified.

Return type:

dict

Returns:

Response Syntax

{
    'VpcEndpointId': 'string',
    'PayerResponsibilities': [
        {
            'Scope': 'vpc-endpoint-charges',
            'PayerResponsibilityType': 'vpc-endpoint-account'|'vpc-endpoint-service-account'
        },
    ]
}

Response Structure

  • (dict) –

    • VpcEndpointId (string) –

      The ID of the VPC endpoint.

    • PayerResponsibilities (list) –

      The payer responsibility settings for the VPC endpoint.

      • (dict) –

        Describes a payer responsibility setting for a VPC endpoint.

        • Scope (string) –

          The scope of usage/charges.

        • PayerResponsibilityType (string) –

          The Amazon Web Services account to which the usage is charged.