send_api_asset
async
¶
send_api_asset(
asset_id: __string,
data_set_id: __string,
revision_id: __string,
*,
config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
body: Optional[__string] = None,
query_string_parameters: Optional[MapOf__string] = None,
request_headers: Optional[MapOf__string] = None,
method: Optional[__string] = None,
path: Optional[__string] = None,
) -> SendApiAssetResponse
This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.
Parameters:
-
body(Optional[__string], default:None) –The request body.
-
query_string_parameters(Optional[MapOf__string], default:None) –Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).
-
asset_id(__string) –Asset ID value for the API request.
-
data_set_id(__string) –Data set ID value for the API request.
-
request_headers(Optional[MapOf__string], default:None) –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.
-
method(Optional[__string], default:None) –HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.
-
path(Optional[__string], default:None) –URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}.
-
revision_id(__string) –Revision ID value for the API request.
Raises:
-
AccessDeniedException–Access to the resource is denied.
-
InternalServerException–An exception occurred with the service.
-
ResourceNotFoundException–The resource couldn't be found.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request was invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 | |