Class CfnCodeDeployBlueGreenHook
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
CfnInclude cfnTemplate;
// mutating the hook
Role myRole;
CfnHook hook = cfnTemplate.getHook("MyOutput");
CfnCodeDeployBlueGreenHook codeDeployHook = (CfnCodeDeployBlueGreenHook)hook;
codeDeployHook.getServiceRole() = myRole.getRoleArn();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCodeDeployBlueGreenHook.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObjectRef objRef) CfnCodeDeployBlueGreenHook(software.constructs.Construct scope, String id, CfnCodeDeployBlueGreenHookProps props) Creates a new CodeDeploy blue-green ECS Hook. -
Method Summary
Modifier and TypeMethodDescriptionAdditional 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.Traffic routing configuration settings.renderProperties(Map<String, Object> _props) voidAdditional options for the blue/green deployment.voidProperties of the Amazon ECS applications being deployed.voidUse lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment.voidsetServiceRole(String value) The IAM Role for CloudFormation to use to perform blue-green deployments.voidTraffic routing configuration settings.Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CfnCodeDeployBlueGreenHook
protected CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCodeDeployBlueGreenHook
protected CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCodeDeployBlueGreenHook
@Stability(Stable) public CfnCodeDeployBlueGreenHook(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCodeDeployBlueGreenHookProps props) Creates a new CodeDeploy blue-green ECS Hook.- Parameters:
scope- the scope to create the hook in (usually the containing Stack object). This parameter is required.id- the identifier of the construct - will be used to generate the logical ID of the Hook. This parameter is required.props- the properties of the Hook. This parameter is required.
-
-
Method Details
-
renderProperties
@Stability(Stable) @Nullable protected Map<String,Object> renderProperties(@Nullable Map<String, Object> _props) - Overrides:
renderPropertiesin classCfnHook- Parameters:
_props-
-
renderProperties
- Overrides:
renderPropertiesin classCfnHook
-
getApplications
Properties of the Amazon ECS applications being deployed. -
setApplications
@Stability(Stable) public void setApplications(@NotNull List<CfnCodeDeployBlueGreenApplication> value) Properties of the Amazon ECS applications being deployed. -
getServiceRole
The IAM Role for CloudFormation to use to perform blue-green deployments. -
setServiceRole
The IAM Role for CloudFormation to use to perform blue-green deployments. -
getAdditionalOptions
Additional options for the blue/green deployment.Default: - no additional options
-
setAdditionalOptions
@Stability(Stable) public void setAdditionalOptions(@Nullable CfnCodeDeployBlueGreenAdditionalOptions value) Additional options for the blue/green deployment.Default: - no additional options
-
getLifecycleEventHooks
@Stability(Stable) @Nullable public 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.afterAllowTrafficfunction calls back CodeDeploy and delivers a result of 'Succeeded' or 'Failed'.Default: - no lifecycle event hooks
-
setLifecycleEventHooks
@Stability(Stable) public void setLifecycleEventHooks(@Nullable CfnCodeDeployBlueGreenLifecycleEventHooks value) 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.afterAllowTrafficfunction 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
-
setTrafficRoutingConfig
Traffic routing configuration settings.Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
-