UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

102 lines (101 loc) 4.25 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Import * * This is an example of the import command being applied to the resource named `fastly_service_dynamic_snippet_content.content` * * The resource ID is a combined value of the `service_id` and `snippet_id` separated by a forward slash. * * ```sh * $ pulumi import fastly:index/serviceDynamicSnippetContent:ServiceDynamicSnippetContent content xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx * ``` * * If Terraform is already managing remote content against a resource being imported then the user will be asked to remove it from the existing Terraform state. * * The following is an example of the Terraform state command to remove the resource named `fastly_service_dynamic_snippet_content.content` from the Terraform state file. * * $ terraform state rm fastly_service_dynamic_snippet_content.content */ export declare class ServiceDynamicSnippetContent extends pulumi.CustomResource { /** * Get an existing ServiceDynamicSnippetContent 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?: ServiceDynamicSnippetContentState, opts?: pulumi.CustomResourceOptions): ServiceDynamicSnippetContent; /** * Returns true if the given object is an instance of ServiceDynamicSnippetContent. 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 ServiceDynamicSnippetContent; /** * The VCL code that specifies exactly what the snippet does */ readonly content: pulumi.Output<string>; /** * Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally */ readonly manageSnippets: pulumi.Output<boolean | undefined>; /** * The ID of the service that the dynamic snippet belongs to */ readonly serviceId: pulumi.Output<string>; /** * The ID of the dynamic snippet that the content belong to */ readonly snippetId: pulumi.Output<string>; /** * Create a ServiceDynamicSnippetContent 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: ServiceDynamicSnippetContentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceDynamicSnippetContent resources. */ export interface ServiceDynamicSnippetContentState { /** * The VCL code that specifies exactly what the snippet does */ content?: pulumi.Input<string>; /** * Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally */ manageSnippets?: pulumi.Input<boolean>; /** * The ID of the service that the dynamic snippet belongs to */ serviceId?: pulumi.Input<string>; /** * The ID of the dynamic snippet that the content belong to */ snippetId?: pulumi.Input<string>; } /** * The set of arguments for constructing a ServiceDynamicSnippetContent resource. */ export interface ServiceDynamicSnippetContentArgs { /** * The VCL code that specifies exactly what the snippet does */ content: pulumi.Input<string>; /** * Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally */ manageSnippets?: pulumi.Input<boolean>; /** * The ID of the service that the dynamic snippet belongs to */ serviceId: pulumi.Input<string>; /** * The ID of the dynamic snippet that the content belong to */ snippetId: pulumi.Input<string>; }