Package @pulumi/fastly

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-fastly repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-fastly repo.

var fastly = require("@pulumi/fastly");
import * as fastly from "@pulumi/fastly";

Modules

Resources

Data Sources

Others

Resources

Resource Provider

class Provider extends ProviderResource

The provider type for the fastly package. By default, resources use package-wide configuration settings, however an explicit Provider instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the documentation for more information.

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/index.html.markdown.

constructor

new Provider(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions)

Create a Provider resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Provider

Returns true if the given object is an instance of Provider. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

method register

static register(provider: ProviderResource | undefined): Promise<string | undefined>

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource ServiceACLEntriesv1

class ServiceACLEntriesv1 extends CustomResource

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/r/service_acl_entries_v1.html.markdown.

constructor

new ServiceACLEntriesv1(name: string, args: ServiceACLEntriesv1Args, opts?: pulumi.CustomResourceOptions)

Create a ServiceACLEntriesv1 resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceACLEntriesv1State, opts?: pulumi.CustomResourceOptions): ServiceACLEntriesv1

Get an existing ServiceACLEntriesv1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is ServiceACLEntriesv1

Returns true if the given object is an instance of ServiceACLEntriesv1. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property aclId

public aclId: pulumi.Output<string>;

The ID of the ACL that the items belong to

property entries

public entries: pulumi.Output<ServiceACLEntriesv1Entry[] | undefined>;

A Set ACL entries that are applied to the service. Defined below

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property serviceId

public serviceId: pulumi.Output<string>;

The ID of the Service that the ACL belongs to

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource ServiceDictionaryItemsv1

class ServiceDictionaryItemsv1 extends CustomResource

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/r/service_dictionary_items_v1.html.markdown.

constructor

new ServiceDictionaryItemsv1(name: string, args: ServiceDictionaryItemsv1Args, opts?: pulumi.CustomResourceOptions)

Create a ServiceDictionaryItemsv1 resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceDictionaryItemsv1State, opts?: pulumi.CustomResourceOptions): ServiceDictionaryItemsv1

Get an existing ServiceDictionaryItemsv1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is ServiceDictionaryItemsv1

Returns true if the given object is an instance of ServiceDictionaryItemsv1. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property dictionaryId

public dictionaryId: pulumi.Output<string>;

The ID of the dictionary that the items belong to

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property items

public items: pulumi.Output<{[key: string]: any} | undefined>;

A map representing an entry in the dictionary, (key/value)

property serviceId

public serviceId: pulumi.Output<string>;

The ID of the service that the dictionary belongs to

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource ServiceDynamicSnippetContentv1

class ServiceDynamicSnippetContentv1 extends CustomResource

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/r/service_dynamic_snippet_content_v1.html.markdown.

constructor

new ServiceDynamicSnippetContentv1(name: string, args: ServiceDynamicSnippetContentv1Args, opts?: pulumi.CustomResourceOptions)

Create a ServiceDynamicSnippetContentv1 resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceDynamicSnippetContentv1State, opts?: pulumi.CustomResourceOptions): ServiceDynamicSnippetContentv1

Get an existing ServiceDynamicSnippetContentv1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is ServiceDynamicSnippetContentv1

Returns true if the given object is an instance of ServiceDynamicSnippetContentv1. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property content

public content: pulumi.Output<string>;

The VCL code that specifies exactly what the snippet does.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property serviceId

public serviceId: pulumi.Output<string>;

The ID of the service that the dynamic snippet belongs to

property snippetId

public snippetId: pulumi.Output<string>;

The ID of the dynamic snippet that the content belong to

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource Servicev1

class Servicev1 extends CustomResource

Provides a Fastly Service, representing the configuration for a website, app, API, or anything else to be served through Fastly. A Service encompasses Domains and Backends.

The Service resource requires a domain name that is correctly set up to direct traffic to the Fastly service. See Fastly’s guide on [Adding CNAME Records][fastly-cname] on their documentation site for guidance.

Example Usage

Basic usage:

import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";

const demo = new fastly.Servicev1("demo", {
    backends: [{
        address: "127.0.0.1",
        name: "localhost",
        port: 80,
    }],
    domains: [{
        comment: "demo",
        name: "demo.notexample.com",
    }],
    forceDestroy: true,
});

Basic usage with an Amazon S3 Website and that removes the x-amz-request-id header:

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fastly from "@pulumi/fastly";

const website = new aws.s3.Bucket("website", {
    acl: "public-read",
    website: {
        errorDocument: "error.html",
        indexDocument: "index.html",
    },
});
const demo = new fastly.Servicev1("demo", {
    backends: [{
        address: "demo.notexample.com.s3-website-us-west-2.amazonaws.com",
        name: "AWS S3 hosting",
        port: 80,
    }],
    defaultHost: pulumi.interpolate`${website.name}.s3-website-us-west-2.amazonaws.com`,
    domains: [{
        comment: "demo",
        name: "demo.notexample.com",
    }],
    forceDestroy: true,
    gzips: [{
        contentTypes: [
            "text/html",
            "text/css",
        ],
        extensions: [
            "css",
            "js",
        ],
        name: "file extensions and content types",
    }],
    headers: [{
        action: "delete",
        destination: "http.x-amz-request-id",
        name: "remove x-amz-request-id",
        type: "cache",
    }],
});

Basic usage with custom VCL (must be enabled on your Fastly account):

import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
import * as fs from "fs";

const demo = new fastly.Servicev1("demo", {
    backends: [{
        address: "127.0.0.1",
        name: "localhost",
        port: 80,
    }],
    domains: [{
        comment: "demo",
        name: "demo.notexample.com",
    }],
    forceDestroy: true,
    vcls: [
        {
            content: fs.readFileSync(`./my_custom_main.vcl`, "utf-8"),
            main: true,
            name: "myCustomMainVcl",
        },
        {
            content: fs.readFileSync(`./my_custom_library.vcl`, "utf-8"),
            name: "myCustomLibraryVcl",
        },
    ],
});

Basic usage with custom Director:

import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";

const demo = new fastly.Servicev1("demo", {
    backends: [
        {
            address: "127.0.0.1",
            name: "origin1",
            port: 80,
        },
        {
            address: "127.0.0.2",
            name: "origin2",
            port: 80,
        },
    ],
    directors: [{
        backends: [
            "origin1",
            "origin2",
        ],
        name: "mydirector",
        quorum: 0,
        type: 3,
    }],
    domains: [{
        comment: "demo",
        name: "demo.notexample.com",
    }],
    forceDestroy: true,
});

Note: For an AWS S3 Bucket, the Backend address is <domain>.s3-website-<region>.amazonaws.com. The defaultHost attribute should be set to <bucket_name>.s3-website-<region>.amazonaws.com. See the Fastly documentation on [Amazon S3][fastly-s3].

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/r/service_v1.html.markdown.

constructor

new Servicev1(name: string, args: Servicev1Args, opts?: pulumi.CustomResourceOptions)

Create a Servicev1 resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: Servicev1State, opts?: pulumi.CustomResourceOptions): Servicev1

Get an existing Servicev1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Servicev1

Returns true if the given object is an instance of Servicev1. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property acls

public acls: pulumi.Output<Servicev1Acl[] | undefined>;

A set of ACL configuration blocks. Defined below.

property activate

public activate: pulumi.Output<boolean | undefined>;

Conditionally prevents the Service from being activated. The apply step will continue to create a new draft version but will not activate it if this is set to false. Default true.

property activeVersion

public activeVersion: pulumi.Output<number>;

The currently active version of your Fastly Service.

property backends

public backends: pulumi.Output<Servicev1Backend[] | undefined>;

A set of Backends to service requests from your Domains. Defined below. Backends must be defined in this argument, or defined in the vcl argument below

property bigqueryloggings

public bigqueryloggings: pulumi.Output<Servicev1Bigquerylogging[] | undefined>;

A BigQuery endpoint to send streaming logs too. Defined below.

property blobstorageloggings

public blobstorageloggings: pulumi.Output<Servicev1Blobstoragelogging[] | undefined>;

An Azure Blob Storage endpoint to send streaming logs too. Defined below.

property cacheSettings

public cacheSettings: pulumi.Output<Servicev1CacheSetting[] | undefined>;

A set of Cache Settings, allowing you to override

property clonedVersion

public clonedVersion: pulumi.Output<number>;

property comment

public comment: pulumi.Output<string | undefined>;

A personal freeform descriptive note

property conditions

public conditions: pulumi.Output<Servicev1Condition[] | undefined>;

A set of conditions to add logic to any basic configuration object in this service. Defined below.

property defaultHost

public defaultHost: pulumi.Output<string>;

The default hostname.

property defaultTtl

public defaultTtl: pulumi.Output<number | undefined>;

The default Time-to-live (TTL) for requests.

property dictionaries

public dictionaries: pulumi.Output<Servicev1Dictionary[] | undefined>;

A set of dictionaries that allow the storing of key values pair for use within VCL functions. Defined below.

property directors

public directors: pulumi.Output<Servicev1Director[] | undefined>;

A director to allow more control over balancing traffic over backends. when an item is not to be cached based on an above condition. Defined below

property domains

public domains: pulumi.Output<Servicev1Domain[]>;

A set of Domain names to serve as entry points for your Service. Defined below.

property dynamicsnippets

public dynamicsnippets: pulumi.Output<Servicev1Dynamicsnippet[] | undefined>;

A set of custom, “dynamic” VCL Snippet configuration blocks. Defined below.

property forceDestroy

public forceDestroy: pulumi.Output<boolean | undefined>;

Services that are active cannot be destroyed. In order to destroy the Service, set forceDestroy to true. Default false.

property gcsloggings

public gcsloggings: pulumi.Output<Servicev1Gcslogging[] | undefined>;

A gcs endpoint to send streaming logs too. Defined below.

property gzips

public gzips: pulumi.Output<Servicev1Gzip[] | undefined>;

A set of gzip rules to control automatic gzipping of content. Defined below.

property headers

public headers: pulumi.Output<Servicev1Header[] | undefined>;

A set of Headers to manipulate for each request. Defined below.

property healthchecks

public healthchecks: pulumi.Output<Servicev1Healthcheck[] | undefined>;

Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property logentries

public logentries: pulumi.Output<Servicev1Logentry[] | undefined>;

A logentries endpoint to send streaming logs too. Defined below.

property name

public name: pulumi.Output<string>;

The unique name for the Service to create.

property papertrails

public papertrails: pulumi.Output<Servicev1Papertrail[] | undefined>;

A Papertrail endpoint to send streaming logs too. Defined below.

property requestSettings

public requestSettings: pulumi.Output<Servicev1RequestSetting[] | undefined>;

A set of Request modifiers. Defined below

property responseObjects

public responseObjects: pulumi.Output<Servicev1ResponseObject[] | undefined>;

Allows you to create synthetic responses that exist entirely on the varnish machine. Useful for creating error or maintenance pages that exists outside the scope of your datacenter. Best when used with Condition objects.

property s3loggings

public s3loggings: pulumi.Output<Servicev1S3logging[] | undefined>;

A set of S3 Buckets to send streaming logs too. Defined below.

property snippets

public snippets: pulumi.Output<Servicev1Snippet[] | undefined>;

A set of custom, “regular” (non-dynamic) VCL Snippet configuration blocks. Defined below.

property splunks

public splunks: pulumi.Output<Servicev1Splunk[] | undefined>;

A Splunk endpoint to send streaming logs too. Defined below.

property sumologics

public sumologics: pulumi.Output<Servicev1Sumologic[] | undefined>;

A Sumologic endpoint to send streaming logs too. Defined below.

property syslogs

public syslogs: pulumi.Output<Servicev1Syslog[] | undefined>;

A syslog endpoint to send streaming logs too. Defined below.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vcls

public vcls: pulumi.Output<Servicev1Vcl[] | undefined>;

A set of custom VCL configuration blocks. The ability to upload custom VCL code is not enabled by default for new Fastly accounts (see the Fastly documentation for details).

property versionComment

public versionComment: pulumi.Output<string | undefined>;

Description field for the version.

Data Sources

Data Source getFastlyIpRanges

getFastlyIpRanges(opts?: pulumi.InvokeOptions): Promise<GetFastlyIpRangesResult> & GetFastlyIpRangesResult

Use this data source to get the [IP ranges][1] of Fastly edge nodes.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fastly from "@pulumi/fastly";

const fastlyFastlyIpRanges = fastly.getFastlyIpRanges();
const fromFastly = new aws.ec2.SecurityGroup("fromFastly", {
    ingress: [{
        cidrBlocks: fastlyFastlyIpRanges.cidrBlocks,
        fromPort: 443,
        protocol: "tcp",
        toPort: 443,
    }],
});

This content is derived from https://github.com/terraform-providers/terraform-provider-fastly/blob/master/website/docs/d/ip_ranges.html.markdown.

Others

function getEnv

getEnv(vars: string[]): string | undefined

function getEnvBoolean

getEnvBoolean(vars: string[]): boolean | undefined

function getEnvNumber

getEnvNumber(vars: string[]): number | undefined

interface GetFastlyIpRangesResult

interface GetFastlyIpRangesResult

A collection of values returned by getFastlyIpRanges.

property cidrBlocks

cidrBlocks: string[];

The lexically ordered list of CIDR blocks.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

function getVersion

getVersion(): string

interface ProviderArgs

interface ProviderArgs

The set of arguments for constructing a Provider resource.

property apiKey

apiKey?: pulumi.Input<string>;

Fastly API Key from https://app.fastly.com/#account

property baseUrl

baseUrl?: pulumi.Input<string>;

Fastly API URL

interface ServiceACLEntriesv1Args

interface ServiceACLEntriesv1Args

The set of arguments for constructing a ServiceACLEntriesv1 resource.

property aclId

aclId: pulumi.Input<string>;

The ID of the ACL that the items belong to

property entries

entries?: pulumi.Input<pulumi.Input<ServiceACLEntriesv1Entry>[]>;

A Set ACL entries that are applied to the service. Defined below

property serviceId

serviceId: pulumi.Input<string>;

The ID of the Service that the ACL belongs to

interface ServiceACLEntriesv1State

interface ServiceACLEntriesv1State

Input properties used for looking up and filtering ServiceACLEntriesv1 resources.

property aclId

aclId?: pulumi.Input<string>;

The ID of the ACL that the items belong to

property entries

entries?: pulumi.Input<pulumi.Input<ServiceACLEntriesv1Entry>[]>;

A Set ACL entries that are applied to the service. Defined below

property serviceId

serviceId?: pulumi.Input<string>;

The ID of the Service that the ACL belongs to

interface ServiceDictionaryItemsv1Args

interface ServiceDictionaryItemsv1Args

The set of arguments for constructing a ServiceDictionaryItemsv1 resource.

property dictionaryId

dictionaryId: pulumi.Input<string>;

The ID of the dictionary that the items belong to

property items

items?: pulumi.Input<{[key: string]: any}>;

A map representing an entry in the dictionary, (key/value)

property serviceId

serviceId: pulumi.Input<string>;

The ID of the service that the dictionary belongs to

interface ServiceDictionaryItemsv1State

interface ServiceDictionaryItemsv1State

Input properties used for looking up and filtering ServiceDictionaryItemsv1 resources.

property dictionaryId

dictionaryId?: pulumi.Input<string>;

The ID of the dictionary that the items belong to

property items

items?: pulumi.Input<{[key: string]: any}>;

A map representing an entry in the dictionary, (key/value)

property serviceId

serviceId?: pulumi.Input<string>;

The ID of the service that the dictionary belongs to

interface ServiceDynamicSnippetContentv1Args

interface ServiceDynamicSnippetContentv1Args

The set of arguments for constructing a ServiceDynamicSnippetContentv1 resource.

property content

content: pulumi.Input<string>;

The VCL code that specifies exactly what the snippet does.

property serviceId

serviceId: pulumi.Input<string>;

The ID of the service that the dynamic snippet belongs to

property snippetId

snippetId: pulumi.Input<string>;

The ID of the dynamic snippet that the content belong to

interface ServiceDynamicSnippetContentv1State

interface ServiceDynamicSnippetContentv1State

Input properties used for looking up and filtering ServiceDynamicSnippetContentv1 resources.

property content

content?: pulumi.Input<string>;

The VCL code that specifies exactly what the snippet does.

property serviceId

serviceId?: pulumi.Input<string>;

The ID of the service that the dynamic snippet belongs to

property snippetId

snippetId?: pulumi.Input<string>;

The ID of the dynamic snippet that the content belong to

interface Servicev1Args

interface Servicev1Args

The set of arguments for constructing a Servicev1 resource.

property acls

acls?: pulumi.Input<pulumi.Input<Servicev1Acl>[]>;

A set of ACL configuration blocks. Defined below.

property activate

activate?: pulumi.Input<boolean>;

Conditionally prevents the Service from being activated. The apply step will continue to create a new draft version but will not activate it if this is set to false. Default true.

property backends

backends?: pulumi.Input<pulumi.Input<Servicev1Backend>[]>;

A set of Backends to service requests from your Domains. Defined below. Backends must be defined in this argument, or defined in the vcl argument below

property bigqueryloggings

bigqueryloggings?: pulumi.Input<pulumi.Input<Servicev1Bigquerylogging>[]>;

A BigQuery endpoint to send streaming logs too. Defined below.

property blobstorageloggings

blobstorageloggings?: pulumi.Input<pulumi.Input<Servicev1Blobstoragelogging>[]>;

An Azure Blob Storage endpoint to send streaming logs too. Defined below.

property cacheSettings

cacheSettings?: pulumi.Input<pulumi.Input<Servicev1CacheSetting>[]>;

A set of Cache Settings, allowing you to override

property comment

comment?: pulumi.Input<string>;

A personal freeform descriptive note

property conditions

conditions?: pulumi.Input<pulumi.Input<Servicev1Condition>[]>;

A set of conditions to add logic to any basic configuration object in this service. Defined below.

property defaultHost

defaultHost?: pulumi.Input<string>;

The default hostname.

property defaultTtl

defaultTtl?: pulumi.Input<number>;

The default Time-to-live (TTL) for requests.

property dictionaries

dictionaries?: pulumi.Input<pulumi.Input<Servicev1Dictionary>[]>;

A set of dictionaries that allow the storing of key values pair for use within VCL functions. Defined below.

property directors

directors?: pulumi.Input<pulumi.Input<Servicev1Director>[]>;

A director to allow more control over balancing traffic over backends. when an item is not to be cached based on an above condition. Defined below

property domains

domains: pulumi.Input<pulumi.Input<Servicev1Domain>[]>;

A set of Domain names to serve as entry points for your Service. Defined below.

property dynamicsnippets

dynamicsnippets?: pulumi.Input<pulumi.Input<Servicev1Dynamicsnippet>[]>;

A set of custom, “dynamic” VCL Snippet configuration blocks. Defined below.

property forceDestroy

forceDestroy?: pulumi.Input<boolean>;

Services that are active cannot be destroyed. In order to destroy the Service, set forceDestroy to true. Default false.

property gcsloggings

gcsloggings?: pulumi.Input<pulumi.Input<Servicev1Gcslogging>[]>;

A gcs endpoint to send streaming logs too. Defined below.

property gzips

gzips?: pulumi.Input<pulumi.Input<Servicev1Gzip>[]>;

A set of gzip rules to control automatic gzipping of content. Defined below.

property headers

headers?: pulumi.Input<pulumi.Input<Servicev1Header>[]>;

A set of Headers to manipulate for each request. Defined below.

property healthchecks

healthchecks?: pulumi.Input<pulumi.Input<Servicev1Healthcheck>[]>;

Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

property logentries

logentries?: pulumi.Input<pulumi.Input<Servicev1Logentry>[]>;

A logentries endpoint to send streaming logs too. Defined below.

property name

name?: pulumi.Input<string>;

The unique name for the Service to create.

property papertrails

papertrails?: pulumi.Input<pulumi.Input<Servicev1Papertrail>[]>;

A Papertrail endpoint to send streaming logs too. Defined below.

property requestSettings

requestSettings?: pulumi.Input<pulumi.Input<Servicev1RequestSetting>[]>;

A set of Request modifiers. Defined below

property responseObjects

responseObjects?: pulumi.Input<pulumi.Input<Servicev1ResponseObject>[]>;

Allows you to create synthetic responses that exist entirely on the varnish machine. Useful for creating error or maintenance pages that exists outside the scope of your datacenter. Best when used with Condition objects.

property s3loggings

s3loggings?: pulumi.Input<pulumi.Input<Servicev1S3logging>[]>;

A set of S3 Buckets to send streaming logs too. Defined below.

property snippets

snippets?: pulumi.Input<pulumi.Input<Servicev1Snippet>[]>;

A set of custom, “regular” (non-dynamic) VCL Snippet configuration blocks. Defined below.

property splunks

splunks?: pulumi.Input<pulumi.Input<Servicev1Splunk>[]>;

A Splunk endpoint to send streaming logs too. Defined below.

property sumologics

sumologics?: pulumi.Input<pulumi.Input<Servicev1Sumologic>[]>;

A Sumologic endpoint to send streaming logs too. Defined below.

property syslogs

syslogs?: pulumi.Input<pulumi.Input<Servicev1Syslog>[]>;

A syslog endpoint to send streaming logs too. Defined below.

property vcls

vcls?: pulumi.Input<pulumi.Input<Servicev1Vcl>[]>;

A set of custom VCL configuration blocks. The ability to upload custom VCL code is not enabled by default for new Fastly accounts (see the Fastly documentation for details).

property versionComment

versionComment?: pulumi.Input<string>;

Description field for the version.

interface Servicev1State

interface Servicev1State

Input properties used for looking up and filtering Servicev1 resources.

property acls

acls?: pulumi.Input<pulumi.Input<Servicev1Acl>[]>;

A set of ACL configuration blocks. Defined below.

property activate

activate?: pulumi.Input<boolean>;

Conditionally prevents the Service from being activated. The apply step will continue to create a new draft version but will not activate it if this is set to false. Default true.

property activeVersion

activeVersion?: pulumi.Input<number>;

The currently active version of your Fastly Service.

property backends

backends?: pulumi.Input<pulumi.Input<Servicev1Backend>[]>;

A set of Backends to service requests from your Domains. Defined below. Backends must be defined in this argument, or defined in the vcl argument below

property bigqueryloggings

bigqueryloggings?: pulumi.Input<pulumi.Input<Servicev1Bigquerylogging>[]>;

A BigQuery endpoint to send streaming logs too. Defined below.

property blobstorageloggings

blobstorageloggings?: pulumi.Input<pulumi.Input<Servicev1Blobstoragelogging>[]>;

An Azure Blob Storage endpoint to send streaming logs too. Defined below.

property cacheSettings

cacheSettings?: pulumi.Input<pulumi.Input<Servicev1CacheSetting>[]>;

A set of Cache Settings, allowing you to override

property clonedVersion

clonedVersion?: pulumi.Input<number>;

property comment

comment?: pulumi.Input<string>;

A personal freeform descriptive note

property conditions

conditions?: pulumi.Input<pulumi.Input<Servicev1Condition>[]>;

A set of conditions to add logic to any basic configuration object in this service. Defined below.

property defaultHost

defaultHost?: pulumi.Input<string>;

The default hostname.

property defaultTtl

defaultTtl?: pulumi.Input<number>;

The default Time-to-live (TTL) for requests.

property dictionaries

dictionaries?: pulumi.Input<pulumi.Input<Servicev1Dictionary>[]>;

A set of dictionaries that allow the storing of key values pair for use within VCL functions. Defined below.

property directors

directors?: pulumi.Input<pulumi.Input<Servicev1Director>[]>;

A director to allow more control over balancing traffic over backends. when an item is not to be cached based on an above condition. Defined below

property domains

domains?: pulumi.Input<pulumi.Input<Servicev1Domain>[]>;

A set of Domain names to serve as entry points for your Service. Defined below.

property dynamicsnippets

dynamicsnippets?: pulumi.Input<pulumi.Input<Servicev1Dynamicsnippet>[]>;

A set of custom, “dynamic” VCL Snippet configuration blocks. Defined below.

property forceDestroy

forceDestroy?: pulumi.Input<boolean>;

Services that are active cannot be destroyed. In order to destroy the Service, set forceDestroy to true. Default false.

property gcsloggings

gcsloggings?: pulumi.Input<pulumi.Input<Servicev1Gcslogging>[]>;

A gcs endpoint to send streaming logs too. Defined below.

property gzips

gzips?: pulumi.Input<pulumi.Input<Servicev1Gzip>[]>;

A set of gzip rules to control automatic gzipping of content. Defined below.

property headers

headers?: pulumi.Input<pulumi.Input<Servicev1Header>[]>;

A set of Headers to manipulate for each request. Defined below.

property healthchecks

healthchecks?: pulumi.Input<pulumi.Input<Servicev1Healthcheck>[]>;

Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

property logentries

logentries?: pulumi.Input<pulumi.Input<Servicev1Logentry>[]>;

A logentries endpoint to send streaming logs too. Defined below.

property name

name?: pulumi.Input<string>;

The unique name for the Service to create.

property papertrails

papertrails?: pulumi.Input<pulumi.Input<Servicev1Papertrail>[]>;

A Papertrail endpoint to send streaming logs too. Defined below.

property requestSettings

requestSettings?: pulumi.Input<pulumi.Input<Servicev1RequestSetting>[]>;

A set of Request modifiers. Defined below

property responseObjects

responseObjects?: pulumi.Input<pulumi.Input<Servicev1ResponseObject>[]>;

Allows you to create synthetic responses that exist entirely on the varnish machine. Useful for creating error or maintenance pages that exists outside the scope of your datacenter. Best when used with Condition objects.

property s3loggings

s3loggings?: pulumi.Input<pulumi.Input<Servicev1S3logging>[]>;

A set of S3 Buckets to send streaming logs too. Defined below.

property snippets

snippets?: pulumi.Input<pulumi.Input<Servicev1Snippet>[]>;

A set of custom, “regular” (non-dynamic) VCL Snippet configuration blocks. Defined below.

property splunks

splunks?: pulumi.Input<pulumi.Input<Servicev1Splunk>[]>;

A Splunk endpoint to send streaming logs too. Defined below.

property sumologics

sumologics?: pulumi.Input<pulumi.Input<Servicev1Sumologic>[]>;

A Sumologic endpoint to send streaming logs too. Defined below.

property syslogs

syslogs?: pulumi.Input<pulumi.Input<Servicev1Syslog>[]>;

A syslog endpoint to send streaming logs too. Defined below.

property vcls

vcls?: pulumi.Input<pulumi.Input<Servicev1Vcl>[]>;

A set of custom VCL configuration blocks. The ability to upload custom VCL code is not enabled by default for new Fastly accounts (see the Fastly documentation for details).

property versionComment

versionComment?: pulumi.Input<string>;

Description field for the version.