Struct aws_sdk_launchwizard::operation::create_deployment::builders::CreateDeploymentFluentBuilder
source · pub struct CreateDeploymentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDeployment
.
Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the Clone deployment
action on.
Implementations§
source§impl CreateDeploymentFluentBuilder
impl CreateDeploymentFluentBuilder
sourcepub fn as_input(&self) -> &CreateDeploymentInputBuilder
pub fn as_input(&self) -> &CreateDeploymentInputBuilder
Access the CreateDeployment as a reference.
sourcepub async fn send(
self
) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError, HttpResponse>>
pub async fn send( self ) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError, 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<CreateDeploymentOutput, CreateDeploymentError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateDeploymentOutput, CreateDeploymentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn workload_name(self, input: impl Into<String>) -> Self
pub fn workload_name(self, input: impl Into<String>) -> Self
The name of the workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn set_workload_name(self, input: Option<String>) -> Self
pub fn set_workload_name(self, input: Option<String>) -> Self
The name of the workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn get_workload_name(&self) -> &Option<String>
pub fn get_workload_name(&self) -> &Option<String>
The name of the workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn deployment_pattern_name(self, input: impl Into<String>) -> Self
pub fn deployment_pattern_name(self, input: impl Into<String>) -> Self
The name of the deployment pattern supported by a given workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn set_deployment_pattern_name(self, input: Option<String>) -> Self
pub fn set_deployment_pattern_name(self, input: Option<String>) -> Self
The name of the deployment pattern supported by a given workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn get_deployment_pattern_name(&self) -> &Option<String>
pub fn get_deployment_pattern_name(&self) -> &Option<String>
The name of the deployment pattern supported by a given workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
sourcepub fn specifications(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn specifications(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to specifications
.
To override the contents of this collection use set_specifications
.
The settings specified for the deployment. For more information on the specifications required for creating a deployment, see Workload specifications.
sourcepub fn set_specifications(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_specifications(self, input: Option<HashMap<String, String>>) -> Self
The settings specified for the deployment. For more information on the specifications required for creating a deployment, see Workload specifications.
sourcepub fn get_specifications(&self) -> &Option<HashMap<String, String>>
pub fn get_specifications(&self) -> &Option<HashMap<String, String>>
The settings specified for the deployment. For more information on the specifications required for creating a deployment, see Workload specifications.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Trait Implementations§
source§impl Clone for CreateDeploymentFluentBuilder
impl Clone for CreateDeploymentFluentBuilder
source§fn clone(&self) -> CreateDeploymentFluentBuilder
fn clone(&self) -> CreateDeploymentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more