Skip to content
v2.278.0

CfnChannelProps ​

Struct External

Properties for defining a CfnChannel.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_chime as chime } from 'aws-cdk-lib';
const cfnChannelProps: chime.CfnChannelProps = {
  appInstanceArn: 'appInstanceArn',
  chimeBearer: 'chimeBearer',
  name: 'name',

  // the properties below are optional
  channelId: 'channelId',
  elasticChannelConfiguration: {
    maximumSubChannels: 123,
    minimumMembershipPercentage: 123,
    targetMembershipsPerSubChannel: 123,
  },
  expirationSettings: {
    expirationCriterion: 'expirationCriterion',
    expirationDays: 123,
  },
  memberArns: ['memberArns'],
  metadata: 'metadata',
  mode: 'mode',
  moderatorArns: ['moderatorArns'],
  privacy: 'privacy',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_chime as chime

cfn_channel_props = chime.CfnChannelProps(
    app_instance_arn="appInstanceArn",
    chime_bearer="chimeBearer",
    name="name",

    # the properties below are optional
    channel_id="channelId",
    elastic_channel_configuration=chime.CfnChannel.ElasticChannelConfigurationProperty(
        maximum_sub_channels=123,
        minimum_membership_percentage=123,
        target_memberships_per_sub_channel=123
    ),
    expiration_settings=chime.CfnChannel.ExpirationSettingsProperty(
        expiration_criterion="expirationCriterion",
        expiration_days=123
    ),
    member_arns=["memberArns"],
    metadata="metadata",
    mode="mode",
    moderator_arns=["moderatorArns"],
    privacy="privacy",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

CfnChannelProps cfnChannelProps = CfnChannelProps.builder()
        .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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Chime;

var cfnChannelProps = new CfnChannelProps {
    AppInstanceArn = "appInstanceArn",
    ChimeBearer = "chimeBearer",
    Name = "name",

    // the properties below are optional
    ChannelId = "channelId",
    ElasticChannelConfiguration = new ElasticChannelConfigurationProperty {
        MaximumSubChannels = 123,
        MinimumMembershipPercentage = 123,
        TargetMembershipsPerSubChannel = 123
    },
    ExpirationSettings = new ExpirationSettingsProperty {
        ExpirationCriterion = "expirationCriterion",
        ExpirationDays = 123
    },
    MemberArns = new [] { "memberArns" },
    Metadata = "metadata",
    Mode = "mode",
    ModeratorArns = new [] { "moderatorArns" },
    Privacy = "privacy",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnChannelProps := &CfnChannelProps{
	AppInstanceArn: jsii.String("appInstanceArn"),
	ChimeBearer: jsii.String("chimeBearer"),
	Name: jsii.String("name"),

	// the properties below are optional
	ChannelId: jsii.String("channelId"),
	ElasticChannelConfiguration: &ElasticChannelConfigurationProperty{
		MaximumSubChannels: jsii.Number(123),
		MinimumMembershipPercentage: jsii.Number(123),
		TargetMembershipsPerSubChannel: jsii.Number(123),
	},
	ExpirationSettings: &ExpirationSettingsProperty{
		ExpirationCriterion: jsii.String("expirationCriterion"),
		ExpirationDays: jsii.Number(123),
	},
	MemberArns: []*string{
		jsii.String("memberArns"),
	},
	Metadata: jsii.String("metadata"),
	Mode: jsii.String("mode"),
	ModeratorArns: []*string{
		jsii.String("moderatorArns"),
	},
	Privacy: jsii.String("privacy"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

appInstanceArnstringapp_instance_arnstrappInstanceArnStringAppInstanceArnstringAppInstanceArn*string required #
The ARN of the AppInstance that contains the channel.
channelIdoptionalstringchannel_idoptionalstrchannelIdoptionalStringChannelIdoptionalstringChannelIdoptional*string #
The ID of the channel.

When omitted, the service generates a UUID.

chimeBearerstringchime_bearerstrchimeBearerStringChimeBearerstringChimeBearer*string required #
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.

elasticChannelConfigurationoptionalIResolvable | CfnChannel.ElasticChannelConfigurationPropertyelastic_channel_configurationoptionaltyping.Union[IResolvable, ElasticChannelConfigurationProperty]elasticChannelConfigurationoptionalIResolvableElasticChannelConfigurationoptionalIResolvableElasticChannelConfigurationoptionalinterface{} #
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.

expirationSettingsoptionalIResolvable | CfnChannel.ExpirationSettingsPropertyexpiration_settingsoptionaltyping.Union[IResolvable, ExpirationSettingsProperty]expirationSettingsoptionalIResolvableExpirationSettingsoptionalIResolvableExpirationSettingsoptionalinterface{} #
Settings that control the interval after which the channel is automatically deleted.
memberArnsoptionalstring[]member_arnsoptionaltyping.List[str]memberArnsoptionalList<String>MemberArnsoptionalstring[]MemberArnsoptional*[]*string #
The ARNs of the AppInstanceUsers to add to the channel as members when it is created.

Cannot be combined with ElasticChannelConfiguration.

metadataoptionalstringmetadataoptionalstrmetadataoptionalStringMetadataoptionalstringMetadataoptional*string #
The metadata of the channel.
modeoptionalstringmodeoptionalstrmodeoptionalStringModeoptionalstringModeoptional*string #
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.

moderatorArnsoptionalstring[]moderator_arnsoptionaltyping.List[str]moderatorArnsoptionalList<String>ModeratorArnsoptionalstring[]ModeratorArnsoptional*[]*string #
The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.
namestringnamestrnameStringNamestringName*string required #
The name of the channel.
privacyoptionalstringprivacyoptionalstrprivacyoptionalStringPrivacyoptionalstringPrivacyoptional*string #
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.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the channel.