@pulumi/cloudflare 5.45.0-alpha.1733981446 → 5.45.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/accessApplication.d.ts +33 -3
- package/accessApplication.js +4 -0
- package/accessApplication.js.map +1 -1
- package/index.d.ts +12 -0
- package/index.js +23 -3
- package/index.js.map +1 -1
- package/leakedCredentialCheck.d.ts +82 -0
- package/leakedCredentialCheck.js +79 -0
- package/leakedCredentialCheck.js.map +1 -0
- package/leakedCredentialCheckRule.d.ts +100 -0
- package/leakedCredentialCheckRule.js +90 -0
- package/leakedCredentialCheckRule.js.map +1 -0
- package/package.json +2 -2
- package/snippet.d.ts +86 -0
- package/snippet.js +64 -0
- package/snippet.js.map +1 -0
- package/snippetRules.d.ts +62 -0
- package/snippetRules.js +54 -0
- package/snippetRules.js.map +1 -0
- package/types/input.d.ts +93 -13
- package/types/output.d.ts +93 -13
- package/zeroTrustAccessApplication.d.ts +33 -3
- package/zeroTrustAccessApplication.js +4 -0
- package/zeroTrustAccessApplication.js.map +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Cloudflare Leaked Credential Check resource to be used for managing the status of the Cloudflare Leaked Credential detection within a specific zone.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
+
*
|
|
11
|
+
* // Enable the Leaked Credentials Check detection
|
|
12
|
+
* const example = new cloudflare.LeakedCredentialCheck("example", {
|
|
13
|
+
* zoneId: "399c6f4950c01a5a141b99ff7fbcbd8b",
|
|
14
|
+
* enabled: true,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import cloudflare:index/leakedCredentialCheck:LeakedCredentialCheck example <zone_id>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class LeakedCredentialCheck extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing LeakedCredentialCheck 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?: LeakedCredentialCheckState, opts?: pulumi.CustomResourceOptions): LeakedCredentialCheck;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of LeakedCredentialCheck. 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 LeakedCredentialCheck;
|
|
40
|
+
/**
|
|
41
|
+
* State of the Leaked Credential Check detection
|
|
42
|
+
*/
|
|
43
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* The zone identifier to target for the resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly zoneId: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Create a LeakedCredentialCheck resource with the given unique name, arguments, and options.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resource.
|
|
52
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
53
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
54
|
+
*/
|
|
55
|
+
constructor(name: string, args: LeakedCredentialCheckArgs, opts?: pulumi.CustomResourceOptions);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Input properties used for looking up and filtering LeakedCredentialCheck resources.
|
|
59
|
+
*/
|
|
60
|
+
export interface LeakedCredentialCheckState {
|
|
61
|
+
/**
|
|
62
|
+
* State of the Leaked Credential Check detection
|
|
63
|
+
*/
|
|
64
|
+
enabled?: pulumi.Input<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* The zone identifier to target for the resource.
|
|
67
|
+
*/
|
|
68
|
+
zoneId?: pulumi.Input<string>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The set of arguments for constructing a LeakedCredentialCheck resource.
|
|
72
|
+
*/
|
|
73
|
+
export interface LeakedCredentialCheckArgs {
|
|
74
|
+
/**
|
|
75
|
+
* State of the Leaked Credential Check detection
|
|
76
|
+
*/
|
|
77
|
+
enabled: pulumi.Input<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* The zone identifier to target for the resource.
|
|
80
|
+
*/
|
|
81
|
+
zoneId: pulumi.Input<string>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.LeakedCredentialCheck = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Cloudflare Leaked Credential Check resource to be used for managing the status of the Cloudflare Leaked Credential detection within a specific zone.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* // Enable the Leaked Credentials Check detection
|
|
18
|
+
* const example = new cloudflare.LeakedCredentialCheck("example", {
|
|
19
|
+
* zoneId: "399c6f4950c01a5a141b99ff7fbcbd8b",
|
|
20
|
+
* enabled: true,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import cloudflare:index/leakedCredentialCheck:LeakedCredentialCheck example <zone_id>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class LeakedCredentialCheck extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing LeakedCredentialCheck 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 LeakedCredentialCheck(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of LeakedCredentialCheck. 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'] === LeakedCredentialCheck.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
59
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
const args = argsOrState;
|
|
63
|
+
if ((!args || args.enabled === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'enabled'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'zoneId'");
|
|
68
|
+
}
|
|
69
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
70
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
super(LeakedCredentialCheck.__pulumiType, name, resourceInputs, opts);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.LeakedCredentialCheck = LeakedCredentialCheck;
|
|
77
|
+
/** @internal */
|
|
78
|
+
LeakedCredentialCheck.__pulumiType = 'cloudflare:index/leakedCredentialCheck:LeakedCredentialCheck';
|
|
79
|
+
//# sourceMappingURL=leakedCredentialCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leakedCredentialCheck.js","sourceRoot":"","sources":["../leakedCredentialCheck.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,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AAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAjEL,sDAkEC;AApDG,gBAAgB;AACO,kCAAY,GAAG,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Cloudflare Leaked Credential Check Rule resource for managing user-defined Leaked Credential detection patterns within a specific zone.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
+
*
|
|
11
|
+
* // Enable the Leaked Credentials Check detection before trying
|
|
12
|
+
* // to add detections.
|
|
13
|
+
* const example = new cloudflare.LeakedCredentialCheck("example", {
|
|
14
|
+
* zoneId: "399c6f4950c01a5a141b99ff7fbcbd8b",
|
|
15
|
+
* enabled: true,
|
|
16
|
+
* });
|
|
17
|
+
* const exampleLeakedCredentialCheckRule = new cloudflare.LeakedCredentialCheckRule("example", {
|
|
18
|
+
* zoneId: example.zoneId,
|
|
19
|
+
* username: "lookup_json_string(http.request.body.raw, \"user\")",
|
|
20
|
+
* password: "lookup_json_string(http.request.body.raw, \"pass\")",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import cloudflare:index/leakedCredentialCheckRule:LeakedCredentialCheckRule example <zone_id>/<resource_id>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class LeakedCredentialCheckRule extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing LeakedCredentialCheckRule 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: string, id: pulumi.Input<pulumi.ID>, state?: LeakedCredentialCheckRuleState, opts?: pulumi.CustomResourceOptions): LeakedCredentialCheckRule;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of LeakedCredentialCheckRule. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is LeakedCredentialCheckRule;
|
|
46
|
+
/**
|
|
47
|
+
* The ruleset expression to use in matching the password in a request
|
|
48
|
+
*/
|
|
49
|
+
readonly password: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The ruleset expression to use in matching the username in a request.
|
|
52
|
+
*/
|
|
53
|
+
readonly username: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The zone identifier to target for the resource.
|
|
56
|
+
*/
|
|
57
|
+
readonly zoneId: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a LeakedCredentialCheckRule resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: LeakedCredentialCheckRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering LeakedCredentialCheckRule resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface LeakedCredentialCheckRuleState {
|
|
71
|
+
/**
|
|
72
|
+
* The ruleset expression to use in matching the password in a request
|
|
73
|
+
*/
|
|
74
|
+
password?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The ruleset expression to use in matching the username in a request.
|
|
77
|
+
*/
|
|
78
|
+
username?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The zone identifier to target for the resource.
|
|
81
|
+
*/
|
|
82
|
+
zoneId?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The set of arguments for constructing a LeakedCredentialCheckRule resource.
|
|
86
|
+
*/
|
|
87
|
+
export interface LeakedCredentialCheckRuleArgs {
|
|
88
|
+
/**
|
|
89
|
+
* The ruleset expression to use in matching the password in a request
|
|
90
|
+
*/
|
|
91
|
+
password: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The ruleset expression to use in matching the username in a request.
|
|
94
|
+
*/
|
|
95
|
+
username: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The zone identifier to target for the resource.
|
|
98
|
+
*/
|
|
99
|
+
zoneId: pulumi.Input<string>;
|
|
100
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.LeakedCredentialCheckRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Cloudflare Leaked Credential Check Rule resource for managing user-defined Leaked Credential detection patterns within a specific zone.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
+
*
|
|
17
|
+
* // Enable the Leaked Credentials Check detection before trying
|
|
18
|
+
* // to add detections.
|
|
19
|
+
* const example = new cloudflare.LeakedCredentialCheck("example", {
|
|
20
|
+
* zoneId: "399c6f4950c01a5a141b99ff7fbcbd8b",
|
|
21
|
+
* enabled: true,
|
|
22
|
+
* });
|
|
23
|
+
* const exampleLeakedCredentialCheckRule = new cloudflare.LeakedCredentialCheckRule("example", {
|
|
24
|
+
* zoneId: example.zoneId,
|
|
25
|
+
* username: "lookup_json_string(http.request.body.raw, \"user\")",
|
|
26
|
+
* password: "lookup_json_string(http.request.body.raw, \"pass\")",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import cloudflare:index/leakedCredentialCheckRule:LeakedCredentialCheckRule example <zone_id>/<resource_id>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class LeakedCredentialCheckRule extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing LeakedCredentialCheckRule resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new LeakedCredentialCheckRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of LeakedCredentialCheckRule. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === LeakedCredentialCheckRule.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
65
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
66
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.password === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'password'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.username === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'username'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'zoneId'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["password"] = args ? args.password : undefined;
|
|
80
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
81
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(LeakedCredentialCheckRule.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.LeakedCredentialCheckRule = LeakedCredentialCheckRule;
|
|
88
|
+
/** @internal */
|
|
89
|
+
LeakedCredentialCheckRule.__pulumiType = 'cloudflare:index/leakedCredentialCheckRule:LeakedCredentialCheckRule';
|
|
90
|
+
//# sourceMappingURL=leakedCredentialCheckRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leakedCredentialCheckRule.js","sourceRoot":"","sources":["../leakedCredentialCheckRule.ts"],"names":[],"mappings":";AAA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CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;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,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,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,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AA1EL,8DA2EC;AA7DG,gBAAgB;AACO,sCAAY,GAAG,sEAAsE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/cloudflare",
|
|
3
|
-
"version": "5.45.0
|
|
3
|
+
"version": "5.45.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "cloudflare",
|
|
26
|
-
"version": "5.45.0
|
|
26
|
+
"version": "5.45.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/snippet.d.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class Snippet extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing Snippet resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnippetState, opts?: pulumi.CustomResourceOptions): Snippet;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Snippet. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Snippet;
|
|
20
|
+
/**
|
|
21
|
+
* List of Snippet Files
|
|
22
|
+
*/
|
|
23
|
+
readonly files: pulumi.Output<outputs.SnippetFile[] | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Main module file name of the snippet.
|
|
26
|
+
*/
|
|
27
|
+
readonly mainModule: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the snippet.
|
|
30
|
+
*/
|
|
31
|
+
readonly name: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The zone identifier to target for the resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly zoneId: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a Snippet resource with the given unique name, arguments, and options.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resource.
|
|
40
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
41
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
42
|
+
*/
|
|
43
|
+
constructor(name: string, args: SnippetArgs, opts?: pulumi.CustomResourceOptions);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Input properties used for looking up and filtering Snippet resources.
|
|
47
|
+
*/
|
|
48
|
+
export interface SnippetState {
|
|
49
|
+
/**
|
|
50
|
+
* List of Snippet Files
|
|
51
|
+
*/
|
|
52
|
+
files?: pulumi.Input<pulumi.Input<inputs.SnippetFile>[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Main module file name of the snippet.
|
|
55
|
+
*/
|
|
56
|
+
mainModule?: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the snippet.
|
|
59
|
+
*/
|
|
60
|
+
name?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The zone identifier to target for the resource.
|
|
63
|
+
*/
|
|
64
|
+
zoneId?: pulumi.Input<string>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The set of arguments for constructing a Snippet resource.
|
|
68
|
+
*/
|
|
69
|
+
export interface SnippetArgs {
|
|
70
|
+
/**
|
|
71
|
+
* List of Snippet Files
|
|
72
|
+
*/
|
|
73
|
+
files?: pulumi.Input<pulumi.Input<inputs.SnippetFile>[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Main module file name of the snippet.
|
|
76
|
+
*/
|
|
77
|
+
mainModule: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Name of the snippet.
|
|
80
|
+
*/
|
|
81
|
+
name: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The zone identifier to target for the resource.
|
|
84
|
+
*/
|
|
85
|
+
zoneId: pulumi.Input<string>;
|
|
86
|
+
}
|
package/snippet.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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.Snippet = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Snippet extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Snippet resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Snippet(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Snippet. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Snippet.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["files"] = state ? state.files : undefined;
|
|
37
|
+
resourceInputs["mainModule"] = state ? state.mainModule : undefined;
|
|
38
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
39
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
if ((!args || args.mainModule === undefined) && !opts.urn) {
|
|
44
|
+
throw new Error("Missing required property 'mainModule'");
|
|
45
|
+
}
|
|
46
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'name'");
|
|
48
|
+
}
|
|
49
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'zoneId'");
|
|
51
|
+
}
|
|
52
|
+
resourceInputs["files"] = args ? args.files : undefined;
|
|
53
|
+
resourceInputs["mainModule"] = args ? args.mainModule : undefined;
|
|
54
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
55
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
56
|
+
}
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(Snippet.__pulumiType, name, resourceInputs, opts);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Snippet = Snippet;
|
|
62
|
+
/** @internal */
|
|
63
|
+
Snippet.__pulumiType = 'cloudflare:index/snippet:Snippet';
|
|
64
|
+
//# sourceMappingURL=snippet.js.map
|
package/snippet.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippet.js","sourceRoot":"","sources":["../snippet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,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GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;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,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAhFL,0BAiFC;AAnEG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class SnippetRules extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing SnippetRules resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnippetRulesState, opts?: pulumi.CustomResourceOptions): SnippetRules;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of SnippetRules. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is SnippetRules;
|
|
20
|
+
/**
|
|
21
|
+
* List of Snippet Rules
|
|
22
|
+
*/
|
|
23
|
+
readonly rules: pulumi.Output<outputs.SnippetRulesRule[] | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The zone identifier to target for the resource.
|
|
26
|
+
*/
|
|
27
|
+
readonly zoneId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a SnippetRules resource with the given unique name, arguments, and options.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resource.
|
|
32
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
33
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string, args: SnippetRulesArgs, opts?: pulumi.CustomResourceOptions);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Input properties used for looking up and filtering SnippetRules resources.
|
|
39
|
+
*/
|
|
40
|
+
export interface SnippetRulesState {
|
|
41
|
+
/**
|
|
42
|
+
* List of Snippet Rules
|
|
43
|
+
*/
|
|
44
|
+
rules?: pulumi.Input<pulumi.Input<inputs.SnippetRulesRule>[]>;
|
|
45
|
+
/**
|
|
46
|
+
* The zone identifier to target for the resource.
|
|
47
|
+
*/
|
|
48
|
+
zoneId?: pulumi.Input<string>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The set of arguments for constructing a SnippetRules resource.
|
|
52
|
+
*/
|
|
53
|
+
export interface SnippetRulesArgs {
|
|
54
|
+
/**
|
|
55
|
+
* List of Snippet Rules
|
|
56
|
+
*/
|
|
57
|
+
rules?: pulumi.Input<pulumi.Input<inputs.SnippetRulesRule>[]>;
|
|
58
|
+
/**
|
|
59
|
+
* The zone identifier to target for the resource.
|
|
60
|
+
*/
|
|
61
|
+
zoneId: pulumi.Input<string>;
|
|
62
|
+
}
|
package/snippetRules.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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.SnippetRules = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class SnippetRules extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing SnippetRules resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new SnippetRules(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of SnippetRules. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === SnippetRules.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
37
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
const args = argsOrState;
|
|
41
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'zoneId'");
|
|
43
|
+
}
|
|
44
|
+
resourceInputs["rules"] = args ? args.rules : undefined;
|
|
45
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
46
|
+
}
|
|
47
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
48
|
+
super(SnippetRules.__pulumiType, name, resourceInputs, opts);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.SnippetRules = SnippetRules;
|
|
52
|
+
/** @internal */
|
|
53
|
+
SnippetRules.__pulumiType = 'cloudflare:index/snippetRules:SnippetRules';
|
|
54
|
+
//# sourceMappingURL=snippetRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippetRules.js","sourceRoot":"","sources":["../snippetRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAA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