#[non_exhaustive]pub struct CreateBasePathMappingInput { /* private fields */ }
Expand description
Requests API Gateway to create a new BasePathMapping resource.
Implementations§
source§impl CreateBasePathMappingInput
impl CreateBasePathMappingInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBasePathMapping, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBasePathMapping, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateBasePathMapping
>
Examples found in repository?
src/client.rs (line 2481)
2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateBasePathMapping,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateBasePathMappingError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateBasePathMappingOutput,
aws_smithy_http::result::SdkError<crate::error::CreateBasePathMappingError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateBasePathMappingInput
.
source§impl CreateBasePathMappingInput
impl CreateBasePathMappingInput
sourcepub fn domain_name(&self) -> Option<&str>
pub fn domain_name(&self) -> Option<&str>
The domain name of the BasePathMapping resource to create.
sourcepub fn base_path(&self) -> Option<&str>
pub fn base_path(&self) -> Option<&str>
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
sourcepub fn rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
Trait Implementations§
source§impl Clone for CreateBasePathMappingInput
impl Clone for CreateBasePathMappingInput
source§fn clone(&self) -> CreateBasePathMappingInput
fn clone(&self) -> CreateBasePathMappingInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more