Class CfnTransitGatewayPolicyTableEntry

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.ec2.CfnTransitGatewayPolicyTableEntry
All Implemented Interfaces:
IInspectable, ITransitGatewayPolicyTableEntryRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:08.569Z") @Stability(Stable) public class CfnTransitGatewayPolicyTableEntry extends CfnResource implements IInspectable, ITransitGatewayPolicyTableEntryRef
AWS::EC2::TransitGatewayPolicyTableEntry Resource Definition.

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.ec2.*;
 CfnTransitGatewayPolicyTableEntry cfnTransitGatewayPolicyTableEntry = CfnTransitGatewayPolicyTableEntry.Builder.create(this, "MyCfnTransitGatewayPolicyTableEntry")
         .policyRule(TransitGatewayPolicyRuleProperty.builder()
                 .destinationCidrBlock("destinationCidrBlock")
                 .destinationPortRange("destinationPortRange")
                 .protocol("protocol")
                 .sourceCidrBlock("sourceCidrBlock")
                 .sourcePortRange("sourcePortRange")
                 .build())
         .policyRuleNumber("policyRuleNumber")
         .targetRouteTableId("targetRouteTableId")
         .transitGatewayPolicyTableId("transitGatewayPolicyTableId")
         .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

    • CfnTransitGatewayPolicyTableEntry

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

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

      @Stability(Stable) public CfnTransitGatewayPolicyTableEntry(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitGatewayPolicyTableEntryProps props)
      Create a new AWS::EC2::TransitGatewayPolicyTableEntry.

      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

    • isCfnTransitGatewayPolicyTableEntry

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

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

      @Stability(Stable) @NotNull public String getAttrState()
      The state of the policy table entry.
    • getCfnProperties

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

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getTransitGatewayPolicyTableEntryRef

      @Stability(Stable) @NotNull public TransitGatewayPolicyTableEntryReference getTransitGatewayPolicyTableEntryRef()
      A reference to a TransitGatewayPolicyTableEntry resource.
      Specified by:
      getTransitGatewayPolicyTableEntryRef in interface ITransitGatewayPolicyTableEntryRef
    • getPolicyRule

      @Stability(Stable) @NotNull public Object getPolicyRule()
    • setPolicyRule

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

      @Stability(Stable) public void setPolicyRule(@NotNull CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty value)
    • getPolicyRuleNumber

      @Stability(Stable) @NotNull public String getPolicyRuleNumber()
      The rule number for the policy table entry.
    • setPolicyRuleNumber

      @Stability(Stable) public void setPolicyRuleNumber(@NotNull String value)
      The rule number for the policy table entry.
    • getTargetRouteTableId

      @Stability(Stable) @NotNull public String getTargetRouteTableId()
      The ID of the target route table.
    • setTargetRouteTableId

      @Stability(Stable) public void setTargetRouteTableId(@NotNull String value)
      The ID of the target route table.
    • getTransitGatewayPolicyTableId

      @Stability(Stable) @NotNull public String getTransitGatewayPolicyTableId()
      The ID of the transit gateway policy table.
    • setTransitGatewayPolicyTableId

      @Stability(Stable) public void setTransitGatewayPolicyTableId(@NotNull String value)
      The ID of the transit gateway policy table.