#[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. 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
sourceimpl 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. 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.
sourceimpl AwsApiGatewayV2ApiDetails
impl AwsApiGatewayV2ApiDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsApiGatewayV2ApiDetails.
Trait Implementations
sourceimpl Clone for AwsApiGatewayV2ApiDetails
impl Clone for AwsApiGatewayV2ApiDetails
sourcefn clone(&self) -> AwsApiGatewayV2ApiDetails
fn clone(&self) -> AwsApiGatewayV2ApiDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AwsApiGatewayV2ApiDetails
impl Debug for AwsApiGatewayV2ApiDetails
sourceimpl PartialEq<AwsApiGatewayV2ApiDetails> for AwsApiGatewayV2ApiDetails
impl PartialEq<AwsApiGatewayV2ApiDetails> for AwsApiGatewayV2ApiDetails
sourcefn eq(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
fn eq(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
fn ne(&self, other: &AwsApiGatewayV2ApiDetails) -> bool
This method tests for !=.
impl StructuralPartialEq for AwsApiGatewayV2ApiDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsApiGatewayV2ApiDetails
impl Send for AwsApiGatewayV2ApiDetails
impl Sync for AwsApiGatewayV2ApiDetails
impl Unpin for AwsApiGatewayV2ApiDetails
impl UnwindSafe for AwsApiGatewayV2ApiDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more