TeamsChannelConfiguration class

Resource for managing an AWS Chatbot Microsoft Teams Channel Configuration.

> NOTE: We provide this resource on a best-effort basis. If you are able to test it and find it useful, we welcome your input at GitHub.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.chatbot.TeamsChannelConfiguration("test", {
    channelId: "C07EZ1ABC23",
    configurationName: "mitt-lags-kanal",
    iamRoleArn: testAwsIamRole.arn,
    teamId: "74361522-da01-538d-aa2e-ac7918c6bb92",
    tenantId: "1234",
    tags: {
        Name: "mitt-lags-kanal",
    },
});
import pulumi
import pulumi_aws as aws

test = aws.chatbot.TeamsChannelConfiguration("test",
    channel_id="C07EZ1ABC23",
    configuration_name="mitt-lags-kanal",
    iam_role_arn=test_aws_iam_role["arn"],
    team_id="74361522-da01-538d-aa2e-ac7918c6bb92",
    tenant_id="1234",
    tags={
        "Name": "mitt-lags-kanal",
    })
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var test = new Aws.Chatbot.TeamsChannelConfiguration("test", new()
    {
        ChannelId = "C07EZ1ABC23",
        ConfigurationName = "mitt-lags-kanal",
        IamRoleArn = testAwsIamRole.Arn,
        TeamId = "74361522-da01-538d-aa2e-ac7918c6bb92",
        TenantId = "1234",
        Tags =
        {
            { "Name", "mitt-lags-kanal" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/chatbot"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := chatbot.NewTeamsChannelConfiguration(ctx, "test", &chatbot.TeamsChannelConfigurationArgs{
			ChannelId:         pulumi.String("C07EZ1ABC23"),
			ConfigurationName: pulumi.String("mitt-lags-kanal"),
			IamRoleArn:        pulumi.Any(testAwsIamRole.Arn),
			TeamId:            pulumi.String("74361522-da01-538d-aa2e-ac7918c6bb92"),
			TenantId:          pulumi.String("1234"),
			Tags: pulumi.StringMap{
				"Name": pulumi.String("mitt-lags-kanal"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_chatbot_teamschannelconfiguration" "test" {
  channel_id         = "C07EZ1ABC23"
  configuration_name = "mitt-lags-kanal"
  iam_role_arn       = testAwsIamRole.arn
  team_id            = "74361522-da01-538d-aa2e-ac7918c6bb92"
  tenant_id          = "1234"
  tags = {
    "Name" = "mitt-lags-kanal"
  }
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.chatbot.TeamsChannelConfiguration;
import com.pulumi.aws.chatbot.TeamsChannelConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new TeamsChannelConfiguration("test", TeamsChannelConfigurationArgs.builder()
            .channelId("C07EZ1ABC23")
            .configurationName("mitt-lags-kanal")
            .iamRoleArn(testAwsIamRole.arn())
            .teamId("74361522-da01-538d-aa2e-ac7918c6bb92")
            .tenantId("1234")
            .tags(Map.of("Name", "mitt-lags-kanal"))
            .build());

    }
}
resources:
  test:
    type: aws:chatbot:TeamsChannelConfiguration
    properties:
      channelId: C07EZ1ABC23
      configurationName: mitt-lags-kanal
      iamRoleArn: ${testAwsIamRole.arn}
      teamId: 74361522-da01-538d-aa2e-ac7918c6bb92
      tenantId: '1234'
      tags:
        Name: mitt-lags-kanal

Import

Using pulumi import, import Chatbot Microsoft Teams Channel Configuration using the teamId. For example:

$ pulumi import aws:chatbot/teamsChannelConfiguration:TeamsChannelConfiguration example 5f4f15d2-b958-522a-8333-124aa8bf0925

Constructors

TeamsChannelConfiguration(String name, {TeamsChannelConfigurationArgs? args, CustomResourceOptions? options})
Creates a new TeamsChannelConfiguration. name The Pulumi resource name. args Arguments used to configure this TeamsChannelConfiguration. The set of arguments for TeamsChannelConfiguration. options Resource options controlling this resource's behavior.
TeamsChannelConfiguration.reference(String urn)
Creates a typed reference to an existing TeamsChannelConfiguration resource.

Properties

channelId ↔ Output<String>
ID of the Microsoft Teams channel.
latefinal
channelName ↔ Output<String>
Name of the Microsoft Teams channel.
latefinal
chatConfigurationArn ↔ Output<String>
ARN of the Microsoft Teams channel configuration.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
configurationName ↔ Output<String>
Name of the Microsoft Teams channel configuration.
latefinal
guardrailPolicyArns ↔ Output<List<String>>
List of IAM policy ARNs that are applied as channel guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not set.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
iamRoleArn ↔ Output<String>
ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role.
latefinal
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
loggingLevel ↔ Output<String>
Logging levels include ERROR, INFO, or NONE.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snsTopicArns ↔ Output<List<String>>
ARNs of the SNS topics that deliver notifications to AWS Chatbot.
latefinal
tags ↔ Output<Map<String, String>?>
Map of tags assigned to the resource.
latefinal
tagsAll ↔ Output<Map<String, String>>
Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
latefinal
teamId ↔ Output<String>
ID of the Microsoft Team authorized with AWS Chatbot. To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the AWS Chatbot console. Then you can copy and paste the team ID from the console.
latefinal
teamName ↔ Output<String>
Name of the Microsoft Teams team.
latefinal
tenantId ↔ Output<String>
ID of the Microsoft Teams tenant.
latefinal
timeouts ↔ Output<TeamsChannelConfigurationTimeouts?>
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited
userAuthorizationRequired ↔ Output<bool>
Enables use of a user role requirement in your chat configuration.
latefinal

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {TeamsChannelConfigurationState? state, CustomResourceOptions? options}) → TeamsChannelConfiguration
Gets an existing TeamsChannelConfiguration resource's state with the given name and id.