Class AppSpecHooks.Builder
- java.lang.Object
-
- io.github.cdklabs.cdk.ecs.codedeploy.AppSpecHooks.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppSpecHooks>
- Enclosing interface:
- AppSpecHooks
@Stability(Experimental) public static final class AppSpecHooks.Builder extends Object implements software.amazon.jsii.Builder<AppSpecHooks>
A builder forAppSpecHooks
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
afterAllowTestTraffic
@Stability(Experimental) public AppSpecHooks.Builder afterAllowTestTraffic(String afterAllowTestTraffic)
Sets the value ofAppSpecHooks.getAfterAllowTestTraffic()- Parameters:
afterAllowTestTraffic- Lambda or ARN of a lambda to run tasks after the test listener serves traffic to the replacement task set.- Returns:
this
-
afterAllowTestTraffic
@Stability(Experimental) public AppSpecHooks.Builder afterAllowTestTraffic(software.amazon.awscdk.services.lambda.IFunction afterAllowTestTraffic)
Sets the value ofAppSpecHooks.getAfterAllowTestTraffic()- Parameters:
afterAllowTestTraffic- Lambda or ARN of a lambda to run tasks after the test listener serves traffic to the replacement task set.- Returns:
this
-
afterAllowTraffic
@Stability(Experimental) public AppSpecHooks.Builder afterAllowTraffic(String afterAllowTraffic)
Sets the value ofAppSpecHooks.getAfterAllowTraffic()- Parameters:
afterAllowTraffic- Lambda or ARN of a lambda to run tasks after the second target group serves traffic to the replacement task set.- Returns:
this
-
afterAllowTraffic
@Stability(Experimental) public AppSpecHooks.Builder afterAllowTraffic(software.amazon.awscdk.services.lambda.IFunction afterAllowTraffic)
Sets the value ofAppSpecHooks.getAfterAllowTraffic()- Parameters:
afterAllowTraffic- Lambda or ARN of a lambda to run tasks after the second target group serves traffic to the replacement task set.- Returns:
this
-
afterInstall
@Stability(Experimental) public AppSpecHooks.Builder afterInstall(String afterInstall)
Sets the value ofAppSpecHooks.getAfterInstall()- Parameters:
afterInstall- Lambda or ARN of a lambda to run tasks after the replacement task set is created and one of the target groups is associated with it.- Returns:
this
-
afterInstall
@Stability(Experimental) public AppSpecHooks.Builder afterInstall(software.amazon.awscdk.services.lambda.IFunction afterInstall)
Sets the value ofAppSpecHooks.getAfterInstall()- Parameters:
afterInstall- Lambda or ARN of a lambda to run tasks after the replacement task set is created and one of the target groups is associated with it.- Returns:
this
-
beforeAllowTraffic
@Stability(Experimental) public AppSpecHooks.Builder beforeAllowTraffic(String beforeAllowTraffic)
Sets the value ofAppSpecHooks.getBeforeAllowTraffic()- Parameters:
beforeAllowTraffic- Lambda or ARN of a lambda to run tasks after the second target group is associated with the replacement task set, but before traffic is shifted to the replacement task set.- Returns:
this
-
beforeAllowTraffic
@Stability(Experimental) public AppSpecHooks.Builder beforeAllowTraffic(software.amazon.awscdk.services.lambda.IFunction beforeAllowTraffic)
Sets the value ofAppSpecHooks.getBeforeAllowTraffic()- Parameters:
beforeAllowTraffic- Lambda or ARN of a lambda to run tasks after the second target group is associated with the replacement task set, but before traffic is shifted to the replacement task set.- Returns:
this
-
beforeInstall
@Stability(Experimental) public AppSpecHooks.Builder beforeInstall(String beforeInstall)
Sets the value ofAppSpecHooks.getBeforeInstall()- Parameters:
beforeInstall- Lambda or ARN of a lambda to run tasks before the replacement task set is created.- Returns:
this
-
beforeInstall
@Stability(Experimental) public AppSpecHooks.Builder beforeInstall(software.amazon.awscdk.services.lambda.IFunction beforeInstall)
Sets the value ofAppSpecHooks.getBeforeInstall()- Parameters:
beforeInstall- Lambda or ARN of a lambda to run tasks before the replacement task set is created.- Returns:
this
-
build
@Stability(Experimental) public AppSpecHooks build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppSpecHooks>- Returns:
- a new instance of
AppSpecHooks - Throws:
NullPointerException- if any required attribute was not provided
-
-