Class CfnTransitGatewayMeteringPolicy

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.CfnTransitGatewayMeteringPolicy
All Implemented Interfaces:
IInspectable, ITransitGatewayMeteringPolicyRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-12-01T16:02:19.215Z") @Stability(Stable) public class CfnTransitGatewayMeteringPolicy extends CfnResource implements IInspectable, ITransitGatewayMeteringPolicyRef, ITaggableV2
Describes a transit gateway metering policy.

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.*;
 CfnTransitGatewayMeteringPolicy cfnTransitGatewayMeteringPolicy = CfnTransitGatewayMeteringPolicy.Builder.create(this, "MyCfnTransitGatewayMeteringPolicy")
         .transitGatewayId("transitGatewayId")
         // the properties below are optional
         .middleboxAttachmentIds(List.of("middleboxAttachmentIds"))
         .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

    • CfnTransitGatewayMeteringPolicy

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

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

      @Stability(Stable) public CfnTransitGatewayMeteringPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitGatewayMeteringPolicyProps props)
      Create a new AWS::EC2::TransitGatewayMeteringPolicy.

      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

    • isCfnTransitGatewayMeteringPolicy

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

      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 transit gateway metering policy.
    • getAttrTransitGatewayMeteringPolicyId

      @Stability(Stable) @NotNull public String getAttrTransitGatewayMeteringPolicyId()
      The ID of the transit gateway metering policy.
    • getAttrUpdateEffectiveAt

      @Stability(Stable) @NotNull public String getAttrUpdateEffectiveAt()
      The date and time when the metering policy update becomes effective.
    • 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
    • getTransitGatewayMeteringPolicyRef

      @Stability(Stable) @NotNull public TransitGatewayMeteringPolicyReference getTransitGatewayMeteringPolicyRef()
      A reference to a TransitGatewayMeteringPolicy resource.
      Specified by:
      getTransitGatewayMeteringPolicyRef in interface ITransitGatewayMeteringPolicyRef
    • getTransitGatewayId

      @Stability(Stable) @NotNull public String getTransitGatewayId()
      The ID of the transit gateway associated with the metering policy.
    • setTransitGatewayId

      @Stability(Stable) public void setTransitGatewayId(@NotNull String value)
      The ID of the transit gateway associated with the metering policy.
    • getMiddleboxAttachmentIds

      @Stability(Stable) @Nullable public List<String> getMiddleboxAttachmentIds()
      The IDs of the middlebox attachments associated with the metering policy.
    • setMiddleboxAttachmentIds

      @Stability(Stable) public void setMiddleboxAttachmentIds(@Nullable List<String> value)
      The IDs of the middlebox attachments associated with the metering policy.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags assigned to the transit gateway metering policy.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags assigned to the transit gateway metering policy.