aws_sdk_launchwizard/client/
create_deployment.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDeployment`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::workload_name) / [`set_workload_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_workload_name):<br>required: **true**<br><p>The name of the workload. You can use the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html"> <code>ListWorkloads</code> </a> operation to discover supported values for this parameter.</p><br>
    ///   - [`deployment_pattern_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::deployment_pattern_name) / [`set_deployment_pattern_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_deployment_pattern_name):<br>required: **true**<br><p>The name of the deployment pattern supported by a given workload. You can use the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html"> <code>ListWorkloadDeploymentPatterns</code> </a> operation to discover supported values for this parameter.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the deployment.</p><br>
    ///   - [`specifications(impl Into<String>, impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::specifications) / [`set_specifications(Option<HashMap::<String, String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_specifications):<br>required: **true**<br><p>The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html">SAP deployment specifications</a>. To retrieve the specifications required to create a deployment for other workloads, use the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html"> <code>GetWorkloadDeploymentPattern</code> </a> operation.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the deployment.</p><br>
    /// - On success, responds with [`CreateDeploymentOutput`](crate::operation::create_deployment::CreateDeploymentOutput) with field(s):
    ///   - [`deployment_id(Option<String>)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_id): <p>The ID of the deployment.</p>
    /// - On failure, responds with [`SdkError<CreateDeploymentError>`](crate::operation::create_deployment::CreateDeploymentError)
    pub fn create_deployment(&self) -> crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder {
        crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::new(self.handle.clone())
    }
}