UNPKG

@pulumi/fastly

Version:

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

302 lines (301 loc) • 17.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Import * * Fastly Services can be imported using their service ID, e.g. * * ```sh * $ pulumi import fastly:index/serviceCompute:ServiceCompute demo xxxxxxxxxxxxxxxxxxxx * ``` * * By default, either the active version will be imported, or the latest version if no version is active. * * Alternatively, a specific version of the service can be selected by appending an `@` followed by the version number to the service ID, e.g. * * ```sh * $ pulumi import fastly:index/serviceCompute:ServiceCompute demo xxxxxxxxxxxxxxxxxxxx@2 * ``` */ export declare class ServiceCompute extends pulumi.CustomResource { /** * Get an existing ServiceCompute 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?: ServiceComputeState, opts?: pulumi.CustomResourceOptions): ServiceCompute; /** * Returns true if the given object is an instance of ServiceCompute. 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 ServiceCompute; /** * Conditionally prevents new service versions from being activated. The apply step will create a new draft version but * will not activate it if this is set to `false`. Default `true` */ readonly activate: pulumi.Output<boolean | undefined>; /** * The currently active version of your Fastly Service */ readonly activeVersion: pulumi.Output<number>; readonly backends: pulumi.Output<outputs.ServiceComputeBackend[] | undefined>; /** * The latest cloned version by the provider */ readonly clonedVersion: pulumi.Output<number>; readonly comment: pulumi.Output<string | undefined>; readonly dictionaries: pulumi.Output<outputs.ServiceComputeDictionary[] | undefined>; /** * A set of Domain names to serve as entry points for your Service */ readonly domains: pulumi.Output<outputs.ServiceComputeDomain[]>; /** * Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default * `false` */ readonly forceDestroy: pulumi.Output<boolean | undefined>; readonly forceRefresh: pulumi.Output<boolean>; readonly imageOptimizerDefaultSettings: pulumi.Output<outputs.ServiceComputeImageOptimizerDefaultSettings | undefined>; /** * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the * import is finished */ readonly imported: pulumi.Output<boolean>; readonly loggingBigqueries: pulumi.Output<outputs.ServiceComputeLoggingBigquery[] | undefined>; readonly loggingBlobstorages: pulumi.Output<outputs.ServiceComputeLoggingBlobstorage[] | undefined>; readonly loggingCloudfiles: pulumi.Output<outputs.ServiceComputeLoggingCloudfile[] | undefined>; readonly loggingDatadogs: pulumi.Output<outputs.ServiceComputeLoggingDatadog[] | undefined>; readonly loggingDigitaloceans: pulumi.Output<outputs.ServiceComputeLoggingDigitalocean[] | undefined>; readonly loggingElasticsearches: pulumi.Output<outputs.ServiceComputeLoggingElasticsearch[] | undefined>; readonly loggingFtps: pulumi.Output<outputs.ServiceComputeLoggingFtp[] | undefined>; readonly loggingGcs: pulumi.Output<outputs.ServiceComputeLoggingGc[] | undefined>; readonly loggingGooglepubsubs: pulumi.Output<outputs.ServiceComputeLoggingGooglepubsub[] | undefined>; readonly loggingGrafanacloudlogs: pulumi.Output<outputs.ServiceComputeLoggingGrafanacloudlog[] | undefined>; readonly loggingHeroku: pulumi.Output<outputs.ServiceComputeLoggingHeroku[] | undefined>; readonly loggingHoneycombs: pulumi.Output<outputs.ServiceComputeLoggingHoneycomb[] | undefined>; readonly loggingHttps: pulumi.Output<outputs.ServiceComputeLoggingHttp[] | undefined>; readonly loggingKafkas: pulumi.Output<outputs.ServiceComputeLoggingKafka[] | undefined>; readonly loggingKineses: pulumi.Output<outputs.ServiceComputeLoggingKinese[] | undefined>; readonly loggingLogentries: pulumi.Output<outputs.ServiceComputeLoggingLogentry[] | undefined>; readonly loggingLogglies: pulumi.Output<outputs.ServiceComputeLoggingLoggly[] | undefined>; readonly loggingLogshuttles: pulumi.Output<outputs.ServiceComputeLoggingLogshuttle[] | undefined>; readonly loggingNewrelics: pulumi.Output<outputs.ServiceComputeLoggingNewrelic[] | undefined>; readonly loggingOpenstacks: pulumi.Output<outputs.ServiceComputeLoggingOpenstack[] | undefined>; readonly loggingPapertrails: pulumi.Output<outputs.ServiceComputeLoggingPapertrail[] | undefined>; readonly loggingS3s: pulumi.Output<outputs.ServiceComputeLoggingS3[] | undefined>; readonly loggingScalyrs: pulumi.Output<outputs.ServiceComputeLoggingScalyr[] | undefined>; readonly loggingSftps: pulumi.Output<outputs.ServiceComputeLoggingSftp[] | undefined>; readonly loggingSplunks: pulumi.Output<outputs.ServiceComputeLoggingSplunk[] | undefined>; readonly loggingSumologics: pulumi.Output<outputs.ServiceComputeLoggingSumologic[] | undefined>; readonly loggingSyslogs: pulumi.Output<outputs.ServiceComputeLoggingSyslog[] | undefined>; /** * The unique name for the Service to create */ readonly name: pulumi.Output<string>; /** * The `package` block supports uploading or modifying Wasm packages for use in a Fastly Compute service (if omitted, * ensure `activate = false` is set on `fastly.ServiceCompute` to avoid service validation errors). See Fastly's * documentation on [Compute](https://developer.fastly.com/learning/compute/) */ readonly package: pulumi.Output<outputs.ServiceComputePackage | undefined>; readonly productEnablement: pulumi.Output<outputs.ServiceComputeProductEnablement | undefined>; /** * A resource link represents a link between a shared resource (such as an KV Store or Config Store) and a service version. */ readonly resourceLinks: pulumi.Output<outputs.ServiceComputeResourceLink[] | undefined>; readonly reuse: pulumi.Output<boolean | undefined>; /** * Conditionally enables new service versions to be staged. If `set` to true, all changes made by an `apply` step will be * staged, even if `apply` did not create a new draft version. Default `false` */ readonly stage: pulumi.Output<boolean | undefined>; /** * The currently staged version of your Fastly Service */ readonly stagedVersion: pulumi.Output<number>; /** * Description field for the version */ readonly versionComment: pulumi.Output<string | undefined>; /** * Create a ServiceCompute 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: ServiceComputeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceCompute resources. */ export interface ServiceComputeState { /** * Conditionally prevents new service versions from being activated. The apply step will create a new draft version but * will not activate it if this is set to `false`. Default `true` */ activate?: pulumi.Input<boolean>; /** * The currently active version of your Fastly Service */ activeVersion?: pulumi.Input<number>; backends?: pulumi.Input<pulumi.Input<inputs.ServiceComputeBackend>[]>; /** * The latest cloned version by the provider */ clonedVersion?: pulumi.Input<number>; comment?: pulumi.Input<string>; dictionaries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeDictionary>[]>; /** * A set of Domain names to serve as entry points for your Service */ domains?: pulumi.Input<pulumi.Input<inputs.ServiceComputeDomain>[]>; /** * Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default * `false` */ forceDestroy?: pulumi.Input<boolean>; forceRefresh?: pulumi.Input<boolean>; imageOptimizerDefaultSettings?: pulumi.Input<inputs.ServiceComputeImageOptimizerDefaultSettings>; /** * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the * import is finished */ imported?: pulumi.Input<boolean>; loggingBigqueries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingBigquery>[]>; loggingBlobstorages?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingBlobstorage>[]>; loggingCloudfiles?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingCloudfile>[]>; loggingDatadogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingDatadog>[]>; loggingDigitaloceans?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingDigitalocean>[]>; loggingElasticsearches?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingElasticsearch>[]>; loggingFtps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingFtp>[]>; loggingGcs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGc>[]>; loggingGooglepubsubs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGooglepubsub>[]>; loggingGrafanacloudlogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGrafanacloudlog>[]>; loggingHeroku?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHeroku>[]>; loggingHoneycombs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHoneycomb>[]>; loggingHttps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHttp>[]>; loggingKafkas?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingKafka>[]>; loggingKineses?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingKinese>[]>; loggingLogentries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLogentry>[]>; loggingLogglies?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLoggly>[]>; loggingLogshuttles?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLogshuttle>[]>; loggingNewrelics?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingNewrelic>[]>; loggingOpenstacks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingOpenstack>[]>; loggingPapertrails?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingPapertrail>[]>; loggingS3s?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingS3>[]>; loggingScalyrs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingScalyr>[]>; loggingSftps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSftp>[]>; loggingSplunks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSplunk>[]>; loggingSumologics?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSumologic>[]>; loggingSyslogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSyslog>[]>; /** * The unique name for the Service to create */ name?: pulumi.Input<string>; /** * The `package` block supports uploading or modifying Wasm packages for use in a Fastly Compute service (if omitted, * ensure `activate = false` is set on `fastly.ServiceCompute` to avoid service validation errors). See Fastly's * documentation on [Compute](https://developer.fastly.com/learning/compute/) */ package?: pulumi.Input<inputs.ServiceComputePackage>; productEnablement?: pulumi.Input<inputs.ServiceComputeProductEnablement>; /** * A resource link represents a link between a shared resource (such as an KV Store or Config Store) and a service version. */ resourceLinks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeResourceLink>[]>; reuse?: pulumi.Input<boolean>; /** * Conditionally enables new service versions to be staged. If `set` to true, all changes made by an `apply` step will be * staged, even if `apply` did not create a new draft version. Default `false` */ stage?: pulumi.Input<boolean>; /** * The currently staged version of your Fastly Service */ stagedVersion?: pulumi.Input<number>; /** * Description field for the version */ versionComment?: pulumi.Input<string>; } /** * The set of arguments for constructing a ServiceCompute resource. */ export interface ServiceComputeArgs { /** * Conditionally prevents new service versions from being activated. The apply step will create a new draft version but * will not activate it if this is set to `false`. Default `true` */ activate?: pulumi.Input<boolean>; backends?: pulumi.Input<pulumi.Input<inputs.ServiceComputeBackend>[]>; comment?: pulumi.Input<string>; dictionaries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeDictionary>[]>; /** * A set of Domain names to serve as entry points for your Service */ domains: pulumi.Input<pulumi.Input<inputs.ServiceComputeDomain>[]>; /** * Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default * `false` */ forceDestroy?: pulumi.Input<boolean>; imageOptimizerDefaultSettings?: pulumi.Input<inputs.ServiceComputeImageOptimizerDefaultSettings>; loggingBigqueries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingBigquery>[]>; loggingBlobstorages?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingBlobstorage>[]>; loggingCloudfiles?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingCloudfile>[]>; loggingDatadogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingDatadog>[]>; loggingDigitaloceans?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingDigitalocean>[]>; loggingElasticsearches?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingElasticsearch>[]>; loggingFtps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingFtp>[]>; loggingGcs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGc>[]>; loggingGooglepubsubs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGooglepubsub>[]>; loggingGrafanacloudlogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingGrafanacloudlog>[]>; loggingHeroku?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHeroku>[]>; loggingHoneycombs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHoneycomb>[]>; loggingHttps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingHttp>[]>; loggingKafkas?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingKafka>[]>; loggingKineses?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingKinese>[]>; loggingLogentries?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLogentry>[]>; loggingLogglies?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLoggly>[]>; loggingLogshuttles?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingLogshuttle>[]>; loggingNewrelics?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingNewrelic>[]>; loggingOpenstacks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingOpenstack>[]>; loggingPapertrails?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingPapertrail>[]>; loggingS3s?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingS3>[]>; loggingScalyrs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingScalyr>[]>; loggingSftps?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSftp>[]>; loggingSplunks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSplunk>[]>; loggingSumologics?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSumologic>[]>; loggingSyslogs?: pulumi.Input<pulumi.Input<inputs.ServiceComputeLoggingSyslog>[]>; /** * The unique name for the Service to create */ name?: pulumi.Input<string>; /** * The `package` block supports uploading or modifying Wasm packages for use in a Fastly Compute service (if omitted, * ensure `activate = false` is set on `fastly.ServiceCompute` to avoid service validation errors). See Fastly's * documentation on [Compute](https://developer.fastly.com/learning/compute/) */ package?: pulumi.Input<inputs.ServiceComputePackage>; productEnablement?: pulumi.Input<inputs.ServiceComputeProductEnablement>; /** * A resource link represents a link between a shared resource (such as an KV Store or Config Store) and a service version. */ resourceLinks?: pulumi.Input<pulumi.Input<inputs.ServiceComputeResourceLink>[]>; reuse?: pulumi.Input<boolean>; /** * Conditionally enables new service versions to be staged. If `set` to true, all changes made by an `apply` step will be * staged, even if `apply` did not create a new draft version. Default `false` */ stage?: pulumi.Input<boolean>; /** * Description field for the version */ versionComment?: pulumi.Input<string>; }