@pulumi/cloudflare 4.4.0-alpha.1643837452 → 4.4.0-alpha.1645049843
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.
- package/certificatePack.d.ts +8 -1
- package/certificatePack.js +4 -0
- package/certificatePack.js.map +1 -1
- package/devicePostureIntegration.d.ts +142 -0
- package/devicePostureIntegration.js +101 -0
- package/devicePostureIntegration.js.map +1 -0
- package/fallbackDomain.d.ts +72 -0
- package/fallbackDomain.js +68 -0
- package/fallbackDomain.js.map +1 -0
- package/getDevices.d.ts +50 -0
- package/getDevices.js +36 -0
- package/getDevices.js.map +1 -0
- package/getZones.d.ts +13 -0
- package/getZones.js +13 -0
- package/getZones.js.map +1 -1
- package/greTunnel.d.ts +200 -0
- package/greTunnel.js +113 -0
- package/greTunnel.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +26 -0
- package/index.js.map +1 -1
- package/ipsecTunnel.d.ts +135 -0
- package/ipsecTunnel.js +98 -0
- package/ipsecTunnel.js.map +1 -0
- package/logpushJob.d.ts +3 -3
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/ruleset.d.ts +2 -2
- package/ruleset.js +0 -3
- package/ruleset.js.map +1 -1
- package/teamsAccount.d.ts +72 -3
- package/teamsAccount.js +38 -0
- package/teamsAccount.js.map +1 -1
- package/teamsRule.d.ts +8 -12
- package/teamsRule.js +5 -9
- package/teamsRule.js.map +1 -1
- package/types/input.d.ts +185 -25
- package/types/output.d.ts +223 -9
- package/zoneCacheVariants.d.ts +72 -0
- package/zoneCacheVariants.js +74 -0
- package/zoneCacheVariants.js.map +1 -0
package/certificatePack.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
2
3
|
/**
|
|
3
4
|
* ## Import
|
|
4
5
|
*
|
|
@@ -29,7 +30,7 @@ export declare class CertificatePack extends pulumi.CustomResource {
|
|
|
29
30
|
* authority to issue the certificate pack. Allowed values: `"digicert"`,
|
|
30
31
|
* `"letsEncrypt"`.
|
|
31
32
|
*/
|
|
32
|
-
readonly certificateAuthority: pulumi.Output<string
|
|
33
|
+
readonly certificateAuthority: pulumi.Output<string>;
|
|
33
34
|
/**
|
|
34
35
|
* Whether or not to include
|
|
35
36
|
* Cloudflare branding. This will add `sni.cloudflaressl.com` as the Common Name
|
|
@@ -47,11 +48,13 @@ export declare class CertificatePack extends pulumi.CustomResource {
|
|
|
47
48
|
* Allowed values: `"custom"`, `"dedicatedCustom"`, `"advanced"`.
|
|
48
49
|
*/
|
|
49
50
|
readonly type: pulumi.Output<string>;
|
|
51
|
+
readonly validationErrors: pulumi.Output<outputs.CertificatePackValidationError[]>;
|
|
50
52
|
/**
|
|
51
53
|
* Which validation method to
|
|
52
54
|
* use in order to prove domain ownership. Allowed values: `"txt"`, `"http"`, `"email"`.
|
|
53
55
|
*/
|
|
54
56
|
readonly validationMethod: pulumi.Output<string | undefined>;
|
|
57
|
+
readonly validationRecords: pulumi.Output<outputs.CertificatePackValidationRecord[]>;
|
|
55
58
|
/**
|
|
56
59
|
* How long the certificate is valid
|
|
57
60
|
* for. Note: If using Let's Encrypt, this value can only be 90 days.
|
|
@@ -98,11 +101,13 @@ export interface CertificatePackState {
|
|
|
98
101
|
* Allowed values: `"custom"`, `"dedicatedCustom"`, `"advanced"`.
|
|
99
102
|
*/
|
|
100
103
|
type?: pulumi.Input<string>;
|
|
104
|
+
validationErrors?: pulumi.Input<pulumi.Input<inputs.CertificatePackValidationError>[]>;
|
|
101
105
|
/**
|
|
102
106
|
* Which validation method to
|
|
103
107
|
* use in order to prove domain ownership. Allowed values: `"txt"`, `"http"`, `"email"`.
|
|
104
108
|
*/
|
|
105
109
|
validationMethod?: pulumi.Input<string>;
|
|
110
|
+
validationRecords?: pulumi.Input<pulumi.Input<inputs.CertificatePackValidationRecord>[]>;
|
|
106
111
|
/**
|
|
107
112
|
* How long the certificate is valid
|
|
108
113
|
* for. Note: If using Let's Encrypt, this value can only be 90 days.
|
|
@@ -141,11 +146,13 @@ export interface CertificatePackArgs {
|
|
|
141
146
|
* Allowed values: `"custom"`, `"dedicatedCustom"`, `"advanced"`.
|
|
142
147
|
*/
|
|
143
148
|
type: pulumi.Input<string>;
|
|
149
|
+
validationErrors?: pulumi.Input<pulumi.Input<inputs.CertificatePackValidationError>[]>;
|
|
144
150
|
/**
|
|
145
151
|
* Which validation method to
|
|
146
152
|
* use in order to prove domain ownership. Allowed values: `"txt"`, `"http"`, `"email"`.
|
|
147
153
|
*/
|
|
148
154
|
validationMethod?: pulumi.Input<string>;
|
|
155
|
+
validationRecords?: pulumi.Input<pulumi.Input<inputs.CertificatePackValidationRecord>[]>;
|
|
149
156
|
/**
|
|
150
157
|
* How long the certificate is valid
|
|
151
158
|
* for. Note: If using Let's Encrypt, this value can only be 90 days.
|
package/certificatePack.js
CHANGED
|
@@ -24,7 +24,9 @@ class CertificatePack extends pulumi.CustomResource {
|
|
|
24
24
|
resourceInputs["cloudflareBranding"] = state ? state.cloudflareBranding : undefined;
|
|
25
25
|
resourceInputs["hosts"] = state ? state.hosts : undefined;
|
|
26
26
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
27
|
+
resourceInputs["validationErrors"] = state ? state.validationErrors : undefined;
|
|
27
28
|
resourceInputs["validationMethod"] = state ? state.validationMethod : undefined;
|
|
29
|
+
resourceInputs["validationRecords"] = state ? state.validationRecords : undefined;
|
|
28
30
|
resourceInputs["validityDays"] = state ? state.validityDays : undefined;
|
|
29
31
|
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
30
32
|
}
|
|
@@ -43,7 +45,9 @@ class CertificatePack extends pulumi.CustomResource {
|
|
|
43
45
|
resourceInputs["cloudflareBranding"] = args ? args.cloudflareBranding : undefined;
|
|
44
46
|
resourceInputs["hosts"] = args ? args.hosts : undefined;
|
|
45
47
|
resourceInputs["type"] = args ? args.type : undefined;
|
|
48
|
+
resourceInputs["validationErrors"] = args ? args.validationErrors : undefined;
|
|
46
49
|
resourceInputs["validationMethod"] = args ? args.validationMethod : undefined;
|
|
50
|
+
resourceInputs["validationRecords"] = args ? args.validationRecords : undefined;
|
|
47
51
|
resourceInputs["validityDays"] = args ? args.validityDays : undefined;
|
|
48
52
|
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
49
53
|
}
|
package/certificatePack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificatePack.js","sourceRoot":"","sources":["../certificatePack.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"certificatePack.js","sourceRoot":"","sources":["../certificatePack.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA6EtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,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AAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAmHC;AArGG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides a Cloudflare Device Posture Integration resource. Device posture integrations configure third-party data providers for device posture rules.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
11
|
+
*
|
|
12
|
+
* const thirdPartyDevicesPostureIntegration = new cloudflare.DevicePostureIntegration("third_party_devices_posture_integration", {
|
|
13
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
14
|
+
* configs: [{
|
|
15
|
+
* apiUrl: "https://example.com/api",
|
|
16
|
+
* authUrl: "https://example.com/connect/token",
|
|
17
|
+
* clientId: "client-id",
|
|
18
|
+
* clientSecret: "client-secret",
|
|
19
|
+
* }],
|
|
20
|
+
* interval: "24h",
|
|
21
|
+
* name: "Device posture integration",
|
|
22
|
+
* type: "workspace_one",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Device posture integrations can be imported using a composite ID formed of account ID and device posture integration ID.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import cloudflare:index/devicePostureIntegration:DevicePostureIntegration corporate_devices cb029e245cfdd66dc8d2e570d5dd3322/0ade592a-62d6-46ab-bac8-01f47c7fa792
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class DevicePostureIntegration extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing DevicePostureIntegration resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DevicePostureIntegrationState, opts?: pulumi.CustomResourceOptions): DevicePostureIntegration;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of DevicePostureIntegration. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is DevicePostureIntegration;
|
|
50
|
+
/**
|
|
51
|
+
* The account to which the device posture integration should be added.
|
|
52
|
+
*/
|
|
53
|
+
readonly accountId: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The device posture integration's connection authorization parameters.
|
|
56
|
+
*/
|
|
57
|
+
readonly configs: pulumi.Output<outputs.DevicePostureIntegrationConfig[] | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* ID of the device posture integration.
|
|
60
|
+
*/
|
|
61
|
+
readonly id: pulumi.Output<string>;
|
|
62
|
+
readonly identifier: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates the frequency with which to poll the third-party API.
|
|
65
|
+
* Must be in the format `"1h"` or `"30m"`. Valid units are `h` and `m`.
|
|
66
|
+
*/
|
|
67
|
+
readonly interval: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Name of the device posture integration.
|
|
70
|
+
*/
|
|
71
|
+
readonly name: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The device posture integration type. Valid values are `workspaceOne`.
|
|
74
|
+
*/
|
|
75
|
+
readonly type: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a DevicePostureIntegration resource with the given unique name, arguments, and options.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resource.
|
|
80
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
81
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
82
|
+
*/
|
|
83
|
+
constructor(name: string, args: DevicePostureIntegrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Input properties used for looking up and filtering DevicePostureIntegration resources.
|
|
87
|
+
*/
|
|
88
|
+
export interface DevicePostureIntegrationState {
|
|
89
|
+
/**
|
|
90
|
+
* The account to which the device posture integration should be added.
|
|
91
|
+
*/
|
|
92
|
+
accountId?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The device posture integration's connection authorization parameters.
|
|
95
|
+
*/
|
|
96
|
+
configs?: pulumi.Input<pulumi.Input<inputs.DevicePostureIntegrationConfig>[]>;
|
|
97
|
+
/**
|
|
98
|
+
* ID of the device posture integration.
|
|
99
|
+
*/
|
|
100
|
+
id?: pulumi.Input<string>;
|
|
101
|
+
identifier?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates the frequency with which to poll the third-party API.
|
|
104
|
+
* Must be in the format `"1h"` or `"30m"`. Valid units are `h` and `m`.
|
|
105
|
+
*/
|
|
106
|
+
interval?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Name of the device posture integration.
|
|
109
|
+
*/
|
|
110
|
+
name?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The device posture integration type. Valid values are `workspaceOne`.
|
|
113
|
+
*/
|
|
114
|
+
type?: pulumi.Input<string>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The set of arguments for constructing a DevicePostureIntegration resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface DevicePostureIntegrationArgs {
|
|
120
|
+
/**
|
|
121
|
+
* The account to which the device posture integration should be added.
|
|
122
|
+
*/
|
|
123
|
+
accountId: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The device posture integration's connection authorization parameters.
|
|
126
|
+
*/
|
|
127
|
+
configs?: pulumi.Input<pulumi.Input<inputs.DevicePostureIntegrationConfig>[]>;
|
|
128
|
+
identifier?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Indicates the frequency with which to poll the third-party API.
|
|
131
|
+
* Must be in the format `"1h"` or `"30m"`. Valid units are `h` and `m`.
|
|
132
|
+
*/
|
|
133
|
+
interval?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Name of the device posture integration.
|
|
136
|
+
*/
|
|
137
|
+
name: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The device posture integration type. Valid values are `workspaceOne`.
|
|
140
|
+
*/
|
|
141
|
+
type: pulumi.Input<string>;
|
|
142
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DevicePostureIntegration = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Cloudflare Device Posture Integration resource. Device posture integrations configure third-party data providers for device posture rules.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* const thirdPartyDevicesPostureIntegration = new cloudflare.DevicePostureIntegration("third_party_devices_posture_integration", {
|
|
18
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
19
|
+
* configs: [{
|
|
20
|
+
* apiUrl: "https://example.com/api",
|
|
21
|
+
* authUrl: "https://example.com/connect/token",
|
|
22
|
+
* clientId: "client-id",
|
|
23
|
+
* clientSecret: "client-secret",
|
|
24
|
+
* }],
|
|
25
|
+
* interval: "24h",
|
|
26
|
+
* name: "Device posture integration",
|
|
27
|
+
* type: "workspace_one",
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* Device posture integrations can be imported using a composite ID formed of account ID and device posture integration ID.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import cloudflare:index/devicePostureIntegration:DevicePostureIntegration corporate_devices cb029e245cfdd66dc8d2e570d5dd3322/0ade592a-62d6-46ab-bac8-01f47c7fa792
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class DevicePostureIntegration extends pulumi.CustomResource {
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
46
|
+
resourceInputs["configs"] = state ? state.configs : undefined;
|
|
47
|
+
resourceInputs["id"] = state ? state.id : undefined;
|
|
48
|
+
resourceInputs["identifier"] = state ? state.identifier : undefined;
|
|
49
|
+
resourceInputs["interval"] = state ? state.interval : undefined;
|
|
50
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
51
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'accountId'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'name'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'type'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
65
|
+
resourceInputs["configs"] = args ? args.configs : undefined;
|
|
66
|
+
resourceInputs["identifier"] = args ? args.identifier : undefined;
|
|
67
|
+
resourceInputs["interval"] = args ? args.interval : undefined;
|
|
68
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
69
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
70
|
+
resourceInputs["id"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
super(DevicePostureIntegration.__pulumiType, name, resourceInputs, opts);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing DevicePostureIntegration resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new DevicePostureIntegration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of DevicePostureIntegration. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === DevicePostureIntegration.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.DevicePostureIntegration = DevicePostureIntegration;
|
|
99
|
+
/** @internal */
|
|
100
|
+
DevicePostureIntegration.__pulumiType = 'cloudflare:index/devicePostureIntegration:DevicePostureIntegration';
|
|
101
|
+
//# sourceMappingURL=devicePostureIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devicePostureIntegration.js","sourceRoot":"","sources":["../devicePostureIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IA+D/D,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,YAAY,C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|
|
3
|
+
/**
|
|
4
|
+
* Provides a Cloudflare Fallback Domain resource. Fallback domains are used to ignore DNS requests to a given list of domains. These DNS requests will be passed back to other DNS servers configured on existing network interfaces on the device.
|
|
5
|
+
*
|
|
6
|
+
* ## Import
|
|
7
|
+
*
|
|
8
|
+
* Fallback Domains can be imported using the account identifer.
|
|
9
|
+
*
|
|
10
|
+
* ```sh
|
|
11
|
+
* $ pulumi import cloudflare:index/fallbackDomain:FallbackDomain example 1d5fdc9e88c8a8c4518b068cd94331fe
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class FallbackDomain extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing FallbackDomain resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FallbackDomainState, opts?: pulumi.CustomResourceOptions): FallbackDomain;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of FallbackDomain. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is FallbackDomain;
|
|
30
|
+
/**
|
|
31
|
+
* The account to which the device posture rule should be added.
|
|
32
|
+
*/
|
|
33
|
+
readonly accountId: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The value of the domain attributes (refer to the nested schema).
|
|
36
|
+
*/
|
|
37
|
+
readonly domains: pulumi.Output<outputs.FallbackDomainDomain[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a FallbackDomain resource with the given unique name, arguments, and options.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resource.
|
|
42
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
43
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
44
|
+
*/
|
|
45
|
+
constructor(name: string, args: FallbackDomainArgs, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering FallbackDomain resources.
|
|
49
|
+
*/
|
|
50
|
+
export interface FallbackDomainState {
|
|
51
|
+
/**
|
|
52
|
+
* The account to which the device posture rule should be added.
|
|
53
|
+
*/
|
|
54
|
+
accountId?: pulumi.Input<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The value of the domain attributes (refer to the nested schema).
|
|
57
|
+
*/
|
|
58
|
+
domains?: pulumi.Input<pulumi.Input<inputs.FallbackDomainDomain>[]>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The set of arguments for constructing a FallbackDomain resource.
|
|
62
|
+
*/
|
|
63
|
+
export interface FallbackDomainArgs {
|
|
64
|
+
/**
|
|
65
|
+
* The account to which the device posture rule should be added.
|
|
66
|
+
*/
|
|
67
|
+
accountId: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The value of the domain attributes (refer to the nested schema).
|
|
70
|
+
*/
|
|
71
|
+
domains: pulumi.Input<pulumi.Input<inputs.FallbackDomainDomain>[]>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.FallbackDomain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Cloudflare Fallback Domain resource. Fallback domains are used to ignore DNS requests to a given list of domains. These DNS requests will be passed back to other DNS servers configured on existing network interfaces on the device.
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* Fallback Domains can be imported using the account identifer.
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import cloudflare:index/fallbackDomain:FallbackDomain example 1d5fdc9e88c8a8c4518b068cd94331fe
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
class FallbackDomain extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
26
|
+
resourceInputs["domains"] = state ? state.domains : undefined;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const args = argsOrState;
|
|
30
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
31
|
+
throw new Error("Missing required property 'accountId'");
|
|
32
|
+
}
|
|
33
|
+
if ((!args || args.domains === undefined) && !opts.urn) {
|
|
34
|
+
throw new Error("Missing required property 'domains'");
|
|
35
|
+
}
|
|
36
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
37
|
+
resourceInputs["domains"] = args ? args.domains : undefined;
|
|
38
|
+
}
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
super(FallbackDomain.__pulumiType, name, resourceInputs, opts);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing FallbackDomain resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new FallbackDomain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of FallbackDomain. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === FallbackDomain.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.FallbackDomain = FallbackDomain;
|
|
66
|
+
/** @internal */
|
|
67
|
+
FallbackDomain.__pulumiType = 'cloudflare:index/fallbackDomain:FallbackDomain';
|
|
68
|
+
//# sourceMappingURL=fallbackDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallbackDomain.js","sourceRoot":"","sources":["../fallbackDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA6CrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;S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;AApDG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
|
package/getDevices.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to lookup [Devices](https://api.cloudflare.com/#devices-list-devices).
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
11
|
+
*
|
|
12
|
+
* const devices = pulumi.output(cloudflare.getDevices({
|
|
13
|
+
* accountId: "c68973221045fe805dfb9aa520153148",
|
|
14
|
+
* }));
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getDevices(args: GetDevicesArgs, opts?: pulumi.InvokeOptions): Promise<GetDevicesResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getDevices.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDevicesArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The account for which to list the devices.
|
|
24
|
+
*/
|
|
25
|
+
accountId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getDevices.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetDevicesResult {
|
|
31
|
+
readonly accountId: string;
|
|
32
|
+
/**
|
|
33
|
+
* A list of device object. See below for nested attributes.
|
|
34
|
+
*/
|
|
35
|
+
readonly devices: outputs.GetDevicesDevice[];
|
|
36
|
+
/**
|
|
37
|
+
* The provider-assigned unique ID for this managed resource.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function getDevicesOutput(args: GetDevicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDevicesResult>;
|
|
42
|
+
/**
|
|
43
|
+
* A collection of arguments for invoking getDevices.
|
|
44
|
+
*/
|
|
45
|
+
export interface GetDevicesOutputArgs {
|
|
46
|
+
/**
|
|
47
|
+
* The account for which to list the devices.
|
|
48
|
+
*/
|
|
49
|
+
accountId: pulumi.Input<string>;
|
|
50
|
+
}
|
package/getDevices.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getDevicesOutput = exports.getDevices = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to lookup [Devices](https://api.cloudflare.com/#devices-list-devices).
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* const devices = pulumi.output(cloudflare.getDevices({
|
|
18
|
+
* accountId: "c68973221045fe805dfb9aa520153148",
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getDevices(args, opts) {
|
|
23
|
+
if (!opts) {
|
|
24
|
+
opts = {};
|
|
25
|
+
}
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
27
|
+
return pulumi.runtime.invoke("cloudflare:index/getDevices:getDevices", {
|
|
28
|
+
"accountId": args.accountId,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.getDevices = getDevices;
|
|
32
|
+
function getDevicesOutput(args, opts) {
|
|
33
|
+
return pulumi.output(args).apply(a => getDevices(a, opts));
|
|
34
|
+
}
|
|
35
|
+
exports.getDevicesOutput = getDevicesOutput;
|
|
36
|
+
//# sourceMappingURL=getDevices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,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,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gCASC;AA2BD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|
package/getZones.d.ts
CHANGED
|
@@ -56,6 +56,19 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
56
56
|
* },
|
|
57
57
|
* }));
|
|
58
58
|
* ```
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
63
|
+
*
|
|
64
|
+
* // Look for all active zones in an account
|
|
65
|
+
* const example = pulumi.output(cloudflare.getZones({
|
|
66
|
+
* filter: {
|
|
67
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
68
|
+
* status: "active",
|
|
69
|
+
* },
|
|
70
|
+
* }));
|
|
71
|
+
* ```
|
|
59
72
|
*/
|
|
60
73
|
export declare function getZones(args: GetZonesArgs, opts?: pulumi.InvokeOptions): Promise<GetZonesResult>;
|
|
61
74
|
/**
|
package/getZones.js
CHANGED
|
@@ -61,6 +61,19 @@ const utilities = require("./utilities");
|
|
|
61
61
|
* },
|
|
62
62
|
* }));
|
|
63
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
68
|
+
*
|
|
69
|
+
* // Look for all active zones in an account
|
|
70
|
+
* const example = pulumi.output(cloudflare.getZones({
|
|
71
|
+
* filter: {
|
|
72
|
+
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
73
|
+
* status: "active",
|
|
74
|
+
* },
|
|
75
|
+
* }));
|
|
76
|
+
* ```
|
|
64
77
|
*/
|
|
65
78
|
function getZones(args, opts) {
|
|
66
79
|
if (!opts) {
|
package/getZones.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getZones.js","sourceRoot":"","sources":["../getZones.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getZones.js","sourceRoot":"","sources":["../getZones.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,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,oCAAoC,EAAE;QAC/D,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4BASC;AA4BD,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,wCAEC"}
|