@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.800Z") @Stability(value=Stable) public interface CfnCodeDeployBlueGreenHookProps extends software.amazon.jsii.JsiiSerializable
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.*;
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.
|
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.
|
String |
getServiceRole()
The IAM Role for CloudFormation to use to perform blue-green deployments.
|
default CfnTrafficRoutingConfig |
getTrafficRoutingConfig()
Traffic routing configuration settings.
|
@Stability(value=Stable) @NotNull List<CfnCodeDeployBlueGreenApplication> getApplications()
@Stability(value=Stable) @NotNull String getServiceRole()
@Stability(value=Stable) @Nullable default CfnCodeDeployBlueGreenAdditionalOptions getAdditionalOptions()
Default: - no additional options
@Stability(value=Stable) @Nullable 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
@Stability(value=Stable) @Nullable default CfnTrafficRoutingConfig getTrafficRoutingConfig()
Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
@Stability(value=Stable) static CfnCodeDeployBlueGreenHookProps.Builder builder()
Copyright © 2022. All rights reserved.