Class 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 for AppSpecHooks
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • afterAllowTestTraffic

        @Stability(Experimental)
        public AppSpecHooks.Builder afterAllowTestTraffic​(String afterAllowTestTraffic)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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:
        build in interface software.amazon.jsii.Builder<AppSpecHooks>
        Returns:
        a new instance of AppSpecHooks
        Throws:
        NullPointerException - if any required attribute was not provided