Interface CreateDeploymentRequest.Builder
- All Superinterfaces:
AmplifyGen3Request.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateDeploymentRequest.Builder,,CreateDeploymentRequest> SdkBuilder<CreateDeploymentRequest.Builder,,CreateDeploymentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDeploymentRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the app.The Amazon Resource Name (ARN) of the branch to deploy to.description(String description) The description of the deployment.environmentName(String environmentName) The name of the environment.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.publishableKeyAction(String publishableKeyAction) Specifies what the deployment does with the branch's publishable key, for an app with a backend.publishableKeyAction(PublishableKeyAction publishableKeyAction) Specifies what the deployment does with the branch's publishable key, for an app with a backend.default CreateDeploymentRequest.BuildersourceConfig(Consumer<DeploymentSourceConfigRequest.Builder> sourceConfig) The source to deploy.sourceConfig(DeploymentSourceConfigRequest sourceConfig) The source to deploy.The tags to apply to the resource.Methods inherited from interface software.amazon.awssdk.services.amplifygen3.model.AmplifyGen3Request.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
default CreateDeploymentRequest.Builder sourceConfig(Consumer<DeploymentSourceConfigRequest.Builder> sourceConfig) The source to deploy.
This is a convenience method that creates an instance of theDeploymentSourceConfigRequest.Builderavoiding the need to create one manually viaDeploymentSourceConfigRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceConfig(DeploymentSourceConfigRequest).- Parameters:
sourceConfig- a consumer that will call methods onDeploymentSourceConfigRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDeploymentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-