Struct aws_sdk_apigateway::client::fluent_builders::GetExport
source · pub struct GetExport { /* private fields */ }Expand description
Fluent builder constructing a request to GetExport.
Exports a deployed version of a RestApi in a specified format.
Implementations§
source§impl GetExport
impl GetExport
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetExport, AwsResponseRetryClassifier>, SdkError<GetExportError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetExport, AwsResponseRetryClassifier>, SdkError<GetExportError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<GetExportOutput, SdkError<GetExportError>>
pub async fn send(self) -> Result<GetExportOutput, SdkError<GetExportError>>
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 rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The string identifier of the associated RestApi.
sourcepub fn stage_name(self, input: impl Into<String>) -> Self
pub fn stage_name(self, input: impl Into<String>) -> Self
The name of the Stage that will be 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 Stage that will be exported.
sourcepub fn export_type(self, input: impl Into<String>) -> Self
pub fn export_type(self, input: impl Into<String>) -> Self
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
sourcepub fn set_export_type(self, input: Option<String>) -> Self
pub fn set_export_type(self, input: Option<String>) -> Self
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool
sourcepub fn accepts(self, input: impl Into<String>) -> Self
pub fn accepts(self, input: impl Into<String>) -> Self
The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType ofoas30 and swagger. This should be specified in the Accept header for direct API requests.
sourcepub fn set_accepts(self, input: Option<String>) -> Self
pub fn set_accepts(self, input: Option<String>) -> Self
The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType ofoas30 and swagger. This should be specified in the Accept header for direct API requests.