Interface AlternateTargetConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AlternateTargetConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-02T11:25:30.751Z") @Stability(Stable) public interface AlternateTargetConfig extends software.amazon.jsii.JsiiSerializable
Configuration returned by AlternateTargetConfiguration.bind().

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 AlternateTargetConfig alternateTargetConfig = AlternateTargetConfig.builder()
         .alternateTargetGroupArn("alternateTargetGroupArn")
         .roleArn("roleArn")
         // the properties below are optional
         .productionListenerRule("productionListenerRule")
         .testListenerRule("testListenerRule")
         .build();
 
  • Method Details

    • getAlternateTargetGroupArn

      @Stability(Stable) @NotNull String getAlternateTargetGroupArn()
      The ARN of the alternate target group.
    • getRoleArn

      @Stability(Stable) @NotNull String getRoleArn()
      The IAM role ARN for the configuration.

      Default: - a new role will be created

    • getProductionListenerRule

      @Stability(Stable) @Nullable default String getProductionListenerRule()
      The production listener rule ARN (ALB) or listener ARN (NLB).

      Default: - none

    • getTestListenerRule

      @Stability(Stable) @Nullable default String getTestListenerRule()
      The test listener rule ARN (ALB) or listener ARN (NLB).

      Default: - none

    • builder

      @Stability(Stable) static AlternateTargetConfig.Builder builder()
      Returns:
      a AlternateTargetConfig.Builder of AlternateTargetConfig