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
impl StructuralPartialEq for PutRestApiInput
Auto Trait Implementations§
impl Freeze for PutRestApiInput
impl RefUnwindSafe for PutRestApiInput
impl Send for PutRestApiInput
impl Sync for PutRestApiInput
impl Unpin for PutRestApiInput
impl UnwindSafe for PutRestApiInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more