#[non_exhaustive]pub struct AwsApiGatewayV2ApiDetails {
pub api_endpoint: Option<String>,
pub api_id: Option<String>,
pub api_key_selection_expression: Option<String>,
pub created_date: Option<String>,
pub description: Option<String>,
pub version: Option<String>,
pub name: Option<String>,
pub protocol_type: Option<String>,
pub route_selection_expression: Option<String>,
pub cors_configuration: Option<AwsCorsConfiguration>,
}
Expand description
Contains information about a version 2 API in Amazon API Gateway.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_endpoint: Option<String>
The URI of the API.
Uses the format
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
api_id: Option<String>
The identifier of the API.
api_key_selection_expression: Option<String>
An API key selection expression. Supported only for WebSocket APIs.
created_date: Option<String>
Indicates when the API was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
description: Option<String>
A description of the API.
version: Option<String>
The version identifier for the API.
name: Option<String>
The name of the API.
protocol_type: Option<String>
The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
route_selection_expression: Option<String>
The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP APIs.
For WebSocket APIs, there is no default value.
cors_configuration: Option<AwsCorsConfiguration>
A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
Implementations§
source§impl AwsApiGatewayV2ApiDetails
impl AwsApiGatewayV2ApiDetails
sourcepub fn api_endpoint(&self) -> Option<&str>
pub fn api_endpoint(&self) -> Option<&str>
The URI of the API.
Uses the format
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
sourcepub fn api_key_selection_expression(&self) -> Option<&str>
pub fn api_key_selection_expression(&self) -> Option<&str>
An API key selection expression. Supported only for WebSocket APIs.
sourcepub fn created_date(&self) -> Option<&str>
pub fn created_date(&self) -> Option<&str>
Indicates when the API was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the API.
sourcepub fn protocol_type(&self) -> Option<&str>
pub fn protocol_type(&self) -> Option<&str>
The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
sourcepub fn route_selection_expression(&self) -> Option<&str>
pub fn route_selection_expression(&self) -> Option<&str>
The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP APIs.
For WebSocket APIs, there is no default value.
sourcepub fn cors_configuration(&self) -> Option<&AwsCorsConfiguration>
pub fn cors_configuration(&self) -> Option<&AwsCorsConfiguration>
A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
source§impl AwsApiGatewayV2ApiDetails
impl AwsApiGatewayV2ApiDetails
sourcepub fn builder() -> AwsApiGatewayV2ApiDetailsBuilder
pub fn builder() -> AwsApiGatewayV2ApiDetailsBuilder
Creates a new builder-style object to manufacture AwsApiGatewayV2ApiDetails
.
Trait Implementations§
source§impl Clone for AwsApiGatewayV2ApiDetails
impl Clone for AwsApiGatewayV2ApiDetails
source§fn clone(&self) -> AwsApiGatewayV2ApiDetails
fn clone(&self) -> AwsApiGatewayV2ApiDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsApiGatewayV2ApiDetails
impl Debug for AwsApiGatewayV2ApiDetails
source§impl PartialEq for AwsApiGatewayV2ApiDetails
impl PartialEq for AwsApiGatewayV2ApiDetails
source§fn eq(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
fn eq(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
self
and other
values to be equal, and is used
by ==
.