java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ILagRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:41.939Z") @Stability(Stable) public class CfnLag extends CfnResource implements IInspectable, ILagRef, ITaggableV2
Resource Type definition for AWS::DirectConnect::Lag.

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.directconnect.*;
 CfnLag cfnLag = CfnLag.Builder.create(this, "MyCfnLag")
         .connectionsBandwidth("connectionsBandwidth")
         .lagName("lagName")
         .location("location")
         // the properties below are optional
         .minimumLinks(123)
         .providerName("providerName")
         .requestMacSec(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnLag

      protected CfnLag(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnLag

      protected CfnLag(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnLag

      @Stability(Stable) public CfnLag(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLagProps props)
      Create a new AWS::DirectConnect::Lag.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForLag

      @Stability(Stable) @NotNull public static String arnForLag(@NotNull ILagRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnLag

      @Stability(Stable) @NotNull public static Boolean isCfnLag(@NotNull Object x)
      Checks whether the given object is a CfnLag.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrLagArn

      @Stability(Stable) @NotNull public String getAttrLagArn()
      The ARN of the LAG.
    • getAttrLagId

      @Stability(Stable) @NotNull public String getAttrLagId()
      The ID of the LAG.
    • getAttrLagState

      @Stability(Stable) @NotNull public String getAttrLagState()
      The state of the LAG.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getLagRef

      @Stability(Stable) @NotNull public LagReference getLagRef()
      A reference to a Lag resource.
      Specified by:
      getLagRef in interface ILagRef
    • getConnectionsBandwidth

      @Stability(Stable) @NotNull public String getConnectionsBandwidth()
      The bandwidth of the individual physical dedicated connections bundled by the LAG.
    • setConnectionsBandwidth

      @Stability(Stable) public void setConnectionsBandwidth(@NotNull String value)
      The bandwidth of the individual physical dedicated connections bundled by the LAG.
    • getLagName

      @Stability(Stable) @NotNull public String getLagName()
      The name of the LAG.
    • setLagName

      @Stability(Stable) public void setLagName(@NotNull String value)
      The name of the LAG.
    • getLocation

      @Stability(Stable) @NotNull public String getLocation()
      The location for the LAG.
    • setLocation

      @Stability(Stable) public void setLocation(@NotNull String value)
      The location for the LAG.
    • getMinimumLinks

      @Stability(Stable) @Nullable public Number getMinimumLinks()
      The minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
    • setMinimumLinks

      @Stability(Stable) public void setMinimumLinks(@Nullable Number value)
      The minimum number of physical dedicated connections that must be operational for the LAG itself to be operational.
    • getProviderName

      @Stability(Stable) @Nullable public String getProviderName()
      The name of the service provider associated with the requested LAG.
    • setProviderName

      @Stability(Stable) public void setProviderName(@Nullable String value)
      The name of the service provider associated with the requested LAG.
    • getRequestMacSec

      @Stability(Stable) @Nullable public Object getRequestMacSec()
      Indicates whether you want the LAG to support MAC Security (MACsec).

      Returns union: either Boolean or IResolvable

    • setRequestMacSec

      @Stability(Stable) public void setRequestMacSec(@Nullable Boolean value)
      Indicates whether you want the LAG to support MAC Security (MACsec).
    • setRequestMacSec

      @Stability(Stable) public void setRequestMacSec(@Nullable IResolvable value)
      Indicates whether you want the LAG to support MAC Security (MACsec).
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags associated with the LAG.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags associated with the LAG.