@pulumi/fastly 5.2.0-alpha.1673556063 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +2 -2
  2. package/getDatacenters.js +1 -4
  3. package/getDatacenters.js.map +1 -1
  4. package/getFastlyIpRanges.js +1 -4
  5. package/getFastlyIpRanges.js.map +1 -1
  6. package/getServices.js +1 -4
  7. package/getServices.js.map +1 -1
  8. package/getTlsActivation.d.ts +22 -2
  9. package/getTlsActivation.js +24 -7
  10. package/getTlsActivation.js.map +1 -1
  11. package/getTlsActivationIds.d.ts +3 -0
  12. package/getTlsActivationIds.js +5 -5
  13. package/getTlsActivationIds.js.map +1 -1
  14. package/getTlsCertificate.d.ts +22 -2
  15. package/getTlsCertificate.js +24 -7
  16. package/getTlsCertificate.js.map +1 -1
  17. package/getTlsCertificateIds.d.ts +1 -1
  18. package/getTlsCertificateIds.js +2 -5
  19. package/getTlsCertificateIds.js.map +1 -1
  20. package/getTlsConfiguration.d.ts +22 -0
  21. package/getTlsConfiguration.js +24 -5
  22. package/getTlsConfiguration.js.map +1 -1
  23. package/getTlsConfigurationIds.js +1 -4
  24. package/getTlsConfigurationIds.js.map +1 -1
  25. package/getTlsDomain.d.ts +16 -2
  26. package/getTlsDomain.js +18 -7
  27. package/getTlsDomain.js.map +1 -1
  28. package/getTlsPlatformCertificate.d.ts +22 -2
  29. package/getTlsPlatformCertificate.js +24 -7
  30. package/getTlsPlatformCertificate.js.map +1 -1
  31. package/getTlsPlatformCertificateIds.d.ts +1 -1
  32. package/getTlsPlatformCertificateIds.js +2 -5
  33. package/getTlsPlatformCertificateIds.js.map +1 -1
  34. package/getTlsPrivateKey.d.ts +22 -0
  35. package/getTlsPrivateKey.js +24 -5
  36. package/getTlsPrivateKey.js.map +1 -1
  37. package/getTlsPrivateKeyIds.js +1 -4
  38. package/getTlsPrivateKeyIds.js.map +1 -1
  39. package/getTlsSubscription.d.ts +16 -2
  40. package/getTlsSubscription.js +18 -7
  41. package/getTlsSubscription.js.map +1 -1
  42. package/getTlsSubscriptionIds.js +1 -4
  43. package/getTlsSubscriptionIds.js.map +1 -1
  44. package/getWafRules.js +2 -5
  45. package/getWafRules.js.map +1 -1
  46. package/index.js +31 -31
  47. package/index.js.map +1 -1
  48. package/package.json +2 -2
  49. package/package.json.dev +2 -2
  50. package/serviceCompute.d.ts +12 -0
  51. package/serviceCompute.js +2 -0
  52. package/serviceCompute.js.map +1 -1
  53. package/serviceVcl.d.ts +12 -195
  54. package/serviceVcl.js +2 -195
  55. package/serviceVcl.js.map +1 -1
  56. package/types/input.d.ts +33 -17
  57. package/types/output.d.ts +33 -17
  58. package/user.d.ts +1 -3
  59. package/user.js +1 -3
  60. package/user.js.map +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![NPM version](https://badge.fury.io/js/%40pulumi%2Ffastly.svg)](https://www.npmjs.com/package/@pulumi/fastly)
4
4
  [![Python version](https://badge.fury.io/py/pulumi-fastly.svg)](https://pypi.org/project/pulumi-fastly)
5
5
  [![NuGet version](https://badge.fury.io/nu/pulumi.fastly.svg)](https://badge.fury.io/nu/pulumi.fastly)
6
- [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-fastly/sdk/v3/go)](https://pkg.go.dev/github.com/pulumi/pulumi-fastly/sdk/v3/go)
6
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-fastly/sdk/v6/go)](https://pkg.go.dev/github.com/pulumi/pulumi-fastly/sdk/v6/go)
7
7
  [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-fastly/blob/master/LICENSE)
8
8
 
9
9
  # Fastly Resource Provider
@@ -35,7 +35,7 @@ To use from Python, install using `pip`:
35
35
 
36
36
  To use from Go, use `go get` to grab the latest version of the library
37
37
 
38
- $ go get github.com/pulumi/pulumi-fastly/sdk/v3
38
+ $ go get github.com/pulumi/pulumi-fastly/sdk/v6
39
39
 
40
40
  ### .NET
41
41
 
package/getDatacenters.js CHANGED
@@ -9,10 +9,7 @@ const utilities = require("./utilities");
9
9
  * Use this data source to get the list of the [Fastly datacenters](https://developer.fastly.com/reference/api/utils/pops/).
10
10
  */
11
11
  function getDatacenters(opts) {
12
- if (!opts) {
13
- opts = {};
14
- }
15
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
16
13
  return pulumi.runtime.invoke("fastly:index/getDatacenters:getDatacenters", {}, opts);
17
14
  }
18
15
  exports.getDatacenters = getDatacenters;
@@ -1 +1 @@
1
- {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAA2B;IAEtD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE,EAC1E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wCAKC"}
@@ -28,10 +28,7 @@ const utilities = require("./utilities");
28
28
  * [1]: https://docs.fastly.com/guides/securing-communications/accessing-fastlys-ip-ranges
29
29
  */
30
30
  function getFastlyIpRanges(opts) {
31
- if (!opts) {
32
- opts = {};
33
- }
34
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
31
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
35
32
  return pulumi.runtime.invoke("fastly:index/getFastlyIpRanges:getFastlyIpRanges", {}, opts);
36
33
  }
37
34
  exports.getFastlyIpRanges = getFastlyIpRanges;
@@ -1 +1 @@
1
- {"version":3,"file":"getFastlyIpRanges.js","sourceRoot":"","sources":["../getFastlyIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B;IACzD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8CAQC"}
1
+ {"version":3,"file":"getFastlyIpRanges.js","sourceRoot":"","sources":["../getFastlyIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B;IAEzD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE,EAChF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
package/getServices.js CHANGED
@@ -9,10 +9,7 @@ const utilities = require("./utilities");
9
9
  * Use this data source to get the list of the [Fastly services](https://developer.fastly.com/reference/api/services/service/).
10
10
  */
11
11
  function getServices(opts) {
12
- if (!opts) {
13
- opts = {};
14
- }
15
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
16
13
  return pulumi.runtime.invoke("fastly:index/getServices:getServices", {}, opts);
17
14
  }
18
15
  exports.getServices = getServices;
@@ -1 +1 @@
1
- {"version":3,"file":"getServices.js","sourceRoot":"","sources":["../getServices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,WAAW,CAAC,IAA2B;IACnD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE,EACpE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC"}
1
+ {"version":3,"file":"getServices.js","sourceRoot":"","sources":["../getServices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,WAAW,CAAC,IAA2B;IAEnD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE,EACpE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC"}
@@ -14,9 +14,9 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as fastly from "@pulumi/fastly";
16
16
  *
17
- * const example = pulumi.output(fastly.getTlsActivation({
17
+ * const example = fastly.getTlsActivation({
18
18
  * domain: "example.com",
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  export declare function getTlsActivation(args?: GetTlsActivationArgs, opts?: pulumi.InvokeOptions): Promise<GetTlsActivationResult>;
@@ -66,6 +66,26 @@ export interface GetTlsActivationResult {
66
66
  */
67
67
  readonly id: string;
68
68
  }
69
+ /**
70
+ * Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.
71
+ *
72
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
73
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
74
+ * with any of the others.
75
+ *
76
+ * > **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.
77
+ *
78
+ * ## Example Usage
79
+ *
80
+ * ```typescript
81
+ * import * as pulumi from "@pulumi/pulumi";
82
+ * import * as fastly from "@pulumi/fastly";
83
+ *
84
+ * const example = fastly.getTlsActivation({
85
+ * domain: "example.com",
86
+ * });
87
+ * ```
88
+ */
69
89
  export declare function getTlsActivationOutput(args?: GetTlsActivationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsActivationResult>;
70
90
  /**
71
91
  * A collection of arguments for invoking getTlsActivation.
@@ -20,17 +20,14 @@ const utilities = require("./utilities");
20
20
  * import * as pulumi from "@pulumi/pulumi";
21
21
  * import * as fastly from "@pulumi/fastly";
22
22
  *
23
- * const example = pulumi.output(fastly.getTlsActivation({
23
+ * const example = fastly.getTlsActivation({
24
24
  * domain: "example.com",
25
- * }));
25
+ * });
26
26
  * ```
27
27
  */
28
28
  function getTlsActivation(args, opts) {
29
29
  args = args || {};
30
- if (!opts) {
31
- opts = {};
32
- }
33
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
34
31
  return pulumi.runtime.invoke("fastly:index/getTlsActivation:getTlsActivation", {
35
32
  "certificateId": args.certificateId,
36
33
  "configurationId": args.configurationId,
@@ -39,8 +36,28 @@ function getTlsActivation(args, opts) {
39
36
  }, opts);
40
37
  }
41
38
  exports.getTlsActivation = getTlsActivation;
39
+ /**
40
+ * Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.
41
+ *
42
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
43
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
44
+ * with any of the others.
45
+ *
46
+ * > **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.
47
+ *
48
+ * ## Example Usage
49
+ *
50
+ * ```typescript
51
+ * import * as pulumi from "@pulumi/pulumi";
52
+ * import * as fastly from "@pulumi/fastly";
53
+ *
54
+ * const example = fastly.getTlsActivation({
55
+ * domain: "example.com",
56
+ * });
57
+ * ```
58
+ */
42
59
  function getTlsActivationOutput(args, opts) {
43
- return pulumi.output(args).apply(a => getTlsActivation(a, opts));
60
+ return pulumi.output(args).apply((a) => getTlsActivation(a, opts));
44
61
  }
45
62
  exports.getTlsActivationOutput = getTlsActivationOutput;
46
63
  //# sourceMappingURL=getTlsActivation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsActivation.js","sourceRoot":"","sources":["../getTlsActivation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,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E,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4CAUC;AAiDD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,sBAAsB,CAAC,IAAiC,EAAE,IAA2B;IACjG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
@@ -29,6 +29,9 @@ export interface GetTlsActivationIdsResult {
29
29
  */
30
30
  readonly ids: string[];
31
31
  }
32
+ /**
33
+ * Use this data source to get the list of TLS Activation identifiers in Fastly.
34
+ */
32
35
  export declare function getTlsActivationIdsOutput(args?: GetTlsActivationIdsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsActivationIdsResult>;
33
36
  /**
34
37
  * A collection of arguments for invoking getTlsActivationIds.
@@ -10,17 +10,17 @@ const utilities = require("./utilities");
10
10
  */
11
11
  function getTlsActivationIds(args, opts) {
12
12
  args = args || {};
13
- if (!opts) {
14
- opts = {};
15
- }
16
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
17
14
  return pulumi.runtime.invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", {
18
15
  "certificateId": args.certificateId,
19
16
  }, opts);
20
17
  }
21
18
  exports.getTlsActivationIds = getTlsActivationIds;
19
+ /**
20
+ * Use this data source to get the list of TLS Activation identifiers in Fastly.
21
+ */
22
22
  function getTlsActivationIdsOutput(args, opts) {
23
- return pulumi.output(args).apply(a => getTlsActivationIds(a, opts));
23
+ return pulumi.output(args).apply((a) => getTlsActivationIds(a, opts));
24
24
  }
25
25
  exports.getTlsActivationIdsOutput = getTlsActivationIdsOutput;
26
26
  //# sourceMappingURL=getTlsActivationIds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsActivationIds.js","sourceRoot":"","sources":["../getTlsActivationIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kDAUC;AA8BD,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"getTlsActivationIds.js","sourceRoot":"","sources":["../getTlsActivationIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AA6BD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
@@ -14,9 +14,9 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as fastly from "@pulumi/fastly";
16
16
  *
17
- * const example = pulumi.output(fastly.getTlsCertificate({
17
+ * const example = fastly.getTlsCertificate({
18
18
  * name: "example.com",
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  export declare function getTlsCertificate(args?: GetTlsCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetTlsCertificateResult>;
@@ -90,6 +90,26 @@ export interface GetTlsCertificateResult {
90
90
  */
91
91
  readonly updatedAt: string;
92
92
  }
93
+ /**
94
+ * Use this data source to get information of a TLS certificate for use with other resources.
95
+ *
96
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
97
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
98
+ * with any of the others.
99
+ *
100
+ * > **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.
101
+ *
102
+ * ## Example Usage
103
+ *
104
+ * ```typescript
105
+ * import * as pulumi from "@pulumi/pulumi";
106
+ * import * as fastly from "@pulumi/fastly";
107
+ *
108
+ * const example = fastly.getTlsCertificate({
109
+ * name: "example.com",
110
+ * });
111
+ * ```
112
+ */
93
113
  export declare function getTlsCertificateOutput(args?: GetTlsCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsCertificateResult>;
94
114
  /**
95
115
  * A collection of arguments for invoking getTlsCertificate.
@@ -20,17 +20,14 @@ const utilities = require("./utilities");
20
20
  * import * as pulumi from "@pulumi/pulumi";
21
21
  * import * as fastly from "@pulumi/fastly";
22
22
  *
23
- * const example = pulumi.output(fastly.getTlsCertificate({
23
+ * const example = fastly.getTlsCertificate({
24
24
  * name: "example.com",
25
- * }));
25
+ * });
26
26
  * ```
27
27
  */
28
28
  function getTlsCertificate(args, opts) {
29
29
  args = args || {};
30
- if (!opts) {
31
- opts = {};
32
- }
33
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
34
31
  return pulumi.runtime.invoke("fastly:index/getTlsCertificate:getTlsCertificate", {
35
32
  "domains": args.domains,
36
33
  "id": args.id,
@@ -40,8 +37,28 @@ function getTlsCertificate(args, opts) {
40
37
  }, opts);
41
38
  }
42
39
  exports.getTlsCertificate = getTlsCertificate;
40
+ /**
41
+ * Use this data source to get information of a TLS certificate for use with other resources.
42
+ *
43
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
44
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
45
+ * with any of the others.
46
+ *
47
+ * > **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.
48
+ *
49
+ * ## Example Usage
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as fastly from "@pulumi/fastly";
54
+ *
55
+ * const example = fastly.getTlsCertificate({
56
+ * name: "example.com",
57
+ * });
58
+ * ```
59
+ */
43
60
  function getTlsCertificateOutput(args, opts) {
44
- return pulumi.output(args).apply(a => getTlsCertificate(a, opts));
61
+ return pulumi.output(args).apply((a) => getTlsCertificate(a, opts));
45
62
  }
46
63
  exports.getTlsCertificateOutput = getTlsCertificateOutput;
47
64
  //# sourceMappingURL=getTlsCertificate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsCertificate.js","sourceRoot":"","sources":["../getTlsCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAi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AAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8CAWC;AAyED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as fastly from "@pulumi/fastly";
10
10
  *
11
11
  * const exampleTlsCertificateIds = fastly.getTlsCertificateIds({});
12
- * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {certificateId: exampleTlsCertificateIds.then(exampleTlsCertificateIds => exampleTlsCertificateIds.ids?[0])});
12
+ * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {certificateId: exampleTlsCertificateIds.then(exampleTlsCertificateIds => exampleTlsCertificateIds.ids?.[0])});
13
13
  * // ...
14
14
  * ```
15
15
  */
@@ -15,15 +15,12 @@ const utilities = require("./utilities");
15
15
  * import * as fastly from "@pulumi/fastly";
16
16
  *
17
17
  * const exampleTlsCertificateIds = fastly.getTlsCertificateIds({});
18
- * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {certificateId: exampleTlsCertificateIds.then(exampleTlsCertificateIds => exampleTlsCertificateIds.ids?[0])});
18
+ * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {certificateId: exampleTlsCertificateIds.then(exampleTlsCertificateIds => exampleTlsCertificateIds.ids?.[0])});
19
19
  * // ...
20
20
  * ```
21
21
  */
22
22
  function getTlsCertificateIds(opts) {
23
- if (!opts) {
24
- opts = {};
25
- }
26
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
24
  return pulumi.runtime.invoke("fastly:index/getTlsCertificateIds:getTlsCertificateIds", {}, opts);
28
25
  }
29
26
  exports.getTlsCertificateIds = getTlsCertificateIds;
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsCertificateIds.js","sourceRoot":"","sources":["../getTlsCertificateIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA2B;IAC5D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE,EACtF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC"}
1
+ {"version":3,"file":"getTlsCertificateIds.js","sourceRoot":"","sources":["../getTlsCertificateIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA2B;IAE5D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE,EACtF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC"}
@@ -93,6 +93,28 @@ export interface GetTlsConfigurationResult {
93
93
  */
94
94
  readonly updatedAt: string;
95
95
  }
96
+ /**
97
+ * Use this data source to get the ID of a TLS configuration for use with other resources.
98
+ *
99
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
100
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
101
+ * with any of the others.
102
+ *
103
+ * > **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.
104
+ *
105
+ * ## Example Usage
106
+ *
107
+ * ```typescript
108
+ * import * as pulumi from "@pulumi/pulumi";
109
+ * import * as fastly from "@pulumi/fastly";
110
+ *
111
+ * const exampleTlsConfiguration = fastly.getTlsConfiguration({
112
+ * "default": true,
113
+ * });
114
+ * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {configurationId: exampleTlsConfiguration.then(exampleTlsConfiguration => exampleTlsConfiguration.id)});
115
+ * // ...
116
+ * ```
117
+ */
96
118
  export declare function getTlsConfigurationOutput(args?: GetTlsConfigurationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsConfigurationResult>;
97
119
  /**
98
120
  * A collection of arguments for invoking getTlsConfiguration.
@@ -29,10 +29,7 @@ const utilities = require("./utilities");
29
29
  */
30
30
  function getTlsConfiguration(args, opts) {
31
31
  args = args || {};
32
- if (!opts) {
33
- opts = {};
34
- }
35
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
32
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
36
33
  return pulumi.runtime.invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", {
37
34
  "default": args.default,
38
35
  "httpProtocols": args.httpProtocols,
@@ -43,8 +40,30 @@ function getTlsConfiguration(args, opts) {
43
40
  }, opts);
44
41
  }
45
42
  exports.getTlsConfiguration = getTlsConfiguration;
43
+ /**
44
+ * Use this data source to get the ID of a TLS configuration for use with other resources.
45
+ *
46
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
47
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
48
+ * with any of the others.
49
+ *
50
+ * > **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.
51
+ *
52
+ * ## Example Usage
53
+ *
54
+ * ```typescript
55
+ * import * as pulumi from "@pulumi/pulumi";
56
+ * import * as fastly from "@pulumi/fastly";
57
+ *
58
+ * const exampleTlsConfiguration = fastly.getTlsConfiguration({
59
+ * "default": true,
60
+ * });
61
+ * const exampleTlsActivation = new fastly.TlsActivation("exampleTlsActivation", {configurationId: exampleTlsConfiguration.then(exampleTlsConfiguration => exampleTlsConfiguration.id)});
62
+ * // ...
63
+ * ```
64
+ */
46
65
  function getTlsConfigurationOutput(args, opts) {
47
- return pulumi.output(args).apply(a => getTlsConfiguration(a, opts));
66
+ return pulumi.output(args).apply((a) => getTlsConfiguration(a, opts));
48
67
  }
49
68
  exports.getTlsConfigurationOutput = getTlsConfigurationOutput;
50
69
  //# sourceMappingURL=getTlsConfiguration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsConfiguration.js","sourceRoot":"","sources":["../getTlsConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,eAAe,EAAE,IAAI,C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M,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
@@ -20,10 +20,7 @@ const utilities = require("./utilities");
20
20
  * ```
21
21
  */
22
22
  function getTlsConfigurationIds(opts) {
23
- if (!opts) {
24
- opts = {};
25
- }
26
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
24
  return pulumi.runtime.invoke("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", {}, opts);
28
25
  }
29
26
  exports.getTlsConfigurationIds = getTlsConfigurationIds;
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsConfigurationIds.js","sourceRoot":"","sources":["../getTlsConfigurationIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,sBAAsB,CAAC,IAA2B;IAC9D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE,EAC1F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wDAQC"}
1
+ {"version":3,"file":"getTlsConfigurationIds.js","sourceRoot":"","sources":["../getTlsConfigurationIds.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,sBAAsB,CAAC,IAA2B;IAE9D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE,EAC1F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wDAKC"}
package/getTlsDomain.d.ts CHANGED
@@ -8,9 +8,9 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as fastly from "@pulumi/fastly";
10
10
  *
11
- * const domain = pulumi.output(fastly.getTlsDomain({
11
+ * const domain = fastly.getTlsDomain({
12
12
  * domain: "example.com",
13
- * }));
13
+ * });
14
14
  * ```
15
15
  */
16
16
  export declare function getTlsDomain(args: GetTlsDomainArgs, opts?: pulumi.InvokeOptions): Promise<GetTlsDomainResult>;
@@ -48,6 +48,20 @@ export interface GetTlsDomainResult {
48
48
  */
49
49
  readonly tlsSubscriptionIds: string[];
50
50
  }
51
+ /**
52
+ * Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain.
53
+ *
54
+ * ## Example Usage
55
+ *
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as fastly from "@pulumi/fastly";
59
+ *
60
+ * const domain = fastly.getTlsDomain({
61
+ * domain: "example.com",
62
+ * });
63
+ * ```
64
+ */
51
65
  export declare function getTlsDomainOutput(args: GetTlsDomainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsDomainResult>;
52
66
  /**
53
67
  * A collection of arguments for invoking getTlsDomain.
package/getTlsDomain.js CHANGED
@@ -14,23 +14,34 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as fastly from "@pulumi/fastly";
16
16
  *
17
- * const domain = pulumi.output(fastly.getTlsDomain({
17
+ * const domain = fastly.getTlsDomain({
18
18
  * domain: "example.com",
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  function getTlsDomain(args, opts) {
23
- if (!opts) {
24
- opts = {};
25
- }
26
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
24
  return pulumi.runtime.invoke("fastly:index/getTlsDomain:getTlsDomain", {
28
25
  "domain": args.domain,
29
26
  }, opts);
30
27
  }
31
28
  exports.getTlsDomain = getTlsDomain;
29
+ /**
30
+ * Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain.
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as fastly from "@pulumi/fastly";
37
+ *
38
+ * const domain = fastly.getTlsDomain({
39
+ * domain: "example.com",
40
+ * });
41
+ * ```
42
+ */
32
43
  function getTlsDomainOutput(args, opts) {
33
- return pulumi.output(args).apply(a => getTlsDomain(a, opts));
44
+ return pulumi.output(args).apply((a) => getTlsDomain(a, opts));
34
45
  }
35
46
  exports.getTlsDomainOutput = getTlsDomainOutput;
36
47
  //# sourceMappingURL=getTlsDomain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsDomain.js","sourceRoot":"","sources":["../getTlsDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oCASC;AAsCD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"getTlsDomain.js","sourceRoot":"","sources":["../getTlsDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AAqCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -14,9 +14,9 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as fastly from "@pulumi/fastly";
16
16
  *
17
- * const example = pulumi.output(fastly.getTlsPlatformCertificate({
17
+ * const example = fastly.getTlsPlatformCertificate({
18
18
  * domains: ["example.com"],
19
- * }));
19
+ * });
20
20
  * ```
21
21
  */
22
22
  export declare function getTlsPlatformCertificate(args?: GetTlsPlatformCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetTlsPlatformCertificateResult>;
@@ -70,6 +70,26 @@ export interface GetTlsPlatformCertificateResult {
70
70
  */
71
71
  readonly updatedAt: string;
72
72
  }
73
+ /**
74
+ * Use this data source to get information of a Platform TLS certificate for use with other resources.
75
+ *
76
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
77
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
78
+ * with any of the others.
79
+ *
80
+ * > **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.
81
+ *
82
+ * ## Example Usage
83
+ *
84
+ * ```typescript
85
+ * import * as pulumi from "@pulumi/pulumi";
86
+ * import * as fastly from "@pulumi/fastly";
87
+ *
88
+ * const example = fastly.getTlsPlatformCertificate({
89
+ * domains: ["example.com"],
90
+ * });
91
+ * ```
92
+ */
73
93
  export declare function getTlsPlatformCertificateOutput(args?: GetTlsPlatformCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTlsPlatformCertificateResult>;
74
94
  /**
75
95
  * A collection of arguments for invoking getTlsPlatformCertificate.
@@ -20,25 +20,42 @@ const utilities = require("./utilities");
20
20
  * import * as pulumi from "@pulumi/pulumi";
21
21
  * import * as fastly from "@pulumi/fastly";
22
22
  *
23
- * const example = pulumi.output(fastly.getTlsPlatformCertificate({
23
+ * const example = fastly.getTlsPlatformCertificate({
24
24
  * domains: ["example.com"],
25
- * }));
25
+ * });
26
26
  * ```
27
27
  */
28
28
  function getTlsPlatformCertificate(args, opts) {
29
29
  args = args || {};
30
- if (!opts) {
31
- opts = {};
32
- }
33
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
34
31
  return pulumi.runtime.invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", {
35
32
  "domains": args.domains,
36
33
  "id": args.id,
37
34
  }, opts);
38
35
  }
39
36
  exports.getTlsPlatformCertificate = getTlsPlatformCertificate;
37
+ /**
38
+ * Use this data source to get information of a Platform TLS certificate for use with other resources.
39
+ *
40
+ * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination
41
+ * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination
42
+ * with any of the others.
43
+ *
44
+ * > **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.
45
+ *
46
+ * ## Example Usage
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as fastly from "@pulumi/fastly";
51
+ *
52
+ * const example = fastly.getTlsPlatformCertificate({
53
+ * domains: ["example.com"],
54
+ * });
55
+ * ```
56
+ */
40
57
  function getTlsPlatformCertificateOutput(args, opts) {
41
- return pulumi.output(args).apply(a => getTlsPlatformCertificate(a, opts));
58
+ return pulumi.output(args).apply((a) => getTlsPlatformCertificate(a, opts));
42
59
  }
43
60
  exports.getTlsPlatformCertificateOutput = getTlsPlatformCertificateOutput;
44
61
  //# sourceMappingURL=getTlsPlatformCertificate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTlsPlatformCertificate.js","sourceRoot":"","sources":["../getTlsPlatformCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAA2B;IACvG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kEAAkE,EAAE;QAC7F,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;A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