@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
140 lines (139 loc) • 4.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* ApprovalWorkflows are the mechanism by which requests for access can be viewed by authorized
* approvers and be approved or denied.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const manualApprovalWorkflow = new sdm.ApprovalWorkflow("manualApprovalWorkflow", {
* approvalMode: "manual",
* approvalSteps: [
* {
* approvers: [
* {
* accountId: "a-1234abc",
* },
* {
* reference: "manager-of-requester",
* },
* ],
* quantifier: "any",
* skipAfter: "1h0m0s",
* },
* {
* approvers: [
* {
* roleId: "r-1234abc",
* },
* {
* accountId: "a-5678def",
* },
* {
* reference: "manager-of-manager-of-requester",
* },
* ],
* quantifier: "all",
* skipAfter: "0s",
* },
* ],
* });
* const autoGrantApprovalWorkflow = new sdm.ApprovalWorkflow("autoGrantApprovalWorkflow", {approvalMode: "automatic"});
* ```
* This resource can be imported using the import command.
*
* ## Import
*
* A ApprovalWorkflow can be imported using the id, e.g.,
*
* ```sh
* $ pulumi import sdm:index/approvalWorkflow:ApprovalWorkflow example af-12345678
* ```
*/
export declare class ApprovalWorkflow extends pulumi.CustomResource {
/**
* Get an existing ApprovalWorkflow resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApprovalWorkflowState, opts?: pulumi.CustomResourceOptions): ApprovalWorkflow;
/**
* Returns true if the given object is an instance of ApprovalWorkflow. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ApprovalWorkflow;
/**
* Approval mode of the ApprovalWorkflow
*/
readonly approvalMode: pulumi.Output<string>;
/**
* The approval steps of this approval workflow
*/
readonly approvalSteps: pulumi.Output<outputs.ApprovalWorkflowApprovalStep[] | undefined>;
/**
* Optional description of the ApprovalWorkflow.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Unique human-readable name of the ApprovalWorkflow.
*/
readonly name: pulumi.Output<string>;
/**
* Create a ApprovalWorkflow resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ApprovalWorkflowArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ApprovalWorkflow resources.
*/
export interface ApprovalWorkflowState {
/**
* Approval mode of the ApprovalWorkflow
*/
approvalMode?: pulumi.Input<string>;
/**
* The approval steps of this approval workflow
*/
approvalSteps?: pulumi.Input<pulumi.Input<inputs.ApprovalWorkflowApprovalStep>[]>;
/**
* Optional description of the ApprovalWorkflow.
*/
description?: pulumi.Input<string>;
/**
* Unique human-readable name of the ApprovalWorkflow.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ApprovalWorkflow resource.
*/
export interface ApprovalWorkflowArgs {
/**
* Approval mode of the ApprovalWorkflow
*/
approvalMode: pulumi.Input<string>;
/**
* The approval steps of this approval workflow
*/
approvalSteps?: pulumi.Input<pulumi.Input<inputs.ApprovalWorkflowApprovalStep>[]>;
/**
* Optional description of the ApprovalWorkflow.
*/
description?: pulumi.Input<string>;
/**
* Unique human-readable name of the ApprovalWorkflow.
*/
name?: pulumi.Input<string>;
}