aws_sdk_apigatewayv2/client/
get_api.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 [`GetApi`](crate::operation::get_api::builders::GetApiFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`api_id(impl Into<String>)`](crate::operation::get_api::builders::GetApiFluentBuilder::api_id) / [`set_api_id(Option<String>)`](crate::operation::get_api::builders::GetApiFluentBuilder::set_api_id):<br>required: **true**<br><p>The API identifier.</p><br>
7    /// - On success, responds with [`GetApiOutput`](crate::operation::get_api::GetApiOutput) with field(s):
8    ///   - [`api_endpoint(Option<String>)`](crate::operation::get_api::GetApiOutput::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>
9    ///   - [`api_gateway_managed(Option<bool>)`](crate::operation::get_api::GetApiOutput::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>
10    ///   - [`api_id(Option<String>)`](crate::operation::get_api::GetApiOutput::api_id): <p>The API ID.</p>
11    ///   - [`api_key_selection_expression(Option<String>)`](crate::operation::get_api::GetApiOutput::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>
12    ///   - [`cors_configuration(Option<Cors>)`](crate::operation::get_api::GetApiOutput::cors_configuration): <p>A CORS configuration. Supported only for HTTP APIs.</p>
13    ///   - [`created_date(Option<DateTime>)`](crate::operation::get_api::GetApiOutput::created_date): <p>The timestamp when the API was created.</p>
14    ///   - [`description(Option<String>)`](crate::operation::get_api::GetApiOutput::description): <p>The description of the API.</p>
15    ///   - [`disable_schema_validation(Option<bool>)`](crate::operation::get_api::GetApiOutput::disable_schema_validation): <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
16    ///   - [`disable_execute_api_endpoint(Option<bool>)`](crate::operation::get_api::GetApiOutput::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>
17    ///   - [`import_info(Option<Vec::<String>>)`](crate::operation::get_api::GetApiOutput::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>
18    ///   - [`ip_address_type(Option<IpAddressType>)`](crate::operation::get_api::GetApiOutput::ip_address_type): <p>The IP address types that can invoke the API.</p>
19    ///   - [`name(Option<String>)`](crate::operation::get_api::GetApiOutput::name): <p>The name of the API.</p>
20    ///   - [`protocol_type(Option<ProtocolType>)`](crate::operation::get_api::GetApiOutput::protocol_type): <p>The API protocol.</p>
21    ///   - [`route_selection_expression(Option<String>)`](crate::operation::get_api::GetApiOutput::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>
22    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_api::GetApiOutput::tags): <p>A collection of tags associated with the API.</p>
23    ///   - [`version(Option<String>)`](crate::operation::get_api::GetApiOutput::version): <p>A version identifier for the API.</p>
24    ///   - [`warnings(Option<Vec::<String>>)`](crate::operation::get_api::GetApiOutput::warnings): <p>The warning messages reported when failonwarnings is turned on during API import.</p>
25    /// - On failure, responds with [`SdkError<GetApiError>`](crate::operation::get_api::GetApiError)
26    pub fn get_api(&self) -> crate::operation::get_api::builders::GetApiFluentBuilder {
27        crate::operation::get_api::builders::GetApiFluentBuilder::new(self.handle.clone())
28    }
29}