@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
363 lines (362 loc) • 20.2 kB
TypeScript
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/serviceVcl:ServiceVcl 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/serviceVcl:ServiceVcl demo xxxxxxxxxxxxxxxxxxxx@2
* ```
*/
export declare class ServiceVcl extends pulumi.CustomResource {
/**
* Get an existing ServiceVcl 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?: ServiceVclState, opts?: pulumi.CustomResourceOptions): ServiceVcl;
/**
* Returns true if the given object is an instance of ServiceVcl. 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 ServiceVcl;
readonly acls: pulumi.Output<outputs.ServiceVclAcl[] | undefined>;
/**
* 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.ServiceVclBackend[] | undefined>;
readonly cacheSettings: pulumi.Output<outputs.ServiceVclCacheSetting[] | undefined>;
/**
* The latest cloned version by the provider
*/
readonly clonedVersion: pulumi.Output<number>;
readonly comment: pulumi.Output<string | undefined>;
readonly conditions: pulumi.Output<outputs.ServiceVclCondition[] | undefined>;
/**
* The default hostname
*/
readonly defaultHost: pulumi.Output<string | undefined>;
/**
* The default Time-to-live (TTL) for requests
*/
readonly defaultTtl: pulumi.Output<number | undefined>;
readonly dictionaries: pulumi.Output<outputs.ServiceVclDictionary[] | undefined>;
readonly directors: pulumi.Output<outputs.ServiceVclDirector[] | undefined>;
/**
* A set of Domain names to serve as entry points for your Service
*/
readonly domains: pulumi.Output<outputs.ServiceVclDomain[] | undefined>;
readonly dynamicsnippets: pulumi.Output<outputs.ServiceVclDynamicsnippet[] | undefined>;
/**
* 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 gzips: pulumi.Output<outputs.ServiceVclGzip[] | undefined>;
readonly headers: pulumi.Output<outputs.ServiceVclHeader[] | undefined>;
readonly healthchecks: pulumi.Output<outputs.ServiceVclHealthcheck[] | undefined>;
/**
* Enables support for the HTTP/3 (QUIC) protocol
*/
readonly http3: pulumi.Output<boolean | undefined>;
readonly imageOptimizerDefaultSettings: pulumi.Output<outputs.ServiceVclImageOptimizerDefaultSettings | 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.ServiceVclLoggingBigquery[] | undefined>;
readonly loggingBlobstorages: pulumi.Output<outputs.ServiceVclLoggingBlobstorage[] | undefined>;
readonly loggingCloudfiles: pulumi.Output<outputs.ServiceVclLoggingCloudfile[] | undefined>;
readonly loggingDatadogs: pulumi.Output<outputs.ServiceVclLoggingDatadog[] | undefined>;
readonly loggingDigitaloceans: pulumi.Output<outputs.ServiceVclLoggingDigitalocean[] | undefined>;
readonly loggingElasticsearches: pulumi.Output<outputs.ServiceVclLoggingElasticsearch[] | undefined>;
readonly loggingFtps: pulumi.Output<outputs.ServiceVclLoggingFtp[] | undefined>;
readonly loggingGcs: pulumi.Output<outputs.ServiceVclLoggingGc[] | undefined>;
readonly loggingGooglepubsubs: pulumi.Output<outputs.ServiceVclLoggingGooglepubsub[] | undefined>;
readonly loggingGrafanacloudlogs: pulumi.Output<outputs.ServiceVclLoggingGrafanacloudlog[] | undefined>;
readonly loggingHerokus: pulumi.Output<outputs.ServiceVclLoggingHerokus[] | undefined>;
readonly loggingHoneycombs: pulumi.Output<outputs.ServiceVclLoggingHoneycomb[] | undefined>;
readonly loggingHttps: pulumi.Output<outputs.ServiceVclLoggingHttp[] | undefined>;
readonly loggingKafkas: pulumi.Output<outputs.ServiceVclLoggingKafka[] | undefined>;
readonly loggingKineses: pulumi.Output<outputs.ServiceVclLoggingKinese[] | undefined>;
readonly loggingLogentries: pulumi.Output<outputs.ServiceVclLoggingLogentry[] | undefined>;
readonly loggingLogglies: pulumi.Output<outputs.ServiceVclLoggingLoggly[] | undefined>;
readonly loggingLogshuttles: pulumi.Output<outputs.ServiceVclLoggingLogshuttle[] | undefined>;
readonly loggingNewrelicotlps: pulumi.Output<outputs.ServiceVclLoggingNewrelicotlp[] | undefined>;
readonly loggingNewrelics: pulumi.Output<outputs.ServiceVclLoggingNewrelic[] | undefined>;
readonly loggingOpenstacks: pulumi.Output<outputs.ServiceVclLoggingOpenstack[] | undefined>;
readonly loggingPapertrails: pulumi.Output<outputs.ServiceVclLoggingPapertrail[] | undefined>;
readonly loggingS3s: pulumi.Output<outputs.ServiceVclLoggingS3[] | undefined>;
readonly loggingScalyrs: pulumi.Output<outputs.ServiceVclLoggingScalyr[] | undefined>;
readonly loggingSftps: pulumi.Output<outputs.ServiceVclLoggingSftp[] | undefined>;
readonly loggingSplunks: pulumi.Output<outputs.ServiceVclLoggingSplunk[] | undefined>;
readonly loggingSumologics: pulumi.Output<outputs.ServiceVclLoggingSumologic[] | undefined>;
readonly loggingSyslogs: pulumi.Output<outputs.ServiceVclLoggingSyslog[] | undefined>;
/**
* The unique name for the Service to create
*/
readonly name: pulumi.Output<string>;
readonly productEnablement: pulumi.Output<outputs.ServiceVclProductEnablement | undefined>;
readonly rateLimiters: pulumi.Output<outputs.ServiceVclRateLimiter[] | undefined>;
readonly requestSettings: pulumi.Output<outputs.ServiceVclRequestSetting[] | undefined>;
readonly responseObjects: pulumi.Output<outputs.ServiceVclResponseObject[] | undefined>;
readonly reuse: pulumi.Output<boolean | undefined>;
readonly snippets: pulumi.Output<outputs.ServiceVclSnippet[] | 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>;
/**
* Enables serving a stale object if there is an error
*/
readonly staleIfError: pulumi.Output<boolean | undefined>;
/**
* The default time-to-live (TTL) for serving the stale object for the version
*/
readonly staleIfErrorTtl: pulumi.Output<number | undefined>;
readonly vcls: pulumi.Output<outputs.ServiceVclVcl[] | undefined>;
/**
* Description field for the version
*/
readonly versionComment: pulumi.Output<string | undefined>;
/**
* Create a ServiceVcl 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?: ServiceVclArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ServiceVcl resources.
*/
export interface ServiceVclState {
acls?: pulumi.Input<pulumi.Input<inputs.ServiceVclAcl>[]>;
/**
* 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.ServiceVclBackend>[]>;
cacheSettings?: pulumi.Input<pulumi.Input<inputs.ServiceVclCacheSetting>[]>;
/**
* The latest cloned version by the provider
*/
clonedVersion?: pulumi.Input<number>;
comment?: pulumi.Input<string>;
conditions?: pulumi.Input<pulumi.Input<inputs.ServiceVclCondition>[]>;
/**
* The default hostname
*/
defaultHost?: pulumi.Input<string>;
/**
* The default Time-to-live (TTL) for requests
*/
defaultTtl?: pulumi.Input<number>;
dictionaries?: pulumi.Input<pulumi.Input<inputs.ServiceVclDictionary>[]>;
directors?: pulumi.Input<pulumi.Input<inputs.ServiceVclDirector>[]>;
/**
* A set of Domain names to serve as entry points for your Service
*/
domains?: pulumi.Input<pulumi.Input<inputs.ServiceVclDomain>[]>;
dynamicsnippets?: pulumi.Input<pulumi.Input<inputs.ServiceVclDynamicsnippet>[]>;
/**
* 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>;
gzips?: pulumi.Input<pulumi.Input<inputs.ServiceVclGzip>[]>;
headers?: pulumi.Input<pulumi.Input<inputs.ServiceVclHeader>[]>;
healthchecks?: pulumi.Input<pulumi.Input<inputs.ServiceVclHealthcheck>[]>;
/**
* Enables support for the HTTP/3 (QUIC) protocol
*/
http3?: pulumi.Input<boolean>;
imageOptimizerDefaultSettings?: pulumi.Input<inputs.ServiceVclImageOptimizerDefaultSettings>;
/**
* 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.ServiceVclLoggingBigquery>[]>;
loggingBlobstorages?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingBlobstorage>[]>;
loggingCloudfiles?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingCloudfile>[]>;
loggingDatadogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingDatadog>[]>;
loggingDigitaloceans?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingDigitalocean>[]>;
loggingElasticsearches?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingElasticsearch>[]>;
loggingFtps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingFtp>[]>;
loggingGcs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGc>[]>;
loggingGooglepubsubs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGooglepubsub>[]>;
loggingGrafanacloudlogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGrafanacloudlog>[]>;
loggingHerokus?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHerokus>[]>;
loggingHoneycombs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHoneycomb>[]>;
loggingHttps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHttp>[]>;
loggingKafkas?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingKafka>[]>;
loggingKineses?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingKinese>[]>;
loggingLogentries?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLogentry>[]>;
loggingLogglies?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLoggly>[]>;
loggingLogshuttles?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLogshuttle>[]>;
loggingNewrelicotlps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingNewrelicotlp>[]>;
loggingNewrelics?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingNewrelic>[]>;
loggingOpenstacks?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingOpenstack>[]>;
loggingPapertrails?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingPapertrail>[]>;
loggingS3s?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingS3>[]>;
loggingScalyrs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingScalyr>[]>;
loggingSftps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSftp>[]>;
loggingSplunks?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSplunk>[]>;
loggingSumologics?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSumologic>[]>;
loggingSyslogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSyslog>[]>;
/**
* The unique name for the Service to create
*/
name?: pulumi.Input<string>;
productEnablement?: pulumi.Input<inputs.ServiceVclProductEnablement>;
rateLimiters?: pulumi.Input<pulumi.Input<inputs.ServiceVclRateLimiter>[]>;
requestSettings?: pulumi.Input<pulumi.Input<inputs.ServiceVclRequestSetting>[]>;
responseObjects?: pulumi.Input<pulumi.Input<inputs.ServiceVclResponseObject>[]>;
reuse?: pulumi.Input<boolean>;
snippets?: pulumi.Input<pulumi.Input<inputs.ServiceVclSnippet>[]>;
/**
* 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>;
/**
* Enables serving a stale object if there is an error
*/
staleIfError?: pulumi.Input<boolean>;
/**
* The default time-to-live (TTL) for serving the stale object for the version
*/
staleIfErrorTtl?: pulumi.Input<number>;
vcls?: pulumi.Input<pulumi.Input<inputs.ServiceVclVcl>[]>;
/**
* Description field for the version
*/
versionComment?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ServiceVcl resource.
*/
export interface ServiceVclArgs {
acls?: pulumi.Input<pulumi.Input<inputs.ServiceVclAcl>[]>;
/**
* 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.ServiceVclBackend>[]>;
cacheSettings?: pulumi.Input<pulumi.Input<inputs.ServiceVclCacheSetting>[]>;
comment?: pulumi.Input<string>;
conditions?: pulumi.Input<pulumi.Input<inputs.ServiceVclCondition>[]>;
/**
* The default hostname
*/
defaultHost?: pulumi.Input<string>;
/**
* The default Time-to-live (TTL) for requests
*/
defaultTtl?: pulumi.Input<number>;
dictionaries?: pulumi.Input<pulumi.Input<inputs.ServiceVclDictionary>[]>;
directors?: pulumi.Input<pulumi.Input<inputs.ServiceVclDirector>[]>;
/**
* A set of Domain names to serve as entry points for your Service
*/
domains?: pulumi.Input<pulumi.Input<inputs.ServiceVclDomain>[]>;
dynamicsnippets?: pulumi.Input<pulumi.Input<inputs.ServiceVclDynamicsnippet>[]>;
/**
* Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false`
*/
forceDestroy?: pulumi.Input<boolean>;
gzips?: pulumi.Input<pulumi.Input<inputs.ServiceVclGzip>[]>;
headers?: pulumi.Input<pulumi.Input<inputs.ServiceVclHeader>[]>;
healthchecks?: pulumi.Input<pulumi.Input<inputs.ServiceVclHealthcheck>[]>;
/**
* Enables support for the HTTP/3 (QUIC) protocol
*/
http3?: pulumi.Input<boolean>;
imageOptimizerDefaultSettings?: pulumi.Input<inputs.ServiceVclImageOptimizerDefaultSettings>;
loggingBigqueries?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingBigquery>[]>;
loggingBlobstorages?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingBlobstorage>[]>;
loggingCloudfiles?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingCloudfile>[]>;
loggingDatadogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingDatadog>[]>;
loggingDigitaloceans?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingDigitalocean>[]>;
loggingElasticsearches?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingElasticsearch>[]>;
loggingFtps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingFtp>[]>;
loggingGcs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGc>[]>;
loggingGooglepubsubs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGooglepubsub>[]>;
loggingGrafanacloudlogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingGrafanacloudlog>[]>;
loggingHerokus?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHerokus>[]>;
loggingHoneycombs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHoneycomb>[]>;
loggingHttps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingHttp>[]>;
loggingKafkas?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingKafka>[]>;
loggingKineses?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingKinese>[]>;
loggingLogentries?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLogentry>[]>;
loggingLogglies?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLoggly>[]>;
loggingLogshuttles?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingLogshuttle>[]>;
loggingNewrelicotlps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingNewrelicotlp>[]>;
loggingNewrelics?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingNewrelic>[]>;
loggingOpenstacks?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingOpenstack>[]>;
loggingPapertrails?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingPapertrail>[]>;
loggingS3s?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingS3>[]>;
loggingScalyrs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingScalyr>[]>;
loggingSftps?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSftp>[]>;
loggingSplunks?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSplunk>[]>;
loggingSumologics?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSumologic>[]>;
loggingSyslogs?: pulumi.Input<pulumi.Input<inputs.ServiceVclLoggingSyslog>[]>;
/**
* The unique name for the Service to create
*/
name?: pulumi.Input<string>;
productEnablement?: pulumi.Input<inputs.ServiceVclProductEnablement>;
rateLimiters?: pulumi.Input<pulumi.Input<inputs.ServiceVclRateLimiter>[]>;
requestSettings?: pulumi.Input<pulumi.Input<inputs.ServiceVclRequestSetting>[]>;
responseObjects?: pulumi.Input<pulumi.Input<inputs.ServiceVclResponseObject>[]>;
reuse?: pulumi.Input<boolean>;
snippets?: pulumi.Input<pulumi.Input<inputs.ServiceVclSnippet>[]>;
/**
* 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>;
/**
* Enables serving a stale object if there is an error
*/
staleIfError?: pulumi.Input<boolean>;
/**
* The default time-to-live (TTL) for serving the stale object for the version
*/
staleIfErrorTtl?: pulumi.Input<number>;
vcls?: pulumi.Input<pulumi.Input<inputs.ServiceVclVcl>[]>;
/**
* Description field for the version
*/
versionComment?: pulumi.Input<string>;
}