Struct aws_sdk_apigateway::operation::put_rest_api::PutRestApiInput
source · #[non_exhaustive]pub struct PutRestApiInput {
pub rest_api_id: Option<String>,
pub mode: Option<PutMode>,
pub fail_on_warnings: Option<bool>,
pub parameters: Option<HashMap<String, String>>,
pub body: Option<Blob>,
}Expand description
A PUT request to update an existing API, with external API definitions specified as the request body.
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.
mode: Option<PutMode>The mode query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
fail_on_warnings: Option<bool>A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered. The default value is false.
parameters: Option<HashMap<String, String>>Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ignore=documentation as a parameters value, as in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.
body: Option<Blob>The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.
Implementations§
source§impl PutRestApiInput
impl PutRestApiInput
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 mode(&self) -> Option<&PutMode>
pub fn mode(&self) -> Option<&PutMode>
The mode query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
sourcepub fn fail_on_warnings(&self) -> Option<bool>
pub fn fail_on_warnings(&self) -> Option<bool>
A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered. The default value is false.
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn parameters(&self) -> Option<&HashMap<String, String>>
Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ignore=documentation as a parameters value, as in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.
source§impl PutRestApiInput
impl PutRestApiInput
sourcepub fn builder() -> PutRestApiInputBuilder
pub fn builder() -> PutRestApiInputBuilder
Creates a new builder-style object to manufacture PutRestApiInput.
Trait Implementations§
source§impl Clone for PutRestApiInput
impl Clone for PutRestApiInput
source§fn clone(&self) -> PutRestApiInput
fn clone(&self) -> PutRestApiInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutRestApiInput
impl Debug for PutRestApiInput
source§impl PartialEq for PutRestApiInput
impl PartialEq for PutRestApiInput
source§fn eq(&self, other: &PutRestApiInput) -> bool
fn eq(&self, other: &PutRestApiInput) -> bool
self and other values to be equal, and is used
by ==.