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

@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-10T13:40:13.924Z") @Stability(Stable) public class CfnLink extends CfnResource implements IInspectable, ILinkRef, ITaggableV2
Resource Type definition for AWS::RTBFabric::Link Resource Type.

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.rtbfabric.*;
 CfnLink cfnLink = CfnLink.Builder.create(this, "MyCfnLink")
         .gatewayId("gatewayId")
         .linkLogSettings(LinkLogSettingsProperty.builder()
                 .applicationLogs(ApplicationLogsProperty.builder()
                         .linkApplicationLogSampling(LinkApplicationLogSamplingProperty.builder()
                                 .errorLog(123)
                                 .filterLog(123)
                                 .build())
                         .build())
                 .build())
         .peerGatewayId("peerGatewayId")
         // the properties below are optional
         .httpResponderAllowed(false)
         .linkAttributes(LinkAttributesProperty.builder()
                 .customerProvidedId("customerProvidedId")
                 .responderErrorMasking(List.of(ResponderErrorMaskingForHttpCodeProperty.builder()
                         .action("action")
                         .httpCode("httpCode")
                         .loggingTypes(List.of("loggingTypes"))
                         // the properties below are optional
                         .responseLoggingPercentage(123)
                         .build()))
                 .build())
         .moduleConfigurationList(List.of(ModuleConfigurationProperty.builder()
                 .name("name")
                 // the properties below are optional
                 .dependsOn(List.of("dependsOn"))
                 .moduleParameters(ModuleParametersProperty.builder()
                         .noBid(NoBidModuleParametersProperty.builder()
                                 .passThroughPercentage(123)
                                 .reason("reason")
                                 .reasonCode(123)
                                 .build())
                         .openRtbAttribute(OpenRtbAttributeModuleParametersProperty.builder()
                                 .action(ActionProperty.builder()
                                         .headerTag(HeaderTagActionProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build())
                                         .noBid(NoBidActionProperty.builder()
                                                 .noBidReasonCode(123)
                                                 .build())
                                         .build())
                                 .filterConfiguration(List.of(FilterProperty.builder()
                                         .criteria(List.of(FilterCriterionProperty.builder()
                                                 .path("path")
                                                 .values(List.of("values"))
                                                 .build()))
                                         .build()))
                                 .filterType("filterType")
                                 .holdbackPercentage(123)
                                 .build())
                         .build())
                 .version("version")
                 .build()))
         .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

    • CfnLink

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

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

      @Stability(Stable) public CfnLink(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLinkProps props)
      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

    • 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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
    • getAttrCreatedTimestamp

      @Stability(Stable) @NotNull public String getAttrCreatedTimestamp()
    • getAttrLinkDirection

      @Stability(Stable) @NotNull public String getAttrLinkDirection()
    • getAttrLinkId

      @Stability(Stable) @NotNull public String getAttrLinkId()
    • getAttrLinkStatus

      @Stability(Stable) @NotNull public String getAttrLinkStatus()
    • getAttrUpdatedTimestamp

      @Stability(Stable) @NotNull public String getAttrUpdatedTimestamp()
    • 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
    • getLinkRef

      @Stability(Stable) @NotNull public LinkReference getLinkRef()
      A reference to a Link resource.
      Specified by:
      getLinkRef in interface ILinkRef
    • getGatewayId

      @Stability(Stable) @NotNull public String getGatewayId()
    • setGatewayId

      @Stability(Stable) public void setGatewayId(@NotNull String value)
    • getLinkLogSettings

      @Stability(Stable) @NotNull public Object getLinkLogSettings()
    • setLinkLogSettings

      @Stability(Stable) public void setLinkLogSettings(@NotNull IResolvable value)
    • setLinkLogSettings

      @Stability(Stable) public void setLinkLogSettings(@NotNull CfnLink.LinkLogSettingsProperty value)
    • getPeerGatewayId

      @Stability(Stable) @NotNull public String getPeerGatewayId()
    • setPeerGatewayId

      @Stability(Stable) public void setPeerGatewayId(@NotNull String value)
    • getHttpResponderAllowed

      @Stability(Stable) @Nullable public Object getHttpResponderAllowed()
      Returns union: either Boolean or IResolvable
    • setHttpResponderAllowed

      @Stability(Stable) public void setHttpResponderAllowed(@Nullable Boolean value)
    • setHttpResponderAllowed

      @Stability(Stable) public void setHttpResponderAllowed(@Nullable IResolvable value)
    • getLinkAttributes

      @Stability(Stable) @Nullable public Object getLinkAttributes()
    • setLinkAttributes

      @Stability(Stable) public void setLinkAttributes(@Nullable IResolvable value)
    • setLinkAttributes

      @Stability(Stable) public void setLinkAttributes(@Nullable CfnLink.LinkAttributesProperty value)
    • getModuleConfigurationList

      @Stability(Stable) @Nullable public Object getModuleConfigurationList()
      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnLink.ModuleConfigurationProperty>
    • setModuleConfigurationList

      @Stability(Stable) public void setModuleConfigurationList(@Nullable IResolvable value)
    • setModuleConfigurationList

      @Stability(Stable) public void setModuleConfigurationList(@Nullable List<Object> value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags to assign to the Link.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags to assign to the Link.