published on Thursday, Nov 5, 2026 by Aten Security
Thothpublished 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:
- 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.
- Reviewer
Emails []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.
- 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.
- 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.
- reviewer
Emails 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.
- 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.
- 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.
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.
- Slack
Workspace stringId - 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 stringId - 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_ stringid - 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.
- slack
Workspace StringId - 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.
- slack
Workspace stringId - 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_ strid - 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.
- slack
Workspace StringId - 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) -> SlackApprovalsfunc 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: existingSlackApprovals: type: thoth:governance:SlackApprovals get: id: ${id}import {
to = thoth_governance_slack_approvals.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state SlackApprovalsState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state SlackApprovalsState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state SlackApprovalsState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state SlackApprovalsState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- 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 stringId - 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 []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 stringId - 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_ stringid - 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 Boolean
- 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 StringId - 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 boolean
- Whether Slack approvals are ready: a channel and at least one reviewer who can act.
- reviewer
Emails 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 stringId - 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_ strid - 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 Boolean
- 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 StringId - The connected Slack workspace.
Package Details
- Repository
- thoth atensecurity/pulumi-thoth
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
thothTerraform Provider.
Thothpublished on Thursday, Nov 5, 2026 by Aten Security