Interface CreateDeploymentRequest.Builder

  • Method Details

    • appName

      The name of the app.

      Parameters:
      appName - The name of the app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentName

      CreateDeploymentRequest.Builder environmentName(String environmentName)

      The name of the environment.

      Parameters:
      environmentName - The name of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceConfig

      The source to deploy.

      Parameters:
      sourceConfig - The source to deploy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceConfig

      The source to deploy.

      This is a convenience method that creates an instance of the DeploymentSourceConfigRequest.Builder avoiding the need to create one manually via DeploymentSourceConfigRequest.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceConfig(DeploymentSourceConfigRequest).

      Parameters:
      sourceConfig - a consumer that will call methods on DeploymentSourceConfigRequest.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • description

      CreateDeploymentRequest.Builder description(String description)

      The description of the deployment.

      Parameters:
      description - The description of the deployment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to apply to the resource.

      Parameters:
      tags - The tags to apply to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publishableKeyAction

      CreateDeploymentRequest.Builder publishableKeyAction(String 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • publishableKeyAction

      CreateDeploymentRequest.Builder publishableKeyAction(PublishableKeyAction 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateDeploymentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.