diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 47d04a52..a881cf79 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.18.0 \ No newline at end of file +0.20.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 05215ddc..740aa8c2 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.142.0 +require github.com/pulumi/pulumi/pkg/v3 v3.143.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.142.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.143.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 @@ -153,15 +153,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/examples/go.sum b/examples/go.sum index 304740d7..bb2014fc 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.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/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -434,8 +434,8 @@ golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= @@ -485,8 +485,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -513,8 +513,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -524,8 +524,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -536,8 +536,8 @@ golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/provider/cmd/pulumi-resource-fastly/schema.json b/provider/cmd/pulumi-resource-fastly/schema.json index b3130cb3..a94ba59b 100644 --- a/provider/cmd/pulumi-resource-fastly/schema.json +++ b/provider/cmd/pulumi-resource-fastly/schema.json @@ -8561,7 +8561,7 @@ } }, "fastly:index/getTlsActivationIds:getTlsActivationIds": { - "description": "Use this data source to get the list of TLS Activation 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 example = fastly.getTlsActivationIds({\n certificateId: exampleFastlyTlsCertificate.id,\n});\nconst exampleGetTlsActivation = example.then(example =\u003e .reduce((__obj, [, ]) =\u003e ({ ...__obj, [__key]: fastly.getTlsActivation({\n id: __value,\n}) })));\nexport const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation =\u003e Object.values(exampleGetTlsActivation).map(a =\u003e (a.domain)));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_activation_ids(certificate_id=example_fastly_tls_certificate[\"id\"])\nexample_get_tls_activation = {__key: fastly.get_tls_activation(id=__value) for __key, __value in example.ids}\npulumi.export(\"activationDomains\", [a.domain for a in example_get_tls_activation])\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.GetTlsActivationIds.Invoke(new()\n {\n CertificateId = exampleFastlyTlsCertificate.Id,\n });\n\n var exampleGetTlsActivation = ;\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"activationDomains\"] = exampleGetTlsActivation.Apply(exampleGetTlsActivation =\u003e (exampleGetTlsActivation).Values.Select(a =\u003e \n {\n return a.Domain;\n }).ToList()),\n };\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the list of TLS Activation 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 example = fastly.getTlsActivationIds({\n certificateId: exampleFastlyTlsCertificate.id,\n});\nconst exampleGetTlsActivation = example.then(example =\u003e .reduce((__obj, [__key, __value]) =\u003e ({ ...__obj, [__key]: fastly.getTlsActivation({\n id: __value,\n}) })));\nexport const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation =\u003e Object.values(exampleGetTlsActivation).map(a =\u003e (a.domain)));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_activation_ids(certificate_id=example_fastly_tls_certificate[\"id\"])\nexample_get_tls_activation = {__key: fastly.get_tls_activation(id=__value) for __key, __value in example.ids}\npulumi.export(\"activationDomains\", [a.domain for a in example_get_tls_activation])\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.GetTlsActivationIds.Invoke(new()\n {\n CertificateId = exampleFastlyTlsCertificate.Id,\n });\n\n var exampleGetTlsActivation = ;\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"activationDomains\"] = exampleGetTlsActivation.Apply(exampleGetTlsActivation =\u003e (exampleGetTlsActivation).Values.Select(a =\u003e \n {\n return a.Domain;\n }).ToList()),\n };\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTlsActivationIds.\n", "properties": { @@ -9181,7 +9181,7 @@ } }, "fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds": { - "description": "Use this data source to get the list of IDs of TLS Subscriptions 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 example = fastly.getTlsSubscriptionIds({});\nconst exampleGetTlsSubscription = example.then(example =\u003e .reduce((__obj, [, ]) =\u003e ({ ...__obj, [__key]: fastly.getTlsSubscription({\n id: __value,\n}) })));\nexport const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription =\u003e Object.values(exampleGetTlsSubscription).map(a =\u003e (a.certificateAuthority)));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_subscription_ids()\nexample_get_tls_subscription = {__key: fastly.get_tls_subscription(id=__value) for __key, __value in example.ids}\npulumi.export(\"subscriptionDomains\", [a.certificate_authority for a in example_get_tls_subscription])\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.GetTlsSubscriptionIds.Invoke();\n\n var exampleGetTlsSubscription = ;\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"subscriptionDomains\"] = exampleGetTlsSubscription.Apply(exampleGetTlsSubscription =\u003e (exampleGetTlsSubscription).Values.Select(a =\u003e \n {\n return a.CertificateAuthority;\n }).ToList()),\n };\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to get the list of IDs of TLS Subscriptions 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 example = fastly.getTlsSubscriptionIds({});\nconst exampleGetTlsSubscription = example.then(example =\u003e .reduce((__obj, [__key, __value]) =\u003e ({ ...__obj, [__key]: fastly.getTlsSubscription({\n id: __value,\n}) })));\nexport const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription =\u003e Object.values(exampleGetTlsSubscription).map(a =\u003e (a.certificateAuthority)));\n```\n```python\nimport pulumi\nimport pulumi_fastly as fastly\n\nexample = fastly.get_tls_subscription_ids()\nexample_get_tls_subscription = {__key: fastly.get_tls_subscription(id=__value) for __key, __value in example.ids}\npulumi.export(\"subscriptionDomains\", [a.certificate_authority for a in example_get_tls_subscription])\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.GetTlsSubscriptionIds.Invoke();\n\n var exampleGetTlsSubscription = ;\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"subscriptionDomains\"] = exampleGetTlsSubscription.Apply(exampleGetTlsSubscription =\u003e (exampleGetTlsSubscription).Values.Select(a =\u003e \n {\n return a.CertificateAuthority;\n }).ToList()),\n };\n});\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getTlsSubscriptionIds.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 237fd125..1e564e62 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,13 +1,13 @@ module github.com/pulumi/pulumi-fastly/provider/v8 -go 1.22.0 +go 1.22.3 toolchain go1.22.7 require ( github.com/fastly/terraform-provider-fastly v0.0.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.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.18.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.19.0 // indirect github.com/pulumi/pulumi-yaml v1.12.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.143.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 @@ -166,15 +166,15 @@ require ( go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.29.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.31.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.9.0 // indirect - golang.org/x/sys v0.27.0 // indirect - golang.org/x/term v0.26.0 // indirect - golang.org/x/text v0.20.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/api v0.169.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index fe8344a5..95ad6387 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.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.97.1 h1:+KTtmSk6jqcqKvgNgtGVUWEimkpEZdLZs0xEYwFw288= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-java/pkg v0.19.0 h1:T9kkGUQJV7UTxenw08m3txsgQkNVnZZxvn1zCcNjaE8= +github.com/pulumi/pulumi-java/pkg v0.19.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 h1:FpoJNeqICq0p0IlSs1vOvHarp7uVPMMeTXF321T075k= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0/go.mod h1:q0QIquTDad7QvzdLmT31bzISahN1XrnGF/w/vIsxlX0= 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/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -2112,8 +2112,8 @@ golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72 golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= -golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2317,8 +2317,8 @@ golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= -golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2428,8 +2428,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= -golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2449,8 +2449,8 @@ golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= -golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2472,8 +2472,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= -golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/sdk/dotnet/GetConfigstores.cs b/sdk/dotnet/GetConfigstores.cs index 8de1f63d..7966a758 100644 --- a/sdk/dotnet/GetConfigstores.cs +++ b/sdk/dotnet/GetConfigstores.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(InvokeOptions? options = n public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getConfigstores:getConfigstores", InvokeArgs.Empty, options.WithDefaults()); + + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getConfigstores:getConfigstores", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatacenters.cs b/sdk/dotnet/GetDatacenters.cs index 0158fb3b..1bcd7966 100644 --- a/sdk/dotnet/GetDatacenters.cs +++ b/sdk/dotnet/GetDatacenters.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? options = nu /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getDatacenters:getDatacenters", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getDatacenters:getDatacenters", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetDictionaries.cs b/sdk/dotnet/GetDictionaries.cs index 03740a0b..bd3cad64 100644 --- a/sdk/dotnet/GetDictionaries.cs +++ b/sdk/dotnet/GetDictionaries.cs @@ -128,6 +128,65 @@ public static Task InvokeAsync(GetDictionariesArgs args, /// public static Output Invoke(GetDictionariesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getDictionaries:getDictionaries", args ?? new GetDictionariesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleServiceVcl = new Fastly.ServiceVcl("example", new() + /// { + /// Name = "Example Service", + /// Domains = new[] + /// { + /// new Fastly.Inputs.ServiceVclDomainArgs + /// { + /// Name = "example.com", + /// }, + /// }, + /// Dictionaries = new[] + /// { + /// new Fastly.Inputs.ServiceVclDictionaryArgs + /// { + /// Name = "example_1", + /// }, + /// new Fastly.Inputs.ServiceVclDictionaryArgs + /// { + /// Name = "example_2", + /// }, + /// new Fastly.Inputs.ServiceVclDictionaryArgs + /// { + /// Name = "example_3", + /// }, + /// }, + /// ForceDestroy = true, + /// }); + /// + /// var example = Fastly.GetDictionaries.Invoke(new() + /// { + /// ServiceId = exampleServiceVcl.Id, + /// ServiceVersion = exampleServiceVcl.ActiveVersion, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serviceDictionaries"] = example, + /// }; + /// }); + /// ``` + /// + /// [1]: https://developer.fastly.com/reference/api/dictionaries/ + /// + public static Output Invoke(GetDictionariesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getDictionaries:getDictionaries", args ?? new GetDictionariesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFastlyIpRanges.cs b/sdk/dotnet/GetFastlyIpRanges.cs index e98ac66a..0122c4e8 100644 --- a/sdk/dotnet/GetFastlyIpRanges.cs +++ b/sdk/dotnet/GetFastlyIpRanges.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getFastlyIpRanges:getFastlyIpRanges", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Aws = Pulumi.Aws; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var fastly = Fastly.GetFastlyIpRanges.Invoke(); + /// + /// var fromFastly = new Aws.Index.SecurityGroup("from_fastly", new() + /// { + /// Name = "from_fastly", + /// Ingress = new[] + /// { + /// + /// { + /// { "fromPort", "443" }, + /// { "toPort", "443" }, + /// { "protocol", "tcp" }, + /// { "cidrBlocks", fastly.Apply(getFastlyIpRangesResult => getFastlyIpRangesResult.CidrBlocks) }, + /// { "ipv6CidrBlocks", fastly.Apply(getFastlyIpRangesResult => getFastlyIpRangesResult.Ipv6CidrBlocks) }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getFastlyIpRanges:getFastlyIpRanges", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetKvstores.cs b/sdk/dotnet/GetKvstores.cs index cfd43635..3480cd35 100644 --- a/sdk/dotnet/GetKvstores.cs +++ b/sdk/dotnet/GetKvstores.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(InvokeOptions? options = null) public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getKvstores:getKvstores", InvokeArgs.Empty, options.WithDefaults()); + + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getKvstores:getKvstores", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetPackageHash.cs b/sdk/dotnet/GetPackageHash.cs index f90fdd98..9197d7d2 100644 --- a/sdk/dotnet/GetPackageHash.cs +++ b/sdk/dotnet/GetPackageHash.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetPackageHashArgs? args = /// public static Output Invoke(GetPackageHashInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getPackageHash:getPackageHash", args ?? new GetPackageHashInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to generate a SHA512 hash of all files (in sorted order) within the package. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetPackageHash.Invoke(new() + /// { + /// Filename = "./path/to/package.tar.gz", + /// }); + /// + /// var exampleServiceCompute = new Fastly.ServiceCompute("example", new() + /// { + /// Package = new Fastly.Inputs.ServiceComputePackageArgs + /// { + /// Filename = "./path/to/package.tar.gz", + /// SourceCodeHash = example.Apply(getPackageHashResult => getPackageHashResult.Hash), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPackageHashInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getPackageHash:getPackageHash", args ?? new GetPackageHashInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSecretstores.cs b/sdk/dotnet/GetSecretstores.cs index 1302af2c..bcd5c3ae 100644 --- a/sdk/dotnet/GetSecretstores.cs +++ b/sdk/dotnet/GetSecretstores.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(InvokeOptions? options = n public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getSecretstores:getSecretstores", InvokeArgs.Empty, options.WithDefaults()); + + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getSecretstores:getSecretstores", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetServices.cs b/sdk/dotnet/GetServices.cs index 1e53d492..bac67ac3 100644 --- a/sdk/dotnet/GetServices.cs +++ b/sdk/dotnet/GetServices.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getServices:getServices", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getServices:getServices", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsActivation.cs b/sdk/dotnet/GetTlsActivation.cs index fb20f4c3..6c37bd5d 100644 --- a/sdk/dotnet/GetTlsActivation.cs +++ b/sdk/dotnet/GetTlsActivation.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTlsActivationArgs? arg /// public static Output Invoke(GetTlsActivationInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled. + /// + /// > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + /// of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + /// with any of the others. + /// + /// > **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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsActivation.Invoke(new() + /// { + /// Domain = "example.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsActivationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsActivationIds.cs b/sdk/dotnet/GetTlsActivationIds.cs index 0abc8f64..7d98d3d6 100644 --- a/sdk/dotnet/GetTlsActivationIds.cs +++ b/sdk/dotnet/GetTlsActivationIds.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetTlsActivationIdsArg /// public static Output Invoke(GetTlsActivationIdsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get the list of TLS Activation identifiers in Fastly. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsActivationIds.Invoke(new() + /// { + /// CertificateId = exampleFastlyTlsCertificate.Id, + /// }); + /// + /// var exampleGetTlsActivation = ; + /// + /// return new Dictionary<string, object?> + /// { + /// ["activationDomains"] = exampleGetTlsActivation.Apply(exampleGetTlsActivation => (exampleGetTlsActivation).Values.Select(a => + /// { + /// return a.Domain; + /// }).ToList()), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTlsActivationIdsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsCertificate.cs b/sdk/dotnet/GetTlsCertificate.cs index 4511bf14..e8a457d2 100644 --- a/sdk/dotnet/GetTlsCertificate.cs +++ b/sdk/dotnet/GetTlsCertificate.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTlsCertificateArgs? a /// public static Output Invoke(GetTlsCertificateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information of a TLS certificate for use with other resources. + /// + /// > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + /// of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + /// with any of the others. + /// + /// > **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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsCertificate.Invoke(new() + /// { + /// Name = "example.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsCertificateIds.cs b/sdk/dotnet/GetTlsCertificateIds.cs index 95a22351..d2384f93 100644 --- a/sdk/dotnet/GetTlsCertificateIds.cs +++ b/sdk/dotnet/GetTlsCertificateIds.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions? option /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificateIds:getTlsCertificateIds", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the IDs of available TLS certificates for use with other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsCertificateIds.Invoke(); + /// + /// var exampleTlsActivation = new Fastly.TlsActivation("example", new() + /// { + /// CertificateId = example.Apply(getTlsCertificateIdsResult => getTlsCertificateIdsResult.Ids[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificateIds:getTlsCertificateIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsConfiguration.cs b/sdk/dotnet/GetTlsConfiguration.cs index 434e91bc..fb349f88 100644 --- a/sdk/dotnet/GetTlsConfiguration.cs +++ b/sdk/dotnet/GetTlsConfiguration.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetTlsConfigurationArg /// public static Output Invoke(GetTlsConfigurationInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get the ID of a TLS configuration for use with other resources. + /// + /// > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + /// of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + /// with any of the others. + /// + /// > **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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsConfiguration.Invoke(new() + /// { + /// Default = true, + /// }); + /// + /// var exampleTlsActivation = new Fastly.TlsActivation("example", new() + /// { + /// ConfigurationId = example.Apply(getTlsConfigurationResult => getTlsConfigurationResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsConfigurationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsConfigurationIds.cs b/sdk/dotnet/GetTlsConfigurationIds.cs index aafbe4fd..19b8c998 100644 --- a/sdk/dotnet/GetTlsConfigurationIds.cs +++ b/sdk/dotnet/GetTlsConfigurationIds.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions? opti /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the IDs of available TLS configurations for use with other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsConfigurationIds.Invoke(); + /// + /// var exampleTlsActivation = new Fastly.TlsActivation("example", new() + /// { + /// ConfigurationId = example.Apply(getTlsConfigurationIdsResult => getTlsConfigurationIdsResult.Ids[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsDomain.cs b/sdk/dotnet/GetTlsDomain.cs index a52e7825..0775c9d7 100644 --- a/sdk/dotnet/GetTlsDomain.cs +++ b/sdk/dotnet/GetTlsDomain.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetTlsDomainArgs args, Invoke /// public static Output Invoke(GetTlsDomainInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var domain = Fastly.GetTlsDomain.Invoke(new() + /// { + /// Domain = "example.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsDomainInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPlatformCertificate.cs b/sdk/dotnet/GetTlsPlatformCertificate.cs index 50739a51..303abd76 100644 --- a/sdk/dotnet/GetTlsPlatformCertificate.cs +++ b/sdk/dotnet/GetTlsPlatformCertificate.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetTlsPlatformCe /// public static Output Invoke(GetTlsPlatformCertificateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information of a Platform TLS certificate for use with other resources. + /// + /// > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + /// of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + /// with any of the others. + /// + /// > **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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsPlatformCertificate.Invoke(new() + /// { + /// Domains = new[] + /// { + /// "example.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsPlatformCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPlatformCertificateIds.cs b/sdk/dotnet/GetTlsPlatformCertificateIds.cs index 954772d4..f99331bd 100644 --- a/sdk/dotnet/GetTlsPlatformCertificateIds.cs +++ b/sdk/dotnet/GetTlsPlatformCertificateIds.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsPlatformCertificateIds.Invoke(); + /// + /// var exampleGetTlsPlatformCertificate = Fastly.GetTlsPlatformCertificate.Invoke(new() + /// { + /// Id = example.Apply(getTlsPlatformCertificateIdsResult => getTlsPlatformCertificateIdsResult.Ids[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPrivateKey.cs b/sdk/dotnet/GetTlsPrivateKey.cs index ad1fd069..dc6744e2 100644 --- a/sdk/dotnet/GetTlsPrivateKey.cs +++ b/sdk/dotnet/GetTlsPrivateKey.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetTlsPrivateKeyArgs? arg /// public static Output Invoke(GetTlsPrivateKeyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information on a TLS Private Key uploaded to Fastly. + /// + /// > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + /// of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + /// with any of the others. + /// + /// > **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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var demo = Fastly.GetTlsPrivateKey.Invoke(new() + /// { + /// Name = "demo-private-key", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["privateKeyNeedsReplacing"] = demo.Apply(getTlsPrivateKeyResult => getTlsPrivateKeyResult.Replace), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTlsPrivateKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPrivateKeyIds.cs b/sdk/dotnet/GetTlsPrivateKeyIds.cs index 8440f111..5296c01b 100644 --- a/sdk/dotnet/GetTlsPrivateKeyIds.cs +++ b/sdk/dotnet/GetTlsPrivateKeyIds.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions? options /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the list of TLS private key identifiers in Fastly. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var demo = Fastly.GetTlsPrivateKeyIds.Invoke(); + /// + /// var example = Fastly.GetTlsPrivateKey.Invoke(new() + /// { + /// Id = demoFastlyTlsPrivateKeyIds.Ids[0], + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsSubscription.cs b/sdk/dotnet/GetTlsSubscription.cs index c2eaf986..68ba00a4 100644 --- a/sdk/dotnet/GetTlsSubscription.cs +++ b/sdk/dotnet/GetTlsSubscription.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTlsSubscriptionArgs? /// public static Output Invoke(GetTlsSubscriptionInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a TLS subscription. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsSubscription.Invoke(new() + /// { + /// Domains = new[] + /// { + /// "example.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTlsSubscriptionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsSubscriptionIds.cs b/sdk/dotnet/GetTlsSubscriptionIds.cs index 0385d2b4..b0eaba24 100644 --- a/sdk/dotnet/GetTlsSubscriptionIds.cs +++ b/sdk/dotnet/GetTlsSubscriptionIds.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(InvokeOptions? optio /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to get the list of IDs of TLS Subscriptions in Fastly. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Fastly.GetTlsSubscriptionIds.Invoke(); + /// + /// var exampleGetTlsSubscription = ; + /// + /// return new Dictionary<string, object?> + /// { + /// ["subscriptionDomains"] = exampleGetTlsSubscription.Apply(exampleGetTlsSubscription => (exampleGetTlsSubscription).Values.Select(a => + /// { + /// return a.CertificateAuthority; + /// }).ToList()), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetVclSnippets.cs b/sdk/dotnet/GetVclSnippets.cs index b8a32846..7682a65a 100644 --- a/sdk/dotnet/GetVclSnippets.cs +++ b/sdk/dotnet/GetVclSnippets.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetVclSnippetsArgs args, In /// public static Output Invoke(GetVclSnippetsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getVclSnippets:getVclSnippets", args ?? new GetVclSnippetsInvokeArgs(), options.WithDefaults()); + + /// + /// VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL. + /// + /// Use 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. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Fastly = Pulumi.Fastly; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleServiceVcl = new Fastly.ServiceVcl("example", new() + /// { + /// Name = "Example Service", + /// Domains = new[] + /// { + /// new Fastly.Inputs.ServiceVclDomainArgs + /// { + /// Name = "example.com", + /// }, + /// }, + /// ForceDestroy = true, + /// }); + /// + /// var example = Fastly.GetVclSnippets.Invoke(new() + /// { + /// ServiceId = exampleServiceVcl.Id, + /// ServiceVersion = exampleServiceVcl.ActiveVersion, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serviceVclSnippets"] = example, + /// }; + /// }); + /// ``` + /// + /// [1]: https://www.fastly.com/documentation/reference/api/vcl-services/snippet/ + /// + public static Output Invoke(GetVclSnippetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getVclSnippets:getVclSnippets", args ?? new GetVclSnippetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetWafRules.cs b/sdk/dotnet/GetWafRules.cs index 32424cb0..985f1ed4 100644 --- a/sdk/dotnet/GetWafRules.cs +++ b/sdk/dotnet/GetWafRules.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetWafRulesArgs? args = null, public static Output Invoke(GetWafRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetWafRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index e06a4684..95505f0e 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/go.mod b/sdk/go.mod index ee5a11f0..20ab1a4e 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.142.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 ) require ( @@ -74,14 +74,14 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 54cd0acd..8fc058c0 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.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -209,8 +209,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -239,8 +239,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -261,15 +261,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -277,8 +277,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/go/fastly/getConfigstores.go b/sdk/go/fastly/getConfigstores.go index 83657c4e..931c1360 100644 --- a/sdk/go/fastly/getConfigstores.go +++ b/sdk/go/fastly/getConfigstores.go @@ -31,18 +31,8 @@ type GetConfigstoresResult struct { func GetConfigstoresOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetConfigstoresResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetConfigstoresResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConfigstoresResult - secret, err := ctx.InvokePackageRaw("fastly:index/getConfigstores:getConfigstores", nil, &rv, "", opts...) - if err != nil { - return GetConfigstoresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConfigstoresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConfigstoresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getConfigstores:getConfigstores", nil, GetConfigstoresResultOutput{}, options).(GetConfigstoresResultOutput), nil }).(GetConfigstoresResultOutput) } diff --git a/sdk/go/fastly/getDatacenters.go b/sdk/go/fastly/getDatacenters.go index 29005cb1..c68f9d99 100644 --- a/sdk/go/fastly/getDatacenters.go +++ b/sdk/go/fastly/getDatacenters.go @@ -32,18 +32,8 @@ type GetDatacentersResult struct { func GetDatacentersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetDatacentersResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetDatacentersResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatacentersResult - secret, err := ctx.InvokePackageRaw("fastly:index/getDatacenters:getDatacenters", nil, &rv, "", opts...) - if err != nil { - return GetDatacentersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatacentersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatacentersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getDatacenters:getDatacenters", nil, GetDatacentersResultOutput{}, options).(GetDatacentersResultOutput), nil }).(GetDatacentersResultOutput) } diff --git a/sdk/go/fastly/getDictionaries.go b/sdk/go/fastly/getDictionaries.go index 2bc44d82..f38f3db7 100644 --- a/sdk/go/fastly/getDictionaries.go +++ b/sdk/go/fastly/getDictionaries.go @@ -93,21 +93,11 @@ type GetDictionariesResult struct { } func GetDictionariesOutput(ctx *pulumi.Context, args GetDictionariesOutputArgs, opts ...pulumi.InvokeOption) GetDictionariesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDictionariesResultOutput, error) { args := v.(GetDictionariesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDictionariesResult - secret, err := ctx.InvokePackageRaw("fastly:index/getDictionaries:getDictionaries", args, &rv, "", opts...) - if err != nil { - return GetDictionariesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDictionariesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDictionariesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getDictionaries:getDictionaries", args, GetDictionariesResultOutput{}, options).(GetDictionariesResultOutput), nil }).(GetDictionariesResultOutput) } diff --git a/sdk/go/fastly/getFastlyIpRanges.go b/sdk/go/fastly/getFastlyIpRanges.go index c3c77270..6281ee6c 100644 --- a/sdk/go/fastly/getFastlyIpRanges.go +++ b/sdk/go/fastly/getFastlyIpRanges.go @@ -76,18 +76,8 @@ type GetFastlyIpRangesResult struct { func GetFastlyIpRangesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetFastlyIpRangesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetFastlyIpRangesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFastlyIpRangesResult - secret, err := ctx.InvokePackageRaw("fastly:index/getFastlyIpRanges:getFastlyIpRanges", nil, &rv, "", opts...) - if err != nil { - return GetFastlyIpRangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFastlyIpRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFastlyIpRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getFastlyIpRanges:getFastlyIpRanges", nil, GetFastlyIpRangesResultOutput{}, options).(GetFastlyIpRangesResultOutput), nil }).(GetFastlyIpRangesResultOutput) } diff --git a/sdk/go/fastly/getKvstores.go b/sdk/go/fastly/getKvstores.go index e8d892ff..0a380df6 100644 --- a/sdk/go/fastly/getKvstores.go +++ b/sdk/go/fastly/getKvstores.go @@ -31,18 +31,8 @@ type GetKvstoresResult struct { func GetKvstoresOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetKvstoresResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetKvstoresResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKvstoresResult - secret, err := ctx.InvokePackageRaw("fastly:index/getKvstores:getKvstores", nil, &rv, "", opts...) - if err != nil { - return GetKvstoresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKvstoresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKvstoresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getKvstores:getKvstores", nil, GetKvstoresResultOutput{}, options).(GetKvstoresResultOutput), nil }).(GetKvstoresResultOutput) } diff --git a/sdk/go/fastly/getPackageHash.go b/sdk/go/fastly/getPackageHash.go index 45eee30c..cee13c55 100644 --- a/sdk/go/fastly/getPackageHash.go +++ b/sdk/go/fastly/getPackageHash.go @@ -78,21 +78,11 @@ type GetPackageHashResult struct { } func GetPackageHashOutput(ctx *pulumi.Context, args GetPackageHashOutputArgs, opts ...pulumi.InvokeOption) GetPackageHashResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPackageHashResultOutput, error) { args := v.(GetPackageHashArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPackageHashResult - secret, err := ctx.InvokePackageRaw("fastly:index/getPackageHash:getPackageHash", args, &rv, "", opts...) - if err != nil { - return GetPackageHashResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPackageHashResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPackageHashResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getPackageHash:getPackageHash", args, GetPackageHashResultOutput{}, options).(GetPackageHashResultOutput), nil }).(GetPackageHashResultOutput) } diff --git a/sdk/go/fastly/getSecretstores.go b/sdk/go/fastly/getSecretstores.go index 1a3a4102..78e042ef 100644 --- a/sdk/go/fastly/getSecretstores.go +++ b/sdk/go/fastly/getSecretstores.go @@ -31,18 +31,8 @@ type GetSecretstoresResult struct { func GetSecretstoresOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSecretstoresResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetSecretstoresResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretstoresResult - secret, err := ctx.InvokePackageRaw("fastly:index/getSecretstores:getSecretstores", nil, &rv, "", opts...) - if err != nil { - return GetSecretstoresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretstoresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretstoresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getSecretstores:getSecretstores", nil, GetSecretstoresResultOutput{}, options).(GetSecretstoresResultOutput), nil }).(GetSecretstoresResultOutput) } diff --git a/sdk/go/fastly/getServices.go b/sdk/go/fastly/getServices.go index b41f516f..5dc0a912 100644 --- a/sdk/go/fastly/getServices.go +++ b/sdk/go/fastly/getServices.go @@ -34,18 +34,8 @@ type GetServicesResult struct { func GetServicesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetServicesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetServicesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServicesResult - secret, err := ctx.InvokePackageRaw("fastly:index/getServices:getServices", nil, &rv, "", opts...) - if err != nil { - return GetServicesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServicesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServicesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getServices:getServices", nil, GetServicesResultOutput{}, options).(GetServicesResultOutput), nil }).(GetServicesResultOutput) } diff --git a/sdk/go/fastly/getTlsActivation.go b/sdk/go/fastly/getTlsActivation.go index 51cf40a5..1210a79a 100644 --- a/sdk/go/fastly/getTlsActivation.go +++ b/sdk/go/fastly/getTlsActivation.go @@ -81,21 +81,11 @@ type LookupTlsActivationResult struct { } func LookupTlsActivationOutput(ctx *pulumi.Context, args LookupTlsActivationOutputArgs, opts ...pulumi.InvokeOption) LookupTlsActivationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTlsActivationResultOutput, error) { args := v.(LookupTlsActivationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTlsActivationResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsActivation:getTlsActivation", args, &rv, "", opts...) - if err != nil { - return LookupTlsActivationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTlsActivationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTlsActivationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsActivation:getTlsActivation", args, LookupTlsActivationResultOutput{}, options).(LookupTlsActivationResultOutput), nil }).(LookupTlsActivationResultOutput) } diff --git a/sdk/go/fastly/getTlsActivationIds.go b/sdk/go/fastly/getTlsActivationIds.go index 30337328..91104de0 100644 --- a/sdk/go/fastly/getTlsActivationIds.go +++ b/sdk/go/fastly/getTlsActivationIds.go @@ -39,21 +39,11 @@ type GetTlsActivationIdsResult struct { } func GetTlsActivationIdsOutput(ctx *pulumi.Context, args GetTlsActivationIdsOutputArgs, opts ...pulumi.InvokeOption) GetTlsActivationIdsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTlsActivationIdsResultOutput, error) { args := v.(GetTlsActivationIdsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsActivationIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsActivationIds:getTlsActivationIds", args, &rv, "", opts...) - if err != nil { - return GetTlsActivationIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsActivationIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsActivationIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsActivationIds:getTlsActivationIds", args, GetTlsActivationIdsResultOutput{}, options).(GetTlsActivationIdsResultOutput), nil }).(GetTlsActivationIdsResultOutput) } diff --git a/sdk/go/fastly/getTlsCertificate.go b/sdk/go/fastly/getTlsCertificate.go index 0af03c1d..55e42da6 100644 --- a/sdk/go/fastly/getTlsCertificate.go +++ b/sdk/go/fastly/getTlsCertificate.go @@ -93,21 +93,11 @@ type LookupTlsCertificateResult struct { } func LookupTlsCertificateOutput(ctx *pulumi.Context, args LookupTlsCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupTlsCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTlsCertificateResultOutput, error) { args := v.(LookupTlsCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTlsCertificateResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsCertificate:getTlsCertificate", args, &rv, "", opts...) - if err != nil { - return LookupTlsCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTlsCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTlsCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsCertificate:getTlsCertificate", args, LookupTlsCertificateResultOutput{}, options).(LookupTlsCertificateResultOutput), nil }).(LookupTlsCertificateResultOutput) } diff --git a/sdk/go/fastly/getTlsCertificateIds.go b/sdk/go/fastly/getTlsCertificateIds.go index e1aa2447..b06cb455 100644 --- a/sdk/go/fastly/getTlsCertificateIds.go +++ b/sdk/go/fastly/getTlsCertificateIds.go @@ -62,18 +62,8 @@ type GetTlsCertificateIdsResult struct { func GetTlsCertificateIdsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTlsCertificateIdsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetTlsCertificateIdsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsCertificateIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsCertificateIds:getTlsCertificateIds", nil, &rv, "", opts...) - if err != nil { - return GetTlsCertificateIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsCertificateIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsCertificateIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsCertificateIds:getTlsCertificateIds", nil, GetTlsCertificateIdsResultOutput{}, options).(GetTlsCertificateIdsResultOutput), nil }).(GetTlsCertificateIdsResultOutput) } diff --git a/sdk/go/fastly/getTlsConfiguration.go b/sdk/go/fastly/getTlsConfiguration.go index e1f46e2e..15e5ecf5 100644 --- a/sdk/go/fastly/getTlsConfiguration.go +++ b/sdk/go/fastly/getTlsConfiguration.go @@ -99,21 +99,11 @@ type GetTlsConfigurationResult struct { } func GetTlsConfigurationOutput(ctx *pulumi.Context, args GetTlsConfigurationOutputArgs, opts ...pulumi.InvokeOption) GetTlsConfigurationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTlsConfigurationResultOutput, error) { args := v.(GetTlsConfigurationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsConfigurationResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsConfiguration:getTlsConfiguration", args, &rv, "", opts...) - if err != nil { - return GetTlsConfigurationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsConfigurationResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsConfigurationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsConfiguration:getTlsConfiguration", args, GetTlsConfigurationResultOutput{}, options).(GetTlsConfigurationResultOutput), nil }).(GetTlsConfigurationResultOutput) } diff --git a/sdk/go/fastly/getTlsConfigurationIds.go b/sdk/go/fastly/getTlsConfigurationIds.go index 9258f6f2..4632d721 100644 --- a/sdk/go/fastly/getTlsConfigurationIds.go +++ b/sdk/go/fastly/getTlsConfigurationIds.go @@ -62,18 +62,8 @@ type GetTlsConfigurationIdsResult struct { func GetTlsConfigurationIdsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTlsConfigurationIdsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetTlsConfigurationIdsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsConfigurationIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", nil, &rv, "", opts...) - if err != nil { - return GetTlsConfigurationIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsConfigurationIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsConfigurationIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", nil, GetTlsConfigurationIdsResultOutput{}, options).(GetTlsConfigurationIdsResultOutput), nil }).(GetTlsConfigurationIdsResultOutput) } diff --git a/sdk/go/fastly/getTlsDomain.go b/sdk/go/fastly/getTlsDomain.go index fde74a82..582593e8 100644 --- a/sdk/go/fastly/getTlsDomain.go +++ b/sdk/go/fastly/getTlsDomain.go @@ -69,21 +69,11 @@ type GetTlsDomainResult struct { } func GetTlsDomainOutput(ctx *pulumi.Context, args GetTlsDomainOutputArgs, opts ...pulumi.InvokeOption) GetTlsDomainResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTlsDomainResultOutput, error) { args := v.(GetTlsDomainArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsDomainResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsDomain:getTlsDomain", args, &rv, "", opts...) - if err != nil { - return GetTlsDomainResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsDomainResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsDomainResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsDomain:getTlsDomain", args, GetTlsDomainResultOutput{}, options).(GetTlsDomainResultOutput), nil }).(GetTlsDomainResultOutput) } diff --git a/sdk/go/fastly/getTlsPlatformCertificate.go b/sdk/go/fastly/getTlsPlatformCertificate.go index 3929b0a2..763b615e 100644 --- a/sdk/go/fastly/getTlsPlatformCertificate.go +++ b/sdk/go/fastly/getTlsPlatformCertificate.go @@ -85,21 +85,11 @@ type LookupTlsPlatformCertificateResult struct { } func LookupTlsPlatformCertificateOutput(ctx *pulumi.Context, args LookupTlsPlatformCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupTlsPlatformCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTlsPlatformCertificateResultOutput, error) { args := v.(LookupTlsPlatformCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTlsPlatformCertificateResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args, &rv, "", opts...) - if err != nil { - return LookupTlsPlatformCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTlsPlatformCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTlsPlatformCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args, LookupTlsPlatformCertificateResultOutput{}, options).(LookupTlsPlatformCertificateResultOutput), nil }).(LookupTlsPlatformCertificateResultOutput) } diff --git a/sdk/go/fastly/getTlsPlatformCertificateIds.go b/sdk/go/fastly/getTlsPlatformCertificateIds.go index 8f16c744..5fe26dc8 100644 --- a/sdk/go/fastly/getTlsPlatformCertificateIds.go +++ b/sdk/go/fastly/getTlsPlatformCertificateIds.go @@ -62,18 +62,8 @@ type GetTlsPlatformCertificateIdsResult struct { func GetTlsPlatformCertificateIdsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTlsPlatformCertificateIdsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetTlsPlatformCertificateIdsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsPlatformCertificateIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", nil, &rv, "", opts...) - if err != nil { - return GetTlsPlatformCertificateIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsPlatformCertificateIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsPlatformCertificateIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", nil, GetTlsPlatformCertificateIdsResultOutput{}, options).(GetTlsPlatformCertificateIdsResultOutput), nil }).(GetTlsPlatformCertificateIdsResultOutput) } diff --git a/sdk/go/fastly/getTlsPrivateKey.go b/sdk/go/fastly/getTlsPrivateKey.go index 21011f26..95307e20 100644 --- a/sdk/go/fastly/getTlsPrivateKey.go +++ b/sdk/go/fastly/getTlsPrivateKey.go @@ -93,21 +93,11 @@ type LookupTlsPrivateKeyResult struct { } func LookupTlsPrivateKeyOutput(ctx *pulumi.Context, args LookupTlsPrivateKeyOutputArgs, opts ...pulumi.InvokeOption) LookupTlsPrivateKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTlsPrivateKeyResultOutput, error) { args := v.(LookupTlsPrivateKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTlsPrivateKeyResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args, &rv, "", opts...) - if err != nil { - return LookupTlsPrivateKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTlsPrivateKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTlsPrivateKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args, LookupTlsPrivateKeyResultOutput{}, options).(LookupTlsPrivateKeyResultOutput), nil }).(LookupTlsPrivateKeyResultOutput) } diff --git a/sdk/go/fastly/getTlsPrivateKeyIds.go b/sdk/go/fastly/getTlsPrivateKeyIds.go index fdd3d9f6..8ee490a1 100644 --- a/sdk/go/fastly/getTlsPrivateKeyIds.go +++ b/sdk/go/fastly/getTlsPrivateKeyIds.go @@ -62,18 +62,8 @@ type GetTlsPrivateKeyIdsResult struct { func GetTlsPrivateKeyIdsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTlsPrivateKeyIdsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetTlsPrivateKeyIdsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsPrivateKeyIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", nil, &rv, "", opts...) - if err != nil { - return GetTlsPrivateKeyIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsPrivateKeyIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsPrivateKeyIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", nil, GetTlsPrivateKeyIdsResultOutput{}, options).(GetTlsPrivateKeyIdsResultOutput), nil }).(GetTlsPrivateKeyIdsResultOutput) } diff --git a/sdk/go/fastly/getTlsSubscription.go b/sdk/go/fastly/getTlsSubscription.go index 80cfb516..738b867f 100644 --- a/sdk/go/fastly/getTlsSubscription.go +++ b/sdk/go/fastly/getTlsSubscription.go @@ -85,21 +85,11 @@ type LookupTlsSubscriptionResult struct { } func LookupTlsSubscriptionOutput(ctx *pulumi.Context, args LookupTlsSubscriptionOutputArgs, opts ...pulumi.InvokeOption) LookupTlsSubscriptionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTlsSubscriptionResultOutput, error) { args := v.(LookupTlsSubscriptionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTlsSubscriptionResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsSubscription:getTlsSubscription", args, &rv, "", opts...) - if err != nil { - return LookupTlsSubscriptionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTlsSubscriptionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTlsSubscriptionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsSubscription:getTlsSubscription", args, LookupTlsSubscriptionResultOutput{}, options).(LookupTlsSubscriptionResultOutput), nil }).(LookupTlsSubscriptionResultOutput) } diff --git a/sdk/go/fastly/getTlsSubscriptionIds.go b/sdk/go/fastly/getTlsSubscriptionIds.go index 4fd8e715..7f7ab6b9 100644 --- a/sdk/go/fastly/getTlsSubscriptionIds.go +++ b/sdk/go/fastly/getTlsSubscriptionIds.go @@ -32,18 +32,8 @@ type GetTlsSubscriptionIdsResult struct { func GetTlsSubscriptionIdsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTlsSubscriptionIdsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetTlsSubscriptionIdsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTlsSubscriptionIdsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", nil, &rv, "", opts...) - if err != nil { - return GetTlsSubscriptionIdsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTlsSubscriptionIdsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTlsSubscriptionIdsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", nil, GetTlsSubscriptionIdsResultOutput{}, options).(GetTlsSubscriptionIdsResultOutput), nil }).(GetTlsSubscriptionIdsResultOutput) } diff --git a/sdk/go/fastly/getVclSnippets.go b/sdk/go/fastly/getVclSnippets.go index 78745821..ec29af1c 100644 --- a/sdk/go/fastly/getVclSnippets.go +++ b/sdk/go/fastly/getVclSnippets.go @@ -84,21 +84,11 @@ type GetVclSnippetsResult struct { } func GetVclSnippetsOutput(ctx *pulumi.Context, args GetVclSnippetsOutputArgs, opts ...pulumi.InvokeOption) GetVclSnippetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVclSnippetsResultOutput, error) { args := v.(GetVclSnippetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVclSnippetsResult - secret, err := ctx.InvokePackageRaw("fastly:index/getVclSnippets:getVclSnippets", args, &rv, "", opts...) - if err != nil { - return GetVclSnippetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVclSnippetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVclSnippetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getVclSnippets:getVclSnippets", args, GetVclSnippetsResultOutput{}, options).(GetVclSnippetsResultOutput), nil }).(GetVclSnippetsResultOutput) } diff --git a/sdk/go/fastly/getWafRules.go b/sdk/go/fastly/getWafRules.go index 1f014d2f..0f3fff81 100644 --- a/sdk/go/fastly/getWafRules.go +++ b/sdk/go/fastly/getWafRules.go @@ -50,21 +50,11 @@ type GetWafRulesResult struct { } func GetWafRulesOutput(ctx *pulumi.Context, args GetWafRulesOutputArgs, opts ...pulumi.InvokeOption) GetWafRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWafRulesResultOutput, error) { args := v.(GetWafRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWafRulesResult - secret, err := ctx.InvokePackageRaw("fastly:index/getWafRules:getWafRules", args, &rv, "", opts...) - if err != nil { - return GetWafRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWafRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWafRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("fastly:index/getWafRules:getWafRules", args, GetWafRulesResultOutput{}, options).(GetWafRulesResultOutput), nil }).(GetWafRulesResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index c85f25a0..1804661a 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -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.18.0") + implementation("com.pulumi:pulumi:0.20.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/FastlyFunctions.java b/sdk/java/src/main/java/com/pulumi/fastly/FastlyFunctions.java index c8977565..1e940d25 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/FastlyFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/FastlyFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.fastly.Utilities; import com.pulumi.fastly.inputs.GetDictionariesArgs; import com.pulumi.fastly.inputs.GetDictionariesPlainArgs; @@ -74,6 +75,9 @@ public static CompletableFuture getConfigstoresPlain(Invo public static Output getConfigstores(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getConfigstores:getConfigstores", TypeShape.of(GetConfigstoresResult.class), args, Utilities.withVersion(options)); } + public static Output getConfigstores(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getConfigstores:getConfigstores", TypeShape.of(GetConfigstoresResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getConfigstoresPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("fastly:index/getConfigstores:getConfigstores", TypeShape.of(GetConfigstoresResult.class), args, Utilities.withVersion(options)); } @@ -112,6 +116,13 @@ public static CompletableFuture getDatacentersPlain(Invoke public static Output getDatacenters(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getDatacenters:getDatacenters", TypeShape.of(GetDatacentersResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/). + * + */ + public static Output getDatacenters(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getDatacenters:getDatacenters", TypeShape.of(GetDatacentersResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/). * @@ -323,6 +334,74 @@ public static CompletableFuture getDictionariesPlain(GetD public static Output getDictionaries(GetDictionariesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getDictionaries:getDictionaries", TypeShape.of(GetDictionariesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.ServiceVcl;
+     * import com.pulumi.fastly.ServiceVclArgs;
+     * import com.pulumi.fastly.inputs.ServiceVclDomainArgs;
+     * import com.pulumi.fastly.inputs.ServiceVclDictionaryArgs;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetDictionariesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var exampleServiceVcl = new ServiceVcl("exampleServiceVcl", ServiceVclArgs.builder()
+     *             .name("Example Service")
+     *             .domains(ServiceVclDomainArgs.builder()
+     *                 .name("example.com")
+     *                 .build())
+     *             .dictionaries(            
+     *                 ServiceVclDictionaryArgs.builder()
+     *                     .name("example_1")
+     *                     .build(),
+     *                 ServiceVclDictionaryArgs.builder()
+     *                     .name("example_2")
+     *                     .build(),
+     *                 ServiceVclDictionaryArgs.builder()
+     *                     .name("example_3")
+     *                     .build())
+     *             .forceDestroy(true)
+     *             .build());
+     * 
+     *         final var example = FastlyFunctions.getDictionaries(GetDictionariesArgs.builder()
+     *             .serviceId(exampleServiceVcl.id())
+     *             .serviceVersion(exampleServiceVcl.activeVersion())
+     *             .build());
+     * 
+     *         ctx.export("serviceDictionaries", example.applyValue(getDictionariesResult -> getDictionariesResult));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * [1]: https://developer.fastly.com/reference/api/dictionaries/ + * + */ + public static Output getDictionaries(GetDictionariesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getDictionaries:getDictionaries", TypeShape.of(GetDictionariesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version. * @@ -631,6 +710,54 @@ public static CompletableFuture getFastlyIpRangesPlain( public static Output getFastlyIpRanges(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getFastlyIpRanges:getFastlyIpRanges", TypeShape.of(GetFastlyIpRangesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.aws.securityGroup;
+     * import com.pulumi.aws.SecurityGroupArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var fastly = FastlyFunctions.getFastlyIpRanges();
+     * 
+     *         var fromFastly = new SecurityGroup("fromFastly", SecurityGroupArgs.builder()
+     *             .name("from_fastly")
+     *             .ingress(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges + * + */ + public static Output getFastlyIpRanges(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getFastlyIpRanges:getFastlyIpRanges", TypeShape.of(GetFastlyIpRangesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the [IP ranges](https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges) of Fastly edge nodes. * @@ -694,6 +821,9 @@ public static CompletableFuture getKvstoresPlain(InvokeArgs a public static Output getKvstores(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getKvstores:getKvstores", TypeShape.of(GetKvstoresResult.class), args, Utilities.withVersion(options)); } + public static Output getKvstores(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getKvstores:getKvstores", TypeShape.of(GetKvstoresResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getKvstoresPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("fastly:index/getKvstores:getKvstores", TypeShape.of(GetKvstoresResult.class), args, Utilities.withVersion(options)); } @@ -957,6 +1087,58 @@ public static CompletableFuture getPackageHashPlain(GetPac public static Output getPackageHash(GetPackageHashArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getPackageHash:getPackageHash", TypeShape.of(GetPackageHashResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to generate a SHA512 hash of all files (in sorted order) within the package. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetPackageHashArgs;
+     * import com.pulumi.fastly.ServiceCompute;
+     * import com.pulumi.fastly.ServiceComputeArgs;
+     * import com.pulumi.fastly.inputs.ServiceComputePackageArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getPackageHash(GetPackageHashArgs.builder()
+     *             .filename("./path/to/package.tar.gz")
+     *             .build());
+     * 
+     *         var exampleServiceCompute = new ServiceCompute("exampleServiceCompute", ServiceComputeArgs.builder()
+     *             .package_(ServiceComputePackageArgs.builder()
+     *                 .filename("./path/to/package.tar.gz")
+     *                 .sourceCodeHash(example.applyValue(getPackageHashResult -> getPackageHashResult.hash()))
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPackageHash(GetPackageHashArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getPackageHash:getPackageHash", TypeShape.of(GetPackageHashResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to generate a SHA512 hash of all files (in sorted order) within the package. * @@ -1024,6 +1206,9 @@ public static CompletableFuture getSecretstoresPlain(Invo public static Output getSecretstores(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getSecretstores:getSecretstores", TypeShape.of(GetSecretstoresResult.class), args, Utilities.withVersion(options)); } + public static Output getSecretstores(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getSecretstores:getSecretstores", TypeShape.of(GetSecretstoresResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getSecretstoresPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("fastly:index/getSecretstores:getSecretstores", TypeShape.of(GetSecretstoresResult.class), args, Utilities.withVersion(options)); } @@ -1062,6 +1247,13 @@ public static CompletableFuture getServicesPlain(InvokeArgs a public static Output getServices(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getServices:getServices", TypeShape.of(GetServicesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/). + * + */ + public static Output getServices(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getServices:getServices", TypeShape.of(GetServicesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/). * @@ -1309,6 +1501,54 @@ public static CompletableFuture getTlsActivationPlain(Ge public static Output getTlsActivation(GetTlsActivationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsActivation:getTlsActivation", TypeShape.of(GetTlsActivationResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsActivationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsActivation(GetTlsActivationArgs.builder()
+     *             .domain("example.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsActivation(GetTlsActivationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsActivation:getTlsActivation", TypeShape.of(GetTlsActivationResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled. * @@ -1417,6 +1657,18 @@ public static CompletableFuture getTlsActivationIdsPl public static Output getTlsActivationIds(GetTlsActivationIdsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", TypeShape.of(GetTlsActivationIdsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the list of TLS Activation identifiers in Fastly. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsActivationIds(GetTlsActivationIdsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", TypeShape.of(GetTlsActivationIdsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the list of TLS Activation identifiers in Fastly. * @@ -1714,11 +1966,17 @@ public static Output getTlsCertificate(GetTlsCertificat * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsCertificatePlain(GetTlsCertificatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("fastly:index/getTlsCertificate:getTlsCertificate", TypeShape.of(GetTlsCertificateResult.class), args, Utilities.withVersion(options)); + public static Output getTlsCertificate(GetTlsCertificateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsCertificate:getTlsCertificate", TypeShape.of(GetTlsCertificateResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to get the IDs of available TLS certificates for use with other resources. + * Use this data source to get information of a TLS certificate for use with other resources. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. * * ## Example Usage * @@ -1731,8 +1989,7 @@ public static CompletableFuture getTlsCertificatePlain( * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.fastly.FastlyFunctions; - * import com.pulumi.fastly.TlsActivation; - * import com.pulumi.fastly.TlsActivationArgs; + * import com.pulumi.fastly.inputs.GetTlsCertificateArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1746,7 +2003,50 @@ public static CompletableFuture getTlsCertificatePlain( * } * * public static void stack(Context ctx) { - * final var example = FastlyFunctions.getTlsCertificateIds(); + * final var example = FastlyFunctions.getTlsCertificate(GetTlsCertificateArgs.builder() + * .name("example.com") + * .build()); + * + * } + * } + * } + * + * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTlsCertificatePlain(GetTlsCertificatePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("fastly:index/getTlsCertificate:getTlsCertificate", TypeShape.of(GetTlsCertificateResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to get the IDs of available TLS certificates for use with other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.TlsActivation;
+     * import com.pulumi.fastly.TlsActivationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsCertificateIds();
      * 
      *         var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
      *             .certificateId(example.applyValue(getTlsCertificateIdsResult -> getTlsCertificateIdsResult.ids()[0]))
@@ -1942,6 +2242,51 @@ public static CompletableFuture getTlsCertificateIds
     public static Output getTlsCertificateIds(InvokeArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("fastly:index/getTlsCertificateIds:getTlsCertificateIds", TypeShape.of(GetTlsCertificateIdsResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Use this data source to get the IDs of available TLS certificates for use with other resources.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.TlsActivation;
+     * import com.pulumi.fastly.TlsActivationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsCertificateIds();
+     * 
+     *         var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
+     *             .certificateId(example.applyValue(getTlsCertificateIdsResult -> getTlsCertificateIdsResult.ids()[0]))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsCertificateIds(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsCertificateIds:getTlsCertificateIds", TypeShape.of(GetTlsCertificateIdsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the IDs of available TLS certificates for use with other resources. * @@ -2257,6 +2602,60 @@ public static CompletableFuture getTlsConfigurationPl public static Output getTlsConfiguration(GetTlsConfigurationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", TypeShape.of(GetTlsConfigurationResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the ID of a TLS configuration for use with other resources. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsConfigurationArgs;
+     * import com.pulumi.fastly.TlsActivation;
+     * import com.pulumi.fastly.TlsActivationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsConfiguration(GetTlsConfigurationArgs.builder()
+     *             .default_(true)
+     *             .build());
+     * 
+     *         var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
+     *             .configurationId(example.applyValue(getTlsConfigurationResult -> getTlsConfigurationResult.id()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsConfiguration(GetTlsConfigurationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", TypeShape.of(GetTlsConfigurationResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the ID of a TLS configuration for use with other resources. * @@ -2536,6 +2935,51 @@ public static CompletableFuture getTlsConfiguratio public static Output getTlsConfigurationIds(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", TypeShape.of(GetTlsConfigurationIdsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the IDs of available TLS configurations for use with other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.TlsActivation;
+     * import com.pulumi.fastly.TlsActivationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsConfigurationIds();
+     * 
+     *         var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
+     *             .configurationId(example.applyValue(getTlsConfigurationIdsResult -> getTlsConfigurationIdsResult.ids()[0]))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsConfigurationIds(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", TypeShape.of(GetTlsConfigurationIdsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the IDs of available TLS configurations for use with other resources. * @@ -2707,6 +3151,48 @@ public static CompletableFuture getTlsDomainPlain(GetTlsDoma public static Output getTlsDomain(GetTlsDomainArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsDomain:getTlsDomain", TypeShape.of(GetTlsDomainResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsDomainArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var domain = FastlyFunctions.getTlsDomain(GetTlsDomainArgs.builder()
+     *             .domain("example.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsDomain(GetTlsDomainArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsDomain:getTlsDomain", TypeShape.of(GetTlsDomainResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain. * @@ -2842,8 +3328,104 @@ public static Output getTlsPlatformCertificate( * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsPlatformCertificatePlain() { - return getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getTlsPlatformCertificatePlain() { + return getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Use this data source to get information of a Platform TLS certificate for use with other resources. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()
+     *             .domains("example.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args) { + return getTlsPlatformCertificate(args, InvokeOptions.Empty); + } + /** + * Use this data source to get information of a Platform TLS certificate for use with other resources. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsPlatformCertificateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder()
+     *             .domains("example.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs args) { + return getTlsPlatformCertificatePlain(args, InvokeOptions.Empty); } /** * Use this data source to get information of a Platform TLS certificate for use with other resources. @@ -2890,8 +3472,8 @@ public static CompletableFuture getTlsPlatformC * <!--End PulumiCodeChooser --> * */ - public static Output getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args) { - return getTlsPlatformCertificate(args, InvokeOptions.Empty); + public static Output getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", TypeShape.of(GetTlsPlatformCertificateResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get information of a Platform TLS certificate for use with other resources. @@ -2938,8 +3520,8 @@ public static Output getTlsPlatformCertificate( * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs args) { - return getTlsPlatformCertificatePlain(args, InvokeOptions.Empty); + public static Output getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", TypeShape.of(GetTlsPlatformCertificateResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get information of a Platform TLS certificate for use with other resources. @@ -2986,17 +3568,11 @@ public static CompletableFuture getTlsPlatformC * <!--End PulumiCodeChooser --> * */ - public static Output getTlsPlatformCertificate(GetTlsPlatformCertificateArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", TypeShape.of(GetTlsPlatformCertificateResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", TypeShape.of(GetTlsPlatformCertificateResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to get information of a Platform TLS certificate for use with other resources. - * - * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination - * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination - * with any of the others. - * - * > **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. + * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. * * ## Example Usage * @@ -3023,8 +3599,10 @@ public static Output getTlsPlatformCertificate( * } * * public static void stack(Context ctx) { - * final var example = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder() - * .domains("example.com") + * final var example = FastlyFunctions.getTlsPlatformCertificateIds(); + * + * final var exampleGetTlsPlatformCertificate = FastlyFunctions.getTlsPlatformCertificate(GetTlsPlatformCertificateArgs.builder() + * .id(example.applyValue(getTlsPlatformCertificateIdsResult -> getTlsPlatformCertificateIdsResult.ids()[0])) * .build()); * * } @@ -3034,8 +3612,8 @@ public static Output getTlsPlatformCertificate( * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsPlatformCertificatePlain(GetTlsPlatformCertificatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", TypeShape.of(GetTlsPlatformCertificateResult.class), args, Utilities.withVersion(options)); + public static Output getTlsPlatformCertificateIds() { + return getTlsPlatformCertificateIds(InvokeArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -3078,8 +3656,8 @@ public static CompletableFuture getTlsPlatformC * <!--End PulumiCodeChooser --> * */ - public static Output getTlsPlatformCertificateIds() { - return getTlsPlatformCertificateIds(InvokeArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getTlsPlatformCertificateIdsPlain() { + return getTlsPlatformCertificateIdsPlain(InvokeArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -3122,8 +3700,8 @@ public static Output getTlsPlatformCertifica * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsPlatformCertificateIdsPlain() { - return getTlsPlatformCertificateIdsPlain(InvokeArgs.Empty, InvokeOptions.Empty); + public static Output getTlsPlatformCertificateIds(InvokeArgs args) { + return getTlsPlatformCertificateIds(args, InvokeOptions.Empty); } /** * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -3166,8 +3744,8 @@ public static CompletableFuture getTlsPlatfo * <!--End PulumiCodeChooser --> * */ - public static Output getTlsPlatformCertificateIds(InvokeArgs args) { - return getTlsPlatformCertificateIds(args, InvokeOptions.Empty); + public static CompletableFuture getTlsPlatformCertificateIdsPlain(InvokeArgs args) { + return getTlsPlatformCertificateIdsPlain(args, InvokeOptions.Empty); } /** * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -3210,8 +3788,8 @@ public static Output getTlsPlatformCertifica * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getTlsPlatformCertificateIdsPlain(InvokeArgs args) { - return getTlsPlatformCertificateIdsPlain(args, InvokeOptions.Empty); + public static Output getTlsPlatformCertificateIds(InvokeArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", TypeShape.of(GetTlsPlatformCertificateIdsResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get the IDs of available Platform TLS Certificates for use with other resources. @@ -3254,7 +3832,7 @@ public static CompletableFuture getTlsPlatfo * <!--End PulumiCodeChooser --> * */ - public static Output getTlsPlatformCertificateIds(InvokeArgs args, InvokeOptions options) { + public static Output getTlsPlatformCertificateIds(InvokeArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", TypeShape.of(GetTlsPlatformCertificateIdsResult.class), args, Utilities.withVersion(options)); } /** @@ -3551,6 +4129,56 @@ public static CompletableFuture getTlsPrivateKeyPlain(Ge public static Output getTlsPrivateKey(GetTlsPrivateKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", TypeShape.of(GetTlsPrivateKeyResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information on a TLS Private Key uploaded to Fastly. + * + * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination + * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination + * with any of the others. + * + * > **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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var demo = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()
+     *             .name("demo-private-key")
+     *             .build());
+     * 
+     *         ctx.export("privateKeyNeedsReplacing", demo.applyValue(getTlsPrivateKeyResult -> getTlsPrivateKeyResult.replace()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsPrivateKey(GetTlsPrivateKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", TypeShape.of(GetTlsPrivateKeyResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information on a TLS Private Key uploaded to Fastly. * @@ -3821,6 +4449,50 @@ public static CompletableFuture getTlsPrivateKeyIdsPl public static Output getTlsPrivateKeyIds(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", TypeShape.of(GetTlsPrivateKeyIdsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the list of TLS private key identifiers in Fastly. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsPrivateKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var demo = FastlyFunctions.getTlsPrivateKeyIds();
+     * 
+     *         final var example = FastlyFunctions.getTlsPrivateKey(GetTlsPrivateKeyArgs.builder()
+     *             .id(demoFastlyTlsPrivateKeyIds.ids()[0])
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsPrivateKeyIds(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", TypeShape.of(GetTlsPrivateKeyIdsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the list of TLS private key identifiers in Fastly. * @@ -4075,6 +4747,48 @@ public static CompletableFuture getTlsSubscriptionPlai public static Output getTlsSubscription(GetTlsSubscriptionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsSubscription:getTlsSubscription", TypeShape.of(GetTlsSubscriptionResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a TLS subscription. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetTlsSubscriptionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = FastlyFunctions.getTlsSubscription(GetTlsSubscriptionArgs.builder()
+     *             .domains("example.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsSubscription(GetTlsSubscriptionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsSubscription:getTlsSubscription", TypeShape.of(GetTlsSubscriptionResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a TLS subscription. * @@ -4177,6 +4891,18 @@ public static CompletableFuture getTlsSubscriptionI public static Output getTlsSubscriptionIds(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", TypeShape.of(GetTlsSubscriptionIdsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get the list of IDs of TLS Subscriptions in Fastly. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getTlsSubscriptionIds(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", TypeShape.of(GetTlsSubscriptionIdsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get the list of IDs of TLS Subscriptions in Fastly. * @@ -4366,6 +5092,65 @@ public static CompletableFuture getVclSnippetsPlain(GetVcl public static Output getVclSnippets(GetVclSnippetsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getVclSnippets:getVclSnippets", TypeShape.of(GetVclSnippetsResult.class), args, Utilities.withVersion(options)); } + /** + * VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL. + * + * Use 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. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.fastly.ServiceVcl;
+     * import com.pulumi.fastly.ServiceVclArgs;
+     * import com.pulumi.fastly.inputs.ServiceVclDomainArgs;
+     * import com.pulumi.fastly.FastlyFunctions;
+     * import com.pulumi.fastly.inputs.GetVclSnippetsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var exampleServiceVcl = new ServiceVcl("exampleServiceVcl", ServiceVclArgs.builder()
+     *             .name("Example Service")
+     *             .domains(ServiceVclDomainArgs.builder()
+     *                 .name("example.com")
+     *                 .build())
+     *             .forceDestroy(true)
+     *             .build());
+     * 
+     *         final var example = FastlyFunctions.getVclSnippets(GetVclSnippetsArgs.builder()
+     *             .serviceId(exampleServiceVcl.id())
+     *             .serviceVersion(exampleServiceVcl.activeVersion())
+     *             .build());
+     * 
+     *         ctx.export("serviceVclSnippets", example.applyValue(getVclSnippetsResult -> getVclSnippetsResult));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * [1]: https://www.fastly.com/documentation/reference/api/vcl-services/snippet/ + * + */ + public static Output getVclSnippets(GetVclSnippetsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getVclSnippets:getVclSnippets", TypeShape.of(GetVclSnippetsResult.class), args, Utilities.withVersion(options)); + } /** * VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL. * @@ -4440,6 +5225,9 @@ public static CompletableFuture getWafRulesPlain(GetWafRulesP public static Output getWafRules(GetWafRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("fastly:index/getWafRules:getWafRules", TypeShape.of(GetWafRulesResult.class), args, Utilities.withVersion(options)); } + public static Output getWafRules(GetWafRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("fastly:index/getWafRules:getWafRules", TypeShape.of(GetWafRulesResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getWafRulesPlain(GetWafRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("fastly:index/getWafRules:getWafRules", TypeShape.of(GetWafRulesResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/Utilities.java b/sdk/java/src/main/java/com/pulumi/fastly/Utilities.java index ad2a10d8..12b3f985 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) return Optional.empty(); } - public static InvokeOptions withVersion(@Nullable InvokeOptions options) { - if (options != null && options.getVersion().isPresent()) { - return options; - } - return new InvokeOptions( - options == null ? null : options.getParent().orElse(null), - options == null ? null : options.getProvider().orElse(null), - getVersion() - ); + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } private static final java.lang.String version; public static java.lang.String getVersion() { diff --git a/sdk/nodejs/getTlsActivationIds.ts b/sdk/nodejs/getTlsActivationIds.ts index 5322afa5..6701bf88 100644 --- a/sdk/nodejs/getTlsActivationIds.ts +++ b/sdk/nodejs/getTlsActivationIds.ts @@ -16,7 +16,7 @@ import * as utilities from "./utilities"; * const example = fastly.getTlsActivationIds({ * certificateId: exampleFastlyTlsCertificate.id, * }); - * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: fastly.getTlsActivation({ + * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({ * id: __value, * }) }))); * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain))); @@ -69,7 +69,7 @@ export interface GetTlsActivationIdsResult { * const example = fastly.getTlsActivationIds({ * certificateId: exampleFastlyTlsCertificate.id, * }); - * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: fastly.getTlsActivation({ + * const exampleGetTlsActivation = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsActivation({ * id: __value, * }) }))); * export const activationDomains = exampleGetTlsActivation.apply(exampleGetTlsActivation => Object.values(exampleGetTlsActivation).map(a => (a.domain))); diff --git a/sdk/nodejs/getTlsSubscriptionIds.ts b/sdk/nodejs/getTlsSubscriptionIds.ts index 9e441eb1..1ecb544b 100644 --- a/sdk/nodejs/getTlsSubscriptionIds.ts +++ b/sdk/nodejs/getTlsSubscriptionIds.ts @@ -14,7 +14,7 @@ import * as utilities from "./utilities"; * import * as fastly from "@pulumi/fastly"; * * const example = fastly.getTlsSubscriptionIds({}); - * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({ + * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({ * id: __value, * }) }))); * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority))); @@ -49,7 +49,7 @@ export interface GetTlsSubscriptionIdsResult { * import * as fastly from "@pulumi/fastly"; * * const example = fastly.getTlsSubscriptionIds({}); - * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({ + * const exampleGetTlsSubscription = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: fastly.getTlsSubscription({ * id: __value, * }) }))); * export const subscriptionDomains = exampleGetTlsSubscription.apply(exampleGetTlsSubscription => Object.values(exampleGetTlsSubscription).map(a => (a.certificateAuthority))); diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index d4b5230d..fbdaac6e 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0" + "@pulumi/pulumi": "^3.142.0" }, "devDependencies": { "@types/mime": "^2.0.0", diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index e5475fef..f8a03583 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_fastly" description = "A Pulumi package for creating and managing fastly cloud resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "fastly"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "8.0.0a0+dev" [project.license] text = "Apache-2.0"