1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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:
    ///   - [`environment_id(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_environment_id):<br>required: **true**<br><p>The identifier of the runtime environment where you want to deploy this application.</p><br>
    ///   - [`application_id(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_application_id):<br>required: **true**<br><p>The application identifier.</p><br>
    ///   - [`application_version(i32)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::application_version) / [`set_application_version(Option<i32>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_application_version):<br>required: **true**<br><p>The version of the application to deploy.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.</p><br>
    /// - On success, responds with [`CreateDeploymentOutput`](crate::operation::create_deployment::CreateDeploymentOutput) with field(s):
    ///   - [`deployment_id(String)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_id): <p>The unique identifier 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())
    }
}