1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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:
    ///   - [`stack_id(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::stack_id) / [`set_stack_id(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_stack_id): <p>The stack ID.</p>
    ///   - [`app_id(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_app_id): <p>The app ID. This parameter is required for app deployments, but not for other deployment commands.</p>
    ///   - [`instance_ids(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::instance_ids) / [`set_instance_ids(Option<Vec<String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_instance_ids): <p>The instance IDs for the deployment targets.</p>
    ///   - [`layer_ids(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::layer_ids) / [`set_layer_ids(Option<Vec<String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_layer_ids): <p>The layer IDs for the deployment targets.</p>
    ///   - [`command(DeploymentCommand)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::command) / [`set_command(Option<DeploymentCommand>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_command): <p>A <code>DeploymentCommand</code> object that specifies the deployment command and any associated arguments.</p>
    ///   - [`comment(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_comment): <p>A user-defined comment.</p>
    ///   - [`custom_json(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::custom_json) / [`set_custom_json(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_custom_json): <p>A string that contains user-defined, custom JSON. You can use this parameter to override some corresponding default stack configuration JSON values. The string should be in the following format:</p>  <p> <code>"{\"key1\": \"value1\", \"key2\": \"value2\",...}"</code> </p>  <p>For more information about custom JSON, see <a href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html">Use Custom JSON to Modify the Stack Configuration Attributes</a> and <a href="https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html">Overriding Attributes With Custom JSON</a>.</p>
    /// - 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 deployment ID, which can be used with other requests to identify 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())
    }
}