UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

100 lines 3.42 kB
import * as pulumi from "@pulumi/pulumi"; /** * Policy is a collection of one or more statements that enforce fine-grained access control * for the users of an organization. * ## Example Usage * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const permitEverything = new sdm.Policy("permit_everything", { * name: "permit-everything", * description: "this policy permits everything", * policyContent: "permit(principal, action, resource);\n", * }); * ``` * <!--End PulumiCodeChooser --> * This resource can be imported using the import command. * * ## Import * * A Policy can be imported using the id, e.g., * * ```sh * $ pulumi import sdm:index/policy:Policy example po-12345678 * ``` */ export declare class Policy extends pulumi.CustomResource { /** * Get an existing Policy 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?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy; /** * Returns true if the given object is an instance of Policy. 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 Policy; /** * Optional description of the Policy. */ readonly description: pulumi.Output<string | undefined>; /** * Unique human-readable name of the Policy. */ readonly name: pulumi.Output<string>; /** * The content of the Policy, in Cedar policy language. */ readonly policyContent: pulumi.Output<string | undefined>; /** * Create a Policy 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?: PolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Policy resources. */ export interface PolicyState { /** * Optional description of the Policy. */ description?: pulumi.Input<string | undefined>; /** * Unique human-readable name of the Policy. */ name?: pulumi.Input<string | undefined>; /** * The content of the Policy, in Cedar policy language. */ policyContent?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a Policy resource. */ export interface PolicyArgs { /** * Optional description of the Policy. */ description?: pulumi.Input<string | undefined>; /** * Unique human-readable name of the Policy. */ name?: pulumi.Input<string | undefined>; /** * The content of the Policy, in Cedar policy language. */ policyContent?: pulumi.Input<string | undefined>; } //# sourceMappingURL=policy.d.ts.map