#[non_exhaustive]pub struct EstimateTemplateCostInput { /* private fields */ }Expand description
The input for an EstimateTemplateCost action.
Implementations§
source§impl EstimateTemplateCostInput
impl EstimateTemplateCostInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EstimateTemplateCost, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EstimateTemplateCost, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EstimateTemplateCost>
Examples found in repository?
5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EstimateTemplateCost,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EstimateTemplateCostError>,
> {
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::EstimateTemplateCostOutput,
aws_smithy_http::result::SdkError<crate::error::EstimateTemplateCostError>,
> {
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 EstimateTemplateCostInput.
source§impl EstimateTemplateCostInput
impl EstimateTemplateCostInput
sourcepub fn template_body(&self) -> Option<&str>
pub fn template_body(&self) -> Option<&str>
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the CloudFormation User Guide.)
Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.
sourcepub fn template_url(&self) -> Option<&str>
pub fn template_url(&self) -> Option<&str>
Location of file containing the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide.
Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
sourcepub fn parameters(&self) -> Option<&[Parameter]>
pub fn parameters(&self) -> Option<&[Parameter]>
A list of Parameter structures that specify input parameters.
Trait Implementations§
source§impl Clone for EstimateTemplateCostInput
impl Clone for EstimateTemplateCostInput
source§fn clone(&self) -> EstimateTemplateCostInput
fn clone(&self) -> EstimateTemplateCostInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more