UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

166 lines (165 loc) 5.92 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as meraki from "@pulumi/meraki"; * * const example = new meraki.networks.WebhooksPayloadTemplates("example", { * body: "{'event_type':'{{alertTypeId}}','client_payload':{'text':'{{alertData}}'}}", * bodyFile: "Qm9keSBGaWxl", * headers: [{ * name: "Authorization", * template: "Bearer {{sharedSecret}}", * }], * headersFile: "SGVhZGVycyBGaWxl", * name: "Custom Template", * networkId: "string", * }); * export const merakiNetworksWebhooksPayloadTemplatesExample = example; * ``` * * ## Import * * ```sh * $ pulumi import meraki:networks/webhooksPayloadTemplates:WebhooksPayloadTemplates example "network_id,payload_template_id" * ``` */ export declare class WebhooksPayloadTemplates extends pulumi.CustomResource { /** * Get an existing WebhooksPayloadTemplates 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?: WebhooksPayloadTemplatesState, opts?: pulumi.CustomResourceOptions): WebhooksPayloadTemplates; /** * Returns true if the given object is an instance of WebhooksPayloadTemplates. 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 WebhooksPayloadTemplates; /** * The body of the payload template, in liquid template */ readonly body: pulumi.Output<string>; /** * A file containing liquid template used for the body of the webhook message. Either *body* or *bodyFile* must be specified. */ readonly bodyFile: pulumi.Output<string>; /** * The payload template headers, will be rendered as a key-value pair in the webhook. */ readonly headers: pulumi.Output<outputs.networks.WebhooksPayloadTemplatesHeader[]>; /** * A file containing the liquid template used with the webhook headers. */ readonly headersFile: pulumi.Output<string>; /** * The name of the payload template */ readonly name: pulumi.Output<string>; /** * networkId path parameter. Network ID */ readonly networkId: pulumi.Output<string>; /** * Webhook payload template Id */ readonly payloadTemplateId: pulumi.Output<string>; /** * Information on which entities have access to the template */ readonly sharing: pulumi.Output<outputs.networks.WebhooksPayloadTemplatesSharing>; /** * The type of the payload template */ readonly type: pulumi.Output<string>; /** * Create a WebhooksPayloadTemplates 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: WebhooksPayloadTemplatesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WebhooksPayloadTemplates resources. */ export interface WebhooksPayloadTemplatesState { /** * The body of the payload template, in liquid template */ body?: pulumi.Input<string>; /** * A file containing liquid template used for the body of the webhook message. Either *body* or *bodyFile* must be specified. */ bodyFile?: pulumi.Input<string>; /** * The payload template headers, will be rendered as a key-value pair in the webhook. */ headers?: pulumi.Input<pulumi.Input<inputs.networks.WebhooksPayloadTemplatesHeader>[]>; /** * A file containing the liquid template used with the webhook headers. */ headersFile?: pulumi.Input<string>; /** * The name of the payload template */ name?: pulumi.Input<string>; /** * networkId path parameter. Network ID */ networkId?: pulumi.Input<string>; /** * Webhook payload template Id */ payloadTemplateId?: pulumi.Input<string>; /** * Information on which entities have access to the template */ sharing?: pulumi.Input<inputs.networks.WebhooksPayloadTemplatesSharing>; /** * The type of the payload template */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a WebhooksPayloadTemplates resource. */ export interface WebhooksPayloadTemplatesArgs { /** * The body of the payload template, in liquid template */ body?: pulumi.Input<string>; /** * A file containing liquid template used for the body of the webhook message. Either *body* or *bodyFile* must be specified. */ bodyFile?: pulumi.Input<string>; /** * The payload template headers, will be rendered as a key-value pair in the webhook. */ headers?: pulumi.Input<pulumi.Input<inputs.networks.WebhooksPayloadTemplatesHeader>[]>; /** * A file containing the liquid template used with the webhook headers. */ headersFile?: pulumi.Input<string>; /** * The name of the payload template */ name?: pulumi.Input<string>; /** * networkId path parameter. Network ID */ networkId: pulumi.Input<string>; /** * Webhook payload template Id */ payloadTemplateId?: pulumi.Input<string>; }