Skip to content

CreateDeploymentRequest

Source code in docs_src/capo_amplifygen3/types/create_deployment_request.py
class CreateDeploymentRequest(TypedDict, closed=True):
    app_name: "capo_amplifygen3.types.app_name.AppName"
    """<p>The name of the app.</p>"""
    environment_name: "capo_amplifygen3.types.environment_name.EnvironmentName"
    """<p>The name of the environment.</p>"""
    source_config: NotRequired[
        "capo_amplifygen3.types.deployment_source_config_request.DeploymentSourceConfigRequest"
    ]
    """<p>The source to deploy.</p>"""
    description: NotRequired["capo_amplifygen3.types.description.Description"]
    """<p>The description of the deployment.</p>"""
    tags: NotRequired["capo_amplifygen3.types.tag_map.TagMap"]
    """<p>The tags to apply to the resource.</p>"""
    branch_arn: NotRequired["capo_amplifygen3.types.branch_arn.BranchArn"]
    """<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>"""
    publishable_key_action: NotRequired[
        "capo_amplifygen3.types.publishable_key_action.PublishableKeyAction"
    ]
    """<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>"""

app_name instance-attribute

app_name: AppName

The name of the app.

branch_arn instance-attribute

branch_arn: NotRequired[BranchArn]

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.

description instance-attribute

description: NotRequired[Description]

The description of the deployment.

environment_name instance-attribute

environment_name: EnvironmentName

The name of the environment.

publishable_key_action instance-attribute

publishable_key_action: NotRequired[PublishableKeyAction]

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.

source_config instance-attribute

source_config: NotRequired[DeploymentSourceConfigRequest]

The source to deploy.

tags instance-attribute

tags: NotRequired[TagMap]

The tags to apply to the resource.