Struct aws_sdk_apigatewayv2::client::fluent_builders::ExportApi
source · [−]pub struct ExportApi { /* private fields */ }Expand description
Fluent builder constructing a request to ExportApi.
Implementations
sourceimpl ExportApi
impl ExportApi
sourcepub async fn send(self) -> Result<ExportApiOutput, SdkError<ExportApiError>>
pub async fn send(self) -> Result<ExportApiOutput, SdkError<ExportApiError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API identifier.
sourcepub fn export_version(self, input: impl Into<String>) -> Self
pub fn export_version(self, input: impl Into<String>) -> Self
The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
sourcepub fn set_export_version(self, input: Option<String>) -> Self
pub fn set_export_version(self, input: Option<String>) -> Self
The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
sourcepub fn include_extensions(self, input: bool) -> Self
pub fn include_extensions(self, input: bool) -> Self
Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
sourcepub fn set_include_extensions(self, input: Option<bool>) -> Self
pub fn set_include_extensions(self, input: Option<bool>) -> Self
Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
sourcepub fn output_type(self, input: impl Into<String>) -> Self
pub fn output_type(self, input: impl Into<String>) -> Self
The output type of the exported definition file. Valid values are JSON and YAML.
sourcepub fn set_output_type(self, input: Option<String>) -> Self
pub fn set_output_type(self, input: Option<String>) -> Self
The output type of the exported definition file. Valid values are JSON and YAML.
sourcepub fn specification(self, input: impl Into<String>) -> Self
pub fn specification(self, input: impl Into<String>) -> Self
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
sourcepub fn set_specification(self, input: Option<String>) -> Self
pub fn set_specification(self, input: Option<String>) -> Self
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
sourcepub fn set_stage_name(self, input: Option<String>) -> Self
pub fn set_stage_name(self, input: Option<String>) -> Self
The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ExportApi
impl Send for ExportApi
impl Sync for ExportApi
impl Unpin for ExportApi
impl !UnwindSafe for ExportApi
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