Class CfnStream
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.iot.CfnStream
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IStreamRef,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:11.836Z")
@Stability(Stable)
public class CfnStream
extends CfnResource
implements IInspectable, IStreamRef, ITaggableV2
Resource Type definition for AWS IoT Stream.
A stream is a publicly addressable resource that is an abstraction for a list of files that can be transferred to an IoT device.
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.iot.*;
CfnStream cfnStream = CfnStream.Builder.create(this, "MyCfnStream")
.files(List.of(StreamFileProperty.builder()
.fileId(123)
.s3Location(S3LocationProperty.builder()
.bucket("bucket")
.key("key")
.version("version")
.build())
.build()))
.roleArn("roleArn")
.streamId("streamId")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStream.static interfaceThe location of the file in S3.static interfaceRepresents a file to stream.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.iot.IStreamRef
IStreamRef.Jsii$Default, IStreamRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStream(software.amazon.jsii.JsiiObjectRef objRef) CfnStream(software.constructs.Construct scope, String id, CfnStreamProps props) Create a newAWS::IoT::Stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForStream(IStreamRef resource) The Amazon Resource Name (ARN) of the stream.The date when the stream was created.The date when the stream was last updated.The stream version.Tag Manager which manages the tags for this resource.The description of the stream.getFiles()The files to stream.An IAM role that allows the IoT service principal to access your S3 files.The stream ID.A reference to a Stream resource.getTags()Metadata which can be used to manage streams.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnStream.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the stream.voidThe files to stream.voidsetFiles(IResolvable value) The files to stream.voidsetRoleArn(String value) An IAM role that allows the IoT service principal to access your S3 files.voidsetStreamId(String value) The stream ID.voidMetadata which can be used to manage streams.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
-
CfnStream
protected CfnStream(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStream
protected CfnStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStream
@Stability(Stable) public CfnStream(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStreamProps props) Create a newAWS::IoT::Stream.- 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
-
arnForStream
- Parameters:
resource- This parameter is required.
-
isCfnStream
Checks whether the given object is a CfnStream.- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the stream. -
getAttrCreatedAt
The date when the stream was created. -
getAttrLastUpdatedAt
The date when the stream was last updated. -
getAttrStreamVersion
The stream version. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getStreamRef
A reference to a Stream resource.- Specified by:
getStreamRefin interfaceIStreamRef
-
getFiles
The files to stream.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStream.StreamFileProperty> -
setFiles
The files to stream. -
setFiles
The files to stream. -
getRoleArn
An IAM role that allows the IoT service principal to access your S3 files. -
setRoleArn
An IAM role that allows the IoT service principal to access your S3 files. -
getStreamId
The stream ID. -
setStreamId
The stream ID. -
getDescription
The description of the stream. -
setDescription
The description of the stream. -
getTags
Metadata which can be used to manage streams. -
setTags
Metadata which can be used to manage streams.
-