Class CfnTransitGatewayMeteringPolicyEntry
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.CfnTransitGatewayMeteringPolicyEntry
- All Implemented Interfaces:
IInspectable,ITransitGatewayMeteringPolicyEntryRef,IEnvironmentAware,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.216Z")
@Stability(Stable)
public class CfnTransitGatewayMeteringPolicyEntry
extends CfnResource
implements IInspectable, ITransitGatewayMeteringPolicyEntryRef
Creates an entry in a transit gateway metering policy to define traffic measurement rules.
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.*;
CfnTransitGatewayMeteringPolicyEntry cfnTransitGatewayMeteringPolicyEntry = CfnTransitGatewayMeteringPolicyEntry.Builder.create(this, "MyCfnTransitGatewayMeteringPolicyEntry")
.meteredAccount("meteredAccount")
.policyRuleNumber(123)
.transitGatewayMeteringPolicyId("transitGatewayMeteringPolicyId")
// the properties below are optional
.destinationCidrBlock("destinationCidrBlock")
.destinationPortRange("destinationPortRange")
.destinationTransitGatewayAttachmentId("destinationTransitGatewayAttachmentId")
.destinationTransitGatewayAttachmentType("destinationTransitGatewayAttachmentType")
.protocol("protocol")
.sourceCidrBlock("sourceCidrBlock")
.sourcePortRange("sourcePortRange")
.sourceTransitGatewayAttachmentId("sourceTransitGatewayAttachmentId")
.sourceTransitGatewayAttachmentType("sourceTransitGatewayAttachmentType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTransitGatewayMeteringPolicyEntry.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.ITransitGatewayMeteringPolicyEntryRef
ITransitGatewayMeteringPolicyEntryRef.Jsii$Default, ITransitGatewayMeteringPolicyEntryRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTransitGatewayMeteringPolicyEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTransitGatewayMeteringPolicyEntry(software.amazon.jsii.JsiiObjectRef objRef) CfnTransitGatewayMeteringPolicyEntry(software.constructs.Construct scope, String id, CfnTransitGatewayMeteringPolicyEntryProps props) Create a newAWS::EC2::TransitGatewayMeteringPolicyEntry. -
Method Summary
Modifier and TypeMethodDescriptionThe state of the metering policy entry.The date and time when the metering policy entry update becomes effective.Describes an IPv4 CIDR block.Describes a range of ports.The ID of the source attachment through which traffic leaves a transit gateway.The AWS account ID to which the metered traffic is attributed.The rule number of the metering policy entry.The protocol of the traffic.Describes an IPv4 CIDR block.Describes a range of ports.The ID of the source attachment through which traffic enters a transit gateway.A reference to a TransitGatewayMeteringPolicyEntry resource.The ID of the transit gateway metering policy for which the entry is being created.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTransitGatewayMeteringPolicyEntry.renderProperties(Map<String, Object> props) voidsetDestinationCidrBlock(String value) Describes an IPv4 CIDR block.voidsetDestinationPortRange(String value) Describes a range of ports.voidThe ID of the source attachment through which traffic leaves a transit gateway.voidvoidsetMeteredAccount(String value) The AWS account ID to which the metered traffic is attributed.voidsetPolicyRuleNumber(Number value) The rule number of the metering policy entry.voidsetProtocol(String value) The protocol of the traffic.voidsetSourceCidrBlock(String value) Describes an IPv4 CIDR block.voidsetSourcePortRange(String value) Describes a range of ports.voidThe ID of the source attachment through which traffic enters a transit gateway.voidvoidThe ID of the transit gateway metering policy for which the entry is being created.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTransitGatewayMeteringPolicyEntry
protected CfnTransitGatewayMeteringPolicyEntry(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTransitGatewayMeteringPolicyEntry
protected CfnTransitGatewayMeteringPolicyEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTransitGatewayMeteringPolicyEntry
@Stability(Stable) public CfnTransitGatewayMeteringPolicyEntry(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitGatewayMeteringPolicyEntryProps props) Create a newAWS::EC2::TransitGatewayMeteringPolicyEntry.- 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
-
isCfnTransitGatewayMeteringPolicyEntry
@Stability(Stable) @NotNull public static Boolean isCfnTransitGatewayMeteringPolicyEntry(@NotNull Object x) Checks whether the given object is a CfnTransitGatewayMeteringPolicyEntry.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrState
The state of the metering policy entry. -
getAttrUpdateEffectiveAt
The date and time when the metering policy entry update becomes effective. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTransitGatewayMeteringPolicyEntryRef
@Stability(Stable) @NotNull public TransitGatewayMeteringPolicyEntryReference getTransitGatewayMeteringPolicyEntryRef()A reference to a TransitGatewayMeteringPolicyEntry resource.- Specified by:
getTransitGatewayMeteringPolicyEntryRefin interfaceITransitGatewayMeteringPolicyEntryRef
-
getMeteredAccount
The AWS account ID to which the metered traffic is attributed. -
setMeteredAccount
The AWS account ID to which the metered traffic is attributed. -
getPolicyRuleNumber
The rule number of the metering policy entry. -
setPolicyRuleNumber
The rule number of the metering policy entry. -
getTransitGatewayMeteringPolicyId
The ID of the transit gateway metering policy for which the entry is being created. -
setTransitGatewayMeteringPolicyId
The ID of the transit gateway metering policy for which the entry is being created. -
getDestinationCidrBlock
Describes an IPv4 CIDR block. -
setDestinationCidrBlock
Describes an IPv4 CIDR block. -
getDestinationPortRange
Describes a range of ports. -
setDestinationPortRange
Describes a range of ports. -
getDestinationTransitGatewayAttachmentId
The ID of the source attachment through which traffic leaves a transit gateway. -
setDestinationTransitGatewayAttachmentId
The ID of the source attachment through which traffic leaves a transit gateway. -
getDestinationTransitGatewayAttachmentType
-
setDestinationTransitGatewayAttachmentType
-
getProtocol
The protocol of the traffic. -
setProtocol
The protocol of the traffic. -
getSourceCidrBlock
Describes an IPv4 CIDR block. -
setSourceCidrBlock
Describes an IPv4 CIDR block. -
getSourcePortRange
Describes a range of ports. -
setSourcePortRange
Describes a range of ports. -
getSourceTransitGatewayAttachmentId
The ID of the source attachment through which traffic enters a transit gateway. -
setSourceTransitGatewayAttachmentId
The ID of the source attachment through which traffic enters a transit gateway. -
getSourceTransitGatewayAttachmentType
-
setSourceTransitGatewayAttachmentType
-