Class CfnTunnel
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.iotsecuretunneling.CfnTunnel
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITunnelRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:12.052Z")
@Stability(Stable)
public class CfnTunnel
extends CfnResource
implements IInspectable, ITunnelRef, ITaggableV2
A connection between a source computer and a destination device using AWS IoT Secure Tunneling.
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.iotsecuretunneling.*;
CfnTunnel cfnTunnel = CfnTunnel.Builder.create(this, "MyCfnTunnel")
.description("description")
.destinationConfig(DestinationConfigProperty.builder()
.services(List.of("services"))
// the properties below are optional
.thingName("thingName")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutConfig(TimeoutConfigProperty.builder()
.maxLifetimeTimeoutMinutes(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTunnel.static interfaceThe destination configuration.static interfaceTunnel timeout configuration.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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.iotsecuretunneling.ITunnelRef
ITunnelRef.Jsii$Default, ITunnelRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTunnel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTunnel(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::IoTSecureTunneling::Tunnel.CfnTunnel(software.constructs.Construct scope, String id, CfnTunnelProps props) Create a newAWS::IoTSecureTunneling::Tunnel. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTunnel(ITunnelRef resource) The status of the tunnel.The Amazon Resource Name (ARN) of the tunnel.A unique alpha-numeric tunnel ID.Tag Manager which manages the tags for this resource.A short text description of the tunnel.The destination configuration.getTags()A collection of tag metadata.Tunnel timeout configuration.A reference to a Tunnel resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTunnel.renderProperties(Map<String, Object> props) voidsetDescription(String value) A short text description of the tunnel.voidsetDestinationConfig(IResolvable value) The destination configuration.voidThe destination configuration.voidA collection of tag metadata.voidsetTimeoutConfig(IResolvable value) Tunnel timeout configuration.voidTunnel timeout configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnTunnel
protected CfnTunnel(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTunnel
protected CfnTunnel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTunnel
@Stability(Stable) public CfnTunnel(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnTunnelProps props) Create a newAWS::IoTSecureTunneling::Tunnel.- 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.
-
CfnTunnel
@Stability(Stable) public CfnTunnel(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::IoTSecureTunneling::Tunnel.- 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.
-
-
Method Details
-
arnForTunnel
- Parameters:
resource- This parameter is required.
-
isCfnTunnel
Checks whether the given object is a CfnTunnel.- 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.
-
getAttrStatus
The status of the tunnel.Valid values are OPEN and CLOSED.
-
getAttrTunnelArn
The Amazon Resource Name (ARN) of the tunnel. -
getAttrTunnelId
A unique alpha-numeric tunnel ID. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTunnelRef
A reference to a Tunnel resource.- Specified by:
getTunnelRefin interfaceITunnelRef
-
getDescription
A short text description of the tunnel. -
setDescription
A short text description of the tunnel. -
getDestinationConfig
The destination configuration.Returns union: either
IResolvableorCfnTunnel.DestinationConfigProperty -
setDestinationConfig
The destination configuration. -
setDestinationConfig
@Stability(Stable) public void setDestinationConfig(@Nullable CfnTunnel.DestinationConfigProperty value) The destination configuration. -
getTags
A collection of tag metadata. -
setTags
A collection of tag metadata. -
getTimeoutConfig
Tunnel timeout configuration.Returns union: either
IResolvableorCfnTunnel.TimeoutConfigProperty -
setTimeoutConfig
Tunnel timeout configuration. -
setTimeoutConfig
Tunnel timeout configuration.
-