aws_sdk_apigateway/client/
update_integration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateIntegration`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7    ///   - [`resource_id(impl Into<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::set_resource_id):<br>required: **true**<br><p>Represents an update integration request's resource identifier.</p><br>
8    ///   - [`http_method(impl Into<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::http_method) / [`set_http_method(Option<String>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::set_http_method):<br>required: **true**<br><p>Represents an update integration request's HTTP method.</p><br>
9    ///   - [`patch_operations(PatchOperation)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
10    /// - On success, responds with [`UpdateIntegrationOutput`](crate::operation::update_integration::UpdateIntegrationOutput) with field(s):
11    ///   - [`r#type(Option<IntegrationType>)`](crate::operation::update_integration::UpdateIntegrationOutput::type): <p>Specifies an API method integration type. The valid value is one of the following:</p> <p>For the HTTP and HTTP proxy integrations, each integration can specify a protocol (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.</p>
12    ///   - [`http_method(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::http_method): <p>Specifies the integration's HTTP method type. For the Type property, if you specify <code>MOCK</code>, this property is optional. For Lambda integrations, you must set the integration method to <code>POST</code>. For all other types, you must specify this property.</p>
13    ///   - [`uri(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::uri): <p>Specifies Uniform Resource Identifier (URI) of the integration endpoint.</p> <p>For <code>HTTP</code> or <code>HTTP_PROXY</code> integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification for standard integrations. If <code>connectionType</code> is <code>VPC_LINK</code> specify the Network Load Balancer DNS name. For <code>AWS</code> or <code>AWS_PROXY</code> integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}</code>. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast host-name lookup. action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an Amazon Web Services service path-based API. The ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code></p>
14    ///   - [`connection_type(Option<ConnectionType>)`](crate::operation::update_integration::UpdateIntegrationOutput::connection_type): <p>The type of the network connection to the integration endpoint. The valid value is <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> for private connections between API Gateway and a network load balancer in a VPC. The default value is <code>INTERNET</code>.</p>
15    ///   - [`connection_id(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::connection_id): <p>The ID of the VpcLink used for the integration when <code>connectionType=VPC_LINK</code> and undefined, otherwise.</p>
16    ///   - [`credentials(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::credentials): <p>Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string <code>arn:aws:iam::\*:user/\*</code>. To use resource-based permissions on supported Amazon Web Services services, specify null.</p>
17    ///   - [`request_parameters(Option<HashMap::<String, String>>)`](crate::operation::update_integration::UpdateIntegrationOutput::request_parameters): <p>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 <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> must be a valid and unique method request parameter name.</p>
18    ///   - [`request_templates(Option<HashMap::<String, String>>)`](crate::operation::update_integration::UpdateIntegrationOutput::request_templates): <p>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.</p>
19    ///   - [`passthrough_behavior(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::passthrough_behavior): <p>Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in <code>requestTemplates</code>. The valid value is one of the following: <code>WHEN_NO_MATCH</code>: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request. <code>WHEN_NO_TEMPLATES</code>: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. <code>NEVER</code>: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.</p>
20    ///   - [`content_handling(Option<ContentHandlingStrategy>)`](crate::operation::update_integration::UpdateIntegrationOutput::content_handling): <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p> <p>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 <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
21    ///   - [`timeout_in_millis(i32)`](crate::operation::update_integration::UpdateIntegrationOutput::timeout_in_millis): <p>Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.</p>
22    ///   - [`cache_namespace(Option<String>)`](crate::operation::update_integration::UpdateIntegrationOutput::cache_namespace): <p>Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> across resources to return the same cached data for requests to different resources.</p>
23    ///   - [`cache_key_parameters(Option<Vec::<String>>)`](crate::operation::update_integration::UpdateIntegrationOutput::cache_key_parameters): <p>A list of request parameters whose values API Gateway caches. To be valid values for <code>cacheKeyParameters</code>, these parameters must also be specified for Method <code>requestParameters</code>.</p>
24    ///   - [`integration_responses(Option<HashMap::<String, IntegrationResponse>>)`](crate::operation::update_integration::UpdateIntegrationOutput::integration_responses): <p>Specifies the integration's responses.</p>
25    ///   - [`tls_config(Option<TlsConfig>)`](crate::operation::update_integration::UpdateIntegrationOutput::tls_config): <p>Specifies the TLS configuration for an integration.</p>
26    /// - On failure, responds with [`SdkError<UpdateIntegrationError>`](crate::operation::update_integration::UpdateIntegrationError)
27    pub fn update_integration(&self) -> crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder {
28        crate::operation::update_integration::builders::UpdateIntegrationFluentBuilder::new(self.handle.clone())
29    }
30}