UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

273 lines (272 loc) 9.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * HttpHeaderProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const scmHttpHeaderProfile1 = new scm.HttpHeaderProfile("scm_http_header_profile_1", { * folder: "All", * name: "base_http_header_profile_1", * }); * const scmHttpHeaderProfile2 = new scm.HttpHeaderProfile("scm_http_header_profile_2", { * folder: "All", * name: "simple_http_header_profile_2", * httpHeaderInsertions: [{ * name: "header_one", * type: [{ * name: "Google Apps Access Control", * domains: ["*.google.com"], * headers: [{ * name: "X-GooGAppls-Allowed-Domains", * header: "X-GooGAppls-Allowed-Domains", * value: "user-allowed", * }], * }], * }], * }); * const scmHttpHeaderProfile3 = new scm.HttpHeaderProfile("scm_http_header_profile_3", { * folder: "All", * name: "complete_http_header_profile_3", * httpHeaderInsertions: [ * { * name: "header_insertion_one", * type: [{ * name: "Dropbox Network Control", * domains: [ * "*.db.tt", * "*.dropbox.com", * "dropboxformum.com", * ], * headers: [ * { * name: "X-Dropbox-allowed-Team-Ids", * header: "X-Dropbox-allowed-Team-Ids", * value: "dropbox-users", * }, * { * name: "custom_header", * header: "custom_header", * value: "10-header", * }, * ], * }], * }, * { * name: "header_insertion_two", * type: [{ * name: "Microsoft Office365 Tenant Restrictions", * domains: [ * "login.mircosoft.com", * "login.mircosoftonline.com", * "login.windows.net", * ], * headers: [ * { * name: "Restrict-Access-Context", * header: "Restrict-Access-Context", * value: "denied-context", * }, * { * name: "Restrict-Access-To-Tenants", * header: "Restrict-Access-To-Tenants", * value: "denied-tenants", * }, * ], * }], * }, * { * name: "header_insertion_three", * type: [{ * name: "Dynamic Fields", * domains: ["custom_domain"], * headers: [{ * name: "Authorization", * header: "Authorization", * value: "auth", * }], * }], * }, * { * name: "header_insertion_four", * type: [{ * name: "Youtube Safe Search", * domains: [ * "m.youtube.com", * "www.youtube.com", * ], * headers: [{ * name: "Youtube-Restrict", * header: "Youtube-Restrict", * value: "denied-youtube", * }], * }], * }, * { * name: "header_insertion_five", * type: [{ * name: "Custom", * domains: [ * "custom_1", * "custom_2", * ], * headers: [{ * name: "custom_header", * header: "custom_header", * value: "custom", * }], * }], * }, * ], * }); * ``` * * ## Import * * The following command can be used to import a resource not managed by Terraform: * * bash * * ```sh * $ pulumi import scm:index/httpHeaderProfile:HttpHeaderProfile example folder:::id * ``` * * or * * bash * * ```sh * $ pulumi import scm:index/httpHeaderProfile:HttpHeaderProfile example :snippet::id * ``` * * or * * bash * * ```sh * $ pulumi import scm:index/httpHeaderProfile:HttpHeaderProfile example ::device:id * ``` */ export declare class HttpHeaderProfile extends pulumi.CustomResource { /** * Get an existing HttpHeaderProfile 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?: HttpHeaderProfileState, opts?: pulumi.CustomResourceOptions): HttpHeaderProfile; /** * Returns true if the given object is an instance of HttpHeaderProfile. 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 HttpHeaderProfile; /** * The description of the HTTP header profile */ readonly description: pulumi.Output<string | undefined>; /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: pulumi.Output<string | undefined>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: pulumi.Output<string | undefined>; /** * A list of HTTP header profile rules */ readonly httpHeaderInsertions: pulumi.Output<outputs.HttpHeaderProfileHttpHeaderInsertion[] | undefined>; /** * The name of the HTTP header profile */ readonly name: pulumi.Output<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: pulumi.Output<string | undefined>; readonly tfid: pulumi.Output<string>; /** * Create a HttpHeaderProfile 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?: HttpHeaderProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpHeaderProfile resources. */ export interface HttpHeaderProfileState { /** * The description of the HTTP header profile */ description?: pulumi.Input<string>; /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * A list of HTTP header profile rules */ httpHeaderInsertions?: pulumi.Input<pulumi.Input<inputs.HttpHeaderProfileHttpHeaderInsertion>[]>; /** * The name of the HTTP header profile */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; tfid?: pulumi.Input<string>; } /** * The set of arguments for constructing a HttpHeaderProfile resource. */ export interface HttpHeaderProfileArgs { /** * The description of the HTTP header profile */ description?: pulumi.Input<string>; /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * A list of HTTP header profile rules */ httpHeaderInsertions?: pulumi.Input<pulumi.Input<inputs.HttpHeaderProfileHttpHeaderInsertion>[]>; /** * The name of the HTTP header profile */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }