Class CfnChannel.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel>
- Enclosing class:
CfnChannel
CfnChannel.-
Method Summary
Modifier and TypeMethodDescriptionappInstanceArn(String appInstanceArn) The ARN of the AppInstance that contains the channel.build()The ID of the channel.chimeBearer(String chimeBearer) The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel.static CfnChannel.BuilderelasticChannelConfiguration(IResolvable elasticChannelConfiguration) The attributes required to configure and create an elastic channel.elasticChannelConfiguration(CfnChannel.ElasticChannelConfigurationProperty elasticChannelConfiguration) The attributes required to configure and create an elastic channel.expirationSettings(IResolvable expirationSettings) Settings that control the interval after which the channel is automatically deleted.expirationSettings(CfnChannel.ExpirationSettingsProperty expirationSettings) Settings that control the interval after which the channel is automatically deleted.memberArns(List<String> memberArns) The ARNs of the AppInstanceUsers to add to the channel as members when it is created.The metadata of the channel.The channel mode.moderatorArns(List<String> moderatorArns) The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.The name of the channel.The channel's privacy level.The tags for the channel.
-
Method Details
-
create
@Stability(Stable) public static CfnChannel.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnChannel.Builder.
-
appInstanceArn
The ARN of the AppInstance that contains the channel.- Parameters:
appInstanceArn- The ARN of the AppInstance that contains the channel. This parameter is required.- Returns:
this- See Also:
-
chimeBearer
The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel.Whichever of the two creates a channel automatically becomes one of its moderators, so the same ARN can subsequently read, update and delete the channel.
- Parameters:
chimeBearer- The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel. This parameter is required.- Returns:
this- See Also:
-
name
The name of the channel.- Parameters:
name- The name of the channel. This parameter is required.- Returns:
this- See Also:
-
channelId
The ID of the channel.When omitted, the service generates a UUID.
- Parameters:
channelId- The ID of the channel. This parameter is required.- Returns:
this- See Also:
-
elasticChannelConfiguration
@Stability(Stable) public CfnChannel.Builder elasticChannelConfiguration(IResolvable elasticChannelConfiguration) The attributes required to configure and create an elastic channel.An elastic channel must use RESTRICTED mode, cannot be created with MemberArns, and is available only in some regions.
- Parameters:
elasticChannelConfiguration- The attributes required to configure and create an elastic channel. This parameter is required.- Returns:
this- See Also:
-
elasticChannelConfiguration
@Stability(Stable) public CfnChannel.Builder elasticChannelConfiguration(CfnChannel.ElasticChannelConfigurationProperty elasticChannelConfiguration) The attributes required to configure and create an elastic channel.An elastic channel must use RESTRICTED mode, cannot be created with MemberArns, and is available only in some regions.
- Parameters:
elasticChannelConfiguration- The attributes required to configure and create an elastic channel. This parameter is required.- Returns:
this- See Also:
-
expirationSettings
Settings that control the interval after which the channel is automatically deleted.- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted. This parameter is required.- Returns:
this- See Also:
-
expirationSettings
@Stability(Stable) public CfnChannel.Builder expirationSettings(CfnChannel.ExpirationSettingsProperty expirationSettings) Settings that control the interval after which the channel is automatically deleted.- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted. This parameter is required.- Returns:
this- See Also:
-
memberArns
The ARNs of the AppInstanceUsers to add to the channel as members when it is created.Cannot be combined with ElasticChannelConfiguration.
- Parameters:
memberArns- The ARNs of the AppInstanceUsers to add to the channel as members when it is created. This parameter is required.- Returns:
this- See Also:
-
metadata
The metadata of the channel.- Parameters:
metadata- The metadata of the channel. This parameter is required.- Returns:
this- See Also:
-
mode
The channel mode.In an UNRESTRICTED channel, members can add themselves and other members; in a RESTRICTED channel, only administrators and moderators can add members. An elastic channel must be RESTRICTED.
- Parameters:
mode- The channel mode. This parameter is required.- Returns:
this- See Also:
-
moderatorArns
The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.- Parameters:
moderatorArns- The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created. This parameter is required.- Returns:
this- See Also:
-
privacy
The channel's privacy level.A PUBLIC channel is discoverable by anyone in the AppInstance; a PRIVATE channel is not. Privacy cannot be changed after creation.
- Parameters:
privacy- The channel's privacy level. This parameter is required.- Returns:
this- See Also:
-
tags
The tags for the channel.- Parameters:
tags- The tags for the channel. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel>- Returns:
- a newly built instance of
CfnChannel.
-