AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.chatbot.getSlackWorkspace
Explore with Pulumi AI
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:
- Slack
Team stringName - Slack workspace name configured with AWS Chatbot.
- Slack
Team stringName - Slack workspace name configured with AWS Chatbot.
- slack
Team StringName - Slack workspace name configured with AWS Chatbot.
- slack
Team stringName - Slack workspace name configured with AWS Chatbot.
- slack_
team_ strname - Slack workspace name configured with AWS Chatbot.
- slack
Team StringName - 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.
- Slack
Team stringId - ID of the Slack Workspace assigned by AWS Chatbot.
- Slack
Team stringName
- Id string
- The provider-assigned unique ID for this managed resource.
- Slack
Team stringId - ID of the Slack Workspace assigned by AWS Chatbot.
- Slack
Team stringName
- id String
- The provider-assigned unique ID for this managed resource.
- slack
Team StringId - ID of the Slack Workspace assigned by AWS Chatbot.
- slack
Team StringName
- id string
- The provider-assigned unique ID for this managed resource.
- slack
Team stringId - ID of the Slack Workspace assigned by AWS Chatbot.
- slack
Team stringName
- id str
- The provider-assigned unique ID for this managed resource.
- slack_
team_ strid - ID of the Slack Workspace assigned by AWS Chatbot.
- slack_
team_ strname
- id String
- The provider-assigned unique ID for this managed resource.
- slack
Team StringId - ID of the Slack Workspace assigned by AWS Chatbot.
- slack
Team StringName
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.