Struct aws_sdk_apigateway::operation::get_export::GetExportInput
source · #[non_exhaustive]pub struct GetExportInput {
pub rest_api_id: Option<String>,
pub stage_name: Option<String>,
pub export_type: Option<String>,
pub parameters: Option<HashMap<String, String>>,
pub accepts: Option<String>,
}Expand description
Request a new export of a RestApi for a particular Stage.
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.rest_api_id: Option<String>The string identifier of the associated RestApi.
stage_name: Option<String>The name of the Stage that will be exported.
export_type: Option<String>The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
parameters: Option<HashMap<String, String>>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
accepts: Option<String>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.
Implementations§
source§impl GetExportInput
impl GetExportInput
sourcepub fn rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
sourcepub fn stage_name(&self) -> Option<&str>
pub fn stage_name(&self) -> Option<&str>
The name of the Stage that will be exported.
sourcepub fn export_type(&self) -> Option<&str>
pub fn export_type(&self) -> Option<&str>
The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn parameters(&self) -> Option<&HashMap<String, String>>
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
source§impl GetExportInput
impl GetExportInput
sourcepub fn builder() -> GetExportInputBuilder
pub fn builder() -> GetExportInputBuilder
Creates a new builder-style object to manufacture GetExportInput.
Trait Implementations§
source§impl Clone for GetExportInput
impl Clone for GetExportInput
source§fn clone(&self) -> GetExportInput
fn clone(&self) -> GetExportInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetExportInput
impl Debug for GetExportInput
source§impl PartialEq for GetExportInput
impl PartialEq for GetExportInput
source§fn eq(&self, other: &GetExportInput) -> bool
fn eq(&self, other: &GetExportInput) -> bool
self and other values to be equal, and is used
by ==.