@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-28T18:14:31.799Z") @Stability(value=Stable) public class CfnCodeDeployBlueGreenHook extends CfnHook
Example:
CfnInclude cfnTemplate; // mutating the hook Role myRole; CfnHook hook = cfnTemplate.getHook("MyOutput"); CfnCodeDeployBlueGreenHook codeDeployHook = (CfnCodeDeployBlueGreenHook)hook; codeDeployHook.getServiceRole() = myRole.getRoleArn();
Modifier and Type | Class and Description |
---|---|
static class |
CfnCodeDeployBlueGreenHook.Builder
A fluent builder for
CfnCodeDeployBlueGreenHook . |
software.amazon.jsii.JsiiObject.InitializationMode
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
|
CfnCodeDeployBlueGreenHook(software.constructs.Construct scope,
String id,
CfnCodeDeployBlueGreenHookProps props)
Creates a new CodeDeploy blue-green ECS Hook.
|
protected |
CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
CfnCodeDeployBlueGreenAdditionalOptions |
getAdditionalOptions()
Additional options for the blue/green deployment.
|
List<CfnCodeDeployBlueGreenApplication> |
getApplications()
Properties of the Amazon ECS applications being deployed.
|
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.
|
CfnTrafficRoutingConfig |
getTrafficRoutingConfig()
Traffic routing configuration settings.
|
protected Map<String,Object> |
renderProperties() |
protected Map<String,Object> |
renderProperties(Map<String,Object> _props) |
void |
setAdditionalOptions(CfnCodeDeployBlueGreenAdditionalOptions value)
Additional options for the blue/green deployment.
|
void |
setApplications(List<CfnCodeDeployBlueGreenApplication> value)
Properties of the Amazon ECS applications being deployed.
|
void |
setLifecycleEventHooks(CfnCodeDeployBlueGreenLifecycleEventHooks value)
Use lifecycle event hooks to specify a Lambda function that CodeDeploy can call to validate a deployment.
|
void |
setServiceRole(String value)
The IAM Role for CloudFormation to use to perform blue-green deployments.
|
void |
setTrafficRoutingConfig(CfnTrafficRoutingConfig value)
Traffic routing configuration settings.
|
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCodeDeployBlueGreenHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnCodeDeployBlueGreenHook(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCodeDeployBlueGreenHookProps props)
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.@Stability(value=Stable) @Nullable protected Map<String,Object> renderProperties(@Nullable Map<String,Object> _props)
renderProperties
in class CfnHook
_props
- @Stability(value=Stable) @Nullable protected Map<String,Object> renderProperties()
renderProperties
in class CfnHook
@Stability(value=Stable) @NotNull public List<CfnCodeDeployBlueGreenApplication> getApplications()
@Stability(value=Stable) public void setApplications(@NotNull List<CfnCodeDeployBlueGreenApplication> value)
@Stability(value=Stable) @NotNull public String getServiceRole()
@Stability(value=Stable) public void setServiceRole(@NotNull String value)
@Stability(value=Stable) @Nullable public CfnCodeDeployBlueGreenAdditionalOptions getAdditionalOptions()
Default: - no additional options
@Stability(value=Stable) public void setAdditionalOptions(@Nullable CfnCodeDeployBlueGreenAdditionalOptions value)
Default: - no additional options
@Stability(value=Stable) @Nullable public 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) public void setLifecycleEventHooks(@Nullable CfnCodeDeployBlueGreenLifecycleEventHooks value)
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 public CfnTrafficRoutingConfig getTrafficRoutingConfig()
Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
@Stability(value=Stable) public void setTrafficRoutingConfig(@Nullable CfnTrafficRoutingConfig value)
Default: - time-based canary traffic shifting, with a 15% step percentage and a five minute bake time
Copyright © 2022. All rights reserved.