ApplicationCostProfiler / Client / import_application_usage

import_application_usage#

ApplicationCostProfiler.Client.import_application_usage(**kwargs)#

Ingests application usage data from Amazon Simple Storage Service (Amazon S3).

The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing asynchronously.

See also: AWS API Documentation

Request Syntax

response = client.import_application_usage(
    sourceS3Location={
        'bucket': 'string',
        'key': 'string',
        'region': 'ap-east-1'|'me-south-1'|'eu-south-1'|'af-south-1'
    }
)
Parameters:

sourceS3Location (dict) –

[REQUIRED]

Amazon S3 location to import application usage data from.

  • bucket (string) – [REQUIRED]

    Name of the bucket.

  • key (string) – [REQUIRED]

    Key of the object.

  • region (string) –

    Region of the bucket. Only required for Regions that are disabled by default. For more infomration about Regions that are disabled by default, see Enabling a Region in the AWS General Reference guide.

Return type:

dict

Returns:

Response Syntax

{
    'importId': 'string'
}

Response Structure

  • (dict) –

    • importId (string) –

      ID of the import request.

Exceptions

  • ApplicationCostProfiler.Client.exceptions.InternalServerException

  • ApplicationCostProfiler.Client.exceptions.ThrottlingException

  • ApplicationCostProfiler.Client.exceptions.ValidationException

  • ApplicationCostProfiler.Client.exceptions.AccessDeniedException