@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
127 lines • 5.89 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamsChannelConfiguration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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
*
* ```typescript
* 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
*
* Using `pulumi import`, import Chatbot Microsoft Teams Channel Configuration using the `team_id`. For example:
*
* ```sh
* $ pulumi import aws:chatbot/teamsChannelConfiguration:TeamsChannelConfiguration example 5f4f15d2-b958-522a-8333-124aa8bf0925
* ```
*/
class TeamsChannelConfiguration extends pulumi.CustomResource {
/**
* Get an existing TeamsChannelConfiguration resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new TeamsChannelConfiguration(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of TeamsChannelConfiguration. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === TeamsChannelConfiguration.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["channelId"] = state?.channelId;
resourceInputs["channelName"] = state?.channelName;
resourceInputs["chatConfigurationArn"] = state?.chatConfigurationArn;
resourceInputs["configurationName"] = state?.configurationName;
resourceInputs["guardrailPolicyArns"] = state?.guardrailPolicyArns;
resourceInputs["iamRoleArn"] = state?.iamRoleArn;
resourceInputs["loggingLevel"] = state?.loggingLevel;
resourceInputs["region"] = state?.region;
resourceInputs["snsTopicArns"] = state?.snsTopicArns;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["teamId"] = state?.teamId;
resourceInputs["teamName"] = state?.teamName;
resourceInputs["tenantId"] = state?.tenantId;
resourceInputs["timeouts"] = state?.timeouts;
resourceInputs["userAuthorizationRequired"] = state?.userAuthorizationRequired;
}
else {
const args = argsOrState;
if (args?.channelId === undefined && !opts.urn) {
throw new Error("Missing required property 'channelId'");
}
if (args?.configurationName === undefined && !opts.urn) {
throw new Error("Missing required property 'configurationName'");
}
if (args?.iamRoleArn === undefined && !opts.urn) {
throw new Error("Missing required property 'iamRoleArn'");
}
if (args?.teamId === undefined && !opts.urn) {
throw new Error("Missing required property 'teamId'");
}
if (args?.tenantId === undefined && !opts.urn) {
throw new Error("Missing required property 'tenantId'");
}
resourceInputs["channelId"] = args?.channelId;
resourceInputs["channelName"] = args?.channelName;
resourceInputs["configurationName"] = args?.configurationName;
resourceInputs["guardrailPolicyArns"] = args?.guardrailPolicyArns;
resourceInputs["iamRoleArn"] = args?.iamRoleArn;
resourceInputs["loggingLevel"] = args?.loggingLevel;
resourceInputs["region"] = args?.region;
resourceInputs["snsTopicArns"] = args?.snsTopicArns;
resourceInputs["tags"] = args?.tags;
resourceInputs["teamId"] = args?.teamId;
resourceInputs["teamName"] = args?.teamName;
resourceInputs["tenantId"] = args?.tenantId;
resourceInputs["timeouts"] = args?.timeouts;
resourceInputs["userAuthorizationRequired"] = args?.userAuthorizationRequired;
resourceInputs["chatConfigurationArn"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(TeamsChannelConfiguration.__pulumiType, name, resourceInputs, opts);
}
}
exports.TeamsChannelConfiguration = TeamsChannelConfiguration;
/** @internal */
TeamsChannelConfiguration.__pulumiType = 'aws:chatbot/teamsChannelConfiguration:TeamsChannelConfiguration';
//# sourceMappingURL=teamsChannelConfiguration.js.map