@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-20T22:19:52.911Z")
public interface CfnCodeDeployBlueGreenHookProps
CfnCodeDeployBlueGreenHook
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; CfnCodeDeployBlueGreenHookProps cfnCodeDeployBlueGreenHookProps = CfnCodeDeployBlueGreenHookProps.builder() .applications(List.of(CfnCodeDeployBlueGreenApplication.builder() .ecsAttributes(CfnCodeDeployBlueGreenEcsAttributes.builder() .taskDefinitions(List.of("taskDefinitions")) .taskSets(List.of("taskSets")) .trafficRouting(CfnTrafficRouting.builder() .prodTrafficRoute(CfnTrafficRoute.builder() .logicalId("logicalId") .type("type") .build()) .targetGroups(List.of("targetGroups")) .testTrafficRoute(CfnTrafficRoute.builder() .logicalId("logicalId") .type("type") .build()) .build()) .build()) .target(CfnCodeDeployBlueGreenApplicationTarget.builder() .logicalId("logicalId") .type("type") .build()) .build())) .serviceRole("serviceRole") // the properties below are optional .additionalOptions(CfnCodeDeployBlueGreenAdditionalOptions.builder() .terminationWaitTimeInMinutes(123) .build()) .lifecycleEventHooks(CfnCodeDeployBlueGreenLifecycleEventHooks.builder() .afterAllowTestTraffic("afterAllowTestTraffic") .afterAllowTraffic("afterAllowTraffic") .afterInstall("afterInstall") .beforeAllowTraffic("beforeAllowTraffic") .beforeInstall("beforeInstall") .build()) .trafficRoutingConfig(CfnTrafficRoutingConfig.builder() .type(CfnTrafficRoutingType.ALL_AT_ONCE) // the properties below are optional .timeBasedCanary(CfnTrafficRoutingTimeBasedCanary.builder() .bakeTimeMins(123) .stepPercentage(123) .build()) .timeBasedLinear(CfnTrafficRoutingTimeBasedLinear.builder() .bakeTimeMins(123) .stepPercentage(123) .build()) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnCodeDeployBlueGreenHookProps.Builder
A builder for
CfnCodeDeployBlueGreenHookProps |
static class |
CfnCodeDeployBlueGreenHookProps.Jsii$Proxy
An implementation for
CfnCodeDeployBlueGreenHookProps |
Modifier and Type | Method and Description |
---|---|
static CfnCodeDeployBlueGreenHookProps.Builder |
builder() |
default CfnCodeDeployBlueGreenAdditionalOptions |
getAdditionalOptions()
Additional options for the blue/green deployment.
|
java.util.List<CfnCodeDeployBlueGreenApplication> |
getApplications()
Properties of the Amazon ECS applications being deployed.
|
default CfnCodeDeployBlueGreenLifecycleEventHooks |
getLifecycleEventHooks()
Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment.
|
java.lang.String |
getServiceRole()
The IAM Role for CloudFormation to use to perform blue-green deployments.
|
default CfnTrafficRoutingConfig |
getTrafficRoutingConfig()
Traffic routing configuration settings.
|
java.util.List<CfnCodeDeployBlueGreenApplication> getApplications()
java.lang.String getServiceRole()
default CfnCodeDeployBlueGreenAdditionalOptions getAdditionalOptions()
Default: - no additional options
default CfnCodeDeployBlueGreenLifecycleEventHooks getLifecycleEventHooks()
You can use the same function or a different one for deployment lifecycle events. Following completion of the validation tests, the Lambda {@link CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic} function calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'.
Default: - no lifecycle event hooks
default CfnTrafficRoutingConfig getTrafficRoutingConfig()
Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
static CfnCodeDeployBlueGreenHookProps.Builder builder()