@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.932Z") @Stability(value=Stable) public class CfnChannel extends CfnResource implements IInspectable
The AWS::IoTAnalytics::Channel resource collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline. For more information, see How to Use AWS IoT Analytics in the AWS IoT Analytics User Guide .
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.iotanalytics.*;
Object serviceManagedS3;
CfnChannel cfnChannel = CfnChannel.Builder.create(this, "MyCfnChannel")
.channelName("channelName")
.channelStorage(ChannelStorageProperty.builder()
.customerManagedS3(CustomerManagedS3Property.builder()
.bucket("bucket")
.roleArn("roleArn")
// the properties below are optional
.keyPrefix("keyPrefix")
.build())
.serviceManagedS3(serviceManagedS3)
.build())
.retentionPeriod(RetentionPeriodProperty.builder()
.numberOfDays(123)
.unlimited(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnChannel.Builder
A fluent builder for
CfnChannel. |
static interface |
CfnChannel.ChannelStorageProperty
Where channel data is stored.
|
static interface |
CfnChannel.CustomerManagedS3Property
Used to store channel data in an S3 bucket that you manage.
|
static interface |
CfnChannel.RetentionPeriodProperty
How long, in days, message data is kept.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnChannel(software.constructs.Construct scope,
String id)
Create a new `AWS::IoTAnalytics::Channel`.
|
|
CfnChannel(software.constructs.Construct scope,
String id,
CfnChannelProps props)
Create a new `AWS::IoTAnalytics::Channel`.
|
protected |
CfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnChannel(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getChannelName()
The name of the channel.
|
Object |
getChannelStorage()
Where channel data is stored.
|
Object |
getRetentionPeriod()
How long, in days, message data is kept for the channel.
|
TagManager |
getTags()
Metadata which can be used to manage the channel.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setChannelName(String value)
The name of the channel.
|
void |
setChannelStorage(CfnChannel.ChannelStorageProperty value)
Where channel data is stored.
|
void |
setChannelStorage(IResolvable value)
Where channel data is stored.
|
void |
setRetentionPeriod(CfnChannel.RetentionPeriodProperty value)
How long, in days, message data is kept for the channel.
|
void |
setRetentionPeriod(IResolvable value)
How long, in days, message data is kept for the channel.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnChannel(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnChannel(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnChannelProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnChannel(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @Nullable public String getChannelName()
@Stability(value=Stable)
public void setChannelName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getChannelStorage()
@Stability(value=Stable)
public void setChannelStorage(@Nullable
CfnChannel.ChannelStorageProperty value)
@Stability(value=Stable)
public void setChannelStorage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getRetentionPeriod()
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
CfnChannel.RetentionPeriodProperty value)
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.