[−][src]Struct rusoto_apigateway::PutIntegrationRequest
Sets up a method's integration.
Fields
cache_key_parameters: Option<Vec<String>>Specifies a put integration input's cache key parameters.
cache_namespace: Option<String>Specifies a put integration input's cache namespace.
connection_id: Option<String>The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.
connection_type: Option<String>The type of the network connection to the integration endpoint. The valid value is INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and a network load balancer in a VPC. The default value is INTERNET.
content_handling: Option<String>Specifies how to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:
CONVERT_TO_BINARY: Converts a request payload from a Base64-encoded string to the corresponding binary blob.CONVERT_TO_TEXT: Converts a request payload from a binary blob to a Base64-encoded string.
If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.
credentials: Option<String>Specifies whether credentials are required for a put integration.
http_method: String[Required] Specifies a put integration request's HTTP method.
integration_http_method: Option<String>Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.
passthrough_behavior: Option<String>Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHENNOMATCH, WHENNOTEMPLATES, and NEVER.
WHENNOMATCHpasses the request body for unmapped content types through to the integration back end without transformation.NEVERrejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.WHENNOTEMPLATESallows pass-through when the integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.
request_parameters: Option<HashMap<String, String>>A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.
request_templates: Option<HashMap<String, String>>Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.
resource_id: String[Required] Specifies a put integration request's resource ID.
rest_api_id: String[Required] The string identifier of the associated RestApi.
timeout_in_millis: Option<i64>Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
type_: String[Required] Specifies a put integration input's type.
uri: Option<String>Specifies Uniform Resource Identifier (URI) of the integration endpoint.
For
HTTPorHTTPPROXYintegrations, the URI must be a fully formed, encoded HTTP(S) URL according to the <a target="blank" href="https://en.wikipedia.org/wiki/UniformResourceIdentifier">RFC-3986 specification, for either standard integration, whereconnectionTypeis notVPCLINK, or private integration, whereconnectionTypeisVPCLINK. For a private HTTP integration, the URI is not used for routing.For
AWSorAWSPROXYintegrations, the URI is of the formarn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{serviceapi}. Here,{Region}is the API Gateway region (e.g.,us-east-1);{service}is the name of the integrated AWS service (e.g.,s3); and{subdomain}is a designated subdomain supported by certain AWS service for fast host-name lookup.actioncan be used for an AWS service action-based API, using anAction={name}&{p1}={v1}&p2={v2}...query string. The ensuing{serviceapi}refers to a supported action{name}plus any required input parameters. Alternatively,pathcan be used for an AWS service path-based API. The ensuingserviceapirefers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API ofGetObject, theurican be eitherarn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}orarn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
Trait Implementations
impl PartialEq<PutIntegrationRequest> for PutIntegrationRequest[src]
fn eq(&self, other: &PutIntegrationRequest) -> bool[src]
fn ne(&self, other: &PutIntegrationRequest) -> bool[src]
impl Default for PutIntegrationRequest[src]
fn default() -> PutIntegrationRequest[src]
impl Clone for PutIntegrationRequest[src]
fn clone(&self) -> PutIntegrationRequest[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for PutIntegrationRequest[src]
impl Serialize for PutIntegrationRequest[src]
Auto Trait Implementations
impl Send for PutIntegrationRequest
impl Sync for PutIntegrationRequest
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>, [src]
T: From<U>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self