[][src]Struct rusoto_apigateway::PutIntegrationRequest

pub struct PutIntegrationRequest {
    pub cache_key_parameters: Option<Vec<String>>,
    pub cache_namespace: Option<String>,
    pub connection_id: Option<String>,
    pub connection_type: Option<String>,
    pub content_handling: Option<String>,
    pub credentials: Option<String>,
    pub http_method: String,
    pub integration_http_method: Option<String>,
    pub passthrough_behavior: Option<String>,
    pub request_parameters: Option<HashMap<String, String>>,
    pub request_templates: Option<HashMap<String, String>>,
    pub resource_id: String,
    pub rest_api_id: String,
    pub timeout_in_millis: Option<i64>,
    pub type_: String,
    pub uri: Option<String>,
}

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:

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.

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.

Trait Implementations

impl PartialEq<PutIntegrationRequest> for PutIntegrationRequest[src]

impl Default for PutIntegrationRequest[src]

impl Clone for 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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self