UNPKG

@emailbob/twingate

Version:

A Pulumi package for creating and managing Twingate cloud resources.

129 lines (128 loc) 4.16 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Security Policies are defined in the Twingate Admin Console and determine user and device authentication requirements for Resources. * * ## Example Usage * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as twingate from "@pulumi/twingate"; * * const all = twingate.getTwingateSecurityPolicies({ * name: "<your security policy's name>", * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getTwingateSecurityPolicies(args?: GetTwingateSecurityPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetTwingateSecurityPoliciesResult>; /** * A collection of arguments for invoking getTwingateSecurityPolicies. */ export interface GetTwingateSecurityPoliciesArgs { /** * Return a Security Policy that exactly matches this name. */ name?: string; /** * Match when the value exist in the name of the security policy. */ nameContains?: string; /** * Match when the exact value does not exist in the name of the security policy. */ nameExclude?: string; /** * The name of the security policy must start with the value. */ namePrefix?: string; /** * The regular expression match of the name of the security policy. */ nameRegexp?: string; /** * The name of the security policy must end with the value. */ nameSuffix?: string; } /** * A collection of values returned by getTwingateSecurityPolicies. */ export interface GetTwingateSecurityPoliciesResult { /** * The ID of this resource. */ readonly id: string; /** * Returns only security policies that exactly match this name. If no options are passed it will return all security policies. Only one option can be used at a time. */ readonly name?: string; /** * Match when the value exist in the name of the security policy. */ readonly nameContains?: string; /** * Match when the exact value does not exist in the name of the security policy. */ readonly nameExclude?: string; /** * The name of the security policy must start with the value. */ readonly namePrefix?: string; /** * The regular expression match of the name of the security policy. */ readonly nameRegexp?: string; /** * The name of the security policy must end with the value. */ readonly nameSuffix?: string; readonly securityPolicies: outputs.GetTwingateSecurityPoliciesSecurityPolicy[]; } /** * Security Policies are defined in the Twingate Admin Console and determine user and device authentication requirements for Resources. * * ## Example Usage * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as twingate from "@pulumi/twingate"; * * const all = twingate.getTwingateSecurityPolicies({ * name: "<your security policy's name>", * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getTwingateSecurityPoliciesOutput(args?: GetTwingateSecurityPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTwingateSecurityPoliciesResult>; /** * A collection of arguments for invoking getTwingateSecurityPolicies. */ export interface GetTwingateSecurityPoliciesOutputArgs { /** * Return a Security Policy that exactly matches this name. */ name?: pulumi.Input<string>; /** * Match when the value exist in the name of the security policy. */ nameContains?: pulumi.Input<string>; /** * Match when the exact value does not exist in the name of the security policy. */ nameExclude?: pulumi.Input<string>; /** * The name of the security policy must start with the value. */ namePrefix?: pulumi.Input<string>; /** * The regular expression match of the name of the security policy. */ nameRegexp?: pulumi.Input<string>; /** * The name of the security policy must end with the value. */ nameSuffix?: pulumi.Input<string>; }