1. Packages
  2. AWS
  3. API Docs
  4. chatbot
  5. getSlackWorkspace
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.chatbot.getSlackWorkspace

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Data source for managing an AWS Chatbot Slack Workspace.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.chatbot.getSlackWorkspace({
        slackTeamName: "abc",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.chatbot.get_slack_workspace(slack_team_name="abc")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chatbot"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chatbot.GetSlackWorkspace(ctx, &chatbot.GetSlackWorkspaceArgs{
    			SlackTeamName: "abc",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Chatbot.GetSlackWorkspace.Invoke(new()
        {
            SlackTeamName = "abc",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.chatbot.ChatbotFunctions;
    import com.pulumi.aws.chatbot.inputs.GetSlackWorkspaceArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            final var example = ChatbotFunctions.getSlackWorkspace(GetSlackWorkspaceArgs.builder()
                .slackTeamName("abc")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:chatbot:getSlackWorkspace
          Arguments:
            slackTeamName: abc
    

    Using getSlackWorkspace

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSlackWorkspace(args: GetSlackWorkspaceArgs, opts?: InvokeOptions): Promise<GetSlackWorkspaceResult>
    function getSlackWorkspaceOutput(args: GetSlackWorkspaceOutputArgs, opts?: InvokeOptions): Output<GetSlackWorkspaceResult>
    def get_slack_workspace(slack_team_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSlackWorkspaceResult
    def get_slack_workspace_output(slack_team_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSlackWorkspaceResult]
    func GetSlackWorkspace(ctx *Context, args *GetSlackWorkspaceArgs, opts ...InvokeOption) (*GetSlackWorkspaceResult, error)
    func GetSlackWorkspaceOutput(ctx *Context, args *GetSlackWorkspaceOutputArgs, opts ...InvokeOption) GetSlackWorkspaceResultOutput

    > Note: This function is named GetSlackWorkspace in the Go SDK.

    public static class GetSlackWorkspace 
    {
        public static Task<GetSlackWorkspaceResult> InvokeAsync(GetSlackWorkspaceArgs args, InvokeOptions? opts = null)
        public static Output<GetSlackWorkspaceResult> Invoke(GetSlackWorkspaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSlackWorkspaceResult> getSlackWorkspace(GetSlackWorkspaceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:chatbot/getSlackWorkspace:getSlackWorkspace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SlackTeamName string
    Slack workspace name configured with AWS Chatbot.
    SlackTeamName string
    Slack workspace name configured with AWS Chatbot.
    slackTeamName String
    Slack workspace name configured with AWS Chatbot.
    slackTeamName string
    Slack workspace name configured with AWS Chatbot.
    slack_team_name str
    Slack workspace name configured with AWS Chatbot.
    slackTeamName String
    Slack workspace name configured with AWS Chatbot.

    getSlackWorkspace Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SlackTeamId string
    ID of the Slack Workspace assigned by AWS Chatbot.
    SlackTeamName string
    Id string
    The provider-assigned unique ID for this managed resource.
    SlackTeamId string
    ID of the Slack Workspace assigned by AWS Chatbot.
    SlackTeamName string
    id String
    The provider-assigned unique ID for this managed resource.
    slackTeamId String
    ID of the Slack Workspace assigned by AWS Chatbot.
    slackTeamName String
    id string
    The provider-assigned unique ID for this managed resource.
    slackTeamId string
    ID of the Slack Workspace assigned by AWS Chatbot.
    slackTeamName string
    id str
    The provider-assigned unique ID for this managed resource.
    slack_team_id str
    ID of the Slack Workspace assigned by AWS Chatbot.
    slack_team_name str
    id String
    The provider-assigned unique ID for this managed resource.
    slackTeamId String
    ID of the Slack Workspace assigned by AWS Chatbot.
    slackTeamName String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi