Package software.amazon.awscdk
Class CfnCodeDeployBlueGreenHookProps.Builder
java.lang.Object
software.amazon.awscdk.CfnCodeDeployBlueGreenHookProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCodeDeployBlueGreenHookProps>
- Enclosing interface:
CfnCodeDeployBlueGreenHookProps
@Stability(Stable)
public static final class CfnCodeDeployBlueGreenHookProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCodeDeployBlueGreenHookProps>
A builder for
CfnCodeDeployBlueGreenHookProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalOptions
(CfnCodeDeployBlueGreenAdditionalOptions additionalOptions) Sets the value ofCfnCodeDeployBlueGreenHookProps.getAdditionalOptions()
applications
(List<? extends CfnCodeDeployBlueGreenApplication> applications) Sets the value ofCfnCodeDeployBlueGreenHookProps.getApplications()
build()
Builds the configured instance.lifecycleEventHooks
(CfnCodeDeployBlueGreenLifecycleEventHooks lifecycleEventHooks) Sets the value ofCfnCodeDeployBlueGreenHookProps.getLifecycleEventHooks()
serviceRole
(String serviceRole) Sets the value ofCfnCodeDeployBlueGreenHookProps.getServiceRole()
trafficRoutingConfig
(CfnTrafficRoutingConfig trafficRoutingConfig) Sets the value ofCfnCodeDeployBlueGreenHookProps.getTrafficRoutingConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applications
@Stability(Stable) public CfnCodeDeployBlueGreenHookProps.Builder applications(List<? extends CfnCodeDeployBlueGreenApplication> applications) Sets the value ofCfnCodeDeployBlueGreenHookProps.getApplications()
- Parameters:
applications
- Properties of the Amazon ECS applications being deployed. This parameter is required.- Returns:
this
-
serviceRole
Sets the value ofCfnCodeDeployBlueGreenHookProps.getServiceRole()
- Parameters:
serviceRole
- The IAM Role for CloudFormation to use to perform blue-green deployments. This parameter is required.- Returns:
this
-
additionalOptions
@Stability(Stable) public CfnCodeDeployBlueGreenHookProps.Builder additionalOptions(CfnCodeDeployBlueGreenAdditionalOptions additionalOptions) Sets the value ofCfnCodeDeployBlueGreenHookProps.getAdditionalOptions()
- Parameters:
additionalOptions
- Additional options for the blue/green deployment.- Returns:
this
-
lifecycleEventHooks
@Stability(Stable) public CfnCodeDeployBlueGreenHookProps.Builder lifecycleEventHooks(CfnCodeDeployBlueGreenLifecycleEventHooks lifecycleEventHooks) Sets the value ofCfnCodeDeployBlueGreenHookProps.getLifecycleEventHooks()
- Parameters:
lifecycleEventHooks
- Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment. You can use the same function or a different one for deployment lifecycle events. Following completion of the validation tests, the LambdaCfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic
function calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'.- Returns:
this
-
trafficRoutingConfig
@Stability(Stable) public CfnCodeDeployBlueGreenHookProps.Builder trafficRoutingConfig(CfnTrafficRoutingConfig trafficRoutingConfig) Sets the value ofCfnCodeDeployBlueGreenHookProps.getTrafficRoutingConfig()
- Parameters:
trafficRoutingConfig
- Traffic routing configuration settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCodeDeployBlueGreenHookProps>
- Returns:
- a new instance of
CfnCodeDeployBlueGreenHookProps
- Throws:
NullPointerException
- if any required attribute was not provided
-