aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
// 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:
    ///   - [`app_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::app_name) / [`set_app_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_app_name):<br>required: **true**<br><p>The name of the app.</p><br>
    ///   - [`environment_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_environment_name):<br>required: **true**<br><p>The name of the environment.</p><br>
    ///   - [`source_config(DeploymentSourceConfigRequest)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::source_config) / [`set_source_config(Option<DeploymentSourceConfigRequest>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_source_config):<br>required: **false**<br><p>The source to deploy.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_description):<br>required: **false**<br><p>The description of the deployment.</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 apply to the resource.</p><br>
    ///   - [`branch_arn(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::branch_arn) / [`set_branch_arn(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_branch_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the branch to deploy to. This applies only to an app with a backend. The branch must belong to the same app and environment. In the Production environment, it must be the production branch. If you omit this, Amplify chooses the branch and creates it if it doesn't exist.</p><br>
    ///   - [`publishable_key_action(PublishableKeyAction)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::publishable_key_action) / [`set_publishable_key_action(Option<PublishableKeyAction>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_publishable_key_action):<br>required: **false**<br><p>Specifies what the deployment does with the branch's publishable key, for an app with a backend. CREATE_NEW creates a new key that this deployment and later deployments use. The previous key stays active until you revoke it with RevokeApiKey. REUSE, the default, uses the branch's current key.</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 ID of the deployment.</p>
    ///   - [`deployment_arn(String)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_arn): <p>The Amazon Resource Name (ARN) of the deployment.</p>
    ///   - [`status(DeploymentStatus)`](crate::operation::create_deployment::CreateDeploymentOutput::status): <p>The status 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())
    }
}