Package software.amazon.awscdk
Interface CfnCodeDeployBlueGreenHookProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCodeDeployBlueGreenHookProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:13.136Z")
@Stability(Stable)
public interface CfnCodeDeployBlueGreenHookProps
extends software.amazon.jsii.JsiiSerializable
Construction properties of
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnCodeDeployBlueGreenHookProps
static final class
An implementation forCfnCodeDeployBlueGreenHookProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Additional options for the blue/green deployment.Properties of the Amazon ECS applications being deployed.Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment.The IAM Role for CloudFormation to use to perform blue-green deployments.default CfnTrafficRoutingConfig
Traffic routing configuration settings.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplications
Properties of the Amazon ECS applications being deployed. -
getServiceRole
The IAM Role for CloudFormation to use to perform blue-green deployments. -
getAdditionalOptions
Additional options for the blue/green deployment.Default: - no additional options
-
getLifecycleEventHooks
@Stability(Stable) @Nullable default CfnCodeDeployBlueGreenLifecycleEventHooks getLifecycleEventHooks()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 Lambda
CfnCodeDeployBlueGreenLifecycleEventHooks.afterAllowTraffic
function calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'.Default: - no lifecycle event hooks
-
getTrafficRoutingConfig
Traffic routing configuration settings.Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
-
builder
-