@pulumi/cloudflare 5.14.0-alpha.1698476322 → 5.14.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.
- package/apiShieldOperationSchemaValidationSettings.d.ts +94 -0
- package/apiShieldOperationSchemaValidationSettings.js +81 -0
- package/apiShieldOperationSchemaValidationSettings.js.map +1 -0
- package/apiShieldSchemaValidationSettings.d.ts +88 -0
- package/apiShieldSchemaValidationSettings.js +75 -0
- package/apiShieldSchemaValidationSettings.js.map +1 -0
- package/getDevicePostureRules.d.ts +83 -0
- package/getDevicePostureRules.js +53 -0
- package/getDevicePostureRules.js.map +1 -0
- package/getTunnel.d.ts +88 -0
- package/getTunnel.js +50 -0
- package/getTunnel.js.map +1 -0
- package/getTunnelVirtualNetwork.d.ts +84 -0
- package/getTunnelVirtualNetwork.js +50 -0
- package/getTunnelVirtualNetwork.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.js +23 -3
- package/index.js.map +1 -1
- package/loadBalancer.d.ts +6 -6
- package/logpushJob.d.ts +3 -3
- package/observatoryScheduledTest.d.ts +3 -3
- package/package.json +1 -1
- package/teamsAccount.d.ts +30 -3
- package/teamsAccount.js +7 -0
- package/teamsAccount.js.map +1 -1
- package/types/input.d.ts +16 -4
- package/types/output.d.ts +24 -4
- package/workerScript.d.ts +3 -0
- package/workerScript.js +2 -0
- package/workerScript.js.map +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage operation-level settings in API Shield Schema Validation 2.0.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
+
*
|
|
11
|
+
* const exampleApiShieldOperation = new cloudflare.ApiShieldOperation("exampleApiShieldOperation", {
|
|
12
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
13
|
+
* method: "GET",
|
|
14
|
+
* host: "api.example.com",
|
|
15
|
+
* endpoint: "/path",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleApiShieldOperationSchemaValidationSettings = new cloudflare.ApiShieldOperationSchemaValidationSettings("exampleApiShieldOperationSchemaValidationSettings", {
|
|
18
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
19
|
+
* operationId: exampleApiShieldOperation.id,
|
|
20
|
+
* mitigationAction: "block",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class ApiShieldOperationSchemaValidationSettings extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing ApiShieldOperationSchemaValidationSettings resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiShieldOperationSchemaValidationSettingsState, opts?: pulumi.CustomResourceOptions): ApiShieldOperationSchemaValidationSettings;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of ApiShieldOperationSchemaValidationSettings. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is ApiShieldOperationSchemaValidationSettings;
|
|
40
|
+
/**
|
|
41
|
+
* The mitigation action to apply to this operation.
|
|
42
|
+
*/
|
|
43
|
+
readonly mitigationAction: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Operation ID these settings should apply to. **Modifying this attribute will force creation of a new resource.**
|
|
46
|
+
*/
|
|
47
|
+
readonly operationId: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
50
|
+
*/
|
|
51
|
+
readonly zoneId: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a ApiShieldOperationSchemaValidationSettings resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args: ApiShieldOperationSchemaValidationSettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Input properties used for looking up and filtering ApiShieldOperationSchemaValidationSettings resources.
|
|
63
|
+
*/
|
|
64
|
+
export interface ApiShieldOperationSchemaValidationSettingsState {
|
|
65
|
+
/**
|
|
66
|
+
* The mitigation action to apply to this operation.
|
|
67
|
+
*/
|
|
68
|
+
mitigationAction?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Operation ID these settings should apply to. **Modifying this attribute will force creation of a new resource.**
|
|
71
|
+
*/
|
|
72
|
+
operationId?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
75
|
+
*/
|
|
76
|
+
zoneId?: pulumi.Input<string>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The set of arguments for constructing a ApiShieldOperationSchemaValidationSettings resource.
|
|
80
|
+
*/
|
|
81
|
+
export interface ApiShieldOperationSchemaValidationSettingsArgs {
|
|
82
|
+
/**
|
|
83
|
+
* The mitigation action to apply to this operation.
|
|
84
|
+
*/
|
|
85
|
+
mitigationAction?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Operation ID these settings should apply to. **Modifying this attribute will force creation of a new resource.**
|
|
88
|
+
*/
|
|
89
|
+
operationId: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
92
|
+
*/
|
|
93
|
+
zoneId: pulumi.Input<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.ApiShieldOperationSchemaValidationSettings = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage operation-level settings in API Shield Schema Validation 2.0.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* const exampleApiShieldOperation = new cloudflare.ApiShieldOperation("exampleApiShieldOperation", {
|
|
18
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
19
|
+
* method: "GET",
|
|
20
|
+
* host: "api.example.com",
|
|
21
|
+
* endpoint: "/path",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleApiShieldOperationSchemaValidationSettings = new cloudflare.ApiShieldOperationSchemaValidationSettings("exampleApiShieldOperationSchemaValidationSettings", {
|
|
24
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
25
|
+
* operationId: exampleApiShieldOperation.id,
|
|
26
|
+
* mitigationAction: "block",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class ApiShieldOperationSchemaValidationSettings extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing ApiShieldOperationSchemaValidationSettings resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new ApiShieldOperationSchemaValidationSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of ApiShieldOperationSchemaValidationSettings. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === ApiShieldOperationSchemaValidationSettings.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["mitigationAction"] = state ? state.mitigationAction : undefined;
|
|
59
|
+
resourceInputs["operationId"] = state ? state.operationId : undefined;
|
|
60
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.operationId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'operationId'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'zoneId'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["mitigationAction"] = args ? args.mitigationAction : undefined;
|
|
71
|
+
resourceInputs["operationId"] = args ? args.operationId : undefined;
|
|
72
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
super(ApiShieldOperationSchemaValidationSettings.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.ApiShieldOperationSchemaValidationSettings = ApiShieldOperationSchemaValidationSettings;
|
|
79
|
+
/** @internal */
|
|
80
|
+
ApiShieldOperationSchemaValidationSettings.__pulumiType = 'cloudflare:index/apiShieldOperationSchemaValidationSettings:ApiShieldOperationSchemaValidationSettings';
|
|
81
|
+
//# sourceMappingURL=apiShieldOperationSchemaValidationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiShieldOperationSchemaValidationSettings.js","sourceRoot":"","sources":["../apiShieldOperationSchemaValidationSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,0CAA2C,SAAQ,MAAM,CAAC,cAAc;IACjF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuD,EAAE,IAAmC;QACrJ,OAAO,IAAI,0CAA0C,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjG,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,0CAA0C,CAAC,YAAY,CAAC;IAC3F,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA8G,EAAE,IAAmC;QACzK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0E,CAAC;YACzF,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyE,CAAC;YACvF,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0CAA0C,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/F,CAAC;;AAvEL,gGAwEC;AA1DG,gBAAgB;AACO,uDAAY,GAAG,wGAAwG,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource to manage settings in API Shield Schema Validation 2.0.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
+
*
|
|
11
|
+
* const example = new cloudflare.ApiShieldSchemaValidationSettings("example", {
|
|
12
|
+
* validationDefaultMitigationAction: "log",
|
|
13
|
+
* validationOverrideMitigationAction: "none",
|
|
14
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class ApiShieldSchemaValidationSettings extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing ApiShieldSchemaValidationSettings resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiShieldSchemaValidationSettingsState, opts?: pulumi.CustomResourceOptions): ApiShieldSchemaValidationSettings;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of ApiShieldSchemaValidationSettings. This is designed to work even
|
|
31
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
32
|
+
*/
|
|
33
|
+
static isInstance(obj: any): obj is ApiShieldSchemaValidationSettings;
|
|
34
|
+
/**
|
|
35
|
+
* The default mitigation action used when there is no mitigation action defined on the operation.
|
|
36
|
+
*/
|
|
37
|
+
readonly validationDefaultMitigationAction: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* When set, this overrides both zone level and operation level mitigation actions.
|
|
40
|
+
*/
|
|
41
|
+
readonly validationOverrideMitigationAction: pulumi.Output<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
44
|
+
*/
|
|
45
|
+
readonly zoneId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a ApiShieldSchemaValidationSettings resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: ApiShieldSchemaValidationSettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering ApiShieldSchemaValidationSettings resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface ApiShieldSchemaValidationSettingsState {
|
|
59
|
+
/**
|
|
60
|
+
* The default mitigation action used when there is no mitigation action defined on the operation.
|
|
61
|
+
*/
|
|
62
|
+
validationDefaultMitigationAction?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* When set, this overrides both zone level and operation level mitigation actions.
|
|
65
|
+
*/
|
|
66
|
+
validationOverrideMitigationAction?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
69
|
+
*/
|
|
70
|
+
zoneId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a ApiShieldSchemaValidationSettings resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface ApiShieldSchemaValidationSettingsArgs {
|
|
76
|
+
/**
|
|
77
|
+
* The default mitigation action used when there is no mitigation action defined on the operation.
|
|
78
|
+
*/
|
|
79
|
+
validationDefaultMitigationAction: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* When set, this overrides both zone level and operation level mitigation actions.
|
|
82
|
+
*/
|
|
83
|
+
validationOverrideMitigationAction?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
86
|
+
*/
|
|
87
|
+
zoneId: pulumi.Input<string>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.ApiShieldSchemaValidationSettings = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource to manage settings in API Shield Schema Validation 2.0.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* const example = new cloudflare.ApiShieldSchemaValidationSettings("example", {
|
|
18
|
+
* validationDefaultMitigationAction: "log",
|
|
19
|
+
* validationOverrideMitigationAction: "none",
|
|
20
|
+
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class ApiShieldSchemaValidationSettings extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing ApiShieldSchemaValidationSettings resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name, id, state, opts) {
|
|
35
|
+
return new ApiShieldSchemaValidationSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of ApiShieldSchemaValidationSettings. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj) {
|
|
42
|
+
if (obj === undefined || obj === null) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return obj['__pulumiType'] === ApiShieldSchemaValidationSettings.__pulumiType;
|
|
46
|
+
}
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
resourceInputs["validationDefaultMitigationAction"] = state ? state.validationDefaultMitigationAction : undefined;
|
|
53
|
+
resourceInputs["validationOverrideMitigationAction"] = state ? state.validationOverrideMitigationAction : undefined;
|
|
54
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.validationDefaultMitigationAction === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'validationDefaultMitigationAction'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'zoneId'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["validationDefaultMitigationAction"] = args ? args.validationDefaultMitigationAction : undefined;
|
|
65
|
+
resourceInputs["validationOverrideMitigationAction"] = args ? args.validationOverrideMitigationAction : undefined;
|
|
66
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
super(ApiShieldSchemaValidationSettings.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.ApiShieldSchemaValidationSettings = ApiShieldSchemaValidationSettings;
|
|
73
|
+
/** @internal */
|
|
74
|
+
ApiShieldSchemaValidationSettings.__pulumiType = 'cloudflare:index/apiShieldSchemaValidationSettings:ApiShieldSchemaValidationSettings';
|
|
75
|
+
//# sourceMappingURL=apiShieldSchemaValidationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiShieldSchemaValidationSettings.js","sourceRoot":"","sources":["../apiShieldSchemaValidationSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IACxE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8C,EAAE,IAAmC;QAC5I,OAAO,IAAI,iCAAiC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxF,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,iCAAiC,CAAC,YAAY,CAAC;IAClF,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4F,EAAE,IAAmC;QACvJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiE,CAAC;YAChF,cAAc,CAAC,mCAAmC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClH,cAAc,CAAC,oCAAoC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpH,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAgE,CAAC;YAC9E,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,iCAAiC,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9E,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;aACpF;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,mCAAmC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChH,cAAc,CAAC,oCAAoC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClH,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iCAAiC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;;AAvEL,8EAwEC;AA1DG,gBAAgB;AACO,8CAAY,GAAG,sFAAsF,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to lookup a list of [Device Posture Rule](https://developers.cloudflare.com/cloudflare-one/identity/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 example = cloudflare.getDevicePostureRules({
|
|
13
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
14
|
+
* name: "check for /dev/random",
|
|
15
|
+
* type: "file",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDevicePostureRules(args: GetDevicePostureRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetDevicePostureRulesResult>;
|
|
20
|
+
/**
|
|
21
|
+
* A collection of arguments for invoking getDevicePostureRules.
|
|
22
|
+
*/
|
|
23
|
+
export interface GetDevicePostureRulesArgs {
|
|
24
|
+
/**
|
|
25
|
+
* The account identifier to target for the resource.
|
|
26
|
+
*/
|
|
27
|
+
accountId: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A collection of values returned by getDevicePostureRules.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetDevicePostureRulesResult {
|
|
35
|
+
/**
|
|
36
|
+
* The account identifier to target for the resource.
|
|
37
|
+
*/
|
|
38
|
+
readonly accountId: string;
|
|
39
|
+
/**
|
|
40
|
+
* The provider-assigned unique ID for this managed resource.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the Device Posture Rule.
|
|
45
|
+
*/
|
|
46
|
+
readonly name?: string;
|
|
47
|
+
/**
|
|
48
|
+
* A list of matching Device Posture Rules.
|
|
49
|
+
*/
|
|
50
|
+
readonly rules: outputs.GetDevicePostureRulesRule[];
|
|
51
|
+
/**
|
|
52
|
+
* The device posture rule type. Available values: `serialNumber`, `file`, `application`, `gateway`, `warp`, `domainJoined`, `osVersion`, `diskEncryption`, `firewall`, `clientCertificate`, `workspaceOne`, `uniqueClientId`, `crowdstrikeS2s`, `sentinelone`, `kolide`, `taniumS2s`, `intune`, `sentineloneS2s`.
|
|
53
|
+
*/
|
|
54
|
+
readonly type?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Use this data source to lookup a list of [Device Posture Rule](https://developers.cloudflare.com/cloudflare-one/identity/devices)
|
|
58
|
+
*
|
|
59
|
+
* ## Example Usage
|
|
60
|
+
*
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
64
|
+
*
|
|
65
|
+
* const example = cloudflare.getDevicePostureRules({
|
|
66
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
67
|
+
* name: "check for /dev/random",
|
|
68
|
+
* type: "file",
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare function getDevicePostureRulesOutput(args: GetDevicePostureRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDevicePostureRulesResult>;
|
|
73
|
+
/**
|
|
74
|
+
* A collection of arguments for invoking getDevicePostureRules.
|
|
75
|
+
*/
|
|
76
|
+
export interface GetDevicePostureRulesOutputArgs {
|
|
77
|
+
/**
|
|
78
|
+
* The account identifier to target for the resource.
|
|
79
|
+
*/
|
|
80
|
+
accountId: pulumi.Input<string>;
|
|
81
|
+
name?: pulumi.Input<string>;
|
|
82
|
+
type?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.getDevicePostureRulesOutput = exports.getDevicePostureRules = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to lookup a list of [Device Posture Rule](https://developers.cloudflare.com/cloudflare-one/identity/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 example = cloudflare.getDevicePostureRules({
|
|
18
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
19
|
+
* name: "check for /dev/random",
|
|
20
|
+
* type: "file",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function getDevicePostureRules(args, opts) {
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("cloudflare:index/getDevicePostureRules:getDevicePostureRules", {
|
|
27
|
+
"accountId": args.accountId,
|
|
28
|
+
"name": args.name,
|
|
29
|
+
"type": args.type,
|
|
30
|
+
}, opts);
|
|
31
|
+
}
|
|
32
|
+
exports.getDevicePostureRules = getDevicePostureRules;
|
|
33
|
+
/**
|
|
34
|
+
* Use this data source to lookup a list of [Device Posture Rule](https://developers.cloudflare.com/cloudflare-one/identity/devices)
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
41
|
+
*
|
|
42
|
+
* const example = cloudflare.getDevicePostureRules({
|
|
43
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
44
|
+
* name: "check for /dev/random",
|
|
45
|
+
* type: "file",
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
function getDevicePostureRulesOutput(args, opts) {
|
|
50
|
+
return pulumi.output(args).apply((a) => getDevicePostureRules(a, opts));
|
|
51
|
+
}
|
|
52
|
+
exports.getDevicePostureRulesOutput = getDevicePostureRulesOutput;
|
|
53
|
+
//# sourceMappingURL=getDevicePostureRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDevicePostureRules.js","sourceRoot":"","sources":["../getDevicePostureRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AAuCD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
|
package/getTunnel.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this datasource to lookup a tunnel in an account.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
+
*
|
|
11
|
+
* const example = cloudflare.getTunnel({
|
|
12
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
13
|
+
* name: "my-tunnel",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getTunnel(args: GetTunnelArgs, opts?: pulumi.InvokeOptions): Promise<GetTunnelResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getTunnel.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetTunnelArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
24
|
+
*/
|
|
25
|
+
accountId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the tunnel. **Modifying this attribute will force creation of a new resource.**
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A collection of values returned by getTunnel.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetTunnelResult {
|
|
35
|
+
/**
|
|
36
|
+
* The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
37
|
+
*/
|
|
38
|
+
readonly accountId: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the tunnel.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the tunnel. **Modifying this attribute will force creation of a new resource.**
|
|
45
|
+
*/
|
|
46
|
+
readonly name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the tunnel can be configured remotely from the Zero Trust dashboard.
|
|
49
|
+
*/
|
|
50
|
+
readonly remoteConfig: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The status of the tunnel. Available values: `inactive`, `degraded`, `healthy`, `down`.
|
|
53
|
+
*/
|
|
54
|
+
readonly status: string;
|
|
55
|
+
/**
|
|
56
|
+
* The type of the tunnel. Available values: `cfdTunnel`, `warpConnector`.
|
|
57
|
+
*/
|
|
58
|
+
readonly tunnelType: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Use this datasource to lookup a tunnel in an account.
|
|
62
|
+
*
|
|
63
|
+
* ## Example Usage
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
68
|
+
*
|
|
69
|
+
* const example = cloudflare.getTunnel({
|
|
70
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
71
|
+
* name: "my-tunnel",
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function getTunnelOutput(args: GetTunnelOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTunnelResult>;
|
|
76
|
+
/**
|
|
77
|
+
* A collection of arguments for invoking getTunnel.
|
|
78
|
+
*/
|
|
79
|
+
export interface GetTunnelOutputArgs {
|
|
80
|
+
/**
|
|
81
|
+
* The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
|
|
82
|
+
*/
|
|
83
|
+
accountId: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Name of the tunnel. **Modifying this attribute will force creation of a new resource.**
|
|
86
|
+
*/
|
|
87
|
+
name: pulumi.Input<string>;
|
|
88
|
+
}
|
package/getTunnel.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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.getTunnelOutput = exports.getTunnel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this datasource to lookup a tunnel in an account.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* const example = cloudflare.getTunnel({
|
|
18
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
19
|
+
* name: "my-tunnel",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function getTunnel(args, opts) {
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invoke("cloudflare:index/getTunnel:getTunnel", {
|
|
26
|
+
"accountId": args.accountId,
|
|
27
|
+
"name": args.name,
|
|
28
|
+
}, opts);
|
|
29
|
+
}
|
|
30
|
+
exports.getTunnel = getTunnel;
|
|
31
|
+
/**
|
|
32
|
+
* Use this datasource to lookup a tunnel in an account.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
39
|
+
*
|
|
40
|
+
* const example = cloudflare.getTunnel({
|
|
41
|
+
* accountId: "f037e56e89293a057740de681ac9abbe",
|
|
42
|
+
* name: "my-tunnel",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
function getTunnelOutput(args, opts) {
|
|
47
|
+
return pulumi.output(args).apply((a) => getTunnel(a, opts));
|
|
48
|
+
}
|
|
49
|
+
exports.getTunnelOutput = getTunnelOutput;
|
|
50
|
+
//# sourceMappingURL=getTunnel.js.map
|
package/getTunnel.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTunnel.js","sourceRoot":"","sources":["../getTunnel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,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;QACjE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AA6CD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|