1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateApi`](crate::operation::update_api::builders::UpdateApiFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`api_id(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::api_id) / [`set_api_id(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_api_id):<br>required: **true**<br><p>The API identifier.</p><br>
    ///   - [`api_key_selection_expression(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::api_key_selection_expression) / [`set_api_key_selection_expression(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_api_key_selection_expression):<br>required: **false**<br><p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p><br>
    ///   - [`cors_configuration(Cors)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::cors_configuration) / [`set_cors_configuration(Option<Cors>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_cors_configuration):<br>required: **false**<br><p>A CORS configuration. Supported only for HTTP APIs.</p><br>
    ///   - [`credentials_arn(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::credentials_arn) / [`set_credentials_arn(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_credentials_arn):<br>required: **false**<br><p>This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, 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 arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, don't specify this parameter. Currently, this property is not used for HTTP integrations. If provided, this value replaces the credentials associated with the quick create integration. Supported only for HTTP APIs.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_description):<br>required: **false**<br><p>The description of the API.</p><br>
    ///   - [`disable_schema_validation(bool)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::disable_schema_validation) / [`set_disable_schema_validation(Option<bool>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_disable_schema_validation):<br>required: **false**<br><p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p><br>
    ///   - [`disable_execute_api_endpoint(bool)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::disable_execute_api_endpoint) / [`set_disable_execute_api_endpoint(Option<bool>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_disable_execute_api_endpoint):<br>required: **false**<br><p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_name):<br>required: **false**<br><p>The name of the API.</p><br>
    ///   - [`route_key(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::route_key) / [`set_route_key(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_route_key):<br>required: **false**<br><p>This property is part of quick create. If not specified, the route created using quick create is kept. Otherwise, this value replaces the route key of the quick create route. Additional routes may still be added after the API is updated. Supported only for HTTP APIs.</p><br>
    ///   - [`route_selection_expression(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::route_selection_expression) / [`set_route_selection_expression(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_route_selection_expression):<br>required: **false**<br><p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p><br>
    ///   - [`target(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::target) / [`set_target(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_target):<br>required: **false**<br><p>This property is part of quick create. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. The value provided updates the integration URI and integration type. You can update a quick-created target, but you can't remove it from an API. Supported only for HTTP APIs.</p><br>
    ///   - [`version(impl Into<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::version) / [`set_version(Option<String>)`](crate::operation::update_api::builders::UpdateApiFluentBuilder::set_version):<br>required: **false**<br><p>A version identifier for the API.</p><br>
    /// - On success, responds with [`UpdateApiOutput`](crate::operation::update_api::UpdateApiOutput) with field(s):
    ///   - [`api_endpoint(Option<String>)`](crate::operation::update_api::UpdateApiOutput::api_endpoint): <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
    ///   - [`api_gateway_managed(Option<bool>)`](crate::operation::update_api::UpdateApiOutput::api_gateway_managed): <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
    ///   - [`api_id(Option<String>)`](crate::operation::update_api::UpdateApiOutput::api_id): <p>The API ID.</p>
    ///   - [`api_key_selection_expression(Option<String>)`](crate::operation::update_api::UpdateApiOutput::api_key_selection_expression): <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
    ///   - [`cors_configuration(Option<Cors>)`](crate::operation::update_api::UpdateApiOutput::cors_configuration): <p>A CORS configuration. Supported only for HTTP APIs.</p>
    ///   - [`created_date(Option<DateTime>)`](crate::operation::update_api::UpdateApiOutput::created_date): <p>The timestamp when the API was created.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_api::UpdateApiOutput::description): <p>The description of the API.</p>
    ///   - [`disable_schema_validation(Option<bool>)`](crate::operation::update_api::UpdateApiOutput::disable_schema_validation): <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
    ///   - [`disable_execute_api_endpoint(Option<bool>)`](crate::operation::update_api::UpdateApiOutput::disable_execute_api_endpoint): <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
    ///   - [`import_info(Option<Vec::<String>>)`](crate::operation::update_api::UpdateApiOutput::import_info): <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
    ///   - [`name(Option<String>)`](crate::operation::update_api::UpdateApiOutput::name): <p>The name of the API.</p>
    ///   - [`protocol_type(Option<ProtocolType>)`](crate::operation::update_api::UpdateApiOutput::protocol_type): <p>The API protocol.</p>
    ///   - [`route_selection_expression(Option<String>)`](crate::operation::update_api::UpdateApiOutput::route_selection_expression): <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::update_api::UpdateApiOutput::tags): <p>A collection of tags associated with the API.</p>
    ///   - [`version(Option<String>)`](crate::operation::update_api::UpdateApiOutput::version): <p>A version identifier for the API.</p>
    ///   - [`warnings(Option<Vec::<String>>)`](crate::operation::update_api::UpdateApiOutput::warnings): <p>The warning messages reported when failonwarnings is turned on during API import.</p>
    /// - On failure, responds with [`SdkError<UpdateApiError>`](crate::operation::update_api::UpdateApiError)
    pub fn update_api(&self) -> crate::operation::update_api::builders::UpdateApiFluentBuilder {
        crate::operation::update_api::builders::UpdateApiFluentBuilder::new(self.handle.clone())
    }
}