@pulumi/cloudflare 4.7.0 → 4.8.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 +54 -80
- package/accessApplication.js +9 -5
- package/accessApplication.js.map +1 -1
- package/accessBookmark.d.ts +21 -22
- package/accessBookmark.js +9 -7
- package/accessBookmark.js.map +1 -1
- package/accessCaCertificate.d.ts +21 -11
- package/accessCaCertificate.js +15 -5
- package/accessCaCertificate.js.map +1 -1
- package/accessGroup.d.ts +14 -92
- package/accessGroup.js +8 -41
- package/accessGroup.js.map +1 -1
- package/accessIdentityProvider.d.ts +26 -28
- package/accessIdentityProvider.js +8 -10
- package/accessIdentityProvider.js.map +1 -1
- package/accessKeysConfiguration.d.ts +18 -0
- package/accessKeysConfiguration.js.map +1 -1
- package/accessMutualTlsCertificate.d.ts +20 -8
- package/accessMutualTlsCertificate.js +14 -2
- package/accessMutualTlsCertificate.js.map +1 -1
- package/accessPolicy.d.ts +53 -49
- package/accessPolicy.js +11 -7
- package/accessPolicy.js.map +1 -1
- package/accessRule.d.ts +67 -14
- package/accessRule.js +55 -5
- package/accessRule.js.map +1 -1
- package/accessServiceToken.d.ts +18 -12
- package/accessServiceToken.js +3 -6
- package/accessServiceToken.js.map +1 -1
- package/accountMember.d.ts +10 -11
- package/accountMember.js +1 -5
- package/accountMember.js.map +1 -1
- package/apiToken.d.ts +11 -122
- package/apiToken.js +1 -109
- package/apiToken.js.map +1 -1
- package/argo.d.ts +10 -14
- package/argo.js +1 -5
- package/argo.js.map +1 -1
- package/argoTunnel.d.ts +8 -0
- package/argoTunnel.js +2 -0
- package/argoTunnel.js.map +1 -1
- package/byoIpPrefix.d.ts +9 -0
- package/byoIpPrefix.js.map +1 -1
- package/config/vars.d.ts +22 -12
- package/config/vars.js.map +1 -1
- package/customPages.d.ts +1 -1
- package/customPages.js +1 -1
- package/filter.d.ts +8 -12
- package/filter.js +2 -6
- package/filter.js.map +1 -1
- package/firewallRule.d.ts +37 -22
- package/firewallRule.js +4 -7
- package/firewallRule.js.map +1 -1
- package/getAccessIdentityProvider.d.ts +0 -48
- package/getAccessIdentityProvider.js +0 -24
- package/getAccessIdentityProvider.js.map +1 -1
- package/getAccountRoles.d.ts +0 -12
- package/getAccountRoles.js +0 -3
- package/getAccountRoles.js.map +1 -1
- package/getApiTokenPermissionGroups.d.ts +0 -17
- package/getApiTokenPermissionGroups.js +0 -13
- package/getApiTokenPermissionGroups.js.map +1 -1
- package/getDevices.d.ts +0 -23
- package/getDevices.js +0 -14
- package/getDevices.js.map +1 -1
- package/getIpRanges.d.ts +0 -36
- package/getIpRanges.js +0 -21
- package/getIpRanges.js.map +1 -1
- package/getOriginCaRootCertificate.d.ts +0 -23
- package/getOriginCaRootCertificate.js +0 -14
- package/getOriginCaRootCertificate.js.map +1 -1
- package/getWafGroups.d.ts +0 -46
- package/getWafGroups.js +0 -20
- package/getWafGroups.js.map +1 -1
- package/getWafPackages.d.ts +0 -39
- package/getWafPackages.js +0 -22
- package/getWafPackages.js.map +1 -1
- package/getWafRules.d.ts +0 -49
- package/getWafRules.js +0 -23
- package/getWafRules.js.map +1 -1
- package/getZone.d.ts +0 -81
- package/getZone.js +0 -41
- package/getZone.js.map +1 -1
- package/getZoneDnssec.d.ts +0 -50
- package/getZoneDnssec.js +0 -14
- package/getZoneDnssec.js.map +1 -1
- package/getZones.d.ts +0 -81
- package/getZones.js +0 -70
- package/getZones.js.map +1 -1
- package/healthcheck.d.ts +100 -74
- package/healthcheck.js +10 -14
- package/healthcheck.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +20 -5
- package/index.js.map +1 -1
- package/ipsecTunnel.d.ts +107 -6
- package/ipsecTunnel.js +21 -3
- package/ipsecTunnel.js.map +1 -1
- package/list.d.ts +137 -0
- package/list.js +115 -0
- package/list.js.map +1 -0
- package/loadBalancerMonitor.d.ts +2 -0
- package/loadBalancerMonitor.js +2 -0
- package/loadBalancerMonitor.js.map +1 -1
- package/logpushJob.d.ts +94 -64
- package/logpushJob.js +10 -37
- package/logpushJob.js.map +1 -1
- package/{logPushOwnershipChallenge.d.ts → logpushOwnershipChallenge.d.ts} +13 -13
- package/{logPushOwnershipChallenge.js → logpushOwnershipChallenge.js} +12 -12
- package/{logPushOwnershipChallenge.js.map → logpushOwnershipChallenge.js.map} +1 -1
- package/managedHeaders.d.ts +98 -0
- package/managedHeaders.js +81 -0
- package/managedHeaders.js.map +1 -0
- package/notificationPolicy.d.ts +59 -78
- package/notificationPolicy.js +2 -57
- package/notificationPolicy.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +38 -19
- package/provider.js.map +1 -1
- package/record.d.ts +1 -1
- package/record.js +1 -1
- package/ruleset.d.ts +147 -24
- package/ruleset.js +111 -3
- package/ruleset.js.map +1 -1
- package/spectrumApplication.d.ts +7 -7
- package/spectrumApplication.js +1 -1
- package/tunnelRoute.d.ts +29 -17
- package/tunnelRoute.js +13 -14
- package/tunnelRoute.js.map +1 -1
- package/tunnelVirtualNetwork.d.ts +111 -0
- package/tunnelVirtualNetwork.js +85 -0
- package/tunnelVirtualNetwork.js.map +1 -0
- package/types/input.d.ts +145 -424
- package/types/output.d.ts +141 -491
- package/waitingRoom.d.ts +48 -34
- package/waitingRoom.js +5 -4
- package/waitingRoom.js.map +1 -1
- package/waitingRoomEvent.d.ts +52 -35
- package/waitingRoomEvent.js +4 -5
- package/waitingRoomEvent.js.map +1 -1
- package/workerCronTrigger.d.ts +9 -0
- package/workerCronTrigger.js.map +1 -1
- package/workerRoute.d.ts +2 -2
- package/workerRoute.js +2 -2
- package/workerScript.d.ts +2 -2
- package/workerScript.js +2 -2
- package/workersKv.d.ts +1 -1
- package/workersKv.js +1 -1
- package/zone.d.ts +5 -5
- package/zone.js +1 -1
- package/zoneDnssec.d.ts +1 -1
- package/zoneDnssec.js +1 -1
- package/zoneLockdown.d.ts +4 -4
- package/zoneLockdown.js +1 -1
- package/zoneSettingsOverride.d.ts +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.LogpushOwnershipChallenge = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
18
|
*
|
|
19
|
-
* const example = new cloudflare.
|
|
19
|
+
* const example = new cloudflare.LogpushOwnershipChallenge("example", {
|
|
20
20
|
* destinationConf: "s3://my-bucket-path?region=us-west-2",
|
|
21
21
|
* zoneId: "d41d8cd98f00b204e9800998ecf8427e",
|
|
22
22
|
* });
|
|
@@ -26,13 +26,13 @@ const utilities = require("./utilities");
|
|
|
26
26
|
* import * as pulumi from "@pulumi/pulumi";
|
|
27
27
|
* import * as cloudflare from "@pulumi/cloudflare";
|
|
28
28
|
*
|
|
29
|
-
* const example = new cloudflare.
|
|
29
|
+
* const example = new cloudflare.LogpushOwnershipChallenge("example", {
|
|
30
30
|
* accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
|
|
31
31
|
* destinationConf: "s3://my-bucket-path?region=us-west-2",
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
class
|
|
35
|
+
class LogpushOwnershipChallenge extends pulumi.CustomResource {
|
|
36
36
|
constructor(name, argsOrState, opts) {
|
|
37
37
|
let resourceInputs = {};
|
|
38
38
|
opts = opts || {};
|
|
@@ -54,10 +54,10 @@ class LogPushOwnershipChallenge extends pulumi.CustomResource {
|
|
|
54
54
|
resourceInputs["ownershipChallengeFilename"] = undefined /*out*/;
|
|
55
55
|
}
|
|
56
56
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
-
super(
|
|
57
|
+
super(LogpushOwnershipChallenge.__pulumiType, name, resourceInputs, opts);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Get an existing
|
|
60
|
+
* Get an existing LogpushOwnershipChallenge resource's state with the given name, ID, and optional extra
|
|
61
61
|
* properties used to qualify the lookup.
|
|
62
62
|
*
|
|
63
63
|
* @param name The _unique_ name of the resulting resource.
|
|
@@ -66,20 +66,20 @@ class LogPushOwnershipChallenge extends pulumi.CustomResource {
|
|
|
66
66
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
67
|
*/
|
|
68
68
|
static get(name, id, state, opts) {
|
|
69
|
-
return new
|
|
69
|
+
return new LogpushOwnershipChallenge(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Returns true if the given object is an instance of
|
|
72
|
+
* Returns true if the given object is an instance of LogpushOwnershipChallenge. This is designed to work even
|
|
73
73
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
74
|
*/
|
|
75
75
|
static isInstance(obj) {
|
|
76
76
|
if (obj === undefined || obj === null) {
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
|
-
return obj['__pulumiType'] ===
|
|
79
|
+
return obj['__pulumiType'] === LogpushOwnershipChallenge.__pulumiType;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
exports.
|
|
82
|
+
exports.LogpushOwnershipChallenge = LogpushOwnershipChallenge;
|
|
83
83
|
/** @internal */
|
|
84
|
-
|
|
85
|
-
//# sourceMappingURL=
|
|
84
|
+
LogpushOwnershipChallenge.__pulumiType = 'cloudflare:index/logpushOwnershipChallenge:LogpushOwnershipChallenge';
|
|
85
|
+
//# sourceMappingURL=logpushOwnershipChallenge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpE;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;IA1ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;;AA1BL,8DA4EC;AA9DG,gBAAgB;AACO,sCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
9
|
+
*
|
|
10
|
+
* // Enable security headers using Managed Meaders
|
|
11
|
+
* const example = new cloudflare.ManagedHeaders("example", {
|
|
12
|
+
* managedRequestHeaders: [{
|
|
13
|
+
* enabled: true,
|
|
14
|
+
* id: "add_true_client_ip_headers",
|
|
15
|
+
* }],
|
|
16
|
+
* managedResponseHeaders: [{
|
|
17
|
+
* enabled: true,
|
|
18
|
+
* id: "remove_x-powered-by_header",
|
|
19
|
+
* }],
|
|
20
|
+
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* Import is not supported for this resource.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ManagedHeaders extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing ManagedHeaders resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedHeadersState, opts?: pulumi.CustomResourceOptions): ManagedHeaders;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of ManagedHeaders. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is ManagedHeaders;
|
|
44
|
+
/**
|
|
45
|
+
* The list of managed request headers
|
|
46
|
+
*/
|
|
47
|
+
readonly managedRequestHeaders: pulumi.Output<outputs.ManagedHeadersManagedRequestHeader[] | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The list of managed response headers
|
|
50
|
+
*/
|
|
51
|
+
readonly managedResponseHeaders: pulumi.Output<outputs.ManagedHeadersManagedResponseHeader[] | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The zone identifier to target for the resource.
|
|
54
|
+
*/
|
|
55
|
+
readonly zoneId: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a ManagedHeaders resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args: ManagedHeadersArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Input properties used for looking up and filtering ManagedHeaders resources.
|
|
67
|
+
*/
|
|
68
|
+
export interface ManagedHeadersState {
|
|
69
|
+
/**
|
|
70
|
+
* The list of managed request headers
|
|
71
|
+
*/
|
|
72
|
+
managedRequestHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedRequestHeader>[]>;
|
|
73
|
+
/**
|
|
74
|
+
* The list of managed response headers
|
|
75
|
+
*/
|
|
76
|
+
managedResponseHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedResponseHeader>[]>;
|
|
77
|
+
/**
|
|
78
|
+
* The zone identifier to target for the resource.
|
|
79
|
+
*/
|
|
80
|
+
zoneId?: pulumi.Input<string>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The set of arguments for constructing a ManagedHeaders resource.
|
|
84
|
+
*/
|
|
85
|
+
export interface ManagedHeadersArgs {
|
|
86
|
+
/**
|
|
87
|
+
* The list of managed request headers
|
|
88
|
+
*/
|
|
89
|
+
managedRequestHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedRequestHeader>[]>;
|
|
90
|
+
/**
|
|
91
|
+
* The list of managed response headers
|
|
92
|
+
*/
|
|
93
|
+
managedResponseHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedResponseHeader>[]>;
|
|
94
|
+
/**
|
|
95
|
+
* The zone identifier to target for the resource.
|
|
96
|
+
*/
|
|
97
|
+
zoneId: pulumi.Input<string>;
|
|
98
|
+
}
|
|
@@ -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.ManagedHeaders = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as cloudflare from "@pulumi/cloudflare";
|
|
14
|
+
*
|
|
15
|
+
* // Enable security headers using Managed Meaders
|
|
16
|
+
* const example = new cloudflare.ManagedHeaders("example", {
|
|
17
|
+
* managedRequestHeaders: [{
|
|
18
|
+
* enabled: true,
|
|
19
|
+
* id: "add_true_client_ip_headers",
|
|
20
|
+
* }],
|
|
21
|
+
* managedResponseHeaders: [{
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* id: "remove_x-powered-by_header",
|
|
24
|
+
* }],
|
|
25
|
+
* zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* Import is not supported for this resource.
|
|
32
|
+
*/
|
|
33
|
+
class ManagedHeaders extends pulumi.CustomResource {
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["managedRequestHeaders"] = state ? state.managedRequestHeaders : undefined;
|
|
40
|
+
resourceInputs["managedResponseHeaders"] = state ? state.managedResponseHeaders : undefined;
|
|
41
|
+
resourceInputs["zoneId"] = state ? state.zoneId : undefined;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const args = argsOrState;
|
|
45
|
+
if ((!args || args.zoneId === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'zoneId'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["managedRequestHeaders"] = args ? args.managedRequestHeaders : undefined;
|
|
49
|
+
resourceInputs["managedResponseHeaders"] = args ? args.managedResponseHeaders : undefined;
|
|
50
|
+
resourceInputs["zoneId"] = args ? args.zoneId : undefined;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(ManagedHeaders.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing ManagedHeaders resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new ManagedHeaders(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of ManagedHeaders. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === ManagedHeaders.__pulumiType;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.ManagedHeaders = ManagedHeaders;
|
|
79
|
+
/** @internal */
|
|
80
|
+
ManagedHeaders.__pulumiType = 'cloudflare:index/managedHeaders:ManagedHeaders';
|
|
81
|
+
//# sourceMappingURL=managedHeaders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedHeaders.js","sourceRoot":"","sources":["../managedHeaders.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAiDrD,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,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,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,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAnED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAqEC;AAvDG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
|
package/notificationPolicy.d.ts
CHANGED
|
@@ -1,67 +1,12 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
* Provides a resource, that manages a notification policy for Cloudflare's products. The delivery
|
|
5
|
-
* mechanisms supported are email, webhooks, and PagerDuty.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
* ### Basic Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
13
|
-
*
|
|
14
|
-
* const example = new cloudflare.NotificationPolicy("example", {
|
|
15
|
-
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
16
|
-
* alertType: "universal_ssl_event_type",
|
|
17
|
-
* description: "Notification policy to alert when my SSL certificates are modified",
|
|
18
|
-
* emailIntegrations: [{
|
|
19
|
-
* id: "myemail@example.com",
|
|
20
|
-
* }],
|
|
21
|
-
* enabled: true,
|
|
22
|
-
* name: "Policy for SSL notification events",
|
|
23
|
-
* pagerdutyIntegrations: [{
|
|
24
|
-
* id: "850129d136459401860572c5d964d27k",
|
|
25
|
-
* }],
|
|
26
|
-
* webhooksIntegrations: [{
|
|
27
|
-
* id: "1860572c5d964d27aa0f379d13645940",
|
|
28
|
-
* }],
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
* ### With Filters
|
|
32
|
-
*
|
|
33
|
-
* ```typescript
|
|
34
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
36
|
-
*
|
|
37
|
-
* const example = new cloudflare.NotificationPolicy("example", {
|
|
38
|
-
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
39
|
-
* alertType: "health_check_status_notification",
|
|
40
|
-
* description: "Notification policy to alert on unhealthy Healthcheck status",
|
|
41
|
-
* emailIntegrations: [{
|
|
42
|
-
* id: "myemail@example.com",
|
|
43
|
-
* }],
|
|
44
|
-
* enabled: true,
|
|
45
|
-
* filters: {
|
|
46
|
-
* healthCheckIds: ["699d98642c564d2e855e9661899b7252"],
|
|
47
|
-
* statuses: ["Unhealthy"],
|
|
48
|
-
* },
|
|
49
|
-
* name: "Policy for Healthcheck notification",
|
|
50
|
-
* pagerdutyIntegrations: [{
|
|
51
|
-
* id: "850129d136459401860572c5d964d27k",
|
|
52
|
-
* }],
|
|
53
|
-
* webhooksIntegrations: [{
|
|
54
|
-
* id: "1860572c5d964d27aa0f379d13645940",
|
|
55
|
-
* }],
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
4
|
+
* Provides a resource, that manages a notification policy for Cloudflare's products. The delivery mechanisms supported are email, webhooks, and PagerDuty.
|
|
58
5
|
*
|
|
59
6
|
* ## Import
|
|
60
7
|
*
|
|
61
|
-
* An existing notification policy can be imported using the account ID and the policy ID
|
|
62
|
-
*
|
|
63
8
|
* ```sh
|
|
64
|
-
* $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example
|
|
9
|
+
* $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example <account_id>/<policy_id>
|
|
65
10
|
* ```
|
|
66
11
|
*/
|
|
67
12
|
export declare class NotificationPolicy extends pulumi.CustomResource {
|
|
@@ -81,41 +26,55 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
|
|
|
81
26
|
*/
|
|
82
27
|
static isInstance(obj: any): obj is NotificationPolicy;
|
|
83
28
|
/**
|
|
84
|
-
* The
|
|
29
|
+
* The account identifier to target for the resource.
|
|
85
30
|
*/
|
|
86
31
|
readonly accountId: pulumi.Output<string>;
|
|
87
32
|
/**
|
|
88
|
-
* The event type that will trigger the dispatch of a notification
|
|
33
|
+
* The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
|
|
34
|
+
* [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
|
|
35
|
+
* values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
|
|
36
|
+
* `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
|
|
37
|
+
* `weekly_account_overview`
|
|
89
38
|
*/
|
|
90
39
|
readonly alertType: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* When the notification policy was created.
|
|
42
|
+
*/
|
|
91
43
|
readonly created: pulumi.Output<string>;
|
|
92
44
|
/**
|
|
93
45
|
* Description of the notification policy.
|
|
94
46
|
*/
|
|
95
47
|
readonly description: pulumi.Output<string | undefined>;
|
|
96
48
|
/**
|
|
97
|
-
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
49
|
+
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
50
|
+
* required.
|
|
98
51
|
*/
|
|
99
52
|
readonly emailIntegrations: pulumi.Output<outputs.NotificationPolicyEmailIntegration[] | undefined>;
|
|
100
53
|
/**
|
|
101
|
-
*
|
|
54
|
+
* The status of the notification policy.
|
|
102
55
|
*/
|
|
103
56
|
readonly enabled: pulumi.Output<boolean>;
|
|
104
57
|
/**
|
|
105
|
-
* An optional nested block of filters that applies to the selected `
|
|
58
|
+
* An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
|
|
59
|
+
* of filter and the values to match against (refer to the alert type block for available fields).
|
|
106
60
|
*/
|
|
107
61
|
readonly filters: pulumi.Output<outputs.NotificationPolicyFilters | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* When the notification policy was last modified.
|
|
64
|
+
*/
|
|
108
65
|
readonly modified: pulumi.Output<string>;
|
|
109
66
|
/**
|
|
110
67
|
* The name of the notification policy.
|
|
111
68
|
*/
|
|
112
69
|
readonly name: pulumi.Output<string>;
|
|
113
70
|
/**
|
|
114
|
-
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
71
|
+
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
72
|
+
* or PagerDuty mechanisms is required.
|
|
115
73
|
*/
|
|
116
74
|
readonly pagerdutyIntegrations: pulumi.Output<outputs.NotificationPolicyPagerdutyIntegration[] | undefined>;
|
|
117
75
|
/**
|
|
118
|
-
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
76
|
+
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
77
|
+
* or PagerDuty mechanisms is required.
|
|
119
78
|
*/
|
|
120
79
|
readonly webhooksIntegrations: pulumi.Output<outputs.NotificationPolicyWebhooksIntegration[] | undefined>;
|
|
121
80
|
/**
|
|
@@ -132,41 +91,55 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
|
|
|
132
91
|
*/
|
|
133
92
|
export interface NotificationPolicyState {
|
|
134
93
|
/**
|
|
135
|
-
* The
|
|
94
|
+
* The account identifier to target for the resource.
|
|
136
95
|
*/
|
|
137
96
|
accountId?: pulumi.Input<string>;
|
|
138
97
|
/**
|
|
139
|
-
* The event type that will trigger the dispatch of a notification
|
|
98
|
+
* The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
|
|
99
|
+
* [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
|
|
100
|
+
* values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
|
|
101
|
+
* `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
|
|
102
|
+
* `weekly_account_overview`
|
|
140
103
|
*/
|
|
141
104
|
alertType?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* When the notification policy was created.
|
|
107
|
+
*/
|
|
142
108
|
created?: pulumi.Input<string>;
|
|
143
109
|
/**
|
|
144
110
|
* Description of the notification policy.
|
|
145
111
|
*/
|
|
146
112
|
description?: pulumi.Input<string>;
|
|
147
113
|
/**
|
|
148
|
-
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
114
|
+
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
115
|
+
* required.
|
|
149
116
|
*/
|
|
150
117
|
emailIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyEmailIntegration>[]>;
|
|
151
118
|
/**
|
|
152
|
-
*
|
|
119
|
+
* The status of the notification policy.
|
|
153
120
|
*/
|
|
154
121
|
enabled?: pulumi.Input<boolean>;
|
|
155
122
|
/**
|
|
156
|
-
* An optional nested block of filters that applies to the selected `
|
|
123
|
+
* An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
|
|
124
|
+
* of filter and the values to match against (refer to the alert type block for available fields).
|
|
157
125
|
*/
|
|
158
126
|
filters?: pulumi.Input<inputs.NotificationPolicyFilters>;
|
|
127
|
+
/**
|
|
128
|
+
* When the notification policy was last modified.
|
|
129
|
+
*/
|
|
159
130
|
modified?: pulumi.Input<string>;
|
|
160
131
|
/**
|
|
161
132
|
* The name of the notification policy.
|
|
162
133
|
*/
|
|
163
134
|
name?: pulumi.Input<string>;
|
|
164
135
|
/**
|
|
165
|
-
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
136
|
+
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
137
|
+
* or PagerDuty mechanisms is required.
|
|
166
138
|
*/
|
|
167
139
|
pagerdutyIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyPagerdutyIntegration>[]>;
|
|
168
140
|
/**
|
|
169
|
-
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
141
|
+
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
142
|
+
* or PagerDuty mechanisms is required.
|
|
170
143
|
*/
|
|
171
144
|
webhooksIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyWebhooksIntegration>[]>;
|
|
172
145
|
}
|
|
@@ -175,11 +148,15 @@ export interface NotificationPolicyState {
|
|
|
175
148
|
*/
|
|
176
149
|
export interface NotificationPolicyArgs {
|
|
177
150
|
/**
|
|
178
|
-
* The
|
|
151
|
+
* The account identifier to target for the resource.
|
|
179
152
|
*/
|
|
180
153
|
accountId: pulumi.Input<string>;
|
|
181
154
|
/**
|
|
182
|
-
* The event type that will trigger the dispatch of a notification
|
|
155
|
+
* The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
|
|
156
|
+
* [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
|
|
157
|
+
* values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
|
|
158
|
+
* `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
|
|
159
|
+
* `weekly_account_overview`
|
|
183
160
|
*/
|
|
184
161
|
alertType: pulumi.Input<string>;
|
|
185
162
|
/**
|
|
@@ -187,15 +164,17 @@ export interface NotificationPolicyArgs {
|
|
|
187
164
|
*/
|
|
188
165
|
description?: pulumi.Input<string>;
|
|
189
166
|
/**
|
|
190
|
-
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
167
|
+
* The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
|
|
168
|
+
* required.
|
|
191
169
|
*/
|
|
192
170
|
emailIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyEmailIntegration>[]>;
|
|
193
171
|
/**
|
|
194
|
-
*
|
|
172
|
+
* The status of the notification policy.
|
|
195
173
|
*/
|
|
196
174
|
enabled: pulumi.Input<boolean>;
|
|
197
175
|
/**
|
|
198
|
-
* An optional nested block of filters that applies to the selected `
|
|
176
|
+
* An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
|
|
177
|
+
* of filter and the values to match against (refer to the alert type block for available fields).
|
|
199
178
|
*/
|
|
200
179
|
filters?: pulumi.Input<inputs.NotificationPolicyFilters>;
|
|
201
180
|
/**
|
|
@@ -203,11 +182,13 @@ export interface NotificationPolicyArgs {
|
|
|
203
182
|
*/
|
|
204
183
|
name: pulumi.Input<string>;
|
|
205
184
|
/**
|
|
206
|
-
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
185
|
+
* The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
186
|
+
* or PagerDuty mechanisms is required.
|
|
207
187
|
*/
|
|
208
188
|
pagerdutyIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyPagerdutyIntegration>[]>;
|
|
209
189
|
/**
|
|
210
|
-
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
190
|
+
* The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
|
|
191
|
+
* or PagerDuty mechanisms is required.
|
|
211
192
|
*/
|
|
212
193
|
webhooksIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyWebhooksIntegration>[]>;
|
|
213
194
|
}
|
package/notificationPolicy.js
CHANGED
|
@@ -6,67 +6,12 @@ exports.NotificationPolicy = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a resource, that manages a notification policy for Cloudflare's products. The delivery
|
|
10
|
-
* mechanisms supported are email, webhooks, and PagerDuty.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
* ### Basic Example
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
18
|
-
*
|
|
19
|
-
* const example = new cloudflare.NotificationPolicy("example", {
|
|
20
|
-
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
21
|
-
* alertType: "universal_ssl_event_type",
|
|
22
|
-
* description: "Notification policy to alert when my SSL certificates are modified",
|
|
23
|
-
* emailIntegrations: [{
|
|
24
|
-
* id: "myemail@example.com",
|
|
25
|
-
* }],
|
|
26
|
-
* enabled: true,
|
|
27
|
-
* name: "Policy for SSL notification events",
|
|
28
|
-
* pagerdutyIntegrations: [{
|
|
29
|
-
* id: "850129d136459401860572c5d964d27k",
|
|
30
|
-
* }],
|
|
31
|
-
* webhooksIntegrations: [{
|
|
32
|
-
* id: "1860572c5d964d27aa0f379d13645940",
|
|
33
|
-
* }],
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
* ### With Filters
|
|
37
|
-
*
|
|
38
|
-
* ```typescript
|
|
39
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
41
|
-
*
|
|
42
|
-
* const example = new cloudflare.NotificationPolicy("example", {
|
|
43
|
-
* accountId: "c4a7362d577a6c3019a474fd6f485821",
|
|
44
|
-
* alertType: "health_check_status_notification",
|
|
45
|
-
* description: "Notification policy to alert on unhealthy Healthcheck status",
|
|
46
|
-
* emailIntegrations: [{
|
|
47
|
-
* id: "myemail@example.com",
|
|
48
|
-
* }],
|
|
49
|
-
* enabled: true,
|
|
50
|
-
* filters: {
|
|
51
|
-
* healthCheckIds: ["699d98642c564d2e855e9661899b7252"],
|
|
52
|
-
* statuses: ["Unhealthy"],
|
|
53
|
-
* },
|
|
54
|
-
* name: "Policy for Healthcheck notification",
|
|
55
|
-
* pagerdutyIntegrations: [{
|
|
56
|
-
* id: "850129d136459401860572c5d964d27k",
|
|
57
|
-
* }],
|
|
58
|
-
* webhooksIntegrations: [{
|
|
59
|
-
* id: "1860572c5d964d27aa0f379d13645940",
|
|
60
|
-
* }],
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
9
|
+
* Provides a resource, that manages a notification policy for Cloudflare's products. The delivery mechanisms supported are email, webhooks, and PagerDuty.
|
|
63
10
|
*
|
|
64
11
|
* ## Import
|
|
65
12
|
*
|
|
66
|
-
* An existing notification policy can be imported using the account ID and the policy ID
|
|
67
|
-
*
|
|
68
13
|
* ```sh
|
|
69
|
-
* $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example
|
|
14
|
+
* $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example <account_id>/<policy_id>
|
|
70
15
|
* ```
|
|
71
16
|
*/
|
|
72
17
|
class NotificationPolicy extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAyFzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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Y,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IApID;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAsIC;AAxHG,gBAAgB;AACO,+BAAY,GAAG,wDAAwD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/cloudflare",
|
|
3
|
-
"version": "v4.
|
|
3
|
+
"version": "v4.8.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/cloudflare",
|
|
3
|
-
"version": "v4.
|
|
3
|
+
"version": "v4.8.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|