Class CfnRouterNetworkInterface

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediaconnect.CfnRouterNetworkInterface
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IRouterNetworkInterfaceRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T13:52:06.785Z") @Stability(Stable) public class CfnRouterNetworkInterface extends CfnResource implements IInspectable, IRouterNetworkInterfaceRef, ITaggableV2
Represents a router network interface in AWS Elemental MediaConnect that is used to define a network boundary for router resources.

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.mediaconnect.*;
 CfnRouterNetworkInterface cfnRouterNetworkInterface = CfnRouterNetworkInterface.Builder.create(this, "MyCfnRouterNetworkInterface")
         .configuration(RouterNetworkInterfaceConfigurationProperty.builder()
                 .public(PublicRouterNetworkInterfaceConfigurationProperty.builder()
                         .allowRules(List.of(PublicRouterNetworkInterfaceRuleProperty.builder()
                                 .cidr("cidr")
                                 .build()))
                         .build())
                 .vpc(VpcRouterNetworkInterfaceConfigurationProperty.builder()
                         .securityGroupIds(List.of("securityGroupIds"))
                         .subnetId("subnetId")
                         .build())
                 .build())
         .name("name")
         // the properties below are optional
         .regionName("regionName")
         .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

    • CfnRouterNetworkInterface

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

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

      @Stability(Stable) public CfnRouterNetworkInterface(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRouterNetworkInterfaceProps props)
      Create a new AWS::MediaConnect::RouterNetworkInterface.

      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()
    • getAttrAssociatedInputCount

      @Stability(Stable) @NotNull public Number getAttrAssociatedInputCount()
      The number of router inputs associated with the network interface.
    • getAttrAssociatedOutputCount

      @Stability(Stable) @NotNull public Number getAttrAssociatedOutputCount()
      The number of router outputs associated with the network interface.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the router network interface was created.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The unique identifier of the router network interface.
    • getAttrNetworkInterfaceType

      @Stability(Stable) @NotNull public String getAttrNetworkInterfaceType()
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the router network interface was last updated.
    • 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
    • getRouterNetworkInterfaceRef

      @Stability(Stable) @NotNull public RouterNetworkInterfaceReference getRouterNetworkInterfaceRef()
      A reference to a RouterNetworkInterface resource.
      Specified by:
      getRouterNetworkInterfaceRef in interface IRouterNetworkInterfaceRef
    • getConfiguration

      @Stability(Stable) @NotNull public Object getConfiguration()
      The configuration settings for a router network interface.

      Returns union: either IResolvable or CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty

    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull IResolvable value)
      The configuration settings for a router network interface.
    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty value)
      The configuration settings for a router network interface.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the router network interface.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the router network interface.
    • getRegionName

      @Stability(Stable) @Nullable public String getRegionName()
      The AWS Region for the router network interface.
    • setRegionName

      @Stability(Stable) public void setRegionName(@Nullable String value)
      The AWS Region for the router network interface.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Key-value pairs that can be used to tag and organize this router network interface.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Key-value pairs that can be used to tag and organize this router network interface.