DataExchange / Client / send_api_asset

send_api_asset#

DataExchange.Client.send_api_asset(**kwargs)#

This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.

See also: AWS API Documentation

Request Syntax

response = client.send_api_asset(
    Body='string',
    QueryStringParameters={
        'string': 'string'
    },
    AssetId='string',
    DataSetId='string',
    RequestHeaders={
        'string': 'string'
    },
    Method='string',
    Path='string',
    RevisionId='string'
)
Parameters:
  • Body (string) – The request body.

  • QueryStringParameters (dict) –

    Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).

    • (string) –

      • (string) –

  • AssetId (string) –

    [REQUIRED]

    Asset ID value for the API request.

  • DataSetId (string) –

    [REQUIRED]

    Data set ID value for the API request.

  • RequestHeaders (dict) –

    Any header value prefixed with x-amzn-dataexchange-header- will have that stripped before sending the Asset API request. Use this when you want to override a header that AWS Data Exchange uses. Alternatively, you can use the header without a prefix to the HTTP request.

    • (string) –

      • (string) –

  • Method (string) – HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.

  • Path (string) – URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}.

  • RevisionId (string) –

    [REQUIRED]

    Revision ID value for the API request.

Return type:

dict

Returns:

Response Syntax

{
    'Body': 'string',
    'ResponseHeaders': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • Body (string) –

      The response body from the underlying API tracked by the API asset.

    • ResponseHeaders (dict) –

      The response headers from the underlying API tracked by the API asset.

      • (string) –

        • (string) –

Exceptions