Class CfnChannel
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.chime.CfnChannel
- All Implemented Interfaces:
IInspectable,IChannelRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:46.934Z")
@Stability(Stable)
public class CfnChannel
extends CfnResource
implements IInspectable, IChannelRef, ITaggableV2
Creates a channel in an Amazon Chime SDK Messaging AppInstance.
Members of a channel exchange messages within it. Every channel operation is performed on behalf of an AppInstanceUser or AppInstanceBot, whose ARN is supplied as ChimeBearer and forms part of the channel's CloudFormation identifier.
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.chime.*;
CfnChannel cfnChannel = CfnChannel.Builder.create(this, "MyCfnChannel")
.appInstanceArn("appInstanceArn")
.chimeBearer("chimeBearer")
.name("name")
// the properties below are optional
.channelId("channelId")
.elasticChannelConfiguration(ElasticChannelConfigurationProperty.builder()
.maximumSubChannels(123)
.minimumMembershipPercentage(123)
.targetMembershipsPerSubChannel(123)
.build())
.expirationSettings(ExpirationSettingsProperty.builder()
.expirationCriterion("expirationCriterion")
.expirationDays(123)
.build())
.memberArns(List.of("memberArns"))
.metadata("metadata")
.mode("mode")
.moderatorArns(List.of("moderatorArns"))
.privacy("privacy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnChannel.static interfaceThe attributes required to configure and create an elastic channel.static interfaceSettings that control the interval after which the channel is automatically deleted.static interfaceThe AppInstanceUser or AppInstanceBot that created the channel.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.chime.IChannelRef
IChannelRef.Jsii$Default, IChannelRef.Jsii$ProxyNested 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$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnChannel(software.amazon.jsii.JsiiObjectRef objRef) CfnChannel(software.constructs.Construct scope, String id, CfnChannelProps props) Create a newAWS::Chime::Channel. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForChannel(IChannelRef resource) The ARN of the AppInstance that contains the channel.The ARN of the channel.The ARN of the channel flow.The AppInstanceUser or AppInstanceBot that created the channel.The time at which the channel was created.The time at which a member sent the last message in the channel.The time at which the channel was last updated.Tag Manager which manages the tags for this resource.The ID of the channel.A reference to a Channel resource.The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel.The attributes required to configure and create an elastic channel.Settings that control the interval after which the channel is automatically deleted.The ARNs of the AppInstanceUsers to add to the channel as members when it is created.The metadata of the channel.getMode()The channel mode.The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.getName()The name of the channel.The channel's privacy level.getTags()The tags for the channel.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnChannel.renderProperties(Map<String, Object> props) voidsetAppInstanceArn(String value) The ARN of the AppInstance that contains the channel.voidsetChannelId(String value) The ID of the channel.voidsetChimeBearer(String value) The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel.voidThe attributes required to configure and create an elastic channel.voidThe attributes required to configure and create an elastic channel.voidsetExpirationSettings(IResolvable value) Settings that control the interval after which the channel is automatically deleted.voidSettings that control the interval after which the channel is automatically deleted.voidsetMemberArns(List<String> value) The ARNs of the AppInstanceUsers to add to the channel as members when it is created.voidsetMetadata(String value) The metadata of the channel.voidThe channel mode.voidsetModeratorArns(List<String> value) The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.voidThe name of the channel.voidsetPrivacy(String value) The channel's privacy level.voidThe tags for the channel.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
-
CfnChannel
protected CfnChannel(software.amazon.jsii.JsiiObjectRef objRef) -
CfnChannel
protected CfnChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnChannel
@Stability(Stable) public CfnChannel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnChannelProps props) Create a newAWS::Chime::Channel.- 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
-
arnForChannel
- Parameters:
resource- This parameter is required.
-
isCfnChannel
Checks whether the given object is a CfnChannel.- 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 ARN of the channel. -
getAttrChannelFlowArn
The ARN of the channel flow. -
getAttrCreatedBy
The AppInstanceUser or AppInstanceBot that created the channel. -
getAttrCreatedTimestamp
The time at which the channel was created. -
getAttrLastMessageTimestamp
The time at which a member sent the last message in the channel. -
getAttrLastUpdatedTimestamp
The time at which the channel was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getChannelRef
A reference to a Channel resource.- Specified by:
getChannelRefin interfaceIChannelRef
-
getAppInstanceArn
The ARN of the AppInstance that contains the channel. -
setAppInstanceArn
The ARN of the AppInstance that contains the channel. -
getChimeBearer
The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel. -
setChimeBearer
The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel. -
getName
The name of the channel. -
setName
The name of the channel. -
getChannelId
The ID of the channel. -
setChannelId
The ID of the channel. -
getElasticChannelConfiguration
The attributes required to configure and create an elastic channel.Returns union: either
IResolvableorCfnChannel.ElasticChannelConfigurationProperty -
setElasticChannelConfiguration
The attributes required to configure and create an elastic channel. -
setElasticChannelConfiguration
@Stability(Stable) public void setElasticChannelConfiguration(@Nullable CfnChannel.ElasticChannelConfigurationProperty value) The attributes required to configure and create an elastic channel. -
getExpirationSettings
Settings that control the interval after which the channel is automatically deleted.Returns union: either
IResolvableorCfnChannel.ExpirationSettingsProperty -
setExpirationSettings
Settings that control the interval after which the channel is automatically deleted. -
setExpirationSettings
@Stability(Stable) public void setExpirationSettings(@Nullable CfnChannel.ExpirationSettingsProperty value) Settings that control the interval after which the channel is automatically deleted. -
getMemberArns
The ARNs of the AppInstanceUsers to add to the channel as members when it is created. -
setMemberArns
The ARNs of the AppInstanceUsers to add to the channel as members when it is created. -
getMetadata
The metadata of the channel. -
setMetadata
The metadata of the channel. -
getMode
The channel mode. -
setMode
The channel mode. -
getModeratorArns
The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created. -
setModeratorArns
The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created. -
getPrivacy
The channel's privacy level. -
setPrivacy
The channel's privacy level. -
getTags
The tags for the channel. -
setTags
The tags for the channel.
-