# CfnMicrosoftTeamsChannelConfigurationProps

Properties for defining a `CfnMicrosoftTeamsChannelConfiguration`.

Used as props by: [CfnMicrosoftTeamsChannelConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_chatbot.CfnMicrosoftTeamsChannelConfiguration.html)

- Source: Generated at build time
- Type last changed: v2.185.0 · 19 Mar 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_chatbot as chatbot } from 'aws-cdk-lib';
const cfnMicrosoftTeamsChannelConfigurationProps: chatbot.CfnMicrosoftTeamsChannelConfigurationProps = {
  configurationName: 'configurationName',
  iamRoleArn: 'iamRoleArn',
  teamId: 'teamId',
  teamsChannelId: 'teamsChannelId',
  teamsTenantId: 'teamsTenantId',

  // the properties below are optional
  customizationResourceArns: ['customizationResourceArns'],
  guardrailPolicies: ['guardrailPolicies'],
  loggingLevel: 'loggingLevel',
  snsTopicArns: ['snsTopicArns'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  teamsChannelName: 'teamsChannelName',
  userRoleRequired: false,
};
```

Python:

```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_chatbot as chatbot

cfn_microsoft_teams_channel_configuration_props = chatbot.CfnMicrosoftTeamsChannelConfigurationProps(
    configuration_name="configurationName",
    iam_role_arn="iamRoleArn",
    team_id="teamId",
    teams_channel_id="teamsChannelId",
    teams_tenant_id="teamsTenantId",

    # the properties below are optional
    customization_resource_arns=["customizationResourceArns"],
    guardrail_policies=["guardrailPolicies"],
    logging_level="loggingLevel",
    sns_topic_arns=["snsTopicArns"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    teams_channel_name="teamsChannelName",
    user_role_required=False
)
```

Java:

```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.chatbot.*;

CfnMicrosoftTeamsChannelConfigurationProps cfnMicrosoftTeamsChannelConfigurationProps = CfnMicrosoftTeamsChannelConfigurationProps.builder()
        .configurationName("configurationName")
        .iamRoleArn("iamRoleArn")
        .teamId("teamId")
        .teamsChannelId("teamsChannelId")
        .teamsTenantId("teamsTenantId")

        // the properties below are optional
        .customizationResourceArns(List.of("customizationResourceArns"))
        .guardrailPolicies(List.of("guardrailPolicies"))
        .loggingLevel("loggingLevel")
        .snsTopicArns(List.of("snsTopicArns"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .teamsChannelName("teamsChannelName")
        .userRoleRequired(false)
        .build();
```

C# / .NET:

```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.Chatbot;

var cfnMicrosoftTeamsChannelConfigurationProps = new CfnMicrosoftTeamsChannelConfigurationProps {
    ConfigurationName = "configurationName",
    IamRoleArn = "iamRoleArn",
    TeamId = "teamId",
    TeamsChannelId = "teamsChannelId",
    TeamsTenantId = "teamsTenantId",

    // the properties below are optional
    CustomizationResourceArns = new [] { "customizationResourceArns" },
    GuardrailPolicies = new [] { "guardrailPolicies" },
    LoggingLevel = "loggingLevel",
    SnsTopicArns = new [] { "snsTopicArns" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    TeamsChannelName = "teamsChannelName",
    UserRoleRequired = false
};
```

Golang:

```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"

cfnMicrosoftTeamsChannelConfigurationProps := &CfnMicrosoftTeamsChannelConfigurationProps{
	ConfigurationName: jsii.String("configurationName"),
	IamRoleArn: jsii.String("iamRoleArn"),
	TeamId: jsii.String("teamId"),
	TeamsChannelId: jsii.String("teamsChannelId"),
	TeamsTenantId: jsii.String("teamsTenantId"),

	// the properties below are optional
	CustomizationResourceArns: []*string{
		jsii.String("customizationResourceArns"),
	},
	GuardrailPolicies: []*string{
		jsii.String("guardrailPolicies"),
	},
	LoggingLevel: jsii.String("loggingLevel"),
	SnsTopicArns: []*string{
		jsii.String("snsTopicArns"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TeamsChannelName: jsii.String("teamsChannelName"),
	UserRoleRequired: jsii.Boolean(false),
}
```

## Properties

- `configurationName`: string (required) — The name of the configuration.

- `customizationResourceArns`: string[] — Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for Amazon Q Developer .

- `guardrailPolicies`: string[] — The list of IAM policy ARNs that are applied as channel guardrails.

  The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.

- `iamRoleArn`: string (required) — The ARN of the IAM role that defines the permissions for Amazon Q Developer .

  This is a user-defined role that Amazon Q Developer will assume. This is not the service-linked role. For more information, see [IAM Policies for Amazon Q Developer in chat applications](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) .

- `loggingLevel`: string = "NONE" — Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.

  Logging levels include `ERROR` , `INFO` , or `NONE` .

- `snsTopicArns`: string[] — The ARNs of the SNS topics that deliver notifications to Amazon Q Developer .

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags to add to the configuration.

- `teamId`: string (required) — The ID of the Microsoft Team authorized with Amazon Q Developer .

  To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the Amazon Q Developer in chat applications console. Then you can copy and paste the team ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *Amazon Q Developer in chat applications Administrator Guide* .

- `teamsChannelId`: string (required) — The ID of the Microsoft Teams channel.

  To get the channel ID, open Microsoft Teams, right click on the channel name in the left pane, then choose *Copy* . An example of the channel ID syntax is: `19%3ab6ef35dc342d56ba5654e6fc6d25a071%40thread.tacv2` .

- `teamsChannelName`: string — The name of the Microsoft Teams channel.

- `teamsTenantId`: string (required) — The ID of the Microsoft Teams tenant.

  To get the tenant ID, you must perform the initial authorization flow with Microsoft Teams in the Amazon Q Developer in chat applications console. Then you can copy and paste the tenant ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *Amazon Q Developer in chat applications Administrator Guide* .

- `userRoleRequired`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Enables use of a user role requirement in your chat configuration.
