diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 07feb823..47d04a52 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.17.0 \ No newline at end of file +0.18.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index eff9e018..05215ddc 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-fastly/examples/v7 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.140.0 +require github.com/pulumi/pulumi/pkg/v3 v3.142.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index e2374cde..304740d7 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-fastly/schema.json b/provider/cmd/pulumi-resource-fastly/schema.json index a1ee225c..b3130cb3 100644 --- a/provider/cmd/pulumi-resource-fastly/schema.json +++ b/provider/cmd/pulumi-resource-fastly/schema.json @@ -4657,7 +4657,7 @@ } }, "fastly:index/configstore:Configstore": { - "description": "Provides a container that lets you store data in key-value pairs that are accessible to Compute services during request processing.\n\nIn order for a Config Store (`fastly.Configstore`) to be accessible to a [Compute](https://developer.fastly.com/learning/compute/) service you'll first need to define a Compute service (`fastly.ServiceCompute`) in your configuration, and then create a link to the Config Store from within the service using the `resource_link` block (shown in the below examples).\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleConfigstore = new fastly.Configstore(\"example\", {name: \"my_config_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleConfigstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_configstore = fastly.Configstore(\"example\", name=\"my_config_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_configstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleConfigstore = new Fastly.Configstore(\"example\", new()\n {\n Name = \"my_config_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleConfigstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleConfigstore, err := fastly.NewConfigstore(ctx, \"example\", \u0026fastly.ConfigstoreArgs{\n\t\t\tName: pulumi.String(\"my_config_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleConfigstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Configstore;\nimport com.pulumi.fastly.ConfigstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleConfigstore = new Configstore(\"exampleConfigstore\", ConfigstoreArgs.builder()\n .name(\"my_config_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleConfigstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleConfigstore:\n type: fastly:Configstore\n name: example\n properties:\n name: my_config_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleConfigstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n Function: fastly:getPackageHash\n Arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly Config Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/configstore:Configstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", + "description": "Provides a container that lets you store data in key-value pairs that are accessible to Compute services during request processing.\n\nIn order for a Config Store (`fastly.Configstore`) to be accessible to a [Compute](https://developer.fastly.com/learning/compute/) service you'll first need to define a Compute service (`fastly.ServiceCompute`) in your configuration, and then create a link to the Config Store from within the service using the `resource_link` block (shown in the below examples).\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleConfigstore = new fastly.Configstore(\"example\", {name: \"my_config_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleConfigstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_configstore = fastly.Configstore(\"example\", name=\"my_config_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_configstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleConfigstore = new Fastly.Configstore(\"example\", new()\n {\n Name = \"my_config_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleConfigstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleConfigstore, err := fastly.NewConfigstore(ctx, \"example\", \u0026fastly.ConfigstoreArgs{\n\t\t\tName: pulumi.String(\"my_config_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleConfigstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Configstore;\nimport com.pulumi.fastly.ConfigstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleConfigstore = new Configstore(\"exampleConfigstore\", ConfigstoreArgs.builder()\n .name(\"my_config_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleConfigstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a Config Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleConfigstore:\n type: fastly:Configstore\n name: example\n properties:\n name: my_config_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleConfigstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n function: fastly:getPackageHash\n arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly Config Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/configstore:Configstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", "properties": { "forceDestroy": { "type": "boolean", @@ -4844,7 +4844,7 @@ } }, "fastly:index/kvstore:Kvstore": { - "description": "## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleKvstore = new fastly.Kvstore(\"example\", {name: \"my_kv_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleKvstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_kvstore = fastly.Kvstore(\"example\", name=\"my_kv_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_kvstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleKvstore = new Fastly.Kvstore(\"example\", new()\n {\n Name = \"my_kv_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleKvstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleKvstore, err := fastly.NewKvstore(ctx, \"example\", \u0026fastly.KvstoreArgs{\n\t\t\tName: pulumi.String(\"my_kv_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleKvstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Kvstore;\nimport com.pulumi.fastly.KvstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleKvstore = new Kvstore(\"exampleKvstore\", KvstoreArgs.builder()\n .name(\"my_kv_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleKvstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleKvstore:\n type: fastly:Kvstore\n name: example\n properties:\n name: my_kv_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleKvstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n Function: fastly:getPackageHash\n Arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly KV Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/kvstore:Kvstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", + "description": "## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleKvstore = new fastly.Kvstore(\"example\", {name: \"my_kv_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleKvstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_kvstore = fastly.Kvstore(\"example\", name=\"my_kv_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_kvstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleKvstore = new Fastly.Kvstore(\"example\", new()\n {\n Name = \"my_kv_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleKvstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleKvstore, err := fastly.NewKvstore(ctx, \"example\", \u0026fastly.KvstoreArgs{\n\t\t\tName: pulumi.String(\"my_kv_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleKvstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Kvstore;\nimport com.pulumi.fastly.KvstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleKvstore = new Kvstore(\"exampleKvstore\", KvstoreArgs.builder()\n .name(\"my_kv_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleKvstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a KV Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleKvstore:\n type: fastly:Kvstore\n name: example\n properties:\n name: my_kv_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleKvstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n function: fastly:getPackageHash\n arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly KV Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/kvstore:Kvstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", "properties": { "forceDestroy": { "type": "boolean", @@ -4898,7 +4898,7 @@ } }, "fastly:index/secretstore:Secretstore": { - "description": "## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleSecretstore = new fastly.Secretstore(\"example\", {name: \"my_secret_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleSecretstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_secretstore = fastly.Secretstore(\"example\", name=\"my_secret_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_secretstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleSecretstore = new Fastly.Secretstore(\"example\", new()\n {\n Name = \"my_secret_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleSecretstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleSecretstore, err := fastly.NewSecretstore(ctx, \"example\", \u0026fastly.SecretstoreArgs{\n\t\t\tName: pulumi.String(\"my_secret_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleSecretstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Secretstore;\nimport com.pulumi.fastly.SecretstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleSecretstore = new Secretstore(\"exampleSecretstore\", SecretstoreArgs.builder()\n .name(\"my_secret_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleSecretstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleSecretstore:\n type: fastly:Secretstore\n name: example\n properties:\n name: my_secret_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleSecretstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n Function: fastly:getPackageHash\n Arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly Secret Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/secretstore:Secretstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", + "description": "## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\n// IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n// e.g. resource_link deletion within fastly_service_compute might not finish first.\nconst exampleSecretstore = new fastly.Secretstore(\"example\", {name: \"my_secret_store\"});\nconst example = fastly.getPackageHash({\n filename: \"package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\n name: \"my_compute_service\",\n domains: [{\n name: \"demo.example.com\",\n }],\n \"package\": {\n filename: \"package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n },\n resourceLinks: [{\n name: \"my_resource_link\",\n resourceId: exampleSecretstore.id,\n }],\n forceDestroy: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\n# IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n# This requires a two-step `pulumi up` as we can't guarantee deletion order.\n# e.g. resource_link deletion within fastly_service_compute might not finish first.\nexample_secretstore = fastly.Secretstore(\"example\", name=\"my_secret_store\")\nexample = fastly.get_package_hash(filename=\"package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\",\n name=\"my_compute_service\",\n domains=[{\n \"name\": \"demo.example.com\",\n }],\n package={\n \"filename\": \"package.tar.gz\",\n \"source_code_hash\": example.hash,\n },\n resource_links=[{\n \"name\": \"my_resource_link\",\n \"resource_id\": example_secretstore.id,\n }],\n force_destroy=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleSecretstore = new Fastly.Secretstore(\"example\", new()\n {\n Name = \"my_secret_store\",\n });\n\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Name = \"my_compute_service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceComputeDomainArgs\n {\n Name = \"demo.example.com\",\n },\n },\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n ResourceLinks = new[]\n {\n new Fastly.Inputs.ServiceComputeResourceLinkArgs\n {\n Name = \"my_resource_link\",\n ResourceId = exampleSecretstore.Id,\n },\n },\n ForceDestroy = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n\t\t// This requires a two-step `pulumi up` as we can't guarantee deletion order.\n\t\t// e.g. resource_link deletion within fastly_service_compute might not finish first.\n\t\texampleSecretstore, err := fastly.NewSecretstore(ctx, \"example\", \u0026fastly.SecretstoreArgs{\n\t\t\tName: pulumi.String(\"my_secret_store\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tName: pulumi.String(\"my_compute_service\"),\n\t\t\tDomains: fastly.ServiceComputeDomainArray{\n\t\t\t\t\u0026fastly.ServiceComputeDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"demo.example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t\tResourceLinks: fastly.ServiceComputeResourceLinkArray{\n\t\t\t\t\u0026fastly.ServiceComputeResourceLinkArgs{\n\t\t\t\t\tName: pulumi.String(\"my_resource_link\"),\n\t\t\t\t\tResourceId: exampleSecretstore.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.Secretstore;\nimport com.pulumi.fastly.SecretstoreArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport com.pulumi.fastly.inputs.ServiceComputeResourceLinkArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n // This requires a two-step `pulumi up` as we can't guarantee deletion order.\n // e.g. resource_link deletion within fastly_service_compute might not finish first.\n var exampleSecretstore = new Secretstore(\"exampleSecretstore\", SecretstoreArgs.builder()\n .name(\"my_secret_store\")\n .build());\n\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .name(\"my_compute_service\")\n .domains(ServiceComputeDomainArgs.builder()\n .name(\"demo.example.com\")\n .build())\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .resourceLinks(ServiceComputeResourceLinkArgs.builder()\n .name(\"my_resource_link\")\n .resourceId(exampleSecretstore.id())\n .build())\n .forceDestroy(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # IMPORTANT: Deleting a Secret Store requires first deleting its resource_link.\n # This requires a two-step `pulumi up` as we can't guarantee deletion order.\n # e.g. resource_link deletion within fastly_service_compute might not finish first.\n exampleSecretstore:\n type: fastly:Secretstore\n name: example\n properties:\n name: my_secret_store\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n name: my_compute_service\n domains:\n - name: demo.example.com\n package:\n filename: package.tar.gz\n sourceCodeHash: ${example.hash}\n resourceLinks:\n - name: my_resource_link\n resourceId: ${exampleSecretstore.id}\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n function: fastly:getPackageHash\n arguments:\n filename: package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFastly Secret Stores can be imported using their Store ID, e.g.\n\n```sh\n$ pulumi import fastly:index/secretstore:Secretstore example xxxxxxxxxxxxxxxxxxxx\n```\n\n", "properties": { "name": { "type": "string", @@ -7414,7 +7414,7 @@ } }, "fastly:index/tlsActivation:TlsActivation": { - "description": "Enables TLS on a domain using a specified custom TLS certificate.\n\n\u003e **Note:** The Fastly service must be provisioned _prior_ to enabling TLS on it. This can be achieved in Pulumi using `depends_on`.\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = new fastly.ServiceVcl(\"demo\", {\n name: \"my-service\",\n domains: [{\n name: \"example.com\",\n }],\n backends: [{\n address: \"127.0.0.1\",\n name: \"localhost\",\n }],\n forceDestroy: true,\n});\nconst demoTlsPrivateKey = new fastly.TlsPrivateKey(\"demo\", {\n keyPem: \"...\",\n name: \"demo-key\",\n});\nconst demoTlsCertificate = new fastly.TlsCertificate(\"demo\", {\n certificateBody: \"...\",\n name: \"demo-cert\",\n}, {\n dependsOn: [demoTlsPrivateKey],\n});\nconst test = new fastly.TlsActivation(\"test\", {\n certificateId: demoTlsCertificate.id,\n domain: \"example.com\",\n}, {\n dependsOn: [demo],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.ServiceVcl(\"demo\",\n name=\"my-service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n backends=[{\n \"address\": \"127.0.0.1\",\n \"name\": \"localhost\",\n }],\n force_destroy=True)\ndemo_tls_private_key = fastly.TlsPrivateKey(\"demo\",\n key_pem=\"...\",\n name=\"demo-key\")\ndemo_tls_certificate = fastly.TlsCertificate(\"demo\",\n certificate_body=\"...\",\n name=\"demo-cert\",\n opts = pulumi.ResourceOptions(depends_on=[demo_tls_private_key]))\ntest = fastly.TlsActivation(\"test\",\n certificate_id=demo_tls_certificate.id,\n domain=\"example.com\",\n opts = pulumi.ResourceOptions(depends_on=[demo]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = new Fastly.ServiceVcl(\"demo\", new()\n {\n Name = \"my-service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n Backends = new[]\n {\n new Fastly.Inputs.ServiceVclBackendArgs\n {\n Address = \"127.0.0.1\",\n Name = \"localhost\",\n },\n },\n ForceDestroy = true,\n });\n\n var demoTlsPrivateKey = new Fastly.TlsPrivateKey(\"demo\", new()\n {\n KeyPem = \"...\",\n Name = \"demo-key\",\n });\n\n var demoTlsCertificate = new Fastly.TlsCertificate(\"demo\", new()\n {\n CertificateBody = \"...\",\n Name = \"demo-cert\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n demoTlsPrivateKey,\n },\n });\n\n var test = new Fastly.TlsActivation(\"test\", new()\n {\n CertificateId = demoTlsCertificate.Id,\n Domain = \"example.com\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n demo,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdemo, err := fastly.NewServiceVcl(ctx, \"demo\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"my-service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tBackends: fastly.ServiceVclBackendArray{\n\t\t\t\t\u0026fastly.ServiceVclBackendArgs{\n\t\t\t\t\tAddress: pulumi.String(\"127.0.0.1\"),\n\t\t\t\t\tName: pulumi.String(\"localhost\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdemoTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"demo\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: pulumi.String(\"...\"),\n\t\t\tName: pulumi.String(\"demo-key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdemoTlsCertificate, err := fastly.NewTlsCertificate(ctx, \"demo\", \u0026fastly.TlsCertificateArgs{\n\t\t\tCertificateBody: pulumi.String(\"...\"),\n\t\t\tName: pulumi.String(\"demo-cert\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdemoTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"test\", \u0026fastly.TlsActivationArgs{\n\t\t\tCertificateId: demoTlsCertificate.ID(),\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdemo,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceVclBackendArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsCertificate;\nimport com.pulumi.fastly.TlsCertificateArgs;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var demo = new ServiceVcl(\"demo\", ServiceVclArgs.builder()\n .name(\"my-service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .backends(ServiceVclBackendArgs.builder()\n .address(\"127.0.0.1\")\n .name(\"localhost\")\n .build())\n .forceDestroy(true)\n .build());\n\n var demoTlsPrivateKey = new TlsPrivateKey(\"demoTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(\"...\")\n .name(\"demo-key\")\n .build());\n\n var demoTlsCertificate = new TlsCertificate(\"demoTlsCertificate\", TlsCertificateArgs.builder()\n .certificateBody(\"...\")\n .name(\"demo-cert\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(demoTlsPrivateKey)\n .build());\n\n var test = new TlsActivation(\"test\", TlsActivationArgs.builder()\n .certificateId(demoTlsCertificate.id())\n .domain(\"example.com\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(demo)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n demo:\n type: fastly:ServiceVcl\n properties:\n name: my-service\n domains:\n - name: example.com\n backends:\n - address: 127.0.0.1\n name: localhost\n forceDestroy: true\n demoTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: demo\n properties:\n keyPem: '...'\n name: demo-key\n demoTlsCertificate:\n type: fastly:TlsCertificate\n name: demo\n properties:\n certificateBody: '...'\n name: demo-cert\n options:\n dependson:\n - ${demoTlsPrivateKey}\n test:\n type: fastly:TlsActivation\n properties:\n certificateId: ${demoTlsCertificate.id}\n domain: example.com\n options:\n dependson:\n - ${demo}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e **Warning:** Updating the `fastly.TlsPrivateKey`/`fastly.TlsCertificate` resources should be done in multiple plan/apply steps to avoid potential downtime. The new certificate and associated private key must first be created so they exist alongside the currently active resources. Once the new resources have been created, then the `fastly.TlsActivation` can be updated to point to the new certificate. Finally, the original key/certificate resources can be deleted.\n\n## Import\n\nA TLS activation can be imported using its ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsActivation:TlsActivation demo xxxxxxxx\n```\n\n", + "description": "Enables TLS on a domain using a specified custom TLS certificate.\n\n\u003e **Note:** The Fastly service must be provisioned _prior_ to enabling TLS on it. This can be achieved in Pulumi using `depends_on`.\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = new fastly.ServiceVcl(\"demo\", {\n name: \"my-service\",\n domains: [{\n name: \"example.com\",\n }],\n backends: [{\n address: \"127.0.0.1\",\n name: \"localhost\",\n }],\n forceDestroy: true,\n});\nconst demoTlsPrivateKey = new fastly.TlsPrivateKey(\"demo\", {\n keyPem: \"...\",\n name: \"demo-key\",\n});\nconst demoTlsCertificate = new fastly.TlsCertificate(\"demo\", {\n certificateBody: \"...\",\n name: \"demo-cert\",\n}, {\n dependsOn: [demoTlsPrivateKey],\n});\nconst test = new fastly.TlsActivation(\"test\", {\n certificateId: demoTlsCertificate.id,\n domain: \"example.com\",\n}, {\n dependsOn: [demo],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.ServiceVcl(\"demo\",\n name=\"my-service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n backends=[{\n \"address\": \"127.0.0.1\",\n \"name\": \"localhost\",\n }],\n force_destroy=True)\ndemo_tls_private_key = fastly.TlsPrivateKey(\"demo\",\n key_pem=\"...\",\n name=\"demo-key\")\ndemo_tls_certificate = fastly.TlsCertificate(\"demo\",\n certificate_body=\"...\",\n name=\"demo-cert\",\n opts = pulumi.ResourceOptions(depends_on=[demo_tls_private_key]))\ntest = fastly.TlsActivation(\"test\",\n certificate_id=demo_tls_certificate.id,\n domain=\"example.com\",\n opts = pulumi.ResourceOptions(depends_on=[demo]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = new Fastly.ServiceVcl(\"demo\", new()\n {\n Name = \"my-service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n Backends = new[]\n {\n new Fastly.Inputs.ServiceVclBackendArgs\n {\n Address = \"127.0.0.1\",\n Name = \"localhost\",\n },\n },\n ForceDestroy = true,\n });\n\n var demoTlsPrivateKey = new Fastly.TlsPrivateKey(\"demo\", new()\n {\n KeyPem = \"...\",\n Name = \"demo-key\",\n });\n\n var demoTlsCertificate = new Fastly.TlsCertificate(\"demo\", new()\n {\n CertificateBody = \"...\",\n Name = \"demo-cert\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n demoTlsPrivateKey,\n },\n });\n\n var test = new Fastly.TlsActivation(\"test\", new()\n {\n CertificateId = demoTlsCertificate.Id,\n Domain = \"example.com\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n demo,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdemo, err := fastly.NewServiceVcl(ctx, \"demo\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"my-service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tBackends: fastly.ServiceVclBackendArray{\n\t\t\t\t\u0026fastly.ServiceVclBackendArgs{\n\t\t\t\t\tAddress: pulumi.String(\"127.0.0.1\"),\n\t\t\t\t\tName: pulumi.String(\"localhost\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdemoTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"demo\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: pulumi.String(\"...\"),\n\t\t\tName: pulumi.String(\"demo-key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdemoTlsCertificate, err := fastly.NewTlsCertificate(ctx, \"demo\", \u0026fastly.TlsCertificateArgs{\n\t\t\tCertificateBody: pulumi.String(\"...\"),\n\t\t\tName: pulumi.String(\"demo-cert\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdemoTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"test\", \u0026fastly.TlsActivationArgs{\n\t\t\tCertificateId: demoTlsCertificate.ID(),\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdemo,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceVclBackendArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsCertificate;\nimport com.pulumi.fastly.TlsCertificateArgs;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var demo = new ServiceVcl(\"demo\", ServiceVclArgs.builder()\n .name(\"my-service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .backends(ServiceVclBackendArgs.builder()\n .address(\"127.0.0.1\")\n .name(\"localhost\")\n .build())\n .forceDestroy(true)\n .build());\n\n var demoTlsPrivateKey = new TlsPrivateKey(\"demoTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(\"...\")\n .name(\"demo-key\")\n .build());\n\n var demoTlsCertificate = new TlsCertificate(\"demoTlsCertificate\", TlsCertificateArgs.builder()\n .certificateBody(\"...\")\n .name(\"demo-cert\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(demoTlsPrivateKey)\n .build());\n\n var test = new TlsActivation(\"test\", TlsActivationArgs.builder()\n .certificateId(demoTlsCertificate.id())\n .domain(\"example.com\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(demo)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n demo:\n type: fastly:ServiceVcl\n properties:\n name: my-service\n domains:\n - name: example.com\n backends:\n - address: 127.0.0.1\n name: localhost\n forceDestroy: true\n demoTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: demo\n properties:\n keyPem: '...'\n name: demo-key\n demoTlsCertificate:\n type: fastly:TlsCertificate\n name: demo\n properties:\n certificateBody: '...'\n name: demo-cert\n options:\n dependsOn:\n - ${demoTlsPrivateKey}\n test:\n type: fastly:TlsActivation\n properties:\n certificateId: ${demoTlsCertificate.id}\n domain: example.com\n options:\n dependsOn:\n - ${demo}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e **Warning:** Updating the `fastly.TlsPrivateKey`/`fastly.TlsCertificate` resources should be done in multiple plan/apply steps to avoid potential downtime. The new certificate and associated private key must first be created so they exist alongside the currently active resources. Once the new resources have been created, then the `fastly.TlsActivation` can be updated to point to the new certificate. Finally, the original key/certificate resources can be deleted.\n\n## Import\n\nA TLS activation can be imported using its ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsActivation:TlsActivation demo xxxxxxxx\n```\n\n", "properties": { "certificateId": { "type": "string", @@ -7498,7 +7498,7 @@ } }, "fastly:index/tlsCertificate:TlsCertificate": { - "description": "Uploads a custom TLS certificate to Fastly to be used to terminate TLS traffic.\n\n\u003e Each TLS certificate **must** have its corresponding private key uploaded _prior_ to uploading the certificate. This\ncan be achieved in Pulumi using `depends_on`\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\nimport * as tls from \"@pulumi/tls\";\n\nconst key = new tls.index.PrivateKey(\"key\", {algorithm: \"RSA\"});\nconst cert = new tls.index.SelfSignedCert(\"cert\", {\n keyAlgorithm: key.algorithm,\n privateKeyPem: key.privateKeyPem,\n subject: [{\n commonName: \"example.com\",\n }],\n isCaCertificate: true,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n dnsNames: [\"example.com\"],\n});\nconst keyTlsPrivateKey = new fastly.TlsPrivateKey(\"key\", {\n keyPem: key.privateKeyPem,\n name: \"tf-demo\",\n});\nconst example = new fastly.TlsCertificate(\"example\", {\n name: \"tf-demo\",\n certificateBody: cert.certPem,\n}, {\n dependsOn: [keyTlsPrivateKey],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\nimport pulumi_tls as tls\n\nkey = tls.index.PrivateKey(\"key\", algorithm=RSA)\ncert = tls.index.SelfSignedCert(\"cert\",\n key_algorithm=key.algorithm,\n private_key_pem=key.private_key_pem,\n subject=[{\n commonName: example.com,\n }],\n is_ca_certificate=True,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ],\n dns_names=[example.com])\nkey_tls_private_key = fastly.TlsPrivateKey(\"key\",\n key_pem=key[\"privateKeyPem\"],\n name=\"tf-demo\")\nexample = fastly.TlsCertificate(\"example\",\n name=\"tf-demo\",\n certificate_body=cert[\"certPem\"],\n opts = pulumi.ResourceOptions(depends_on=[key_tls_private_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\nusing Tls = Pulumi.Tls;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var key = new Tls.Index.PrivateKey(\"key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var cert = new Tls.Index.SelfSignedCert(\"cert\", new()\n {\n KeyAlgorithm = key.Algorithm,\n PrivateKeyPem = key.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"example.com\" },\n },\n },\n IsCaCertificate = true,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n DnsNames = new[]\n {\n \"example.com\",\n },\n });\n\n var keyTlsPrivateKey = new Fastly.TlsPrivateKey(\"key\", new()\n {\n KeyPem = key.PrivateKeyPem,\n Name = \"tf-demo\",\n });\n\n var example = new Fastly.TlsCertificate(\"example\", new()\n {\n Name = \"tf-demo\",\n CertificateBody = cert.CertPem,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n keyTlsPrivateKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi-tls/sdk/v4/go/tls\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tkey, err := tls.NewPrivateKey(ctx, \"key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcert, err := tls.NewSelfSignedCert(ctx, \"cert\", \u0026tls.SelfSignedCertArgs{\n\t\t\tKeyAlgorithm: key.Algorithm,\n\t\t\tPrivateKeyPem: key.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"example.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tIsCaCertificate: true,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t\tDnsNames: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkeyTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"key\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: key.PrivateKeyPem,\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsCertificate(ctx, \"example\", \u0026fastly.TlsCertificateArgs{\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t\tCertificateBody: cert.CertPem,\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tkeyTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tls.privateKey;\nimport com.pulumi.tls.PrivateKeyArgs;\nimport com.pulumi.tls.selfSignedCert;\nimport com.pulumi.tls.SelfSignedCertArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsCertificate;\nimport com.pulumi.fastly.TlsCertificateArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var key = new PrivateKey(\"key\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var cert = new SelfSignedCert(\"cert\", SelfSignedCertArgs.builder()\n .keyAlgorithm(key.algorithm())\n .privateKeyPem(key.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .isCaCertificate(true)\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .dnsNames(\"example.com\")\n .build());\n\n var keyTlsPrivateKey = new TlsPrivateKey(\"keyTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(key.privateKeyPem())\n .name(\"tf-demo\")\n .build());\n\n var example = new TlsCertificate(\"example\", TlsCertificateArgs.builder()\n .name(\"tf-demo\")\n .certificateBody(cert.certPem())\n .build(), CustomResourceOptions.builder()\n .dependsOn(keyTlsPrivateKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n key:\n type: tls:privateKey\n properties:\n algorithm: RSA\n cert:\n type: tls:selfSignedCert\n properties:\n keyAlgorithm: ${key.algorithm}\n privateKeyPem: ${key.privateKeyPem}\n subject:\n - commonName: example.com\n isCaCertificate: true\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n dnsNames:\n - example.com\n keyTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: key\n properties:\n keyPem: ${key.privateKeyPem}\n name: tf-demo\n example:\n type: fastly:TlsCertificate\n properties:\n name: tf-demo\n certificateBody: ${cert.certPem}\n options:\n dependson:\n - ${keyTlsPrivateKey}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Updating certificates\n\nThere are three scenarios for updating a certificate:\n\n1. The certificate is about to expire but the private key stays the same.\n2. The certificate is about to expire but the private key is changing.\n3. The domains on the certificate are changing.\n\nIn the first scenario you only need to update the `certificate_body` attribute of the `fastly.TlsCertificate` resource, while the other scenarios require a new private key (`fastly.TlsPrivateKey`) and certificate (`fastly.TlsCertificate`) to be generated.\n\nWhen updating both the `fastly.TlsPrivateKey` and `fastly.TlsCertificate` resources, they should be done in multiple plan/apply steps to avoid potential downtime. The new certificate and associated private key must first be created so they exist alongside the currently active resources. Once the new resources have been created, then the `fastly.TlsActivation` can be updated to point to the new certificate. Finally, the original key/certificate resources can be deleted.\n\n## Import\n\nA certificate can be imported using its Fastly certificate ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsCertificate:TlsCertificate demo xxxxxxxxxxx\n```\n\n", + "description": "Uploads a custom TLS certificate to Fastly to be used to terminate TLS traffic.\n\n\u003e Each TLS certificate **must** have its corresponding private key uploaded _prior_ to uploading the certificate. This\ncan be achieved in Pulumi using `depends_on`\n\n## Example Usage\n\nBasic usage:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\nimport * as tls from \"@pulumi/tls\";\n\nconst key = new tls.index.PrivateKey(\"key\", {algorithm: \"RSA\"});\nconst cert = new tls.index.SelfSignedCert(\"cert\", {\n keyAlgorithm: key.algorithm,\n privateKeyPem: key.privateKeyPem,\n subject: [{\n commonName: \"example.com\",\n }],\n isCaCertificate: true,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n dnsNames: [\"example.com\"],\n});\nconst keyTlsPrivateKey = new fastly.TlsPrivateKey(\"key\", {\n keyPem: key.privateKeyPem,\n name: \"tf-demo\",\n});\nconst example = new fastly.TlsCertificate(\"example\", {\n name: \"tf-demo\",\n certificateBody: cert.certPem,\n}, {\n dependsOn: [keyTlsPrivateKey],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\nimport pulumi_tls as tls\n\nkey = tls.index.PrivateKey(\"key\", algorithm=RSA)\ncert = tls.index.SelfSignedCert(\"cert\",\n key_algorithm=key.algorithm,\n private_key_pem=key.private_key_pem,\n subject=[{\n commonName: example.com,\n }],\n is_ca_certificate=True,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ],\n dns_names=[example.com])\nkey_tls_private_key = fastly.TlsPrivateKey(\"key\",\n key_pem=key[\"privateKeyPem\"],\n name=\"tf-demo\")\nexample = fastly.TlsCertificate(\"example\",\n name=\"tf-demo\",\n certificate_body=cert[\"certPem\"],\n opts = pulumi.ResourceOptions(depends_on=[key_tls_private_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\nusing Tls = Pulumi.Tls;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var key = new Tls.Index.PrivateKey(\"key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var cert = new Tls.Index.SelfSignedCert(\"cert\", new()\n {\n KeyAlgorithm = key.Algorithm,\n PrivateKeyPem = key.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"example.com\" },\n },\n },\n IsCaCertificate = true,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n DnsNames = new[]\n {\n \"example.com\",\n },\n });\n\n var keyTlsPrivateKey = new Fastly.TlsPrivateKey(\"key\", new()\n {\n KeyPem = key.PrivateKeyPem,\n Name = \"tf-demo\",\n });\n\n var example = new Fastly.TlsCertificate(\"example\", new()\n {\n Name = \"tf-demo\",\n CertificateBody = cert.CertPem,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n keyTlsPrivateKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi-tls/sdk/v4/go/tls\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tkey, err := tls.NewPrivateKey(ctx, \"key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcert, err := tls.NewSelfSignedCert(ctx, \"cert\", \u0026tls.SelfSignedCertArgs{\n\t\t\tKeyAlgorithm: key.Algorithm,\n\t\t\tPrivateKeyPem: key.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"example.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tIsCaCertificate: true,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t\tDnsNames: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkeyTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"key\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: key.PrivateKeyPem,\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsCertificate(ctx, \"example\", \u0026fastly.TlsCertificateArgs{\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t\tCertificateBody: cert.CertPem,\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tkeyTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tls.privateKey;\nimport com.pulumi.tls.PrivateKeyArgs;\nimport com.pulumi.tls.selfSignedCert;\nimport com.pulumi.tls.SelfSignedCertArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsCertificate;\nimport com.pulumi.fastly.TlsCertificateArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var key = new PrivateKey(\"key\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var cert = new SelfSignedCert(\"cert\", SelfSignedCertArgs.builder()\n .keyAlgorithm(key.algorithm())\n .privateKeyPem(key.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .isCaCertificate(true)\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .dnsNames(\"example.com\")\n .build());\n\n var keyTlsPrivateKey = new TlsPrivateKey(\"keyTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(key.privateKeyPem())\n .name(\"tf-demo\")\n .build());\n\n var example = new TlsCertificate(\"example\", TlsCertificateArgs.builder()\n .name(\"tf-demo\")\n .certificateBody(cert.certPem())\n .build(), CustomResourceOptions.builder()\n .dependsOn(keyTlsPrivateKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n key:\n type: tls:privateKey\n properties:\n algorithm: RSA\n cert:\n type: tls:selfSignedCert\n properties:\n keyAlgorithm: ${key.algorithm}\n privateKeyPem: ${key.privateKeyPem}\n subject:\n - commonName: example.com\n isCaCertificate: true\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n dnsNames:\n - example.com\n keyTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: key\n properties:\n keyPem: ${key.privateKeyPem}\n name: tf-demo\n example:\n type: fastly:TlsCertificate\n properties:\n name: tf-demo\n certificateBody: ${cert.certPem}\n options:\n dependsOn:\n - ${keyTlsPrivateKey}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Updating certificates\n\nThere are three scenarios for updating a certificate:\n\n1. The certificate is about to expire but the private key stays the same.\n2. The certificate is about to expire but the private key is changing.\n3. The domains on the certificate are changing.\n\nIn the first scenario you only need to update the `certificate_body` attribute of the `fastly.TlsCertificate` resource, while the other scenarios require a new private key (`fastly.TlsPrivateKey`) and certificate (`fastly.TlsCertificate`) to be generated.\n\nWhen updating both the `fastly.TlsPrivateKey` and `fastly.TlsCertificate` resources, they should be done in multiple plan/apply steps to avoid potential downtime. The new certificate and associated private key must first be created so they exist alongside the currently active resources. Once the new resources have been created, then the `fastly.TlsActivation` can be updated to point to the new certificate. Finally, the original key/certificate resources can be deleted.\n\n## Import\n\nA certificate can be imported using its Fastly certificate ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsCertificate:TlsCertificate demo xxxxxxxxxxx\n```\n\n", "properties": { "certificateBody": { "type": "string", @@ -7740,7 +7740,7 @@ } }, "fastly:index/tlsPlatformCertificate:TlsPlatformCertificate": { - "description": "Uploads a TLS certificate to the Fastly Platform TLS service.\n\n\u003e Each TLS certificate **must** have its corresponding private key uploaded _prior_ to uploading the certificate. This\ncan be achieved in Pulumi using `depends_on`\n\n## Example Usage\n\nBasic usage with self-signed CA:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\nimport * as tls from \"@pulumi/tls\";\n\nconst caKey = new tls.index.PrivateKey(\"ca_key\", {algorithm: \"RSA\"});\nconst key = new tls.index.PrivateKey(\"key\", {algorithm: \"RSA\"});\nconst ca = new tls.index.SelfSignedCert(\"ca\", {\n keyAlgorithm: caKey.algorithm,\n privateKeyPem: caKey.privateKeyPem,\n subject: [{\n commonName: \"Example CA\",\n }],\n isCaCertificate: true,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n});\nconst example = new tls.index.CertRequest(\"example\", {\n keyAlgorithm: key.algorithm,\n privateKeyPem: key.privateKeyPem,\n subject: [{\n commonName: \"example.com\",\n }],\n dnsNames: [\n \"example.com\",\n \"www.example.com\",\n ],\n});\nconst cert = new tls.index.LocallySignedCert(\"cert\", {\n certRequestPem: example.certRequestPem,\n caKeyAlgorithm: caKey.algorithm,\n caPrivateKeyPem: caKey.privateKeyPem,\n caCertPem: ca.certPem,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n});\nconst config = fastly.getTlsConfiguration({\n tlsService: \"PLATFORM\",\n});\nconst keyTlsPrivateKey = new fastly.TlsPrivateKey(\"key\", {\n keyPem: key.privateKeyPem,\n name: \"tf-demo\",\n});\nconst certTlsPlatformCertificate = new fastly.TlsPlatformCertificate(\"cert\", {\n certificateBody: cert.certPem,\n intermediatesBlob: ca.certPem,\n configurationId: config.then(config =\u003e config.id),\n allowUntrustedRoot: true,\n}, {\n dependsOn: [keyTlsPrivateKey],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\nimport pulumi_tls as tls\n\nca_key = tls.index.PrivateKey(\"ca_key\", algorithm=RSA)\nkey = tls.index.PrivateKey(\"key\", algorithm=RSA)\nca = tls.index.SelfSignedCert(\"ca\",\n key_algorithm=ca_key.algorithm,\n private_key_pem=ca_key.private_key_pem,\n subject=[{\n commonName: Example CA,\n }],\n is_ca_certificate=True,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ])\nexample = tls.index.CertRequest(\"example\",\n key_algorithm=key.algorithm,\n private_key_pem=key.private_key_pem,\n subject=[{\n commonName: example.com,\n }],\n dns_names=[\n example.com,\n www.example.com,\n ])\ncert = tls.index.LocallySignedCert(\"cert\",\n cert_request_pem=example.cert_request_pem,\n ca_key_algorithm=ca_key.algorithm,\n ca_private_key_pem=ca_key.private_key_pem,\n ca_cert_pem=ca.cert_pem,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ])\nconfig = fastly.get_tls_configuration(tls_service=\"PLATFORM\")\nkey_tls_private_key = fastly.TlsPrivateKey(\"key\",\n key_pem=key[\"privateKeyPem\"],\n name=\"tf-demo\")\ncert_tls_platform_certificate = fastly.TlsPlatformCertificate(\"cert\",\n certificate_body=cert[\"certPem\"],\n intermediates_blob=ca[\"certPem\"],\n configuration_id=config.id,\n allow_untrusted_root=True,\n opts = pulumi.ResourceOptions(depends_on=[key_tls_private_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\nusing Tls = Pulumi.Tls;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var caKey = new Tls.Index.PrivateKey(\"ca_key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var key = new Tls.Index.PrivateKey(\"key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var ca = new Tls.Index.SelfSignedCert(\"ca\", new()\n {\n KeyAlgorithm = caKey.Algorithm,\n PrivateKeyPem = caKey.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"Example CA\" },\n },\n },\n IsCaCertificate = true,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n });\n\n var example = new Tls.Index.CertRequest(\"example\", new()\n {\n KeyAlgorithm = key.Algorithm,\n PrivateKeyPem = key.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"example.com\" },\n },\n },\n DnsNames = new[]\n {\n \"example.com\",\n \"www.example.com\",\n },\n });\n\n var cert = new Tls.Index.LocallySignedCert(\"cert\", new()\n {\n CertRequestPem = example.CertRequestPem,\n CaKeyAlgorithm = caKey.Algorithm,\n CaPrivateKeyPem = caKey.PrivateKeyPem,\n CaCertPem = ca.CertPem,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n });\n\n var config = Fastly.GetTlsConfiguration.Invoke(new()\n {\n TlsService = \"PLATFORM\",\n });\n\n var keyTlsPrivateKey = new Fastly.TlsPrivateKey(\"key\", new()\n {\n KeyPem = key.PrivateKeyPem,\n Name = \"tf-demo\",\n });\n\n var certTlsPlatformCertificate = new Fastly.TlsPlatformCertificate(\"cert\", new()\n {\n CertificateBody = cert.CertPem,\n IntermediatesBlob = ca.CertPem,\n ConfigurationId = config.Apply(getTlsConfigurationResult =\u003e getTlsConfigurationResult.Id),\n AllowUntrustedRoot = true,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n keyTlsPrivateKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi-tls/sdk/v4/go/tls\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcaKey, err := tls.NewPrivateKey(ctx, \"ca_key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkey, err := tls.NewPrivateKey(ctx, \"key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tca, err := tls.NewSelfSignedCert(ctx, \"ca\", \u0026tls.SelfSignedCertArgs{\n\t\t\tKeyAlgorithm: caKey.Algorithm,\n\t\t\tPrivateKeyPem: caKey.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"Example CA\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tIsCaCertificate: true,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := tls.NewCertRequest(ctx, \"example\", \u0026tls.CertRequestArgs{\n\t\t\tKeyAlgorithm: key.Algorithm,\n\t\t\tPrivateKeyPem: key.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"example.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tDnsNames: []string{\n\t\t\t\t\"example.com\",\n\t\t\t\t\"www.example.com\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcert, err := tls.NewLocallySignedCert(ctx, \"cert\", \u0026tls.LocallySignedCertArgs{\n\t\t\tCertRequestPem: example.CertRequestPem,\n\t\t\tCaKeyAlgorithm: caKey.Algorithm,\n\t\t\tCaPrivateKeyPem: caKey.PrivateKeyPem,\n\t\t\tCaCertPem: ca.CertPem,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tconfig, err := fastly.GetTlsConfiguration(ctx, \u0026fastly.GetTlsConfigurationArgs{\n\t\t\tTlsService: pulumi.StringRef(\"PLATFORM\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkeyTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"key\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: key.PrivateKeyPem,\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsPlatformCertificate(ctx, \"cert\", \u0026fastly.TlsPlatformCertificateArgs{\n\t\t\tCertificateBody: cert.CertPem,\n\t\t\tIntermediatesBlob: ca.CertPem,\n\t\t\tConfigurationId: pulumi.String(config.Id),\n\t\t\tAllowUntrustedRoot: pulumi.Bool(true),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tkeyTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tls.privateKey;\nimport com.pulumi.tls.PrivateKeyArgs;\nimport com.pulumi.tls.selfSignedCert;\nimport com.pulumi.tls.SelfSignedCertArgs;\nimport com.pulumi.tls.certRequest;\nimport com.pulumi.tls.CertRequestArgs;\nimport com.pulumi.tls.locallySignedCert;\nimport com.pulumi.tls.LocallySignedCertArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsConfigurationArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsPlatformCertificate;\nimport com.pulumi.fastly.TlsPlatformCertificateArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var caKey = new PrivateKey(\"caKey\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var key = new PrivateKey(\"key\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var ca = new SelfSignedCert(\"ca\", SelfSignedCertArgs.builder()\n .keyAlgorithm(caKey.algorithm())\n .privateKeyPem(caKey.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .isCaCertificate(true)\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .build());\n\n var example = new CertRequest(\"example\", CertRequestArgs.builder()\n .keyAlgorithm(key.algorithm())\n .privateKeyPem(key.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .dnsNames( \n \"example.com\",\n \"www.example.com\")\n .build());\n\n var cert = new LocallySignedCert(\"cert\", LocallySignedCertArgs.builder()\n .certRequestPem(example.certRequestPem())\n .caKeyAlgorithm(caKey.algorithm())\n .caPrivateKeyPem(caKey.privateKeyPem())\n .caCertPem(ca.certPem())\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .build());\n\n final var config = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()\n .tlsService(\"PLATFORM\")\n .build());\n\n var keyTlsPrivateKey = new TlsPrivateKey(\"keyTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(key.privateKeyPem())\n .name(\"tf-demo\")\n .build());\n\n var certTlsPlatformCertificate = new TlsPlatformCertificate(\"certTlsPlatformCertificate\", TlsPlatformCertificateArgs.builder()\n .certificateBody(cert.certPem())\n .intermediatesBlob(ca.certPem())\n .configurationId(config.applyValue(getTlsConfigurationResult -\u003e getTlsConfigurationResult.id()))\n .allowUntrustedRoot(true)\n .build(), CustomResourceOptions.builder()\n .dependsOn(keyTlsPrivateKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n caKey:\n type: tls:privateKey\n name: ca_key\n properties:\n algorithm: RSA\n key:\n type: tls:privateKey\n properties:\n algorithm: RSA\n ca:\n type: tls:selfSignedCert\n properties:\n keyAlgorithm: ${caKey.algorithm}\n privateKeyPem: ${caKey.privateKeyPem}\n subject:\n - commonName: Example CA\n isCaCertificate: true\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n example:\n type: tls:certRequest\n properties:\n keyAlgorithm: ${key.algorithm}\n privateKeyPem: ${key.privateKeyPem}\n subject:\n - commonName: example.com\n dnsNames:\n - example.com\n - www.example.com\n cert:\n type: tls:locallySignedCert\n properties:\n certRequestPem: ${example.certRequestPem}\n caKeyAlgorithm: ${caKey.algorithm}\n caPrivateKeyPem: ${caKey.privateKeyPem}\n caCertPem: ${ca.certPem}\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n keyTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: key\n properties:\n keyPem: ${key.privateKeyPem}\n name: tf-demo\n certTlsPlatformCertificate:\n type: fastly:TlsPlatformCertificate\n name: cert\n properties:\n certificateBody: ${cert.certPem}\n intermediatesBlob: ${ca.certPem}\n configurationId: ${config.id}\n allowUntrustedRoot: true\n options:\n dependson:\n - ${keyTlsPrivateKey}\nvariables:\n config:\n fn::invoke:\n Function: fastly:getTlsConfiguration\n Arguments:\n tlsService: PLATFORM\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nA certificate can be imported using its Fastly certificate ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsPlatformCertificate:TlsPlatformCertificate demo xxxxxxxxxxx\n```\n\n", + "description": "Uploads a TLS certificate to the Fastly Platform TLS service.\n\n\u003e Each TLS certificate **must** have its corresponding private key uploaded _prior_ to uploading the certificate. This\ncan be achieved in Pulumi using `depends_on`\n\n## Example Usage\n\nBasic usage with self-signed CA:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\nimport * as tls from \"@pulumi/tls\";\n\nconst caKey = new tls.index.PrivateKey(\"ca_key\", {algorithm: \"RSA\"});\nconst key = new tls.index.PrivateKey(\"key\", {algorithm: \"RSA\"});\nconst ca = new tls.index.SelfSignedCert(\"ca\", {\n keyAlgorithm: caKey.algorithm,\n privateKeyPem: caKey.privateKeyPem,\n subject: [{\n commonName: \"Example CA\",\n }],\n isCaCertificate: true,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n});\nconst example = new tls.index.CertRequest(\"example\", {\n keyAlgorithm: key.algorithm,\n privateKeyPem: key.privateKeyPem,\n subject: [{\n commonName: \"example.com\",\n }],\n dnsNames: [\n \"example.com\",\n \"www.example.com\",\n ],\n});\nconst cert = new tls.index.LocallySignedCert(\"cert\", {\n certRequestPem: example.certRequestPem,\n caKeyAlgorithm: caKey.algorithm,\n caPrivateKeyPem: caKey.privateKeyPem,\n caCertPem: ca.certPem,\n validityPeriodHours: 360,\n allowedUses: [\n \"cert_signing\",\n \"server_auth\",\n ],\n});\nconst config = fastly.getTlsConfiguration({\n tlsService: \"PLATFORM\",\n});\nconst keyTlsPrivateKey = new fastly.TlsPrivateKey(\"key\", {\n keyPem: key.privateKeyPem,\n name: \"tf-demo\",\n});\nconst certTlsPlatformCertificate = new fastly.TlsPlatformCertificate(\"cert\", {\n certificateBody: cert.certPem,\n intermediatesBlob: ca.certPem,\n configurationId: config.then(config =\u003e config.id),\n allowUntrustedRoot: true,\n}, {\n dependsOn: [keyTlsPrivateKey],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\nimport pulumi_tls as tls\n\nca_key = tls.index.PrivateKey(\"ca_key\", algorithm=RSA)\nkey = tls.index.PrivateKey(\"key\", algorithm=RSA)\nca = tls.index.SelfSignedCert(\"ca\",\n key_algorithm=ca_key.algorithm,\n private_key_pem=ca_key.private_key_pem,\n subject=[{\n commonName: Example CA,\n }],\n is_ca_certificate=True,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ])\nexample = tls.index.CertRequest(\"example\",\n key_algorithm=key.algorithm,\n private_key_pem=key.private_key_pem,\n subject=[{\n commonName: example.com,\n }],\n dns_names=[\n example.com,\n www.example.com,\n ])\ncert = tls.index.LocallySignedCert(\"cert\",\n cert_request_pem=example.cert_request_pem,\n ca_key_algorithm=ca_key.algorithm,\n ca_private_key_pem=ca_key.private_key_pem,\n ca_cert_pem=ca.cert_pem,\n validity_period_hours=360,\n allowed_uses=[\n cert_signing,\n server_auth,\n ])\nconfig = fastly.get_tls_configuration(tls_service=\"PLATFORM\")\nkey_tls_private_key = fastly.TlsPrivateKey(\"key\",\n key_pem=key[\"privateKeyPem\"],\n name=\"tf-demo\")\ncert_tls_platform_certificate = fastly.TlsPlatformCertificate(\"cert\",\n certificate_body=cert[\"certPem\"],\n intermediates_blob=ca[\"certPem\"],\n configuration_id=config.id,\n allow_untrusted_root=True,\n opts = pulumi.ResourceOptions(depends_on=[key_tls_private_key]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\nusing Tls = Pulumi.Tls;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var caKey = new Tls.Index.PrivateKey(\"ca_key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var key = new Tls.Index.PrivateKey(\"key\", new()\n {\n Algorithm = \"RSA\",\n });\n\n var ca = new Tls.Index.SelfSignedCert(\"ca\", new()\n {\n KeyAlgorithm = caKey.Algorithm,\n PrivateKeyPem = caKey.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"Example CA\" },\n },\n },\n IsCaCertificate = true,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n });\n\n var example = new Tls.Index.CertRequest(\"example\", new()\n {\n KeyAlgorithm = key.Algorithm,\n PrivateKeyPem = key.PrivateKeyPem,\n Subject = new[]\n {\n \n {\n { \"commonName\", \"example.com\" },\n },\n },\n DnsNames = new[]\n {\n \"example.com\",\n \"www.example.com\",\n },\n });\n\n var cert = new Tls.Index.LocallySignedCert(\"cert\", new()\n {\n CertRequestPem = example.CertRequestPem,\n CaKeyAlgorithm = caKey.Algorithm,\n CaPrivateKeyPem = caKey.PrivateKeyPem,\n CaCertPem = ca.CertPem,\n ValidityPeriodHours = 360,\n AllowedUses = new[]\n {\n \"cert_signing\",\n \"server_auth\",\n },\n });\n\n var config = Fastly.GetTlsConfiguration.Invoke(new()\n {\n TlsService = \"PLATFORM\",\n });\n\n var keyTlsPrivateKey = new Fastly.TlsPrivateKey(\"key\", new()\n {\n KeyPem = key.PrivateKeyPem,\n Name = \"tf-demo\",\n });\n\n var certTlsPlatformCertificate = new Fastly.TlsPlatformCertificate(\"cert\", new()\n {\n CertificateBody = cert.CertPem,\n IntermediatesBlob = ca.CertPem,\n ConfigurationId = config.Apply(getTlsConfigurationResult =\u003e getTlsConfigurationResult.Id),\n AllowUntrustedRoot = true,\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n keyTlsPrivateKey,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi-tls/sdk/v4/go/tls\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcaKey, err := tls.NewPrivateKey(ctx, \"ca_key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkey, err := tls.NewPrivateKey(ctx, \"key\", \u0026tls.PrivateKeyArgs{\n\t\t\tAlgorithm: \"RSA\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tca, err := tls.NewSelfSignedCert(ctx, \"ca\", \u0026tls.SelfSignedCertArgs{\n\t\t\tKeyAlgorithm: caKey.Algorithm,\n\t\t\tPrivateKeyPem: caKey.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"Example CA\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tIsCaCertificate: true,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := tls.NewCertRequest(ctx, \"example\", \u0026tls.CertRequestArgs{\n\t\t\tKeyAlgorithm: key.Algorithm,\n\t\t\tPrivateKeyPem: key.PrivateKeyPem,\n\t\t\tSubject: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"commonName\": \"example.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tDnsNames: []string{\n\t\t\t\t\"example.com\",\n\t\t\t\t\"www.example.com\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcert, err := tls.NewLocallySignedCert(ctx, \"cert\", \u0026tls.LocallySignedCertArgs{\n\t\t\tCertRequestPem: example.CertRequestPem,\n\t\t\tCaKeyAlgorithm: caKey.Algorithm,\n\t\t\tCaPrivateKeyPem: caKey.PrivateKeyPem,\n\t\t\tCaCertPem: ca.CertPem,\n\t\t\tValidityPeriodHours: 360,\n\t\t\tAllowedUses: []string{\n\t\t\t\t\"cert_signing\",\n\t\t\t\t\"server_auth\",\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tconfig, err := fastly.GetTlsConfiguration(ctx, \u0026fastly.GetTlsConfigurationArgs{\n\t\t\tTlsService: pulumi.StringRef(\"PLATFORM\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tkeyTlsPrivateKey, err := fastly.NewTlsPrivateKey(ctx, \"key\", \u0026fastly.TlsPrivateKeyArgs{\n\t\t\tKeyPem: key.PrivateKeyPem,\n\t\t\tName: pulumi.String(\"tf-demo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsPlatformCertificate(ctx, \"cert\", \u0026fastly.TlsPlatformCertificateArgs{\n\t\t\tCertificateBody: cert.CertPem,\n\t\t\tIntermediatesBlob: ca.CertPem,\n\t\t\tConfigurationId: pulumi.String(config.Id),\n\t\t\tAllowUntrustedRoot: pulumi.Bool(true),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tkeyTlsPrivateKey,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tls.privateKey;\nimport com.pulumi.tls.PrivateKeyArgs;\nimport com.pulumi.tls.selfSignedCert;\nimport com.pulumi.tls.SelfSignedCertArgs;\nimport com.pulumi.tls.certRequest;\nimport com.pulumi.tls.CertRequestArgs;\nimport com.pulumi.tls.locallySignedCert;\nimport com.pulumi.tls.LocallySignedCertArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsConfigurationArgs;\nimport com.pulumi.fastly.TlsPrivateKey;\nimport com.pulumi.fastly.TlsPrivateKeyArgs;\nimport com.pulumi.fastly.TlsPlatformCertificate;\nimport com.pulumi.fastly.TlsPlatformCertificateArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var caKey = new PrivateKey(\"caKey\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var key = new PrivateKey(\"key\", PrivateKeyArgs.builder()\n .algorithm(\"RSA\")\n .build());\n\n var ca = new SelfSignedCert(\"ca\", SelfSignedCertArgs.builder()\n .keyAlgorithm(caKey.algorithm())\n .privateKeyPem(caKey.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .isCaCertificate(true)\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .build());\n\n var example = new CertRequest(\"example\", CertRequestArgs.builder()\n .keyAlgorithm(key.algorithm())\n .privateKeyPem(key.privateKeyPem())\n .subject(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .dnsNames( \n \"example.com\",\n \"www.example.com\")\n .build());\n\n var cert = new LocallySignedCert(\"cert\", LocallySignedCertArgs.builder()\n .certRequestPem(example.certRequestPem())\n .caKeyAlgorithm(caKey.algorithm())\n .caPrivateKeyPem(caKey.privateKeyPem())\n .caCertPem(ca.certPem())\n .validityPeriodHours(360)\n .allowedUses( \n \"cert_signing\",\n \"server_auth\")\n .build());\n\n final var config = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()\n .tlsService(\"PLATFORM\")\n .build());\n\n var keyTlsPrivateKey = new TlsPrivateKey(\"keyTlsPrivateKey\", TlsPrivateKeyArgs.builder()\n .keyPem(key.privateKeyPem())\n .name(\"tf-demo\")\n .build());\n\n var certTlsPlatformCertificate = new TlsPlatformCertificate(\"certTlsPlatformCertificate\", TlsPlatformCertificateArgs.builder()\n .certificateBody(cert.certPem())\n .intermediatesBlob(ca.certPem())\n .configurationId(config.applyValue(getTlsConfigurationResult -\u003e getTlsConfigurationResult.id()))\n .allowUntrustedRoot(true)\n .build(), CustomResourceOptions.builder()\n .dependsOn(keyTlsPrivateKey)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n caKey:\n type: tls:privateKey\n name: ca_key\n properties:\n algorithm: RSA\n key:\n type: tls:privateKey\n properties:\n algorithm: RSA\n ca:\n type: tls:selfSignedCert\n properties:\n keyAlgorithm: ${caKey.algorithm}\n privateKeyPem: ${caKey.privateKeyPem}\n subject:\n - commonName: Example CA\n isCaCertificate: true\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n example:\n type: tls:certRequest\n properties:\n keyAlgorithm: ${key.algorithm}\n privateKeyPem: ${key.privateKeyPem}\n subject:\n - commonName: example.com\n dnsNames:\n - example.com\n - www.example.com\n cert:\n type: tls:locallySignedCert\n properties:\n certRequestPem: ${example.certRequestPem}\n caKeyAlgorithm: ${caKey.algorithm}\n caPrivateKeyPem: ${caKey.privateKeyPem}\n caCertPem: ${ca.certPem}\n validityPeriodHours: 360\n allowedUses:\n - cert_signing\n - server_auth\n keyTlsPrivateKey:\n type: fastly:TlsPrivateKey\n name: key\n properties:\n keyPem: ${key.privateKeyPem}\n name: tf-demo\n certTlsPlatformCertificate:\n type: fastly:TlsPlatformCertificate\n name: cert\n properties:\n certificateBody: ${cert.certPem}\n intermediatesBlob: ${ca.certPem}\n configurationId: ${config.id}\n allowUntrustedRoot: true\n options:\n dependsOn:\n - ${keyTlsPrivateKey}\nvariables:\n config:\n fn::invoke:\n function: fastly:getTlsConfiguration\n arguments:\n tlsService: PLATFORM\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nA certificate can be imported using its Fastly certificate ID, e.g.\n\n```sh\n$ pulumi import fastly:index/tlsPlatformCertificate:TlsPlatformCertificate demo xxxxxxxxxxx\n```\n\n", "properties": { "allowUntrustedRoot": { "type": "boolean", @@ -8298,7 +8298,7 @@ } }, "fastly:index/getDictionaries:getDictionaries": { - "description": "Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst exampleServiceVcl = new fastly.ServiceVcl(\"example\", {\n name: \"Example Service\",\n domains: [{\n name: \"example.com\",\n }],\n dictionaries: [\n {\n name: \"example_1\",\n },\n {\n name: \"example_2\",\n },\n {\n name: \"example_3\",\n },\n ],\n forceDestroy: true,\n});\nconst example = fastly.getDictionariesOutput({\n serviceId: exampleServiceVcl.id,\n serviceVersion: exampleServiceVcl.activeVersion,\n});\nexport const serviceDictionaries = example;\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample_service_vcl = fastly.ServiceVcl(\"example\",\n name=\"Example Service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n dictionaries=[\n {\n \"name\": \"example_1\",\n },\n {\n \"name\": \"example_2\",\n },\n {\n \"name\": \"example_3\",\n },\n ],\n force_destroy=True)\nexample = fastly.get_dictionaries_output(service_id=example_service_vcl.id,\n service_version=example_service_vcl.active_version)\npulumi.export(\"serviceDictionaries\", example)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServiceVcl = new Fastly.ServiceVcl(\"example\", new()\n {\n Name = \"Example Service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n Dictionaries = new[]\n {\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_1\",\n },\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_2\",\n },\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_3\",\n },\n },\n ForceDestroy = true,\n });\n\n var example = Fastly.GetDictionaries.Invoke(new()\n {\n ServiceId = exampleServiceVcl.Id,\n ServiceVersion = exampleServiceVcl.ActiveVersion,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"serviceDictionaries\"] = example,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleServiceVcl, err := fastly.NewServiceVcl(ctx, \"example\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"Example Service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDictionaries: fastly.ServiceVclDictionaryArray{\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_1\"),\n\t\t\t\t},\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_2\"),\n\t\t\t\t},\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_3\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample := fastly.GetDictionariesOutput(ctx, fastly.GetDictionariesOutputArgs{\n\t\t\tServiceId: exampleServiceVcl.ID(),\n\t\t\tServiceVersion: exampleServiceVcl.ActiveVersion,\n\t\t}, nil)\n\t\tctx.Export(\"serviceDictionaries\", example)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDictionaryArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetDictionariesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServiceVcl = new ServiceVcl(\"exampleServiceVcl\", ServiceVclArgs.builder()\n .name(\"Example Service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .dictionaries( \n ServiceVclDictionaryArgs.builder()\n .name(\"example_1\")\n .build(),\n ServiceVclDictionaryArgs.builder()\n .name(\"example_2\")\n .build(),\n ServiceVclDictionaryArgs.builder()\n .name(\"example_3\")\n .build())\n .forceDestroy(true)\n .build());\n\n final var example = FastlyFunctions.getDictionaries(GetDictionariesArgs.builder()\n .serviceId(exampleServiceVcl.id())\n .serviceVersion(exampleServiceVcl.activeVersion())\n .build());\n\n ctx.export(\"serviceDictionaries\", example.applyValue(getDictionariesResult -\u003e getDictionariesResult));\n }\n}\n```\n```yaml\nresources:\n exampleServiceVcl:\n type: fastly:ServiceVcl\n name: example\n properties:\n name: Example Service\n domains:\n - name: example.com\n dictionaries:\n - name: example_1\n - name: example_2\n - name: example_3\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n Function: fastly:getDictionaries\n Arguments:\n serviceId: ${exampleServiceVcl.id}\n serviceVersion: ${exampleServiceVcl.activeVersion}\noutputs:\n serviceDictionaries: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://developer.fastly.com/reference/api/dictionaries/\n", + "description": "Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst exampleServiceVcl = new fastly.ServiceVcl(\"example\", {\n name: \"Example Service\",\n domains: [{\n name: \"example.com\",\n }],\n dictionaries: [\n {\n name: \"example_1\",\n },\n {\n name: \"example_2\",\n },\n {\n name: \"example_3\",\n },\n ],\n forceDestroy: true,\n});\nconst example = fastly.getDictionariesOutput({\n serviceId: exampleServiceVcl.id,\n serviceVersion: exampleServiceVcl.activeVersion,\n});\nexport const serviceDictionaries = example;\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample_service_vcl = fastly.ServiceVcl(\"example\",\n name=\"Example Service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n dictionaries=[\n {\n \"name\": \"example_1\",\n },\n {\n \"name\": \"example_2\",\n },\n {\n \"name\": \"example_3\",\n },\n ],\n force_destroy=True)\nexample = fastly.get_dictionaries_output(service_id=example_service_vcl.id,\n service_version=example_service_vcl.active_version)\npulumi.export(\"serviceDictionaries\", example)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServiceVcl = new Fastly.ServiceVcl(\"example\", new()\n {\n Name = \"Example Service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n Dictionaries = new[]\n {\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_1\",\n },\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_2\",\n },\n new Fastly.Inputs.ServiceVclDictionaryArgs\n {\n Name = \"example_3\",\n },\n },\n ForceDestroy = true,\n });\n\n var example = Fastly.GetDictionaries.Invoke(new()\n {\n ServiceId = exampleServiceVcl.Id,\n ServiceVersion = exampleServiceVcl.ActiveVersion,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"serviceDictionaries\"] = example,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleServiceVcl, err := fastly.NewServiceVcl(ctx, \"example\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"Example Service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDictionaries: fastly.ServiceVclDictionaryArray{\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_1\"),\n\t\t\t\t},\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_2\"),\n\t\t\t\t},\n\t\t\t\t\u0026fastly.ServiceVclDictionaryArgs{\n\t\t\t\t\tName: pulumi.String(\"example_3\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample := fastly.GetDictionariesOutput(ctx, fastly.GetDictionariesOutputArgs{\n\t\t\tServiceId: exampleServiceVcl.ID(),\n\t\t\tServiceVersion: exampleServiceVcl.ActiveVersion,\n\t\t}, nil)\n\t\tctx.Export(\"serviceDictionaries\", example)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDictionaryArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetDictionariesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServiceVcl = new ServiceVcl(\"exampleServiceVcl\", ServiceVclArgs.builder()\n .name(\"Example Service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .dictionaries( \n ServiceVclDictionaryArgs.builder()\n .name(\"example_1\")\n .build(),\n ServiceVclDictionaryArgs.builder()\n .name(\"example_2\")\n .build(),\n ServiceVclDictionaryArgs.builder()\n .name(\"example_3\")\n .build())\n .forceDestroy(true)\n .build());\n\n final var example = FastlyFunctions.getDictionaries(GetDictionariesArgs.builder()\n .serviceId(exampleServiceVcl.id())\n .serviceVersion(exampleServiceVcl.activeVersion())\n .build());\n\n ctx.export(\"serviceDictionaries\", example.applyValue(getDictionariesResult -\u003e getDictionariesResult));\n }\n}\n```\n```yaml\nresources:\n exampleServiceVcl:\n type: fastly:ServiceVcl\n name: example\n properties:\n name: Example Service\n domains:\n - name: example.com\n dictionaries:\n - name: example_1\n - name: example_2\n - name: example_3\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n function: fastly:getDictionaries\n arguments:\n serviceId: ${exampleServiceVcl.id}\n serviceVersion: ${exampleServiceVcl.activeVersion}\noutputs:\n serviceDictionaries: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://developer.fastly.com/reference/api/dictionaries/\n", "inputs": { "description": "A collection of arguments for invoking getDictionaries.\n", "properties": { @@ -8350,7 +8350,7 @@ } }, "fastly:index/getFastlyIpRanges:getFastlyIpRanges": { - "description": "Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst fastly = fastly.getFastlyIpRanges({});\nconst fromFastly = new aws.index.SecurityGroup(\"from_fastly\", {\n name: \"from_fastly\",\n ingress: [{\n fromPort: \"443\",\n toPort: \"443\",\n protocol: \"tcp\",\n cidrBlocks: fastly.cidrBlocks,\n ipv6CidrBlocks: fastly.ipv6CidrBlocks,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_fastly as fastly\n\nfastly = fastly.get_fastly_ip_ranges()\nfrom_fastly = aws.index.SecurityGroup(\"from_fastly\",\n name=from_fastly,\n ingress=[{\n fromPort: 443,\n toPort: 443,\n protocol: tcp,\n cidrBlocks: fastly.cidr_blocks,\n ipv6CidrBlocks: fastly.ipv6_cidr_blocks,\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fastly = Fastly.GetFastlyIpRanges.Invoke();\n\n var fromFastly = new Aws.Index.SecurityGroup(\"from_fastly\", new()\n {\n Name = \"from_fastly\",\n Ingress = new[]\n {\n \n {\n { \"fromPort\", \"443\" },\n { \"toPort\", \"443\" },\n { \"protocol\", \"tcp\" },\n { \"cidrBlocks\", fastly.Apply(getFastlyIpRangesResult =\u003e getFastlyIpRangesResult.CidrBlocks) },\n { \"ipv6CidrBlocks\", fastly.Apply(getFastlyIpRangesResult =\u003e getFastlyIpRangesResult.Ipv6CidrBlocks) },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v5/go/aws\"\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfastly, err := fastly.GetFastlyIpRanges(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = aws.NewSecurityGroup(ctx, \"from_fastly\", \u0026aws.SecurityGroupArgs{\n\t\t\tName: \"from_fastly\",\n\t\t\tIngress: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"fromPort\": \"443\",\n\t\t\t\t\t\"toPort\": \"443\",\n\t\t\t\t\t\"protocol\": \"tcp\",\n\t\t\t\t\t\"cidrBlocks\": fastly.CidrBlocks,\n\t\t\t\t\t\"ipv6CidrBlocks\": fastly.Ipv6CidrBlocks,\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.aws.securityGroup;\nimport com.pulumi.aws.SecurityGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var fastly = FastlyFunctions.getFastlyIpRanges();\n\n var fromFastly = new SecurityGroup(\"fromFastly\", SecurityGroupArgs.builder()\n .name(\"from_fastly\")\n .ingress(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fromFastly:\n type: aws:securityGroup\n name: from_fastly\n properties:\n name: from_fastly\n ingress:\n - fromPort: '443'\n toPort: '443'\n protocol: tcp\n cidrBlocks: ${fastly.cidrBlocks}\n ipv6CidrBlocks: ${fastly.ipv6CidrBlocks}\nvariables:\n fastly:\n fn::invoke:\n Function: fastly:getFastlyIpRanges\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges\n", + "description": "Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst fastly = fastly.getFastlyIpRanges({});\nconst fromFastly = new aws.index.SecurityGroup(\"from_fastly\", {\n name: \"from_fastly\",\n ingress: [{\n fromPort: \"443\",\n toPort: \"443\",\n protocol: \"tcp\",\n cidrBlocks: fastly.cidrBlocks,\n ipv6CidrBlocks: fastly.ipv6CidrBlocks,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_fastly as fastly\n\nfastly = fastly.get_fastly_ip_ranges()\nfrom_fastly = aws.index.SecurityGroup(\"from_fastly\",\n name=from_fastly,\n ingress=[{\n fromPort: 443,\n toPort: 443,\n protocol: tcp,\n cidrBlocks: fastly.cidr_blocks,\n ipv6CidrBlocks: fastly.ipv6_cidr_blocks,\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fastly = Fastly.GetFastlyIpRanges.Invoke();\n\n var fromFastly = new Aws.Index.SecurityGroup(\"from_fastly\", new()\n {\n Name = \"from_fastly\",\n Ingress = new[]\n {\n \n {\n { \"fromPort\", \"443\" },\n { \"toPort\", \"443\" },\n { \"protocol\", \"tcp\" },\n { \"cidrBlocks\", fastly.Apply(getFastlyIpRangesResult =\u003e getFastlyIpRangesResult.CidrBlocks) },\n { \"ipv6CidrBlocks\", fastly.Apply(getFastlyIpRangesResult =\u003e getFastlyIpRangesResult.Ipv6CidrBlocks) },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v5/go/aws\"\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfastly, err := fastly.GetFastlyIpRanges(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = aws.NewSecurityGroup(ctx, \"from_fastly\", \u0026aws.SecurityGroupArgs{\n\t\t\tName: \"from_fastly\",\n\t\t\tIngress: []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"fromPort\": \"443\",\n\t\t\t\t\t\"toPort\": \"443\",\n\t\t\t\t\t\"protocol\": \"tcp\",\n\t\t\t\t\t\"cidrBlocks\": fastly.CidrBlocks,\n\t\t\t\t\t\"ipv6CidrBlocks\": fastly.Ipv6CidrBlocks,\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.aws.securityGroup;\nimport com.pulumi.aws.SecurityGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var fastly = FastlyFunctions.getFastlyIpRanges();\n\n var fromFastly = new SecurityGroup(\"fromFastly\", SecurityGroupArgs.builder()\n .name(\"from_fastly\")\n .ingress(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fromFastly:\n type: aws:securityGroup\n name: from_fastly\n properties:\n name: from_fastly\n ingress:\n - fromPort: '443'\n toPort: '443'\n protocol: tcp\n cidrBlocks: ${fastly.cidrBlocks}\n ipv6CidrBlocks: ${fastly.ipv6CidrBlocks}\nvariables:\n fastly:\n fn::invoke:\n function: fastly:getFastlyIpRanges\n arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges\n", "outputs": { "description": "A collection of values returned by getFastlyIpRanges.\n", "properties": { @@ -8405,7 +8405,7 @@ } }, "fastly:index/getPackageHash:getPackageHash": { - "description": "Use this data source to generate a SHA512 hash of all files (in sorted order) within the package.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getPackageHash({\n filename: \"./path/to/package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\"package\": {\n filename: \"./path/to/package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n}});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_package_hash(filename=\"./path/to/package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\", package={\n \"filename\": \"./path/to/package.tar.gz\",\n \"source_code_hash\": example.hash,\n})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"./path/to/package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"./path/to/package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"./path/to/package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"./path/to/package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"./path/to/package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"./path/to/package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n package:\n filename: ./path/to/package.tar.gz\n sourceCodeHash: ${example.hash}\nvariables:\n example:\n fn::invoke:\n Function: fastly:getPackageHash\n Arguments:\n filename: ./path/to/package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to generate a SHA512 hash of all files (in sorted order) within the package.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getPackageHash({\n filename: \"./path/to/package.tar.gz\",\n});\nconst exampleServiceCompute = new fastly.ServiceCompute(\"example\", {\"package\": {\n filename: \"./path/to/package.tar.gz\",\n sourceCodeHash: example.then(example =\u003e example.hash),\n}});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_package_hash(filename=\"./path/to/package.tar.gz\")\nexample_service_compute = fastly.ServiceCompute(\"example\", package={\n \"filename\": \"./path/to/package.tar.gz\",\n \"source_code_hash\": example.hash,\n})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetPackageHash.Invoke(new()\n {\n Filename = \"./path/to/package.tar.gz\",\n });\n\n var exampleServiceCompute = new Fastly.ServiceCompute(\"example\", new()\n {\n Package = new Fastly.Inputs.ServiceComputePackageArgs\n {\n Filename = \"./path/to/package.tar.gz\",\n SourceCodeHash = example.Apply(getPackageHashResult =\u003e getPackageHashResult.Hash),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetPackageHash(ctx, \u0026fastly.GetPackageHashArgs{\n\t\t\tFilename: pulumi.StringRef(\"./path/to/package.tar.gz\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewServiceCompute(ctx, \"example\", \u0026fastly.ServiceComputeArgs{\n\t\t\tPackage: \u0026fastly.ServiceComputePackageArgs{\n\t\t\t\tFilename: pulumi.String(\"./path/to/package.tar.gz\"),\n\t\t\t\tSourceCodeHash: pulumi.String(example.Hash),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetPackageHashArgs;\nimport com.pulumi.fastly.ServiceCompute;\nimport com.pulumi.fastly.ServiceComputeArgs;\nimport com.pulumi.fastly.inputs.ServiceComputePackageArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()\n .filename(\"./path/to/package.tar.gz\")\n .build());\n\n var exampleServiceCompute = new ServiceCompute(\"exampleServiceCompute\", ServiceComputeArgs.builder()\n .package_(ServiceComputePackageArgs.builder()\n .filename(\"./path/to/package.tar.gz\")\n .sourceCodeHash(example.applyValue(getPackageHashResult -\u003e getPackageHashResult.hash()))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleServiceCompute:\n type: fastly:ServiceCompute\n name: example\n properties:\n package:\n filename: ./path/to/package.tar.gz\n sourceCodeHash: ${example.hash}\nvariables:\n example:\n fn::invoke:\n function: fastly:getPackageHash\n arguments:\n filename: ./path/to/package.tar.gz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPackageHash.\n", "properties": { @@ -8503,7 +8503,7 @@ } }, "fastly:index/getTlsActivation:getTlsActivation": { - "description": "Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsActivation({\n domain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_activation(domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsActivation.Invoke(new()\n {\n Domain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsActivation(ctx, \u0026fastly.LookupTlsActivationArgs{\n\t\t\tDomain: pulumi.StringRef(\"example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsActivation(GetTlsActivationArgs.builder()\n .domain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsActivation\n Arguments:\n domain: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsActivation({\n domain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_activation(domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsActivation.Invoke(new()\n {\n Domain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsActivation(ctx, \u0026fastly.LookupTlsActivationArgs{\n\t\t\tDomain: pulumi.StringRef(\"example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsActivation(GetTlsActivationArgs.builder()\n .domain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsActivation\n arguments:\n domain: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsActivation.\n", "properties": { @@ -8599,7 +8599,7 @@ } }, "fastly:index/getTlsCertificate:getTlsCertificate": { - "description": "Use this data source to get information of a TLS certificate for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsCertificate({\n name: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_certificate(name=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsCertificate.Invoke(new()\n {\n Name = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsCertificate(ctx, \u0026fastly.LookupTlsCertificateArgs{\n\t\t\tName: pulumi.StringRef(\"example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsCertificate(GetTlsCertificateArgs.builder()\n .name(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsCertificate\n Arguments:\n name: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information of a TLS certificate for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsCertificate({\n name: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_certificate(name=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsCertificate.Invoke(new()\n {\n Name = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsCertificate(ctx, \u0026fastly.LookupTlsCertificateArgs{\n\t\t\tName: pulumi.StringRef(\"example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsCertificate(GetTlsCertificateArgs.builder()\n .name(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsCertificate\n arguments:\n name: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsCertificate.\n", "properties": { @@ -8692,7 +8692,7 @@ } }, "fastly:index/getTlsCertificateIds:getTlsCertificateIds": { - "description": "Use this data source to get the IDs of available TLS certificates for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsCertificateIds({});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {certificateId: example.then(example =\u003e example.ids?.[0])});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_certificate_ids()\nexample_tls_activation = fastly.TlsActivation(\"example\", certificate_id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsCertificateIds.Invoke();\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n CertificateId = example.Apply(getTlsCertificateIdsResult =\u003e getTlsCertificateIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsCertificateIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tCertificateId: pulumi.String(example.Ids[0]),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsCertificateIds();\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .certificateId(example.applyValue(getTlsCertificateIdsResult -\u003e getTlsCertificateIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n certificateId: ${example.ids[0]}\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsCertificateIds\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the IDs of available TLS certificates for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsCertificateIds({});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {certificateId: example.then(example =\u003e example.ids?.[0])});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_certificate_ids()\nexample_tls_activation = fastly.TlsActivation(\"example\", certificate_id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsCertificateIds.Invoke();\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n CertificateId = example.Apply(getTlsCertificateIdsResult =\u003e getTlsCertificateIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsCertificateIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tCertificateId: pulumi.String(example.Ids[0]),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsCertificateIds();\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .certificateId(example.applyValue(getTlsCertificateIdsResult -\u003e getTlsCertificateIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n certificateId: ${example.ids[0]}\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsCertificateIds\n arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getTlsCertificateIds.\n", "properties": { @@ -8716,7 +8716,7 @@ } }, "fastly:index/getTlsConfiguration:getTlsConfiguration": { - "description": "Use this data source to get the ID of a TLS configuration for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsConfiguration({\n \"default\": true,\n});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {configurationId: example.then(example =\u003e example.id)});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_configuration(default=True)\nexample_tls_activation = fastly.TlsActivation(\"example\", configuration_id=example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsConfiguration.Invoke(new()\n {\n Default = true,\n });\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n ConfigurationId = example.Apply(getTlsConfigurationResult =\u003e getTlsConfigurationResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsConfiguration(ctx, \u0026fastly.GetTlsConfigurationArgs{\n\t\t\tDefault: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tConfigurationId: pulumi.String(example.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsConfigurationArgs;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()\n .default_(true)\n .build());\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .configurationId(example.applyValue(getTlsConfigurationResult -\u003e getTlsConfigurationResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n configurationId: ${example.id}\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsConfiguration\n Arguments:\n default: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the ID of a TLS configuration for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsConfiguration({\n \"default\": true,\n});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {configurationId: example.then(example =\u003e example.id)});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_configuration(default=True)\nexample_tls_activation = fastly.TlsActivation(\"example\", configuration_id=example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsConfiguration.Invoke(new()\n {\n Default = true,\n });\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n ConfigurationId = example.Apply(getTlsConfigurationResult =\u003e getTlsConfigurationResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsConfiguration(ctx, \u0026fastly.GetTlsConfigurationArgs{\n\t\t\tDefault: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tConfigurationId: pulumi.String(example.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsConfigurationArgs;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()\n .default_(true)\n .build());\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .configurationId(example.applyValue(getTlsConfigurationResult -\u003e getTlsConfigurationResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n configurationId: ${example.id}\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsConfiguration\n arguments:\n default: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsConfiguration.\n", "properties": { @@ -8817,7 +8817,7 @@ } }, "fastly:index/getTlsConfigurationIds:getTlsConfigurationIds": { - "description": "Use this data source to get the IDs of available TLS configurations for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsConfigurationIds({});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {configurationId: example.then(example =\u003e example.ids?.[0])});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_configuration_ids()\nexample_tls_activation = fastly.TlsActivation(\"example\", configuration_id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsConfigurationIds.Invoke();\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n ConfigurationId = example.Apply(getTlsConfigurationIdsResult =\u003e getTlsConfigurationIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsConfigurationIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tConfigurationId: pulumi.String(example.Ids[0]),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsConfigurationIds();\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .configurationId(example.applyValue(getTlsConfigurationIdsResult -\u003e getTlsConfigurationIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n configurationId: ${example.ids[0]}\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsConfigurationIds\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the IDs of available TLS configurations for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsConfigurationIds({});\nconst exampleTlsActivation = new fastly.TlsActivation(\"example\", {configurationId: example.then(example =\u003e example.ids?.[0])});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_configuration_ids()\nexample_tls_activation = fastly.TlsActivation(\"example\", configuration_id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsConfigurationIds.Invoke();\n\n var exampleTlsActivation = new Fastly.TlsActivation(\"example\", new()\n {\n ConfigurationId = example.Apply(getTlsConfigurationIdsResult =\u003e getTlsConfigurationIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsConfigurationIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.NewTlsActivation(ctx, \"example\", \u0026fastly.TlsActivationArgs{\n\t\t\tConfigurationId: pulumi.String(example.Ids[0]),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.TlsActivation;\nimport com.pulumi.fastly.TlsActivationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsConfigurationIds();\n\n var exampleTlsActivation = new TlsActivation(\"exampleTlsActivation\", TlsActivationArgs.builder()\n .configurationId(example.applyValue(getTlsConfigurationIdsResult -\u003e getTlsConfigurationIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleTlsActivation:\n type: fastly:TlsActivation\n name: example\n properties:\n configurationId: ${example.ids[0]}\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsConfigurationIds\n arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getTlsConfigurationIds.\n", "properties": { @@ -8841,7 +8841,7 @@ } }, "fastly:index/getTlsDomain:getTlsDomain": { - "description": "Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst domain = fastly.getTlsDomain({\n domain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndomain = fastly.get_tls_domain(domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var domain = Fastly.GetTlsDomain.Invoke(new()\n {\n Domain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.GetTlsDomain(ctx, \u0026fastly.GetTlsDomainArgs{\n\t\t\tDomain: \"example.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsDomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var domain = FastlyFunctions.getTlsDomain(GetTlsDomainArgs.builder()\n .domain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n domain:\n fn::invoke:\n Function: fastly:getTlsDomain\n Arguments:\n domain: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst domain = fastly.getTlsDomain({\n domain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndomain = fastly.get_tls_domain(domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var domain = Fastly.GetTlsDomain.Invoke(new()\n {\n Domain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.GetTlsDomain(ctx, \u0026fastly.GetTlsDomainArgs{\n\t\t\tDomain: \"example.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsDomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var domain = FastlyFunctions.getTlsDomain(GetTlsDomainArgs.builder()\n .domain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n domain:\n fn::invoke:\n function: fastly:getTlsDomain\n arguments:\n domain: example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsDomain.\n", "properties": { @@ -8899,7 +8899,7 @@ } }, "fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate": { - "description": "Use this data source to get information of a Platform TLS certificate for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsPlatformCertificate({\n domains: [\"example.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_platform_certificate(domains=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsPlatformCertificate.Invoke(new()\n {\n Domains = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsPlatformCertificate(ctx, \u0026fastly.LookupTlsPlatformCertificateArgs{\n\t\t\tDomains: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()\n .domains(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsPlatformCertificate\n Arguments:\n domains:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information of a Platform TLS certificate for use with other resources.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\nof filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\nwith any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsPlatformCertificate({\n domains: [\"example.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_platform_certificate(domains=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsPlatformCertificate.Invoke(new()\n {\n Domains = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsPlatformCertificate(ctx, \u0026fastly.LookupTlsPlatformCertificateArgs{\n\t\t\tDomains: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()\n .domains(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsPlatformCertificate\n arguments:\n domains:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsPlatformCertificate.\n", "properties": { @@ -8970,7 +8970,7 @@ } }, "fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds": { - "description": "Use this data source to get the IDs of available Platform TLS Certificates for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsPlatformCertificateIds({});\nconst exampleGetTlsPlatformCertificate = example.then(example =\u003e fastly.getTlsPlatformCertificate({\n id: example.ids?.[0],\n}));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_platform_certificate_ids()\nexample_get_tls_platform_certificate = fastly.get_tls_platform_certificate(id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsPlatformCertificateIds.Invoke();\n\n var exampleGetTlsPlatformCertificate = Fastly.GetTlsPlatformCertificate.Invoke(new()\n {\n Id = example.Apply(getTlsPlatformCertificateIdsResult =\u003e getTlsPlatformCertificateIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsPlatformCertificateIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.LookupTlsPlatformCertificate(ctx, \u0026fastly.LookupTlsPlatformCertificateArgs{\n\t\t\tId: pulumi.StringRef(example.Ids[0]),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsPlatformCertificateIds();\n\n final var exampleGetTlsPlatformCertificate = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()\n .id(example.applyValue(getTlsPlatformCertificateIdsResult -\u003e getTlsPlatformCertificateIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsPlatformCertificateIds\n Arguments: {}\n exampleGetTlsPlatformCertificate:\n fn::invoke:\n Function: fastly:getTlsPlatformCertificate\n Arguments:\n id: ${example.ids[0]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the IDs of available Platform TLS Certificates for use with other resources.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsPlatformCertificateIds({});\nconst exampleGetTlsPlatformCertificate = example.then(example =\u003e fastly.getTlsPlatformCertificate({\n id: example.ids?.[0],\n}));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_platform_certificate_ids()\nexample_get_tls_platform_certificate = fastly.get_tls_platform_certificate(id=example.ids[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsPlatformCertificateIds.Invoke();\n\n var exampleGetTlsPlatformCertificate = Fastly.GetTlsPlatformCertificate.Invoke(new()\n {\n Id = example.Apply(getTlsPlatformCertificateIdsResult =\u003e getTlsPlatformCertificateIdsResult.Ids[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := fastly.GetTlsPlatformCertificateIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.LookupTlsPlatformCertificate(ctx, \u0026fastly.LookupTlsPlatformCertificateArgs{\n\t\t\tId: pulumi.StringRef(example.Ids[0]),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsPlatformCertificateIds();\n\n final var exampleGetTlsPlatformCertificate = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()\n .id(example.applyValue(getTlsPlatformCertificateIdsResult -\u003e getTlsPlatformCertificateIdsResult.ids()[0]))\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsPlatformCertificateIds\n arguments: {}\n exampleGetTlsPlatformCertificate:\n fn::invoke:\n function: fastly:getTlsPlatformCertificate\n arguments:\n id: ${example.ids[0]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getTlsPlatformCertificateIds.\n", "properties": { @@ -8994,7 +8994,7 @@ } }, "fastly:index/getTlsPrivateKey:getTlsPrivateKey": { - "description": "Use this data source to get information on a TLS Private Key uploaded to Fastly.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\n of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\n with any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search\n is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = fastly.getTlsPrivateKey({\n name: \"demo-private-key\",\n});\nexport const privateKeyNeedsReplacing = demo.then(demo =\u003e demo.replace);\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.get_tls_private_key(name=\"demo-private-key\")\npulumi.export(\"privateKeyNeedsReplacing\", demo.replace)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = Fastly.GetTlsPrivateKey.Invoke(new()\n {\n Name = \"demo-private-key\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"privateKeyNeedsReplacing\"] = demo.Apply(getTlsPrivateKeyResult =\u003e getTlsPrivateKeyResult.Replace),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdemo, err := fastly.LookupTlsPrivateKey(ctx, \u0026fastly.LookupTlsPrivateKeyArgs{\n\t\t\tName: pulumi.StringRef(\"demo-private-key\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"privateKeyNeedsReplacing\", demo.Replace)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var demo = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()\n .name(\"demo-private-key\")\n .build());\n\n ctx.export(\"privateKeyNeedsReplacing\", demo.applyValue(getTlsPrivateKeyResult -\u003e getTlsPrivateKeyResult.replace()));\n }\n}\n```\n```yaml\nvariables:\n demo:\n fn::invoke:\n Function: fastly:getTlsPrivateKey\n Arguments:\n name: demo-private-key\noutputs:\n privateKeyNeedsReplacing: ${demo.replace}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information on a TLS Private Key uploaded to Fastly.\n\n\u003e **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination\n of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination\n with any of the others.\n\n\u003e **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search\n is specific enough to return a single key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = fastly.getTlsPrivateKey({\n name: \"demo-private-key\",\n});\nexport const privateKeyNeedsReplacing = demo.then(demo =\u003e demo.replace);\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.get_tls_private_key(name=\"demo-private-key\")\npulumi.export(\"privateKeyNeedsReplacing\", demo.replace)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = Fastly.GetTlsPrivateKey.Invoke(new()\n {\n Name = \"demo-private-key\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"privateKeyNeedsReplacing\"] = demo.Apply(getTlsPrivateKeyResult =\u003e getTlsPrivateKeyResult.Replace),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdemo, err := fastly.LookupTlsPrivateKey(ctx, \u0026fastly.LookupTlsPrivateKeyArgs{\n\t\t\tName: pulumi.StringRef(\"demo-private-key\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"privateKeyNeedsReplacing\", demo.Replace)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var demo = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()\n .name(\"demo-private-key\")\n .build());\n\n ctx.export(\"privateKeyNeedsReplacing\", demo.applyValue(getTlsPrivateKeyResult -\u003e getTlsPrivateKeyResult.replace()));\n }\n}\n```\n```yaml\nvariables:\n demo:\n fn::invoke:\n function: fastly:getTlsPrivateKey\n arguments:\n name: demo-private-key\noutputs:\n privateKeyNeedsReplacing: ${demo.replace}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsPrivateKey.\n", "properties": { @@ -9070,7 +9070,7 @@ } }, "fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds": { - "description": "Use this data source to get the list of TLS private key identifiers in Fastly.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = fastly.getTlsPrivateKeyIds({});\nconst example = fastly.getTlsPrivateKey({\n id: demoFastlyTlsPrivateKeyIds.ids[0],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.get_tls_private_key_ids()\nexample = fastly.get_tls_private_key(id=demo_fastly_tls_private_key_ids[\"ids\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = Fastly.GetTlsPrivateKeyIds.Invoke();\n\n var example = Fastly.GetTlsPrivateKey.Invoke(new()\n {\n Id = demoFastlyTlsPrivateKeyIds.Ids[0],\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.GetTlsPrivateKeyIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.LookupTlsPrivateKey(ctx, \u0026fastly.LookupTlsPrivateKeyArgs{\n\t\t\tId: pulumi.StringRef(demoFastlyTlsPrivateKeyIds.Ids[0]),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var demo = FastlyFunctions.getTlsPrivateKeyIds();\n\n final var example = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()\n .id(demoFastlyTlsPrivateKeyIds.ids()[0])\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n demo:\n fn::invoke:\n Function: fastly:getTlsPrivateKeyIds\n Arguments: {}\n example:\n fn::invoke:\n Function: fastly:getTlsPrivateKey\n Arguments:\n id: ${demoFastlyTlsPrivateKeyIds.ids[0]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the list of TLS private key identifiers in Fastly.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst demo = fastly.getTlsPrivateKeyIds({});\nconst example = fastly.getTlsPrivateKey({\n id: demoFastlyTlsPrivateKeyIds.ids[0],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\ndemo = fastly.get_tls_private_key_ids()\nexample = fastly.get_tls_private_key(id=demo_fastly_tls_private_key_ids[\"ids\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var demo = Fastly.GetTlsPrivateKeyIds.Invoke();\n\n var example = Fastly.GetTlsPrivateKey.Invoke(new()\n {\n Id = demoFastlyTlsPrivateKeyIds.Ids[0],\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.GetTlsPrivateKeyIds(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fastly.LookupTlsPrivateKey(ctx, \u0026fastly.LookupTlsPrivateKeyArgs{\n\t\t\tId: pulumi.StringRef(demoFastlyTlsPrivateKeyIds.Ids[0]),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var demo = FastlyFunctions.getTlsPrivateKeyIds();\n\n final var example = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()\n .id(demoFastlyTlsPrivateKeyIds.ids()[0])\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n demo:\n fn::invoke:\n function: fastly:getTlsPrivateKeyIds\n arguments: {}\n example:\n fn::invoke:\n function: fastly:getTlsPrivateKey\n arguments:\n id: ${demoFastlyTlsPrivateKeyIds.ids[0]}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getTlsPrivateKeyIds.\n", "properties": { @@ -9094,7 +9094,7 @@ } }, "fastly:index/getTlsSubscription:getTlsSubscription": { - "description": "Use this data source to get information about a TLS subscription.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsSubscription({\n domains: [\"example.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_subscription(domains=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsSubscription.Invoke(new()\n {\n Domains = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsSubscription(ctx, \u0026fastly.LookupTlsSubscriptionArgs{\n\t\t\tDomains: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsSubscriptionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsSubscription(GetTlsSubscriptionArgs.builder()\n .domains(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: fastly:getTlsSubscription\n Arguments:\n domains:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get information about a TLS subscription.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst example = fastly.getTlsSubscription({\n domains: [\"example.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_subscription(domains=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Fastly.GetTlsSubscription.Invoke(new()\n {\n Domains = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := fastly.LookupTlsSubscription(ctx, \u0026fastly.LookupTlsSubscriptionArgs{\n\t\t\tDomains: []string{\n\t\t\t\t\"example.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetTlsSubscriptionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = FastlyFunctions.getTlsSubscription(GetTlsSubscriptionArgs.builder()\n .domains(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: fastly:getTlsSubscription\n arguments:\n domains:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsSubscription.\n", "properties": { @@ -9205,7 +9205,7 @@ } }, "fastly:index/getVclSnippets:getVclSnippets": { - "description": "VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.\n\nUse this data source to get a list of [Fastly VCL Snippets](https://www.fastly.com/documentation/reference/api/vcl-services/snippet/) for the specified service/version.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst exampleServiceVcl = new fastly.ServiceVcl(\"example\", {\n name: \"Example Service\",\n domains: [{\n name: \"example.com\",\n }],\n forceDestroy: true,\n});\nconst example = fastly.getVclSnippetsOutput({\n serviceId: exampleServiceVcl.id,\n serviceVersion: exampleServiceVcl.activeVersion,\n});\nexport const serviceVclSnippets = example;\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample_service_vcl = fastly.ServiceVcl(\"example\",\n name=\"Example Service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n force_destroy=True)\nexample = fastly.get_vcl_snippets_output(service_id=example_service_vcl.id,\n service_version=example_service_vcl.active_version)\npulumi.export(\"serviceVclSnippets\", example)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServiceVcl = new Fastly.ServiceVcl(\"example\", new()\n {\n Name = \"Example Service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n ForceDestroy = true,\n });\n\n var example = Fastly.GetVclSnippets.Invoke(new()\n {\n ServiceId = exampleServiceVcl.Id,\n ServiceVersion = exampleServiceVcl.ActiveVersion,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"serviceVclSnippets\"] = example,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleServiceVcl, err := fastly.NewServiceVcl(ctx, \"example\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"Example Service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample := fastly.GetVclSnippetsOutput(ctx, fastly.GetVclSnippetsOutputArgs{\n\t\t\tServiceId: exampleServiceVcl.ID(),\n\t\t\tServiceVersion: exampleServiceVcl.ActiveVersion,\n\t\t}, nil)\n\t\tctx.Export(\"serviceVclSnippets\", example)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetVclSnippetsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServiceVcl = new ServiceVcl(\"exampleServiceVcl\", ServiceVclArgs.builder()\n .name(\"Example Service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .forceDestroy(true)\n .build());\n\n final var example = FastlyFunctions.getVclSnippets(GetVclSnippetsArgs.builder()\n .serviceId(exampleServiceVcl.id())\n .serviceVersion(exampleServiceVcl.activeVersion())\n .build());\n\n ctx.export(\"serviceVclSnippets\", example.applyValue(getVclSnippetsResult -\u003e getVclSnippetsResult));\n }\n}\n```\n```yaml\nresources:\n exampleServiceVcl:\n type: fastly:ServiceVcl\n name: example\n properties:\n name: Example Service\n domains:\n - name: example.com\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n Function: fastly:getVclSnippets\n Arguments:\n serviceId: ${exampleServiceVcl.id}\n serviceVersion: ${exampleServiceVcl.activeVersion}\noutputs:\n serviceVclSnippets: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://www.fastly.com/documentation/reference/api/vcl-services/snippet/\n", + "description": "VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.\n\nUse this data source to get a list of [Fastly VCL Snippets](https://www.fastly.com/documentation/reference/api/vcl-services/snippet/) for the specified service/version.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fastly from \"@pulumi/fastly\";\n\nconst exampleServiceVcl = new fastly.ServiceVcl(\"example\", {\n name: \"Example Service\",\n domains: [{\n name: \"example.com\",\n }],\n forceDestroy: true,\n});\nconst example = fastly.getVclSnippetsOutput({\n serviceId: exampleServiceVcl.id,\n serviceVersion: exampleServiceVcl.activeVersion,\n});\nexport const serviceVclSnippets = example;\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample_service_vcl = fastly.ServiceVcl(\"example\",\n name=\"Example Service\",\n domains=[{\n \"name\": \"example.com\",\n }],\n force_destroy=True)\nexample = fastly.get_vcl_snippets_output(service_id=example_service_vcl.id,\n service_version=example_service_vcl.active_version)\npulumi.export(\"serviceVclSnippets\", example)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Fastly = Pulumi.Fastly;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleServiceVcl = new Fastly.ServiceVcl(\"example\", new()\n {\n Name = \"Example Service\",\n Domains = new[]\n {\n new Fastly.Inputs.ServiceVclDomainArgs\n {\n Name = \"example.com\",\n },\n },\n ForceDestroy = true,\n });\n\n var example = Fastly.GetVclSnippets.Invoke(new()\n {\n ServiceId = exampleServiceVcl.Id,\n ServiceVersion = exampleServiceVcl.ActiveVersion,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"serviceVclSnippets\"] = example,\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleServiceVcl, err := fastly.NewServiceVcl(ctx, \"example\", \u0026fastly.ServiceVclArgs{\n\t\t\tName: pulumi.String(\"Example Service\"),\n\t\t\tDomains: fastly.ServiceVclDomainArray{\n\t\t\t\t\u0026fastly.ServiceVclDomainArgs{\n\t\t\t\t\tName: pulumi.String(\"example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tForceDestroy: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample := fastly.GetVclSnippetsOutput(ctx, fastly.GetVclSnippetsOutputArgs{\n\t\t\tServiceId: exampleServiceVcl.ID(),\n\t\t\tServiceVersion: exampleServiceVcl.ActiveVersion,\n\t\t}, nil)\n\t\tctx.Export(\"serviceVclSnippets\", example)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.fastly.ServiceVcl;\nimport com.pulumi.fastly.ServiceVclArgs;\nimport com.pulumi.fastly.inputs.ServiceVclDomainArgs;\nimport com.pulumi.fastly.FastlyFunctions;\nimport com.pulumi.fastly.inputs.GetVclSnippetsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleServiceVcl = new ServiceVcl(\"exampleServiceVcl\", ServiceVclArgs.builder()\n .name(\"Example Service\")\n .domains(ServiceVclDomainArgs.builder()\n .name(\"example.com\")\n .build())\n .forceDestroy(true)\n .build());\n\n final var example = FastlyFunctions.getVclSnippets(GetVclSnippetsArgs.builder()\n .serviceId(exampleServiceVcl.id())\n .serviceVersion(exampleServiceVcl.activeVersion())\n .build());\n\n ctx.export(\"serviceVclSnippets\", example.applyValue(getVclSnippetsResult -\u003e getVclSnippetsResult));\n }\n}\n```\n```yaml\nresources:\n exampleServiceVcl:\n type: fastly:ServiceVcl\n name: example\n properties:\n name: Example Service\n domains:\n - name: example.com\n forceDestroy: true\nvariables:\n example:\n fn::invoke:\n function: fastly:getVclSnippets\n arguments:\n serviceId: ${exampleServiceVcl.id}\n serviceVersion: ${exampleServiceVcl.activeVersion}\noutputs:\n serviceVclSnippets: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n[1]: https://www.fastly.com/documentation/reference/api/vcl-services/snippet/\n", "inputs": { "description": "A collection of arguments for invoking getVclSnippets.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 104e5dd4..982b6b77 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -6,8 +6,8 @@ toolchain go1.22.7 require ( github.com/fastly/terraform-provider-fastly v0.0.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241206114232-0852d643b60d + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( @@ -127,9 +127,9 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.17.0 // indirect - github.com/pulumi/pulumi-yaml v1.11.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.140.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-yaml v1.12.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index cf6107e1..b7a09ccf 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1899,16 +1899,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U= -github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0= -github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE= -github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= +github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241206114232-0852d643b60d h1:vWIXiBALW2hDTtkxjfbLJqit6G3oxv5JDxlLs5GFH2Y= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241206114232-0852d643b60d/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= +github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 49d079ea..ee5a11f0 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 5d5453c0..54cd0acd 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 9d60a154..c85f25a0 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -5,7 +5,7 @@ plugins { id("signing") id("java-library") id("maven-publish") - id("io.github.gradle-nexus.publish-plugin") version "1.1.0" + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" } group = "com.pulumi" @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.17.0") + implementation("com.pulumi:pulumi:0.18.0") } task sourcesJar(type: Jar) { diff --git a/sdk/nodejs/getConfigstores.ts b/sdk/nodejs/getConfigstores.ts index 0d0858d0..b5b3f525 100644 --- a/sdk/nodejs/getConfigstores.ts +++ b/sdk/nodejs/getConfigstores.ts @@ -25,7 +25,7 @@ export interface GetConfigstoresResult { */ readonly stores: outputs.GetConfigstoresStore[]; } -export function getConfigstoresOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getConfigstoresOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getConfigstores:getConfigstores", { }, opts); diff --git a/sdk/nodejs/getDatacenters.ts b/sdk/nodejs/getDatacenters.ts index 7c7f340d..fcfa6b28 100644 --- a/sdk/nodejs/getDatacenters.ts +++ b/sdk/nodejs/getDatacenters.ts @@ -31,7 +31,7 @@ export interface GetDatacentersResult { /** * Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/). */ -export function getDatacentersOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getDatacentersOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getDatacenters:getDatacenters", { }, opts); diff --git a/sdk/nodejs/getDictionaries.ts b/sdk/nodejs/getDictionaries.ts index eded110b..054406a0 100644 --- a/sdk/nodejs/getDictionaries.ts +++ b/sdk/nodejs/getDictionaries.ts @@ -121,7 +121,7 @@ export interface GetDictionariesResult { * * [1]: https://developer.fastly.com/reference/api/dictionaries/ */ -export function getDictionariesOutput(args: GetDictionariesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getDictionariesOutput(args: GetDictionariesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getDictionaries:getDictionaries", { "serviceId": args.serviceId, diff --git a/sdk/nodejs/getFastlyIpRanges.ts b/sdk/nodejs/getFastlyIpRanges.ts index 0ac90283..7fe4ace5 100644 --- a/sdk/nodejs/getFastlyIpRanges.ts +++ b/sdk/nodejs/getFastlyIpRanges.ts @@ -77,7 +77,7 @@ export interface GetFastlyIpRangesResult { * * [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges */ -export function getFastlyIpRangesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getFastlyIpRangesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getFastlyIpRanges:getFastlyIpRanges", { }, opts); diff --git a/sdk/nodejs/getKvstores.ts b/sdk/nodejs/getKvstores.ts index 619e9cfc..50bd8b6f 100644 --- a/sdk/nodejs/getKvstores.ts +++ b/sdk/nodejs/getKvstores.ts @@ -25,7 +25,7 @@ export interface GetKvstoresResult { */ readonly stores: outputs.GetKvstoresStore[]; } -export function getKvstoresOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getKvstoresOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getKvstores:getKvstores", { }, opts); diff --git a/sdk/nodejs/getPackageHash.ts b/sdk/nodejs/getPackageHash.ts index b9617ccc..3b261e6c 100644 --- a/sdk/nodejs/getPackageHash.ts +++ b/sdk/nodejs/getPackageHash.ts @@ -84,7 +84,7 @@ export interface GetPackageHashResult { * }}); * ``` */ -export function getPackageHashOutput(args?: GetPackageHashOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getPackageHashOutput(args?: GetPackageHashOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getPackageHash:getPackageHash", { diff --git a/sdk/nodejs/getSecretstores.ts b/sdk/nodejs/getSecretstores.ts index e7d65fd3..9ace200f 100644 --- a/sdk/nodejs/getSecretstores.ts +++ b/sdk/nodejs/getSecretstores.ts @@ -25,7 +25,7 @@ export interface GetSecretstoresResult { */ readonly stores: outputs.GetSecretstoresStore[]; } -export function getSecretstoresOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSecretstoresOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getSecretstores:getSecretstores", { }, opts); diff --git a/sdk/nodejs/getServices.ts b/sdk/nodejs/getServices.ts index d6a48a68..76af0c17 100644 --- a/sdk/nodejs/getServices.ts +++ b/sdk/nodejs/getServices.ts @@ -35,7 +35,7 @@ export interface GetServicesResult { /** * Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/). */ -export function getServicesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getServicesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getServices:getServices", { }, opts); diff --git a/sdk/nodejs/getTlsActivation.ts b/sdk/nodejs/getTlsActivation.ts index e77f8caa..4a3f42e4 100644 --- a/sdk/nodejs/getTlsActivation.ts +++ b/sdk/nodejs/getTlsActivation.ts @@ -102,7 +102,7 @@ export interface GetTlsActivationResult { * }); * ``` */ -export function getTlsActivationOutput(args?: GetTlsActivationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsActivationOutput(args?: GetTlsActivationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsActivation:getTlsActivation", { diff --git a/sdk/nodejs/getTlsActivationIds.ts b/sdk/nodejs/getTlsActivationIds.ts index cb82c909..5322afa5 100644 --- a/sdk/nodejs/getTlsActivationIds.ts +++ b/sdk/nodejs/getTlsActivationIds.ts @@ -75,7 +75,7 @@ export interface GetTlsActivationIdsResult { * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain))); * ``` */ -export function getTlsActivationIdsOutput(args?: GetTlsActivationIdsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsActivationIdsOutput(args?: GetTlsActivationIdsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsActivationIds:getTlsActivationIds", { diff --git a/sdk/nodejs/getTlsCertificate.ts b/sdk/nodejs/getTlsCertificate.ts index 2f0be132..77c930f2 100644 --- a/sdk/nodejs/getTlsCertificate.ts +++ b/sdk/nodejs/getTlsCertificate.ts @@ -127,7 +127,7 @@ export interface GetTlsCertificateResult { * }); * ``` */ -export function getTlsCertificateOutput(args?: GetTlsCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsCertificateOutput(args?: GetTlsCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsCertificate:getTlsCertificate", { diff --git a/sdk/nodejs/getTlsCertificateIds.ts b/sdk/nodejs/getTlsCertificateIds.ts index 29b9b321..7bd869f7 100644 --- a/sdk/nodejs/getTlsCertificateIds.ts +++ b/sdk/nodejs/getTlsCertificateIds.ts @@ -49,7 +49,7 @@ export interface GetTlsCertificateIdsResult { * const exampleTlsActivation = new fastly.TlsActivation("example", {certificateId: example.then(example => example.ids?.[0])}); * ``` */ -export function getTlsCertificateIdsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsCertificateIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsCertificateIds:getTlsCertificateIds", { }, opts); diff --git a/sdk/nodejs/getTlsConfiguration.ts b/sdk/nodejs/getTlsConfiguration.ts index 9b4b83d9..db682101 100644 --- a/sdk/nodejs/getTlsConfiguration.ts +++ b/sdk/nodejs/getTlsConfiguration.ts @@ -132,7 +132,7 @@ export interface GetTlsConfigurationResult { * const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.id)}); * ``` */ -export function getTlsConfigurationOutput(args?: GetTlsConfigurationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsConfigurationOutput(args?: GetTlsConfigurationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsConfiguration:getTlsConfiguration", { diff --git a/sdk/nodejs/getTlsConfigurationIds.ts b/sdk/nodejs/getTlsConfigurationIds.ts index a5d133ac..b5d02788 100644 --- a/sdk/nodejs/getTlsConfigurationIds.ts +++ b/sdk/nodejs/getTlsConfigurationIds.ts @@ -49,7 +49,7 @@ export interface GetTlsConfigurationIdsResult { * const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.ids?.[0])}); * ``` */ -export function getTlsConfigurationIdsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsConfigurationIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", { }, opts); diff --git a/sdk/nodejs/getTlsDomain.ts b/sdk/nodejs/getTlsDomain.ts index 66b47ea3..74119395 100644 --- a/sdk/nodejs/getTlsDomain.ts +++ b/sdk/nodejs/getTlsDomain.ts @@ -74,7 +74,7 @@ export interface GetTlsDomainResult { * }); * ``` */ -export function getTlsDomainOutput(args: GetTlsDomainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsDomainOutput(args: GetTlsDomainOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsDomain:getTlsDomain", { "domain": args.domain, diff --git a/sdk/nodejs/getTlsPlatformCertificate.ts b/sdk/nodejs/getTlsPlatformCertificate.ts index 6b68374b..643a1ff7 100644 --- a/sdk/nodejs/getTlsPlatformCertificate.ts +++ b/sdk/nodejs/getTlsPlatformCertificate.ts @@ -104,7 +104,7 @@ export interface GetTlsPlatformCertificateResult { * }); * ``` */ -export function getTlsPlatformCertificateOutput(args?: GetTlsPlatformCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsPlatformCertificateOutput(args?: GetTlsPlatformCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", { diff --git a/sdk/nodejs/getTlsPlatformCertificateIds.ts b/sdk/nodejs/getTlsPlatformCertificateIds.ts index 6811f71e..17fb81b6 100644 --- a/sdk/nodejs/getTlsPlatformCertificateIds.ts +++ b/sdk/nodejs/getTlsPlatformCertificateIds.ts @@ -53,7 +53,7 @@ export interface GetTlsPlatformCertificateIdsResult { * })); * ``` */ -export function getTlsPlatformCertificateIdsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsPlatformCertificateIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", { }, opts); diff --git a/sdk/nodejs/getTlsPrivateKey.ts b/sdk/nodejs/getTlsPrivateKey.ts index b1b71ddf..153725c5 100644 --- a/sdk/nodejs/getTlsPrivateKey.ts +++ b/sdk/nodejs/getTlsPrivateKey.ts @@ -124,7 +124,7 @@ export interface GetTlsPrivateKeyResult { * export const privateKeyNeedsReplacing = demo.then(demo => demo.replace); * ``` */ -export function getTlsPrivateKeyOutput(args?: GetTlsPrivateKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsPrivateKeyOutput(args?: GetTlsPrivateKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsPrivateKey:getTlsPrivateKey", { diff --git a/sdk/nodejs/getTlsPrivateKeyIds.ts b/sdk/nodejs/getTlsPrivateKeyIds.ts index a8a05fee..0d908df3 100644 --- a/sdk/nodejs/getTlsPrivateKeyIds.ts +++ b/sdk/nodejs/getTlsPrivateKeyIds.ts @@ -53,7 +53,7 @@ export interface GetTlsPrivateKeyIdsResult { * }); * ``` */ -export function getTlsPrivateKeyIdsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsPrivateKeyIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", { }, opts); diff --git a/sdk/nodejs/getTlsSubscription.ts b/sdk/nodejs/getTlsSubscription.ts index 7d5a9e5e..f0e955a3 100644 --- a/sdk/nodejs/getTlsSubscription.ts +++ b/sdk/nodejs/getTlsSubscription.ts @@ -106,7 +106,7 @@ export interface GetTlsSubscriptionResult { * }); * ``` */ -export function getTlsSubscriptionOutput(args?: GetTlsSubscriptionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsSubscriptionOutput(args?: GetTlsSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsSubscription:getTlsSubscription", { diff --git a/sdk/nodejs/getTlsSubscriptionIds.ts b/sdk/nodejs/getTlsSubscriptionIds.ts index 4de3d6f8..9e441eb1 100644 --- a/sdk/nodejs/getTlsSubscriptionIds.ts +++ b/sdk/nodejs/getTlsSubscriptionIds.ts @@ -55,7 +55,7 @@ export interface GetTlsSubscriptionIdsResult { * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority))); * ``` */ -export function getTlsSubscriptionIdsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTlsSubscriptionIdsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", { }, opts); diff --git a/sdk/nodejs/getVclSnippets.ts b/sdk/nodejs/getVclSnippets.ts index 96787af9..aa63ebad 100644 --- a/sdk/nodejs/getVclSnippets.ts +++ b/sdk/nodejs/getVclSnippets.ts @@ -103,7 +103,7 @@ export interface GetVclSnippetsResult { * * [1]: https://www.fastly.com/documentation/reference/api/vcl-services/snippet/ */ -export function getVclSnippetsOutput(args: GetVclSnippetsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getVclSnippetsOutput(args: GetVclSnippetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getVclSnippets:getVclSnippets", { "serviceId": args.serviceId, diff --git a/sdk/nodejs/getWafRules.ts b/sdk/nodejs/getWafRules.ts index 95cca967..252ac650 100644 --- a/sdk/nodejs/getWafRules.ts +++ b/sdk/nodejs/getWafRules.ts @@ -68,7 +68,7 @@ export interface GetWafRulesResult { */ readonly tags?: string[]; } -export function getWafRulesOutput(args?: GetWafRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getWafRulesOutput(args?: GetWafRulesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getWafRules:getWafRules", { diff --git a/sdk/python/pulumi_fastly/get_configstores.py b/sdk/python/pulumi_fastly/get_configstores.py index 01a81593..31adc9e9 100644 --- a/sdk/python/pulumi_fastly/get_configstores.py +++ b/sdk/python/pulumi_fastly/get_configstores.py @@ -73,12 +73,12 @@ def get_configstores(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe return AwaitableGetConfigstoresResult( id=pulumi.get(__ret__, 'id'), stores=pulumi.get(__ret__, 'stores')) -def get_configstores_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetConfigstoresResult]: +def get_configstores_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConfigstoresResult]: """ Use this data source to access information about an existing resource. """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getConfigstores:getConfigstores', __args__, opts=opts, typ=GetConfigstoresResult) return __ret__.apply(lambda __response__: GetConfigstoresResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_datacenters.py b/sdk/python/pulumi_fastly/get_datacenters.py index 3f84cc43..4d7caf35 100644 --- a/sdk/python/pulumi_fastly/get_datacenters.py +++ b/sdk/python/pulumi_fastly/get_datacenters.py @@ -73,12 +73,12 @@ def get_datacenters(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet return AwaitableGetDatacentersResult( id=pulumi.get(__ret__, 'id'), pops=pulumi.get(__ret__, 'pops')) -def get_datacenters_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacentersResult]: +def get_datacenters_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatacentersResult]: """ Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/). """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getDatacenters:getDatacenters', __args__, opts=opts, typ=GetDatacentersResult) return __ret__.apply(lambda __response__: GetDatacentersResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_dictionaries.py b/sdk/python/pulumi_fastly/get_dictionaries.py index 4b1cec94..daf22c67 100644 --- a/sdk/python/pulumi_fastly/get_dictionaries.py +++ b/sdk/python/pulumi_fastly/get_dictionaries.py @@ -139,7 +139,7 @@ def get_dictionaries(service_id: Optional[str] = None, service_version=pulumi.get(__ret__, 'service_version')) def get_dictionaries_output(service_id: Optional[pulumi.Input[str]] = None, service_version: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDictionariesResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDictionariesResult]: """ Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version. @@ -180,7 +180,7 @@ def get_dictionaries_output(service_id: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['serviceId'] = service_id __args__['serviceVersion'] = service_version - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getDictionaries:getDictionaries', __args__, opts=opts, typ=GetDictionariesResult) return __ret__.apply(lambda __response__: GetDictionariesResult( dictionaries=pulumi.get(__response__, 'dictionaries'), diff --git a/sdk/python/pulumi_fastly/get_fastly_ip_ranges.py b/sdk/python/pulumi_fastly/get_fastly_ip_ranges.py index 63322d4a..0960ebc6 100644 --- a/sdk/python/pulumi_fastly/get_fastly_ip_ranges.py +++ b/sdk/python/pulumi_fastly/get_fastly_ip_ranges.py @@ -106,7 +106,7 @@ def get_fastly_ip_ranges(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab cidr_blocks=pulumi.get(__ret__, 'cidr_blocks'), id=pulumi.get(__ret__, 'id'), ipv6_cidr_blocks=pulumi.get(__ret__, 'ipv6_cidr_blocks')) -def get_fastly_ip_ranges_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFastlyIpRangesResult]: +def get_fastly_ip_ranges_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetFastlyIpRangesResult]: """ Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes. @@ -132,7 +132,7 @@ def get_fastly_ip_ranges_output(opts: Optional[pulumi.InvokeOptions] = None) -> [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getFastlyIpRanges:getFastlyIpRanges', __args__, opts=opts, typ=GetFastlyIpRangesResult) return __ret__.apply(lambda __response__: GetFastlyIpRangesResult( cidr_blocks=pulumi.get(__response__, 'cidr_blocks'), diff --git a/sdk/python/pulumi_fastly/get_kvstores.py b/sdk/python/pulumi_fastly/get_kvstores.py index e76d97d4..4497d167 100644 --- a/sdk/python/pulumi_fastly/get_kvstores.py +++ b/sdk/python/pulumi_fastly/get_kvstores.py @@ -73,12 +73,12 @@ def get_kvstores(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKvs return AwaitableGetKvstoresResult( id=pulumi.get(__ret__, 'id'), stores=pulumi.get(__ret__, 'stores')) -def get_kvstores_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetKvstoresResult]: +def get_kvstores_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKvstoresResult]: """ Use this data source to access information about an existing resource. """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getKvstores:getKvstores', __args__, opts=opts, typ=GetKvstoresResult) return __ret__.apply(lambda __response__: GetKvstoresResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_package_hash.py b/sdk/python/pulumi_fastly/get_package_hash.py index 22f4264e..2284716c 100644 --- a/sdk/python/pulumi_fastly/get_package_hash.py +++ b/sdk/python/pulumi_fastly/get_package_hash.py @@ -121,7 +121,7 @@ def get_package_hash(content: Optional[str] = None, id=pulumi.get(__ret__, 'id')) def get_package_hash_output(content: Optional[pulumi.Input[Optional[str]]] = None, filename: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPackageHashResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPackageHashResult]: """ Use this data source to generate a SHA512 hash of all files (in sorted order) within the package. @@ -145,7 +145,7 @@ def get_package_hash_output(content: Optional[pulumi.Input[Optional[str]]] = Non __args__ = dict() __args__['content'] = content __args__['filename'] = filename - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getPackageHash:getPackageHash', __args__, opts=opts, typ=GetPackageHashResult) return __ret__.apply(lambda __response__: GetPackageHashResult( content=pulumi.get(__response__, 'content'), diff --git a/sdk/python/pulumi_fastly/get_secretstores.py b/sdk/python/pulumi_fastly/get_secretstores.py index fe6392dd..807156bc 100644 --- a/sdk/python/pulumi_fastly/get_secretstores.py +++ b/sdk/python/pulumi_fastly/get_secretstores.py @@ -73,12 +73,12 @@ def get_secretstores(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe return AwaitableGetSecretstoresResult( id=pulumi.get(__ret__, 'id'), stores=pulumi.get(__ret__, 'stores')) -def get_secretstores_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretstoresResult]: +def get_secretstores_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecretstoresResult]: """ Use this data source to access information about an existing resource. """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getSecretstores:getSecretstores', __args__, opts=opts, typ=GetSecretstoresResult) return __ret__.apply(lambda __response__: GetSecretstoresResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_services.py b/sdk/python/pulumi_fastly/get_services.py index c7a708a0..60945565 100644 --- a/sdk/python/pulumi_fastly/get_services.py +++ b/sdk/python/pulumi_fastly/get_services.py @@ -86,12 +86,12 @@ def get_services(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSer details=pulumi.get(__ret__, 'details'), id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_services_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServicesResult]: +def get_services_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServicesResult]: """ Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/). """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getServices:getServices', __args__, opts=opts, typ=GetServicesResult) return __ret__.apply(lambda __response__: GetServicesResult( details=pulumi.get(__response__, 'details'), diff --git a/sdk/python/pulumi_fastly/get_tls_activation.py b/sdk/python/pulumi_fastly/get_tls_activation.py index 44e93744..b630b72f 100644 --- a/sdk/python/pulumi_fastly/get_tls_activation.py +++ b/sdk/python/pulumi_fastly/get_tls_activation.py @@ -144,7 +144,7 @@ def get_tls_activation_output(certificate_id: Optional[pulumi.Input[Optional[str configuration_id: Optional[pulumi.Input[Optional[str]]] = None, domain: Optional[pulumi.Input[Optional[str]]] = None, id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsActivationResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsActivationResult]: """ Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled. @@ -174,7 +174,7 @@ def get_tls_activation_output(certificate_id: Optional[pulumi.Input[Optional[str __args__['configurationId'] = configuration_id __args__['domain'] = domain __args__['id'] = id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsActivation:getTlsActivation', __args__, opts=opts, typ=GetTlsActivationResult) return __ret__.apply(lambda __response__: GetTlsActivationResult( certificate_id=pulumi.get(__response__, 'certificate_id'), diff --git a/sdk/python/pulumi_fastly/get_tls_activation_ids.py b/sdk/python/pulumi_fastly/get_tls_activation_ids.py index 42b7dcad..d004ec1d 100644 --- a/sdk/python/pulumi_fastly/get_tls_activation_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_activation_ids.py @@ -102,7 +102,7 @@ def get_tls_activation_ids(certificate_id: Optional[str] = None, id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) def get_tls_activation_ids_output(certificate_id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsActivationIdsResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsActivationIdsResult]: """ Use this data source to get the list of TLS Activation identifiers in Fastly. @@ -122,7 +122,7 @@ def get_tls_activation_ids_output(certificate_id: Optional[pulumi.Input[Optional """ __args__ = dict() __args__['certificateId'] = certificate_id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsActivationIds:getTlsActivationIds', __args__, opts=opts, typ=GetTlsActivationIdsResult) return __ret__.apply(lambda __response__: GetTlsActivationIdsResult( certificate_id=pulumi.get(__response__, 'certificate_id'), diff --git a/sdk/python/pulumi_fastly/get_tls_certificate.py b/sdk/python/pulumi_fastly/get_tls_certificate.py index cb585315..ef0020f6 100644 --- a/sdk/python/pulumi_fastly/get_tls_certificate.py +++ b/sdk/python/pulumi_fastly/get_tls_certificate.py @@ -213,7 +213,7 @@ def get_tls_certificate_output(domains: Optional[pulumi.Input[Optional[Sequence[ issued_to: Optional[pulumi.Input[Optional[str]]] = None, issuer: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsCertificateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsCertificateResult]: """ Use this data source to get information of a TLS certificate for use with other resources. @@ -245,7 +245,7 @@ def get_tls_certificate_output(domains: Optional[pulumi.Input[Optional[Sequence[ __args__['issuedTo'] = issued_to __args__['issuer'] = issuer __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsCertificate:getTlsCertificate', __args__, opts=opts, typ=GetTlsCertificateResult) return __ret__.apply(lambda __response__: GetTlsCertificateResult( created_at=pulumi.get(__response__, 'created_at'), diff --git a/sdk/python/pulumi_fastly/get_tls_certificate_ids.py b/sdk/python/pulumi_fastly/get_tls_certificate_ids.py index 5ebd3efd..4cebf35f 100644 --- a/sdk/python/pulumi_fastly/get_tls_certificate_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_certificate_ids.py @@ -82,7 +82,7 @@ def get_tls_certificate_ids(opts: Optional[pulumi.InvokeOptions] = None) -> Awai return AwaitableGetTlsCertificateIdsResult( id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_tls_certificate_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsCertificateIdsResult]: +def get_tls_certificate_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsCertificateIdsResult]: """ Use this data source to get the IDs of available TLS certificates for use with other resources. @@ -97,7 +97,7 @@ def get_tls_certificate_ids_output(opts: Optional[pulumi.InvokeOptions] = None) ``` """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsCertificateIds:getTlsCertificateIds', __args__, opts=opts, typ=GetTlsCertificateIdsResult) return __ret__.apply(lambda __response__: GetTlsCertificateIdsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_tls_configuration.py b/sdk/python/pulumi_fastly/get_tls_configuration.py index 59bb37de..288fe531 100644 --- a/sdk/python/pulumi_fastly/get_tls_configuration.py +++ b/sdk/python/pulumi_fastly/get_tls_configuration.py @@ -206,7 +206,7 @@ def get_tls_configuration_output(default: Optional[pulumi.Input[Optional[bool]]] name: Optional[pulumi.Input[Optional[str]]] = None, tls_protocols: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, tls_service: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsConfigurationResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsConfigurationResult]: """ Use this data source to get the ID of a TLS configuration for use with other resources. @@ -241,7 +241,7 @@ def get_tls_configuration_output(default: Optional[pulumi.Input[Optional[bool]]] __args__['name'] = name __args__['tlsProtocols'] = tls_protocols __args__['tlsService'] = tls_service - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsConfiguration:getTlsConfiguration', __args__, opts=opts, typ=GetTlsConfigurationResult) return __ret__.apply(lambda __response__: GetTlsConfigurationResult( created_at=pulumi.get(__response__, 'created_at'), diff --git a/sdk/python/pulumi_fastly/get_tls_configuration_ids.py b/sdk/python/pulumi_fastly/get_tls_configuration_ids.py index 1a9bb01b..157f0de6 100644 --- a/sdk/python/pulumi_fastly/get_tls_configuration_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_configuration_ids.py @@ -82,7 +82,7 @@ def get_tls_configuration_ids(opts: Optional[pulumi.InvokeOptions] = None) -> Aw return AwaitableGetTlsConfigurationIdsResult( id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_tls_configuration_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsConfigurationIdsResult]: +def get_tls_configuration_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsConfigurationIdsResult]: """ Use this data source to get the IDs of available TLS configurations for use with other resources. @@ -97,7 +97,7 @@ def get_tls_configuration_ids_output(opts: Optional[pulumi.InvokeOptions] = None ``` """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsConfigurationIds:getTlsConfigurationIds', __args__, opts=opts, typ=GetTlsConfigurationIdsResult) return __ret__.apply(lambda __response__: GetTlsConfigurationIdsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_tls_domain.py b/sdk/python/pulumi_fastly/get_tls_domain.py index d9cf7251..31e16316 100644 --- a/sdk/python/pulumi_fastly/get_tls_domain.py +++ b/sdk/python/pulumi_fastly/get_tls_domain.py @@ -126,7 +126,7 @@ def get_tls_domain(domain: Optional[str] = None, tls_certificate_ids=pulumi.get(__ret__, 'tls_certificate_ids'), tls_subscription_ids=pulumi.get(__ret__, 'tls_subscription_ids')) def get_tls_domain_output(domain: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsDomainResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsDomainResult]: """ Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain. @@ -144,7 +144,7 @@ def get_tls_domain_output(domain: Optional[pulumi.Input[str]] = None, """ __args__ = dict() __args__['domain'] = domain - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsDomain:getTlsDomain', __args__, opts=opts, typ=GetTlsDomainResult) return __ret__.apply(lambda __response__: GetTlsDomainResult( domain=pulumi.get(__response__, 'domain'), diff --git a/sdk/python/pulumi_fastly/get_tls_platform_certificate.py b/sdk/python/pulumi_fastly/get_tls_platform_certificate.py index 38350f9b..99cf2663 100644 --- a/sdk/python/pulumi_fastly/get_tls_platform_certificate.py +++ b/sdk/python/pulumi_fastly/get_tls_platform_certificate.py @@ -175,7 +175,7 @@ def get_tls_platform_certificate(domains: Optional[Sequence[str]] = None, updated_at=pulumi.get(__ret__, 'updated_at')) def get_tls_platform_certificate_output(domains: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsPlatformCertificateResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsPlatformCertificateResult]: """ Use this data source to get information of a Platform TLS certificate for use with other resources. @@ -201,7 +201,7 @@ def get_tls_platform_certificate_output(domains: Optional[pulumi.Input[Optional[ __args__ = dict() __args__['domains'] = domains __args__['id'] = id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate', __args__, opts=opts, typ=GetTlsPlatformCertificateResult) return __ret__.apply(lambda __response__: GetTlsPlatformCertificateResult( configuration_id=pulumi.get(__response__, 'configuration_id'), diff --git a/sdk/python/pulumi_fastly/get_tls_platform_certificate_ids.py b/sdk/python/pulumi_fastly/get_tls_platform_certificate_ids.py index cb4085ea..f3175829 100644 --- a/sdk/python/pulumi_fastly/get_tls_platform_certificate_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_platform_certificate_ids.py @@ -82,7 +82,7 @@ def get_tls_platform_certificate_ids(opts: Optional[pulumi.InvokeOptions] = None return AwaitableGetTlsPlatformCertificateIdsResult( id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_tls_platform_certificate_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsPlatformCertificateIdsResult]: +def get_tls_platform_certificate_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsPlatformCertificateIdsResult]: """ Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -97,7 +97,7 @@ def get_tls_platform_certificate_ids_output(opts: Optional[pulumi.InvokeOptions] ``` """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds', __args__, opts=opts, typ=GetTlsPlatformCertificateIdsResult) return __ret__.apply(lambda __response__: GetTlsPlatformCertificateIdsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_tls_private_key.py b/sdk/python/pulumi_fastly/get_tls_private_key.py index c42ee7f3..888e34f8 100644 --- a/sdk/python/pulumi_fastly/get_tls_private_key.py +++ b/sdk/python/pulumi_fastly/get_tls_private_key.py @@ -180,7 +180,7 @@ def get_tls_private_key_output(created_at: Optional[pulumi.Input[Optional[str]]] key_type: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, public_key_sha1: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsPrivateKeyResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsPrivateKeyResult]: """ Use this data source to get information on a TLS Private Key uploaded to Fastly. @@ -216,7 +216,7 @@ def get_tls_private_key_output(created_at: Optional[pulumi.Input[Optional[str]]] __args__['keyType'] = key_type __args__['name'] = name __args__['publicKeySha1'] = public_key_sha1 - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsPrivateKey:getTlsPrivateKey', __args__, opts=opts, typ=GetTlsPrivateKeyResult) return __ret__.apply(lambda __response__: GetTlsPrivateKeyResult( created_at=pulumi.get(__response__, 'created_at'), diff --git a/sdk/python/pulumi_fastly/get_tls_private_key_ids.py b/sdk/python/pulumi_fastly/get_tls_private_key_ids.py index 63fff508..4cc2bd74 100644 --- a/sdk/python/pulumi_fastly/get_tls_private_key_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_private_key_ids.py @@ -82,7 +82,7 @@ def get_tls_private_key_ids(opts: Optional[pulumi.InvokeOptions] = None) -> Awai return AwaitableGetTlsPrivateKeyIdsResult( id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_tls_private_key_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsPrivateKeyIdsResult]: +def get_tls_private_key_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsPrivateKeyIdsResult]: """ Use this data source to get the list of TLS private key identifiers in Fastly. @@ -97,7 +97,7 @@ def get_tls_private_key_ids_output(opts: Optional[pulumi.InvokeOptions] = None) ``` """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds', __args__, opts=opts, typ=GetTlsPrivateKeyIdsResult) return __ret__.apply(lambda __response__: GetTlsPrivateKeyIdsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_tls_subscription.py b/sdk/python/pulumi_fastly/get_tls_subscription.py index 3d4a2f0e..a0c2e9e7 100644 --- a/sdk/python/pulumi_fastly/get_tls_subscription.py +++ b/sdk/python/pulumi_fastly/get_tls_subscription.py @@ -190,7 +190,7 @@ def get_tls_subscription_output(certificate_authority: Optional[pulumi.Input[Opt configuration_id: Optional[pulumi.Input[Optional[str]]] = None, domains: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, id: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsSubscriptionResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsSubscriptionResult]: """ Use this data source to get information about a TLS subscription. @@ -214,7 +214,7 @@ def get_tls_subscription_output(certificate_authority: Optional[pulumi.Input[Opt __args__['configurationId'] = configuration_id __args__['domains'] = domains __args__['id'] = id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsSubscription:getTlsSubscription', __args__, opts=opts, typ=GetTlsSubscriptionResult) return __ret__.apply(lambda __response__: GetTlsSubscriptionResult( certificate_authority=pulumi.get(__response__, 'certificate_authority'), diff --git a/sdk/python/pulumi_fastly/get_tls_subscription_ids.py b/sdk/python/pulumi_fastly/get_tls_subscription_ids.py index 6923cb67..63187f8b 100644 --- a/sdk/python/pulumi_fastly/get_tls_subscription_ids.py +++ b/sdk/python/pulumi_fastly/get_tls_subscription_ids.py @@ -83,7 +83,7 @@ def get_tls_subscription_ids(opts: Optional[pulumi.InvokeOptions] = None) -> Awa return AwaitableGetTlsSubscriptionIdsResult( id=pulumi.get(__ret__, 'id'), ids=pulumi.get(__ret__, 'ids')) -def get_tls_subscription_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTlsSubscriptionIdsResult]: +def get_tls_subscription_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTlsSubscriptionIdsResult]: """ Use this data source to get the list of IDs of TLS Subscriptions in Fastly. @@ -99,7 +99,7 @@ def get_tls_subscription_ids_output(opts: Optional[pulumi.InvokeOptions] = None) ``` """ __args__ = dict() - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds', __args__, opts=opts, typ=GetTlsSubscriptionIdsResult) return __ret__.apply(lambda __response__: GetTlsSubscriptionIdsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_vcl_snippets.py b/sdk/python/pulumi_fastly/get_vcl_snippets.py index 7275bb01..766b9528 100644 --- a/sdk/python/pulumi_fastly/get_vcl_snippets.py +++ b/sdk/python/pulumi_fastly/get_vcl_snippets.py @@ -130,7 +130,7 @@ def get_vcl_snippets(service_id: Optional[str] = None, vcl_snippets=pulumi.get(__ret__, 'vcl_snippets')) def get_vcl_snippets_output(service_id: Optional[pulumi.Input[str]] = None, service_version: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVclSnippetsResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVclSnippetsResult]: """ VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL. @@ -162,7 +162,7 @@ def get_vcl_snippets_output(service_id: Optional[pulumi.Input[str]] = None, __args__ = dict() __args__['serviceId'] = service_id __args__['serviceVersion'] = service_version - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getVclSnippets:getVclSnippets', __args__, opts=opts, typ=GetVclSnippetsResult) return __ret__.apply(lambda __response__: GetVclSnippetsResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_fastly/get_waf_rules.py b/sdk/python/pulumi_fastly/get_waf_rules.py index fe76fd5b..87e79f7e 100644 --- a/sdk/python/pulumi_fastly/get_waf_rules.py +++ b/sdk/python/pulumi_fastly/get_waf_rules.py @@ -142,7 +142,7 @@ def get_waf_rules_output(exclude_modsec_rule_ids: Optional[pulumi.Input[Optional modsec_rule_ids: Optional[pulumi.Input[Optional[Sequence[int]]]] = None, publishers: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, tags: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetWafRulesResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWafRulesResult]: """ Use this data source to access information about an existing resource. @@ -156,7 +156,7 @@ def get_waf_rules_output(exclude_modsec_rule_ids: Optional[pulumi.Input[Optional __args__['modsecRuleIds'] = modsec_rule_ids __args__['publishers'] = publishers __args__['tags'] = tags - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('fastly:index/getWafRules:getWafRules', __args__, opts=opts, typ=GetWafRulesResult) return __ret__.apply(lambda __response__: GetWafRulesResult( exclude_modsec_rule_ids=pulumi.get(__response__, 'exclude_modsec_rule_ids'),