SlackChannelConfiguration class

Resource for managing an AWS Chatbot Slack Channel Configuration.

Example Usage

Basic Usage

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

const test = new aws.chatbot.SlackChannelConfiguration("test", {
    configurationName: "min-slaka-kanal",
    iamRoleArn: testAwsIamRole.arn,
    slackChannelId: "C07EZ1ABC23",
    slackTeamId: "T07EA123LEP",
    tags: {
        Name: "min-slaka-kanal",
    },
});
import pulumi
import pulumi_aws as aws

test = aws.chatbot.SlackChannelConfiguration("test",
    configuration_name="min-slaka-kanal",
    iam_role_arn=test_aws_iam_role["arn"],
    slack_channel_id="C07EZ1ABC23",
    slack_team_id="T07EA123LEP",
    tags={
        "Name": "min-slaka-kanal",
    })
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var test = new Aws.Chatbot.SlackChannelConfiguration("test", new()
    {
        ConfigurationName = "min-slaka-kanal",
        IamRoleArn = testAwsIamRole.Arn,
        SlackChannelId = "C07EZ1ABC23",
        SlackTeamId = "T07EA123LEP",
        Tags =
        {
            { "Name", "min-slaka-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.NewSlackChannelConfiguration(ctx, "test", &chatbot.SlackChannelConfigurationArgs{
			ConfigurationName: pulumi.String("min-slaka-kanal"),
			IamRoleArn:        pulumi.Any(testAwsIamRole.Arn),
			SlackChannelId:    pulumi.String("C07EZ1ABC23"),
			SlackTeamId:       pulumi.String("T07EA123LEP"),
			Tags: pulumi.StringMap{
				"Name": pulumi.String("min-slaka-kanal"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_chatbot_slackchannelconfiguration" "test" {
  configuration_name = "min-slaka-kanal"
  iam_role_arn       = testAwsIamRole.arn
  slack_channel_id   = "C07EZ1ABC23"
  slack_team_id      = "T07EA123LEP"
  tags = {
    "Name" = "min-slaka-kanal"
  }
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.chatbot.SlackChannelConfiguration;
import com.pulumi.aws.chatbot.SlackChannelConfigurationArgs;
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 SlackChannelConfiguration("test", SlackChannelConfigurationArgs.builder()
            .configurationName("min-slaka-kanal")
            .iamRoleArn(testAwsIamRole.arn())
            .slackChannelId("C07EZ1ABC23")
            .slackTeamId("T07EA123LEP")
            .tags(Map.of("Name", "min-slaka-kanal"))
            .build());

    }
}
resources:
  test:
    type: aws:chatbot:SlackChannelConfiguration
    properties:
      configurationName: min-slaka-kanal
      iamRoleArn: ${testAwsIamRole.arn}
      slackChannelId: C07EZ1ABC23
      slackTeamId: T07EA123LEP
      tags:
        Name: min-slaka-kanal

Import

Using pulumi import, import Chatbot Slack Channel Configuration using the chatConfigurationArn. For example:

$ pulumi import aws:chatbot/slackChannelConfiguration:SlackChannelConfiguration example arn:aws:chatbot::123456789012:chat-configuration/slack-channel/min-slaka-kanal

Constructors

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

Properties

chatConfigurationArn ↔ Output<String>
ARN of the Slack channel configuration.
latefinal
childResources Set<Resource>
finalinherited
completionSources Map<String, IOutputCompletionSource>
latefinalinherited
configurationName ↔ Output<String>
Name of the Slack 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>
User-defined role that AWS Chatbot assumes. 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
slackChannelId ↔ Output<String>
ID of the Slack channel. For example, C07EZ1ABC23.
latefinal
slackChannelName ↔ Output<String>
Name of the Slack channel.
latefinal
slackTeamId ↔ Output<String>
ID of the Slack workspace authorized with AWS Chatbot. For example, T07EA123LEP.
latefinal
slackTeamName ↔ Output<String>
Name of the Slack team.
latefinal
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
timeouts ↔ Output<SlackChannelConfigurationTimeouts?>
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, {SlackChannelConfigurationState? state, CustomResourceOptions? options}) SlackChannelConfiguration
Gets an existing SlackChannelConfiguration resource's state with the given name and id.