pub struct PutRestApiFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutRestApi
.
A feature of the API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.
Implementations§
source§impl PutRestApiFluentBuilder
impl PutRestApiFluentBuilder
sourcepub fn as_input(&self) -> &PutRestApiInputBuilder
pub fn as_input(&self) -> &PutRestApiInputBuilder
Access the PutRestApi as a reference.
sourcepub async fn send(
self
) -> Result<PutRestApiOutput, SdkError<PutRestApiError, HttpResponse>>
pub async fn send( self ) -> Result<PutRestApiOutput, SdkError<PutRestApiError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<PutRestApiOutput, PutRestApiError, Self>
pub fn customize( self ) -> CustomizableOperation<PutRestApiOutput, PutRestApiError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
The string identifier of the associated RestApi.
sourcepub fn mode(self, input: PutMode) -> Self
pub fn mode(self, input: PutMode) -> Self
The mode
query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
sourcepub fn set_mode(self, input: Option<PutMode>) -> Self
pub fn set_mode(self, input: Option<PutMode>) -> Self
The mode
query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
sourcepub fn get_mode(&self) -> &Option<PutMode>
pub fn get_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, input: bool) -> Self
pub fn fail_on_warnings(self, input: bool) -> Self
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 set_fail_on_warnings(self, input: Option<bool>) -> Self
pub fn set_fail_on_warnings(self, input: Option<bool>) -> Self
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 get_fail_on_warnings(&self) -> &Option<bool>
pub fn get_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, 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
.
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'
.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
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'
.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_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'
.
sourcepub fn body(self, input: Blob) -> Self
pub fn body(self, input: Blob) -> Self
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.
Trait Implementations§
source§impl Clone for PutRestApiFluentBuilder
impl Clone for PutRestApiFluentBuilder
source§fn clone(&self) -> PutRestApiFluentBuilder
fn clone(&self) -> PutRestApiFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more