1. Registry
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. SlackApprovals
Viewing docs for Thoth v0.1.24
published on Thursday, Nov 5, 2026 by Aten Security
thoth logo Thoth
Viewing docs for Thoth v0.1.24
published on Thursday, Nov 5, 2026 by Aten Security

    Create SlackApprovals Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SlackApprovals(name: string, args: SlackApprovalsArgs, opts?: CustomResourceOptions);
    @overload
    def SlackApprovals(resource_name: str,
                       args: SlackApprovalsArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlackApprovals(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       reviewer_emails: Optional[Sequence[str]] = None,
                       channel_id: Optional[str] = None)
    func NewSlackApprovals(ctx *Context, name string, args SlackApprovalsArgs, opts ...ResourceOption) (*SlackApprovals, error)
    public SlackApprovals(string name, SlackApprovalsArgs args, CustomResourceOptions? opts = null)
    public SlackApprovals(String name, SlackApprovalsArgs args)
    public SlackApprovals(String name, SlackApprovalsArgs args, CustomResourceOptions options)
    
    type: thoth:governance:SlackApprovals
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_governance_slack_approvals" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SlackApprovalsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SlackApprovalsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SlackApprovalsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlackApprovalsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlackApprovalsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var slackApprovalsResource = new Thoth.Governance.SlackApprovals("slackApprovalsResource", new()
    {
        ReviewerEmails = new[]
        {
            "string",
        },
        ChannelId = "string",
    });
    
    example, err := governance.NewSlackApprovals(ctx, "slackApprovalsResource", &governance.SlackApprovalsArgs{
    	ReviewerEmails: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ChannelId: pulumi.String("string"),
    })
    
    resource "thoth_governance_slack_approvals" "slackApprovalsResource" {
      lifecycle {
        create_before_destroy = true
      }
      reviewer_emails = ["string"]
      channel_id      = "string"
    }
    
    var slackApprovalsResource = new SlackApprovals("slackApprovalsResource", SlackApprovalsArgs.builder()
        .reviewerEmails("string")
        .channelId("string")
        .build());
    
    slack_approvals_resource = thoth.governance.SlackApprovals("slackApprovalsResource",
        reviewer_emails=["string"],
        channel_id="string")
    
    const slackApprovalsResource = new thoth.governance.SlackApprovals("slackApprovalsResource", {
        reviewerEmails: ["string"],
        channelId: "string",
    });
    
    type: thoth:governance:SlackApprovals
    properties:
        channelId: string
        reviewerEmails:
            - string
    

    SlackApprovals Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SlackApprovals resource accepts the following input properties:

    ReviewerEmails List<string>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    ChannelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ReviewerEmails []string
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    ChannelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    reviewer_emails list(string)
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    channel_id string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    reviewerEmails List<String>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    channelId String
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    reviewerEmails string[]
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    channelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    reviewer_emails Sequence[str]
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    channel_id str
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    reviewerEmails List<String>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    channelId String
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SlackApprovals resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    SlackWorkspaceId string
    The connected Slack workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    SlackWorkspaceId string
    The connected Slack workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    slack_workspace_id string
    The connected Slack workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    ready Boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    slackWorkspaceId String
    The connected Slack workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    ready boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    slackWorkspaceId string
    The connected Slack workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    slack_workspace_id str
    The connected Slack workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    ready Boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    slackWorkspaceId String
    The connected Slack workspace.

    Look up Existing SlackApprovals Resource

    Get an existing SlackApprovals resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SlackApprovalsState, opts?: CustomResourceOptions): SlackApprovals
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel_id: Optional[str] = None,
            ready: Optional[bool] = None,
            reviewer_emails: Optional[Sequence[str]] = None,
            slack_workspace_id: Optional[str] = None) -> SlackApprovals
    func GetSlackApprovals(ctx *Context, name string, id IDInput, state *SlackApprovalsState, opts ...ResourceOption) (*SlackApprovals, error)
    public static SlackApprovals Get(string name, Input<string> id, SlackApprovalsState? state, CustomResourceOptions? opts = null)
    public static SlackApprovals get(String name, Output<String> id, SlackApprovalsState state, CustomResourceOptions options)
    resources:  _:    type: thoth:governance:SlackApprovals    get:      id: ${id}
    import {
      to = thoth_governance_slack_approvals.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ChannelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    Ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    ReviewerEmails List<string>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    SlackWorkspaceId string
    The connected Slack workspace.
    ChannelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    Ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    ReviewerEmails []string
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    SlackWorkspaceId string
    The connected Slack workspace.
    channel_id string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    reviewer_emails list(string)
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    slack_workspace_id string
    The connected Slack workspace.
    channelId String
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ready Boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    reviewerEmails List<String>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    slackWorkspaceId String
    The connected Slack workspace.
    channelId string
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ready boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    reviewerEmails string[]
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    slackWorkspaceId string
    The connected Slack workspace.
    channel_id str
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ready bool
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    reviewer_emails Sequence[str]
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    slack_workspace_id str
    The connected Slack workspace.
    channelId String
    The Slack channel ID (such as C0123456789) held actions are posted to. Unset keeps the current channel.
    ready Boolean
    Whether Slack approvals are ready: a channel and at least one reviewer who can act.
    reviewerEmails List<String>
    Who may approve held actions in Slack, at most 50. Each must be a verified, active member of the organization. An empty set allows no one.
    slackWorkspaceId String
    The connected Slack workspace.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo Thoth
    Viewing docs for Thoth v0.1.24
    published on Thursday, Nov 5, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial