published on Thursday, Jul 23, 2026 by Aten Security
published on Thursday, Jul 23, 2026 by Aten Security
Create ApprovalDecision Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApprovalDecision(name: string, args: ApprovalDecisionArgs, opts?: CustomResourceOptions);@overload
def ApprovalDecision(resource_name: str,
args: ApprovalDecisionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApprovalDecision(resource_name: str,
opts: Optional[ResourceOptions] = None,
approval_id: Optional[str] = None,
decision: Optional[str] = None)func NewApprovalDecision(ctx *Context, name string, args ApprovalDecisionArgs, opts ...ResourceOption) (*ApprovalDecision, error)public ApprovalDecision(string name, ApprovalDecisionArgs args, CustomResourceOptions? opts = null)
public ApprovalDecision(String name, ApprovalDecisionArgs args)
public ApprovalDecision(String name, ApprovalDecisionArgs args, CustomResourceOptions options)
type: thoth:governance:ApprovalDecision
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "thoth_governance_approval_decision" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ApprovalDecisionArgs
- 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 ApprovalDecisionArgs
- 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 ApprovalDecisionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApprovalDecisionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApprovalDecisionArgs
- 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 approvalDecisionResource = new Thoth.Governance.ApprovalDecision("approvalDecisionResource", new()
{
ApprovalId = "string",
Decision = "string",
});
example, err := governance.NewApprovalDecision(ctx, "approvalDecisionResource", &governance.ApprovalDecisionArgs{
ApprovalId: pulumi.String("string"),
Decision: pulumi.String("string"),
})
resource "thoth_governance_approval_decision" "approvalDecisionResource" {
lifecycle {
create_before_destroy = true
}
approval_id = "string"
decision = "string"
}
var approvalDecisionResource = new ApprovalDecision("approvalDecisionResource", ApprovalDecisionArgs.builder()
.approvalId("string")
.decision("string")
.build());
approval_decision_resource = thoth.governance.ApprovalDecision("approvalDecisionResource",
approval_id="string",
decision="string")
const approvalDecisionResource = new thoth.governance.ApprovalDecision("approvalDecisionResource", {
approvalId: "string",
decision: "string",
});
type: thoth:governance:ApprovalDecision
properties:
approvalId: string
decision: string
ApprovalDecision 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 ApprovalDecision resource accepts the following input properties:
- Approval
Id string - Approval ID to resolve.
- Decision string
- Decision value: approve or deny.
- Approval
Id string - Approval ID to resolve.
- Decision string
- Decision value: approve or deny.
- approval_
id string - Approval ID to resolve.
- decision string
- Decision value: approve or deny.
- approval
Id String - Approval ID to resolve.
- decision String
- Decision value: approve or deny.
- approval
Id string - Approval ID to resolve.
- decision string
- Decision value: approve or deny.
- approval_
id str - Approval ID to resolve.
- decision str
- Decision value: approve or deny.
- approval
Id String - Approval ID to resolve.
- decision String
- Decision value: approve or deny.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApprovalDecision resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Reason string
- Observed approval reason.
- Resolved
By string - Resolver identity returned by GovAPI.
- Status string
- Observed approval status from approvals list endpoint.
- Tenant
Id string - Tenant ID from provider configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Reason string
- Observed approval reason.
- Resolved
By string - Resolver identity returned by GovAPI.
- Status string
- Observed approval status from approvals list endpoint.
- Tenant
Id string - Tenant ID from provider configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- reason string
- Observed approval reason.
- resolved_
by string - Resolver identity returned by GovAPI.
- status string
- Observed approval status from approvals list endpoint.
- tenant_
id string - Tenant ID from provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- reason String
- Observed approval reason.
- resolved
By String - Resolver identity returned by GovAPI.
- status String
- Observed approval status from approvals list endpoint.
- tenant
Id String - Tenant ID from provider configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- reason string
- Observed approval reason.
- resolved
By string - Resolver identity returned by GovAPI.
- status string
- Observed approval status from approvals list endpoint.
- tenant
Id string - Tenant ID from provider configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- reason str
- Observed approval reason.
- resolved_
by str - Resolver identity returned by GovAPI.
- status str
- Observed approval status from approvals list endpoint.
- tenant_
id str - Tenant ID from provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- reason String
- Observed approval reason.
- resolved
By String - Resolver identity returned by GovAPI.
- status String
- Observed approval status from approvals list endpoint.
- tenant
Id String - Tenant ID from provider configuration.
Look up Existing ApprovalDecision Resource
Get an existing ApprovalDecision 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?: ApprovalDecisionState, opts?: CustomResourceOptions): ApprovalDecision@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
approval_id: Optional[str] = None,
decision: Optional[str] = None,
reason: Optional[str] = None,
resolved_by: Optional[str] = None,
status: Optional[str] = None,
tenant_id: Optional[str] = None) -> ApprovalDecisionfunc GetApprovalDecision(ctx *Context, name string, id IDInput, state *ApprovalDecisionState, opts ...ResourceOption) (*ApprovalDecision, error)public static ApprovalDecision Get(string name, Input<string> id, ApprovalDecisionState? state, CustomResourceOptions? opts = null)public static ApprovalDecision get(String name, Output<String> id, ApprovalDecisionState state, CustomResourceOptions options)resources: _: type: thoth:governance:ApprovalDecision get: id: ${id}import {
to = thoth_governance_approval_decision.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.
- Approval
Id string - Approval ID to resolve.
- Decision string
- Decision value: approve or deny.
- Reason string
- Observed approval reason.
- Resolved
By string - Resolver identity returned by GovAPI.
- Status string
- Observed approval status from approvals list endpoint.
- Tenant
Id string - Tenant ID from provider configuration.
- Approval
Id string - Approval ID to resolve.
- Decision string
- Decision value: approve or deny.
- Reason string
- Observed approval reason.
- Resolved
By string - Resolver identity returned by GovAPI.
- Status string
- Observed approval status from approvals list endpoint.
- Tenant
Id string - Tenant ID from provider configuration.
- approval_
id string - Approval ID to resolve.
- decision string
- Decision value: approve or deny.
- reason string
- Observed approval reason.
- resolved_
by string - Resolver identity returned by GovAPI.
- status string
- Observed approval status from approvals list endpoint.
- tenant_
id string - Tenant ID from provider configuration.
- approval
Id String - Approval ID to resolve.
- decision String
- Decision value: approve or deny.
- reason String
- Observed approval reason.
- resolved
By String - Resolver identity returned by GovAPI.
- status String
- Observed approval status from approvals list endpoint.
- tenant
Id String - Tenant ID from provider configuration.
- approval
Id string - Approval ID to resolve.
- decision string
- Decision value: approve or deny.
- reason string
- Observed approval reason.
- resolved
By string - Resolver identity returned by GovAPI.
- status string
- Observed approval status from approvals list endpoint.
- tenant
Id string - Tenant ID from provider configuration.
- approval_
id str - Approval ID to resolve.
- decision str
- Decision value: approve or deny.
- reason str
- Observed approval reason.
- resolved_
by str - Resolver identity returned by GovAPI.
- status str
- Observed approval status from approvals list endpoint.
- tenant_
id str - Tenant ID from provider configuration.
- approval
Id String - Approval ID to resolve.
- decision String
- Decision value: approve or deny.
- reason String
- Observed approval reason.
- resolved
By String - Resolver identity returned by GovAPI.
- status String
- Observed approval status from approvals list endpoint.
- tenant
Id String - Tenant ID from provider configuration.
Package Details
- Repository
- thoth atensecurity/pulumi-thoth
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
thothTerraform Provider.
published on Thursday, Jul 23, 2026 by Aten Security