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.

class pulumi_fastly.AwaitableGetFastlyIpRangesResult(cidr_blocks=None, id=None)
class pulumi_fastly.GetFastlyIpRangesResult(cidr_blocks=None, id=None)

A collection of values returned by getFastlyIpRanges.

cidr_blocks = None

The lexically ordered list of CIDR blocks.

id = None

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

class pulumi_fastly.Provider(resource_name, opts=None, api_key=None, base_url=None, __props__=None, __name__=None, __opts__=None)

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.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

static get(resource_name, id, opts=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_fastly.ServiceACLEntriesv1(resource_name, opts=None, acl_id=None, entries=None, service_id=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acl_id (pulumi.Input[str]) – The ID of the ACL that the items belong to

  • entries (pulumi.Input[list]) – A Set ACL entries that are applied to the service. Defined below

  • service_id (pulumi.Input[str]) – The ID of the Service that the ACL belongs to

The entries object supports the following:

  • comment (pulumi.Input[str])

  • id (pulumi.Input[str])

  • ip (pulumi.Input[str])

  • negated (pulumi.Input[bool])

  • subnet (pulumi.Input[str])

acl_id = None

The ID of the ACL that the items belong to

entries = None

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

  • comment (str)

  • id (str)

  • ip (str)

  • negated (bool)

  • subnet (str)

service_id = None

The ID of the Service that the ACL belongs to

static get(resource_name, id, opts=None, acl_id=None, entries=None, service_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acl_id (pulumi.Input[str]) – The ID of the ACL that the items belong to

  • entries (pulumi.Input[list]) – A Set ACL entries that are applied to the service. Defined below

  • service_id (pulumi.Input[str]) – The ID of the Service that the ACL belongs to

The entries object supports the following:

  • comment (pulumi.Input[str])

  • id (pulumi.Input[str])

  • ip (pulumi.Input[str])

  • negated (pulumi.Input[bool])

  • subnet (pulumi.Input[str])

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_fastly.ServiceDictionaryItemsv1(resource_name, opts=None, dictionary_id=None, items=None, service_id=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • dictionary_id (pulumi.Input[str]) – The ID of the dictionary that the items belong to

  • items (pulumi.Input[dict]) – A map representing an entry in the dictionary, (key/value)

  • service_id (pulumi.Input[str]) – The ID of the service that the dictionary belongs to

dictionary_id = None

The ID of the dictionary that the items belong to

items = None

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

service_id = None

The ID of the service that the dictionary belongs to

static get(resource_name, id, opts=None, dictionary_id=None, items=None, service_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • dictionary_id (pulumi.Input[str]) – The ID of the dictionary that the items belong to

  • items (pulumi.Input[dict]) – A map representing an entry in the dictionary, (key/value)

  • service_id (pulumi.Input[str]) – The ID of the service that the dictionary belongs to

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_fastly.ServiceDynamicSnippetContentv1(resource_name, opts=None, content=None, service_id=None, snippet_id=None, __props__=None, __name__=None, __opts__=None)

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

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • content (pulumi.Input[str]) – The VCL code that specifies exactly what the snippet does.

  • service_id (pulumi.Input[str]) – The ID of the service that the dynamic snippet belongs to

  • snippet_id (pulumi.Input[str]) – The ID of the dynamic snippet that the content belong to

content = None

The VCL code that specifies exactly what the snippet does.

service_id = None

The ID of the service that the dynamic snippet belongs to

snippet_id = None

The ID of the dynamic snippet that the content belong to

static get(resource_name, id, opts=None, content=None, service_id=None, snippet_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • content (pulumi.Input[str]) – The VCL code that specifies exactly what the snippet does.

  • service_id (pulumi.Input[str]) – The ID of the service that the dynamic snippet belongs to

  • snippet_id (pulumi.Input[str]) – The ID of the dynamic snippet that the content belong to

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_fastly.Servicev1(resource_name, opts=None, acls=None, activate=None, backends=None, bigqueryloggings=None, blobstorageloggings=None, cache_settings=None, comment=None, conditions=None, default_host=None, default_ttl=None, dictionaries=None, directors=None, domains=None, dynamicsnippets=None, force_destroy=None, gcsloggings=None, gzips=None, headers=None, healthchecks=None, logentries=None, name=None, papertrails=None, request_settings=None, response_objects=None, s3loggings=None, snippets=None, splunks=None, sumologics=None, syslogs=None, vcls=None, version_comment=None, __props__=None, __name__=None, __opts__=None)

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.

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – A set of ACL configuration blocks. Defined below.

  • activate (pulumi.Input[bool]) – 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.

  • backends (pulumi.Input[list]) – 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

  • bigqueryloggings (pulumi.Input[list]) – A BigQuery endpoint to send streaming logs too. Defined below.

  • blobstorageloggings (pulumi.Input[list]) – An Azure Blob Storage endpoint to send streaming logs too. Defined below.

  • cache_settings (pulumi.Input[list]) – A set of Cache Settings, allowing you to override

  • conditions (pulumi.Input[list]) – A set of conditions to add logic to any basic configuration object in this service. Defined below.

  • default_host (pulumi.Input[str]) – The default hostname.

  • default_ttl (pulumi.Input[float]) – The default Time-to-live (TTL) for requests.

  • dictionaries (pulumi.Input[list]) – A set of dictionaries that allow the storing of key values pair for use within VCL functions. Defined below.

  • directors (pulumi.Input[list]) – 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

  • domains (pulumi.Input[list]) – A set of Domain names to serve as entry points for your Service. Defined below.

  • dynamicsnippets (pulumi.Input[list]) – A set of custom, “dynamic” VCL Snippet configuration blocks. Defined below.

  • force_destroy (pulumi.Input[bool]) – Services that are active cannot be destroyed. In order to destroy the Service, set force_destroy to true. Default false.

  • gcsloggings (pulumi.Input[list]) – A gcs endpoint to send streaming logs too. Defined below.

  • gzips (pulumi.Input[list]) – A set of gzip rules to control automatic gzipping of content. Defined below.

  • headers (pulumi.Input[list]) – A set of Headers to manipulate for each request. Defined below.

  • healthchecks (pulumi.Input[list]) – Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

  • logentries (pulumi.Input[list]) – A logentries endpoint to send streaming logs too. Defined below.

  • name (pulumi.Input[str]) – The unique name for the Service to create.

  • papertrails (pulumi.Input[list]) – A Papertrail endpoint to send streaming logs too. Defined below.

  • request_settings (pulumi.Input[list]) – A set of Request modifiers. Defined below

  • response_objects (pulumi.Input[list]) – 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.

  • s3loggings (pulumi.Input[list]) – A set of S3 Buckets to send streaming logs too. Defined below.

  • snippets (pulumi.Input[list]) – A set of custom, “regular” (non-dynamic) VCL Snippet configuration blocks. Defined below.

  • splunks (pulumi.Input[list]) – A Splunk endpoint to send streaming logs too. Defined below.

  • sumologics (pulumi.Input[list]) – A Sumologic endpoint to send streaming logs too. Defined below.

  • syslogs (pulumi.Input[list]) – A syslog endpoint to send streaming logs too. Defined below.

  • vcls (pulumi.Input[list]) – 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).

  • version_comment (pulumi.Input[str]) – Description field for the version.

The acls object supports the following:

  • acl_id (pulumi.Input[str]) - The ID of the ACL.

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The backends object supports the following:

  • address (pulumi.Input[str])

  • autoLoadbalance (pulumi.Input[bool])

  • betweenBytesTimeout (pulumi.Input[float])

  • connectTimeout (pulumi.Input[float])

  • errorThreshold (pulumi.Input[float])

  • firstByteTimeout (pulumi.Input[float])

  • healthcheck (pulumi.Input[str]) - Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

  • maxConn (pulumi.Input[float])

  • maxTlsVersion (pulumi.Input[str])

  • minTlsVersion (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • overrideHost (pulumi.Input[str])

  • port (pulumi.Input[float])

  • requestCondition (pulumi.Input[str])

  • shield (pulumi.Input[str])

  • sslCaCert (pulumi.Input[str])

  • sslCertHostname (pulumi.Input[str])

  • sslCheckCert (pulumi.Input[bool])

  • sslCiphers (pulumi.Input[str])

  • sslClientCert (pulumi.Input[str])

  • sslClientKey (pulumi.Input[str])

  • sslHostname (pulumi.Input[str])

  • sslSniHostname (pulumi.Input[str])

  • useSsl (pulumi.Input[bool])

  • weight (pulumi.Input[float])

The bigqueryloggings object supports the following:

  • dataset (pulumi.Input[str])

  • email (pulumi.Input[str])

  • format (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • projectId (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • secretKey (pulumi.Input[str])

  • table (pulumi.Input[str])

  • template (pulumi.Input[str])

The blobstorageloggings object supports the following:

  • accountName (pulumi.Input[str])

  • container (pulumi.Input[str])

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • publicKey (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • sasToken (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The cache_settings object supports the following:

  • action (pulumi.Input[str])

  • cacheCondition (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • staleTtl (pulumi.Input[float])

  • ttl (pulumi.Input[float])

The conditions object supports the following:

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • statement (pulumi.Input[str])

  • type (pulumi.Input[str])

The dictionaries object supports the following:

  • dictionary_id (pulumi.Input[str]) - The ID of the dictionary.

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • writeOnly (pulumi.Input[bool])

The directors object supports the following:

  • backends (pulumi.Input[list])

  • capacity (pulumi.Input[float])

  • comment (pulumi.Input[str]) -

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • quorum (pulumi.Input[float])

  • retries (pulumi.Input[float])

  • shield (pulumi.Input[str])

  • type (pulumi.Input[float])

The domains object supports the following:

  • comment (pulumi.Input[str]) -

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The dynamicsnippets object supports the following:

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • snippet_id (pulumi.Input[str]) - The ID of the dynamic snippet.

  • type (pulumi.Input[str])

The gcsloggings object supports the following:

  • bucketName (pulumi.Input[str])

  • email (pulumi.Input[str])

  • format (pulumi.Input[str])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • secretKey (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The gzips object supports the following:

  • cacheCondition (pulumi.Input[str])

  • contentTypes (pulumi.Input[list])

  • extensions (pulumi.Input[list])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The headers object supports the following:

  • action (pulumi.Input[str])

  • cacheCondition (pulumi.Input[str])

  • destination (pulumi.Input[str])

  • ignoreIfSet (pulumi.Input[bool])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • regex (pulumi.Input[str])

  • requestCondition (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • source (pulumi.Input[str])

  • substitution (pulumi.Input[str])

  • type (pulumi.Input[str])

The healthchecks object supports the following:

  • checkInterval (pulumi.Input[float])

  • expectedResponse (pulumi.Input[float])

  • host (pulumi.Input[str])

  • httpVersion (pulumi.Input[str])

  • initial (pulumi.Input[float])

  • method (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • threshold (pulumi.Input[float])

  • timeout (pulumi.Input[float])

  • window (pulumi.Input[float])

The logentries object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

  • token (pulumi.Input[str])

  • useTls (pulumi.Input[bool])

The papertrails object supports the following:

  • address (pulumi.Input[str])

  • format (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

The request_settings object supports the following:

  • action (pulumi.Input[str])

  • bypassBusyWait (pulumi.Input[bool])

  • default_host (pulumi.Input[str]) - The default hostname.

  • forceMiss (pulumi.Input[bool])

  • forceSsl (pulumi.Input[bool])

  • geoHeaders (pulumi.Input[bool])

  • hashKeys (pulumi.Input[str])

  • maxStaleAge (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • requestCondition (pulumi.Input[str])

  • timerSupport (pulumi.Input[bool])

  • xff (pulumi.Input[str])

The response_objects object supports the following:

  • cacheCondition (pulumi.Input[str])

  • content (pulumi.Input[str])

  • contentType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • requestCondition (pulumi.Input[str])

  • response (pulumi.Input[str])

  • status (pulumi.Input[float])

The s3loggings object supports the following:

  • bucketName (pulumi.Input[str])

  • domain (pulumi.Input[str]) - A set of Domain names to serve as entry points for your Service. Defined below.

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • redundancy (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • s3AccessKey (pulumi.Input[str])

  • s3SecretKey (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The snippets object supports the following:

  • content (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • type (pulumi.Input[str])

The splunks object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • token (pulumi.Input[str])

  • url (pulumi.Input[str])

The sumologics object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • url (pulumi.Input[str])

The syslogs object supports the following:

  • address (pulumi.Input[str])

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

  • tlsCaCert (pulumi.Input[str])

  • tlsHostname (pulumi.Input[str])

  • token (pulumi.Input[str])

  • useTls (pulumi.Input[bool])

The vcls object supports the following:

  • content (pulumi.Input[str])

  • main (pulumi.Input[bool])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

acls = None

A set of ACL configuration blocks. Defined below.

  • acl_id (str) - The ID of the ACL.

  • name (str) - The unique name for the Service to create.

activate = None

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.

active_version = None

The currently active version of your Fastly Service.

backends = None

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

  • address (str)

  • autoLoadbalance (bool)

  • betweenBytesTimeout (float)

  • connectTimeout (float)

  • errorThreshold (float)

  • firstByteTimeout (float)

  • healthcheck (str) - Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

  • maxConn (float)

  • maxTlsVersion (str)

  • minTlsVersion (str)

  • name (str) - The unique name for the Service to create.

  • overrideHost (str)

  • port (float)

  • requestCondition (str)

  • shield (str)

  • sslCaCert (str)

  • sslCertHostname (str)

  • sslCheckCert (bool)

  • sslCiphers (str)

  • sslClientCert (str)

  • sslClientKey (str)

  • sslHostname (str)

  • sslSniHostname (str)

  • useSsl (bool)

  • weight (float)

bigqueryloggings = None

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

  • dataset (str)

  • email (str)

  • format (str)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • projectId (str)

  • responseCondition (str)

  • secretKey (str)

  • table (str)

  • template (str)

blobstorageloggings = None

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

  • accountName (str)

  • container (str)

  • format (str)

  • formatVersion (float)

  • gzipLevel (float)

  • messageType (str)

  • name (str) - The unique name for the Service to create.

  • path (str)

  • period (float)

  • placement (str)

  • publicKey (str)

  • responseCondition (str)

  • sasToken (str)

  • timestampFormat (str)

cache_settings = None

A set of Cache Settings, allowing you to override

  • action (str)

  • cacheCondition (str)

  • name (str) - The unique name for the Service to create.

  • staleTtl (float)

  • ttl (float)

conditions = None

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

  • name (str) - The unique name for the Service to create.

  • priority (float)

  • statement (str)

  • type (str)

default_host = None

The default hostname.

default_ttl = None

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

dictionaries = None

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

  • dictionary_id (str) - The ID of the dictionary.

  • name (str) - The unique name for the Service to create.

  • writeOnly (bool)

directors = None

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

  • backends (list)

  • capacity (float)

  • comment (str) -

  • name (str) - The unique name for the Service to create.

  • quorum (float)

  • retries (float)

  • shield (str)

  • type (float)

domains = None

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

  • comment (str) -

  • name (str) - The unique name for the Service to create.

dynamicsnippets = None

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

  • name (str) - The unique name for the Service to create.

  • priority (float)

  • snippet_id (str) - The ID of the dynamic snippet.

  • type (str)

force_destroy = None

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

gcsloggings = None

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

  • bucketName (str)

  • email (str)

  • format (str)

  • gzipLevel (float)

  • messageType (str)

  • name (str) - The unique name for the Service to create.

  • path (str)

  • period (float)

  • placement (str)

  • responseCondition (str)

  • secretKey (str)

  • timestampFormat (str)

gzips = None

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

  • cacheCondition (str)

  • contentTypes (list)

  • extensions (list)

  • name (str) - The unique name for the Service to create.

headers = None

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

  • action (str)

  • cacheCondition (str)

  • destination (str)

  • ignoreIfSet (bool)

  • name (str) - The unique name for the Service to create.

  • priority (float)

  • regex (str)

  • requestCondition (str)

  • responseCondition (str)

  • source (str)

  • substitution (str)

  • type (str)

healthchecks = None

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

  • checkInterval (float)

  • expectedResponse (float)

  • host (str)

  • httpVersion (str)

  • initial (float)

  • method (str)

  • name (str) - The unique name for the Service to create.

  • path (str)

  • threshold (float)

  • timeout (float)

  • window (float)

logentries = None

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

  • format (str)

  • formatVersion (float)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • port (float)

  • responseCondition (str)

  • token (str)

  • useTls (bool)

name = None

The unique name for the Service to create.

papertrails = None

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

  • address (str)

  • format (str)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • port (float)

  • responseCondition (str)

request_settings = None

A set of Request modifiers. Defined below

  • action (str)

  • bypassBusyWait (bool)

  • default_host (str) - The default hostname.

  • forceMiss (bool)

  • forceSsl (bool)

  • geoHeaders (bool)

  • hashKeys (str)

  • maxStaleAge (float)

  • name (str) - The unique name for the Service to create.

  • requestCondition (str)

  • timerSupport (bool)

  • xff (str)

response_objects = None

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.

  • cacheCondition (str)

  • content (str)

  • contentType (str)

  • name (str) - The unique name for the Service to create.

  • requestCondition (str)

  • response (str)

  • status (float)

s3loggings = None

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

  • bucketName (str)

  • domain (str) - A set of Domain names to serve as entry points for your Service. Defined below.

  • format (str)

  • formatVersion (float)

  • gzipLevel (float)

  • messageType (str)

  • name (str) - The unique name for the Service to create.

  • path (str)

  • period (float)

  • placement (str)

  • redundancy (str)

  • responseCondition (str)

  • s3AccessKey (str)

  • s3SecretKey (str)

  • timestampFormat (str)

snippets = None

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

  • content (str)

  • name (str) - The unique name for the Service to create.

  • priority (float)

  • type (str)

splunks = None

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

  • format (str)

  • formatVersion (float)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • responseCondition (str)

  • token (str)

  • url (str)

sumologics = None

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

  • format (str)

  • formatVersion (float)

  • messageType (str)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • responseCondition (str)

  • url (str)

syslogs = None

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

  • address (str)

  • format (str)

  • formatVersion (float)

  • messageType (str)

  • name (str) - The unique name for the Service to create.

  • placement (str)

  • port (float)

  • responseCondition (str)

  • tlsCaCert (str)

  • tlsHostname (str)

  • token (str)

  • useTls (bool)

vcls = None

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).

  • content (str)

  • main (bool)

  • name (str) - The unique name for the Service to create.

version_comment = None

Description field for the version.

static get(resource_name, id, opts=None, acls=None, activate=None, active_version=None, backends=None, bigqueryloggings=None, blobstorageloggings=None, cache_settings=None, cloned_version=None, comment=None, conditions=None, default_host=None, default_ttl=None, dictionaries=None, directors=None, domains=None, dynamicsnippets=None, force_destroy=None, gcsloggings=None, gzips=None, headers=None, healthchecks=None, logentries=None, name=None, papertrails=None, request_settings=None, response_objects=None, s3loggings=None, snippets=None, splunks=None, sumologics=None, syslogs=None, vcls=None, version_comment=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • acls (pulumi.Input[list]) – A set of ACL configuration blocks. Defined below.

  • activate (pulumi.Input[bool]) – 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.

  • active_version (pulumi.Input[float]) – The currently active version of your Fastly Service.

  • backends (pulumi.Input[list]) – 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

  • bigqueryloggings (pulumi.Input[list]) – A BigQuery endpoint to send streaming logs too. Defined below.

  • blobstorageloggings (pulumi.Input[list]) – An Azure Blob Storage endpoint to send streaming logs too. Defined below.

  • cache_settings (pulumi.Input[list]) – A set of Cache Settings, allowing you to override

  • conditions (pulumi.Input[list]) – A set of conditions to add logic to any basic configuration object in this service. Defined below.

  • default_host (pulumi.Input[str]) – The default hostname.

  • default_ttl (pulumi.Input[float]) – The default Time-to-live (TTL) for requests.

  • dictionaries (pulumi.Input[list]) – A set of dictionaries that allow the storing of key values pair for use within VCL functions. Defined below.

  • directors (pulumi.Input[list]) – 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

  • domains (pulumi.Input[list]) – A set of Domain names to serve as entry points for your Service. Defined below.

  • dynamicsnippets (pulumi.Input[list]) – A set of custom, “dynamic” VCL Snippet configuration blocks. Defined below.

  • force_destroy (pulumi.Input[bool]) – Services that are active cannot be destroyed. In order to destroy the Service, set force_destroy to true. Default false.

  • gcsloggings (pulumi.Input[list]) – A gcs endpoint to send streaming logs too. Defined below.

  • gzips (pulumi.Input[list]) – A set of gzip rules to control automatic gzipping of content. Defined below.

  • headers (pulumi.Input[list]) – A set of Headers to manipulate for each request. Defined below.

  • healthchecks (pulumi.Input[list]) – Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

  • logentries (pulumi.Input[list]) – A logentries endpoint to send streaming logs too. Defined below.

  • name (pulumi.Input[str]) – The unique name for the Service to create.

  • papertrails (pulumi.Input[list]) – A Papertrail endpoint to send streaming logs too. Defined below.

  • request_settings (pulumi.Input[list]) – A set of Request modifiers. Defined below

  • response_objects (pulumi.Input[list]) – 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.

  • s3loggings (pulumi.Input[list]) – A set of S3 Buckets to send streaming logs too. Defined below.

  • snippets (pulumi.Input[list]) – A set of custom, “regular” (non-dynamic) VCL Snippet configuration blocks. Defined below.

  • splunks (pulumi.Input[list]) – A Splunk endpoint to send streaming logs too. Defined below.

  • sumologics (pulumi.Input[list]) – A Sumologic endpoint to send streaming logs too. Defined below.

  • syslogs (pulumi.Input[list]) – A syslog endpoint to send streaming logs too. Defined below.

  • vcls (pulumi.Input[list]) –

    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).

  • version_comment (pulumi.Input[str]) – Description field for the version.

The acls object supports the following:

  • acl_id (pulumi.Input[str]) - The ID of the ACL.

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The backends object supports the following:

  • address (pulumi.Input[str])

  • autoLoadbalance (pulumi.Input[bool])

  • betweenBytesTimeout (pulumi.Input[float])

  • connectTimeout (pulumi.Input[float])

  • errorThreshold (pulumi.Input[float])

  • firstByteTimeout (pulumi.Input[float])

  • healthcheck (pulumi.Input[str]) - Automated healthchecks on the cache that can change how Fastly interacts with the cache based on its health.

  • maxConn (pulumi.Input[float])

  • maxTlsVersion (pulumi.Input[str])

  • minTlsVersion (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • overrideHost (pulumi.Input[str])

  • port (pulumi.Input[float])

  • requestCondition (pulumi.Input[str])

  • shield (pulumi.Input[str])

  • sslCaCert (pulumi.Input[str])

  • sslCertHostname (pulumi.Input[str])

  • sslCheckCert (pulumi.Input[bool])

  • sslCiphers (pulumi.Input[str])

  • sslClientCert (pulumi.Input[str])

  • sslClientKey (pulumi.Input[str])

  • sslHostname (pulumi.Input[str])

  • sslSniHostname (pulumi.Input[str])

  • useSsl (pulumi.Input[bool])

  • weight (pulumi.Input[float])

The bigqueryloggings object supports the following:

  • dataset (pulumi.Input[str])

  • email (pulumi.Input[str])

  • format (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • projectId (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • secretKey (pulumi.Input[str])

  • table (pulumi.Input[str])

  • template (pulumi.Input[str])

The blobstorageloggings object supports the following:

  • accountName (pulumi.Input[str])

  • container (pulumi.Input[str])

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • publicKey (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • sasToken (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The cache_settings object supports the following:

  • action (pulumi.Input[str])

  • cacheCondition (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • staleTtl (pulumi.Input[float])

  • ttl (pulumi.Input[float])

The conditions object supports the following:

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • statement (pulumi.Input[str])

  • type (pulumi.Input[str])

The dictionaries object supports the following:

  • dictionary_id (pulumi.Input[str]) - The ID of the dictionary.

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • writeOnly (pulumi.Input[bool])

The directors object supports the following:

  • backends (pulumi.Input[list])

  • capacity (pulumi.Input[float])

  • comment (pulumi.Input[str]) -

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • quorum (pulumi.Input[float])

  • retries (pulumi.Input[float])

  • shield (pulumi.Input[str])

  • type (pulumi.Input[float])

The domains object supports the following:

  • comment (pulumi.Input[str]) -

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The dynamicsnippets object supports the following:

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • snippet_id (pulumi.Input[str]) - The ID of the dynamic snippet.

  • type (pulumi.Input[str])

The gcsloggings object supports the following:

  • bucketName (pulumi.Input[str])

  • email (pulumi.Input[str])

  • format (pulumi.Input[str])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • secretKey (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The gzips object supports the following:

  • cacheCondition (pulumi.Input[str])

  • contentTypes (pulumi.Input[list])

  • extensions (pulumi.Input[list])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

The headers object supports the following:

  • action (pulumi.Input[str])

  • cacheCondition (pulumi.Input[str])

  • destination (pulumi.Input[str])

  • ignoreIfSet (pulumi.Input[bool])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • regex (pulumi.Input[str])

  • requestCondition (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • source (pulumi.Input[str])

  • substitution (pulumi.Input[str])

  • type (pulumi.Input[str])

The healthchecks object supports the following:

  • checkInterval (pulumi.Input[float])

  • expectedResponse (pulumi.Input[float])

  • host (pulumi.Input[str])

  • httpVersion (pulumi.Input[str])

  • initial (pulumi.Input[float])

  • method (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • threshold (pulumi.Input[float])

  • timeout (pulumi.Input[float])

  • window (pulumi.Input[float])

The logentries object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

  • token (pulumi.Input[str])

  • useTls (pulumi.Input[bool])

The papertrails object supports the following:

  • address (pulumi.Input[str])

  • format (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

The request_settings object supports the following:

  • action (pulumi.Input[str])

  • bypassBusyWait (pulumi.Input[bool])

  • default_host (pulumi.Input[str]) - The default hostname.

  • forceMiss (pulumi.Input[bool])

  • forceSsl (pulumi.Input[bool])

  • geoHeaders (pulumi.Input[bool])

  • hashKeys (pulumi.Input[str])

  • maxStaleAge (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • requestCondition (pulumi.Input[str])

  • timerSupport (pulumi.Input[bool])

  • xff (pulumi.Input[str])

The response_objects object supports the following:

  • cacheCondition (pulumi.Input[str])

  • content (pulumi.Input[str])

  • contentType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • requestCondition (pulumi.Input[str])

  • response (pulumi.Input[str])

  • status (pulumi.Input[float])

The s3loggings object supports the following:

  • bucketName (pulumi.Input[str])

  • domain (pulumi.Input[str]) - A set of Domain names to serve as entry points for your Service. Defined below.

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • gzipLevel (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • path (pulumi.Input[str])

  • period (pulumi.Input[float])

  • placement (pulumi.Input[str])

  • redundancy (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • s3AccessKey (pulumi.Input[str])

  • s3SecretKey (pulumi.Input[str])

  • timestampFormat (pulumi.Input[str])

The snippets object supports the following:

  • content (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • priority (pulumi.Input[float])

  • type (pulumi.Input[str])

The splunks object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • token (pulumi.Input[str])

  • url (pulumi.Input[str])

The sumologics object supports the following:

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • responseCondition (pulumi.Input[str])

  • url (pulumi.Input[str])

The syslogs object supports the following:

  • address (pulumi.Input[str])

  • format (pulumi.Input[str])

  • formatVersion (pulumi.Input[float])

  • messageType (pulumi.Input[str])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

  • placement (pulumi.Input[str])

  • port (pulumi.Input[float])

  • responseCondition (pulumi.Input[str])

  • tlsCaCert (pulumi.Input[str])

  • tlsHostname (pulumi.Input[str])

  • token (pulumi.Input[str])

  • useTls (pulumi.Input[bool])

The vcls object supports the following:

  • content (pulumi.Input[str])

  • main (pulumi.Input[bool])

  • name (pulumi.Input[str]) - The unique name for the Service to create.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_fastly.get_fastly_ip_ranges(opts=None)

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