@pulumi/cloudngfwaws 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +54 -0
  3. package/account.d.ts +148 -0
  4. package/account.js +73 -0
  5. package/account.js.map +1 -0
  6. package/accountOnboarding.d.ts +68 -0
  7. package/accountOnboarding.js +62 -0
  8. package/accountOnboarding.js.map +1 -0
  9. package/accountOnboardingStack.d.ts +233 -0
  10. package/accountOnboardingStack.js +103 -0
  11. package/accountOnboardingStack.js.map +1 -0
  12. package/certificate.d.ts +168 -0
  13. package/certificate.js +106 -0
  14. package/certificate.js.map +1 -0
  15. package/commitRulestack.d.ts +123 -0
  16. package/commitRulestack.js +83 -0
  17. package/commitRulestack.js.map +1 -0
  18. package/config/index.d.ts +1 -0
  19. package/config/index.js +21 -0
  20. package/config/index.js.map +1 -0
  21. package/config/vars.d.ts +96 -0
  22. package/config/vars.js +127 -0
  23. package/config/vars.js.map +1 -0
  24. package/customUrlCategory.d.ts +172 -0
  25. package/customUrlCategory.js +113 -0
  26. package/customUrlCategory.js.map +1 -0
  27. package/fqdnList.d.ts +159 -0
  28. package/fqdnList.js +110 -0
  29. package/fqdnList.js.map +1 -0
  30. package/getAccount.d.ts +138 -0
  31. package/getAccount.js +54 -0
  32. package/getAccount.js.map +1 -0
  33. package/getAccounts.d.ts +76 -0
  34. package/getAccounts.js +44 -0
  35. package/getAccounts.js.map +1 -0
  36. package/getAppIdVersion.d.ts +102 -0
  37. package/getAppIdVersion.js +62 -0
  38. package/getAppIdVersion.js.map +1 -0
  39. package/getAppIdVersions.d.ts +86 -0
  40. package/getAppIdVersions.js +58 -0
  41. package/getAppIdVersions.js.map +1 -0
  42. package/getCertificate.d.ts +148 -0
  43. package/getCertificate.js +86 -0
  44. package/getCertificate.js.map +1 -0
  45. package/getCountry.d.ts +88 -0
  46. package/getCountry.js +58 -0
  47. package/getCountry.js.map +1 -0
  48. package/getCustomUrlCategory.d.ts +148 -0
  49. package/getCustomUrlCategory.js +86 -0
  50. package/getCustomUrlCategory.js.map +1 -0
  51. package/getFqdnList.d.ts +144 -0
  52. package/getFqdnList.js +86 -0
  53. package/getFqdnList.js.map +1 -0
  54. package/getIntelligentFeed.d.ts +160 -0
  55. package/getIntelligentFeed.js +86 -0
  56. package/getIntelligentFeed.js.map +1 -0
  57. package/getNgfw.d.ts +146 -0
  58. package/getNgfw.js +60 -0
  59. package/getNgfw.js.map +1 -0
  60. package/getNgfwLogProfile.d.ts +101 -0
  61. package/getNgfwLogProfile.js +62 -0
  62. package/getNgfwLogProfile.js.map +1 -0
  63. package/getNgfws.d.ts +83 -0
  64. package/getNgfws.js +58 -0
  65. package/getNgfws.js.map +1 -0
  66. package/getPredefinedUrlCategories.d.ts +88 -0
  67. package/getPredefinedUrlCategories.js +60 -0
  68. package/getPredefinedUrlCategories.js.map +1 -0
  69. package/getPredefinedUrlCategoryOverride.d.ts +128 -0
  70. package/getPredefinedUrlCategoryOverride.js +84 -0
  71. package/getPredefinedUrlCategoryOverride.js.map +1 -0
  72. package/getPrefixList.d.ts +144 -0
  73. package/getPrefixList.js +86 -0
  74. package/getPrefixList.js.map +1 -0
  75. package/getRulestack.d.ts +128 -0
  76. package/getRulestack.js +64 -0
  77. package/getRulestack.js.map +1 -0
  78. package/getSecurityRule.d.ts +169 -0
  79. package/getSecurityRule.js +46 -0
  80. package/getSecurityRule.js.map +1 -0
  81. package/getValidateRulestack.d.ts +82 -0
  82. package/getValidateRulestack.js +40 -0
  83. package/getValidateRulestack.js.map +1 -0
  84. package/index.d.ts +102 -0
  85. package/index.js +158 -0
  86. package/index.js.map +1 -0
  87. package/intelligentFeed.d.ts +207 -0
  88. package/intelligentFeed.js +118 -0
  89. package/intelligentFeed.js.map +1 -0
  90. package/ngfw.d.ts +295 -0
  91. package/ngfw.js +153 -0
  92. package/ngfw.js.map +1 -0
  93. package/ngfwLogProfile.d.ts +191 -0
  94. package/ngfwLogProfile.js +149 -0
  95. package/ngfwLogProfile.js.map +1 -0
  96. package/package.json +32 -0
  97. package/predefinedUrlCategoryOverride.d.ts +130 -0
  98. package/predefinedUrlCategoryOverride.js +98 -0
  99. package/predefinedUrlCategoryOverride.js.map +1 -0
  100. package/prefixList.d.ts +159 -0
  101. package/prefixList.js +110 -0
  102. package/prefixList.js.map +1 -0
  103. package/provider.d.ts +192 -0
  104. package/provider.js +64 -0
  105. package/provider.js.map +1 -0
  106. package/rulestack.d.ts +184 -0
  107. package/rulestack.js +103 -0
  108. package/rulestack.js.map +1 -0
  109. package/securityRule.d.ts +344 -0
  110. package/securityRule.js +162 -0
  111. package/securityRule.js.map +1 -0
  112. package/types/index.d.ts +3 -0
  113. package/types/index.js +11 -0
  114. package/types/index.js.map +1 -0
  115. package/types/input.d.ts +174 -0
  116. package/types/input.js +5 -0
  117. package/types/input.js.map +1 -0
  118. package/types/output.d.ts +313 -0
  119. package/types/output.js +5 -0
  120. package/types/output.js.map +1 -0
  121. package/utilities.d.ts +8 -0
  122. package/utilities.js +101 -0
  123. package/utilities.js.map +1 -0
@@ -0,0 +1,123 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Resource for committing the rulestack config.
4
+ *
5
+ * !> **NOTE:** This resource should be placed in a separate plan as the plan that configures the rulestack and its contents. If you do not, you will have perpetual configuration drift and will need to run your plan twice so the commit is performed. Placing instances of this resource with instances of NGFW resources (such as `cloudngfwaws.Ngfw`) is fine.
6
+ *
7
+ * ## Admin Permission Type
8
+ *
9
+ * * `Rulestack` (for `scope="Local"`)
10
+ * * `Global Rulestack` (for `scope="Global"`)
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as cloudngfwaws from "@pulumi/cloudngfwaws";
17
+ *
18
+ * const example = new cloudngfwaws.CommitRulestack("example", {rulestack: "my-rulestack"});
19
+ * ```
20
+ */
21
+ export declare class CommitRulestack extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing CommitRulestack resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CommitRulestackState, opts?: pulumi.CustomResourceOptions): CommitRulestack;
32
+ /**
33
+ * Returns true if the given object is an instance of CommitRulestack. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj: any): obj is CommitRulestack;
37
+ /**
38
+ * Commit error messages.
39
+ */
40
+ readonly commitErrors: pulumi.Output<string[]>;
41
+ /**
42
+ * The commit status.
43
+ */
44
+ readonly commitStatus: pulumi.Output<string>;
45
+ /**
46
+ * The rulestack.
47
+ */
48
+ readonly rulestack: pulumi.Output<string>;
49
+ /**
50
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
51
+ */
52
+ readonly scope: pulumi.Output<string | undefined>;
53
+ /**
54
+ * The rulestack state. This can only be the default value. Defaults to `Running`.
55
+ */
56
+ readonly state: pulumi.Output<string | undefined>;
57
+ /**
58
+ * Validation error messages.
59
+ */
60
+ readonly validationErrors: pulumi.Output<string[]>;
61
+ /**
62
+ * The validation status.
63
+ */
64
+ readonly validationStatus: pulumi.Output<string>;
65
+ /**
66
+ * Create a CommitRulestack resource with the given unique name, arguments, and options.
67
+ *
68
+ * @param name The _unique_ name of the resource.
69
+ * @param args The arguments to use to populate this resource's properties.
70
+ * @param opts A bag of options that control this resource's behavior.
71
+ */
72
+ constructor(name: string, args: CommitRulestackArgs, opts?: pulumi.CustomResourceOptions);
73
+ }
74
+ /**
75
+ * Input properties used for looking up and filtering CommitRulestack resources.
76
+ */
77
+ export interface CommitRulestackState {
78
+ /**
79
+ * Commit error messages.
80
+ */
81
+ commitErrors?: pulumi.Input<pulumi.Input<string>[]>;
82
+ /**
83
+ * The commit status.
84
+ */
85
+ commitStatus?: pulumi.Input<string>;
86
+ /**
87
+ * The rulestack.
88
+ */
89
+ rulestack?: pulumi.Input<string>;
90
+ /**
91
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
92
+ */
93
+ scope?: pulumi.Input<string>;
94
+ /**
95
+ * The rulestack state. This can only be the default value. Defaults to `Running`.
96
+ */
97
+ state?: pulumi.Input<string>;
98
+ /**
99
+ * Validation error messages.
100
+ */
101
+ validationErrors?: pulumi.Input<pulumi.Input<string>[]>;
102
+ /**
103
+ * The validation status.
104
+ */
105
+ validationStatus?: pulumi.Input<string>;
106
+ }
107
+ /**
108
+ * The set of arguments for constructing a CommitRulestack resource.
109
+ */
110
+ export interface CommitRulestackArgs {
111
+ /**
112
+ * The rulestack.
113
+ */
114
+ rulestack: pulumi.Input<string>;
115
+ /**
116
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
117
+ */
118
+ scope?: pulumi.Input<string>;
119
+ /**
120
+ * The rulestack state. This can only be the default value. Defaults to `Running`.
121
+ */
122
+ state?: pulumi.Input<string>;
123
+ }
@@ -0,0 +1,83 @@
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.CommitRulestack = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Resource for committing the rulestack config.
10
+ *
11
+ * !> **NOTE:** This resource should be placed in a separate plan as the plan that configures the rulestack and its contents. If you do not, you will have perpetual configuration drift and will need to run your plan twice so the commit is performed. Placing instances of this resource with instances of NGFW resources (such as `cloudngfwaws.Ngfw`) is fine.
12
+ *
13
+ * ## Admin Permission Type
14
+ *
15
+ * * `Rulestack` (for `scope="Local"`)
16
+ * * `Global Rulestack` (for `scope="Global"`)
17
+ *
18
+ * ## Example Usage
19
+ *
20
+ * ```typescript
21
+ * import * as pulumi from "@pulumi/pulumi";
22
+ * import * as cloudngfwaws from "@pulumi/cloudngfwaws";
23
+ *
24
+ * const example = new cloudngfwaws.CommitRulestack("example", {rulestack: "my-rulestack"});
25
+ * ```
26
+ */
27
+ class CommitRulestack extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing CommitRulestack resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name, id, state, opts) {
38
+ return new CommitRulestack(name, state, Object.assign(Object.assign({}, opts), { id: id }));
39
+ }
40
+ /**
41
+ * Returns true if the given object is an instance of CommitRulestack. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj) {
45
+ if (obj === undefined || obj === null) {
46
+ return false;
47
+ }
48
+ return obj['__pulumiType'] === CommitRulestack.__pulumiType;
49
+ }
50
+ constructor(name, argsOrState, opts) {
51
+ let resourceInputs = {};
52
+ opts = opts || {};
53
+ if (opts.id) {
54
+ const state = argsOrState;
55
+ resourceInputs["commitErrors"] = state ? state.commitErrors : undefined;
56
+ resourceInputs["commitStatus"] = state ? state.commitStatus : undefined;
57
+ resourceInputs["rulestack"] = state ? state.rulestack : undefined;
58
+ resourceInputs["scope"] = state ? state.scope : undefined;
59
+ resourceInputs["state"] = state ? state.state : undefined;
60
+ resourceInputs["validationErrors"] = state ? state.validationErrors : undefined;
61
+ resourceInputs["validationStatus"] = state ? state.validationStatus : undefined;
62
+ }
63
+ else {
64
+ const args = argsOrState;
65
+ if ((!args || args.rulestack === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'rulestack'");
67
+ }
68
+ resourceInputs["rulestack"] = args ? args.rulestack : undefined;
69
+ resourceInputs["scope"] = args ? args.scope : undefined;
70
+ resourceInputs["state"] = args ? args.state : undefined;
71
+ resourceInputs["commitErrors"] = undefined /*out*/;
72
+ resourceInputs["commitStatus"] = undefined /*out*/;
73
+ resourceInputs["validationErrors"] = undefined /*out*/;
74
+ resourceInputs["validationStatus"] = undefined /*out*/;
75
+ }
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
77
+ super(CommitRulestack.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.CommitRulestack = CommitRulestack;
81
+ /** @internal */
82
+ CommitRulestack.__pulumiType = 'cloudngfwaws:index/commitRulestack:CommitRulestack';
83
+ //# sourceMappingURL=commitRulestack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitRulestack.js","sourceRoot":"","sources":["../commitRulestack.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,G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AAC,CAAC;aAC5D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5FL,0CA6FC;AA/EG,gBAAgB;AACO,4BAAY,GAAG,oDAAoD,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./vars";
@@ -0,0 +1,21 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * (Used for the initial `sts assume role`) AWS access key. Environment variable: `CLOUDNGFWAWS_ACCESS_KEY`. JSON conf file
3
+ * variable: `access-key`.
4
+ */
5
+ export declare const accessKey: string | undefined;
6
+ /**
7
+ * The ARN allowing account admin permissions. Environment variable: `CLOUDNGFWAWS_ACCT_ADMIN_ARN`. JSON conf file
8
+ * variable: `account-admin-arn`.
9
+ */
10
+ export declare const accountAdminArn: string | undefined;
11
+ /**
12
+ * The ARN allowing firewall, rulestack, and global rulestack admin permissions. Global rulestack admin permissions can be
13
+ * enabled only if the AWS account is onboarded by AWS Firewall Manager. Use 'lfa_arn' and 'lra_arn' if you want to enable
14
+ * only firewall and rulestack admin permissions. Environment variable: `CLOUDNGFWAWS_ARN`. JSON conf file variable: `arn`.
15
+ */
16
+ export declare const arn: string | undefined;
17
+ /**
18
+ * The ARN allowing global rulestack admin permissions. Global rulestack admin permissions can be enabled only if the AWS
19
+ * account is onboarded by AWS Firewall Manager. 'gra_arn' is preferentially used over the `arn` param if both are
20
+ * specified. Environment variable: `CLOUDNGFWAWS_GRA_ARN`. JSON conf file variable: `gra-arn`.
21
+ */
22
+ export declare const graArn: string | undefined;
23
+ /**
24
+ * Additional HTTP headers to send with API calls. Environment variable: `CLOUDNGFWAWS_HEADERS`. JSON conf file variable:
25
+ * `headers`.
26
+ */
27
+ export declare const headers: {
28
+ [key: string]: string;
29
+ } | undefined;
30
+ /**
31
+ * The hostname of the API (default: `api.us-east-1.aws.cloudngfw.paloaltonetworks.com`). Environment variable:
32
+ * `CLOUDNGFWAWS_HOST`. JSON conf file variable: `host`.
33
+ */
34
+ export declare const host: string | undefined;
35
+ /**
36
+ * Retrieve provider configuration from this JSON file.
37
+ */
38
+ export declare const jsonConfigFile: string | undefined;
39
+ /**
40
+ * The ARN allowing firewall admin permissions. This is preferentially used over the `arn` param if both are specified.
41
+ * Environment variable: `CLOUDNGFWAWS_LFA_ARN`. JSON conf file variable: `lfa-arn`.
42
+ */
43
+ export declare const lfaArn: string | undefined;
44
+ /**
45
+ * The logging options for the provider. Environment variable: `CLOUDNGFWAWS_LOGGING`. JSON conf file variable: `logging`.
46
+ */
47
+ export declare const loggings: string[] | undefined;
48
+ /**
49
+ * The ARN allowing rulestack admin permissions. This is preferentially used over the `arn` param if both are specified.
50
+ * Environment variable: `CLOUDNGFWAWS_LRA_ARN`. JSON conf file variable: `lra-arn`.
51
+ */
52
+ export declare const lraArn: string | undefined;
53
+ /**
54
+ * AWS management plane region. Environment variable: `CLOUDNGFWAWS_MP_REGION`. JSON conf file variable: `mpRegion`.
55
+ */
56
+ export declare const mpRegion: string | undefined;
57
+ /**
58
+ * AWS management plane MP region host Environment variable: `CLOUDNGFWAWS_MP_REGION_HOST`. JSON conf file variable:
59
+ * `mpRegionHost`.
60
+ */
61
+ export declare const mpRegionHost: string | undefined;
62
+ /**
63
+ * (Used for the initial `sts assume role`) AWS PROFILE. Environment variable: `CLOUDNGFWAWS_PROFILE`. JSON conf file
64
+ * variable: `profile`.
65
+ */
66
+ export declare const profile: string | undefined;
67
+ /**
68
+ * The protocol (defaults to `https`). Environment variable: `CLOUDNGFWAWS_PROTOCOL`. JSON conf file variable: `protocol`.
69
+ * Valid values are `https` or `http`.
70
+ */
71
+ export declare const protocol: string | undefined;
72
+ /**
73
+ * AWS region. Environment variable: `CLOUDNGFWAWS_REGION`. JSON conf file variable: `region`.
74
+ */
75
+ export declare const region: string | undefined;
76
+ export declare const resourceTimeout: number | undefined;
77
+ /**
78
+ * (Used for the initial `sts assume role`) AWS secret key. Environment variable: `CLOUDNGFWAWS_SECRET_KEY`. JSON conf file
79
+ * variable: `secret-key`.
80
+ */
81
+ export declare const secretKey: string | undefined;
82
+ /**
83
+ * Skip verifying the SSL certificate. Environment variable: `CLOUDNGFWAWS_SKIP_VERIFY_CERTIFICATE`. JSON conf file
84
+ * variable: `skip-verify-certificate`.
85
+ */
86
+ export declare const skipVerifyCertificate: boolean | undefined;
87
+ /**
88
+ * Enable synchronous mode while creating resources Environment variable: `CLOUDNGFWAWS_SYNC_MODE`. JSON conf file
89
+ * variable: `syncMode`.
90
+ */
91
+ export declare const syncMode: boolean | undefined;
92
+ /**
93
+ * The timeout for any single API call (default: `30`). Environment variable: `CLOUDNGFWAWS_TIMEOUT`. JSON conf file
94
+ * variable: `timeout`.
95
+ */
96
+ export declare const timeout: number | undefined;
package/config/vars.js ADDED
@@ -0,0 +1,127 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("cloudngfwaws");
7
+ Object.defineProperty(exports, "accessKey", {
8
+ get() {
9
+ return __config.get("accessKey");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "accountAdminArn", {
14
+ get() {
15
+ return __config.get("accountAdminArn");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ Object.defineProperty(exports, "arn", {
20
+ get() {
21
+ return __config.get("arn");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ Object.defineProperty(exports, "graArn", {
26
+ get() {
27
+ return __config.get("graArn");
28
+ },
29
+ enumerable: true,
30
+ });
31
+ Object.defineProperty(exports, "headers", {
32
+ get() {
33
+ return __config.getObject("headers");
34
+ },
35
+ enumerable: true,
36
+ });
37
+ Object.defineProperty(exports, "host", {
38
+ get() {
39
+ return __config.get("host");
40
+ },
41
+ enumerable: true,
42
+ });
43
+ Object.defineProperty(exports, "jsonConfigFile", {
44
+ get() {
45
+ return __config.get("jsonConfigFile");
46
+ },
47
+ enumerable: true,
48
+ });
49
+ Object.defineProperty(exports, "lfaArn", {
50
+ get() {
51
+ return __config.get("lfaArn");
52
+ },
53
+ enumerable: true,
54
+ });
55
+ Object.defineProperty(exports, "loggings", {
56
+ get() {
57
+ return __config.getObject("loggings");
58
+ },
59
+ enumerable: true,
60
+ });
61
+ Object.defineProperty(exports, "lraArn", {
62
+ get() {
63
+ return __config.get("lraArn");
64
+ },
65
+ enumerable: true,
66
+ });
67
+ Object.defineProperty(exports, "mpRegion", {
68
+ get() {
69
+ return __config.get("mpRegion");
70
+ },
71
+ enumerable: true,
72
+ });
73
+ Object.defineProperty(exports, "mpRegionHost", {
74
+ get() {
75
+ return __config.get("mpRegionHost");
76
+ },
77
+ enumerable: true,
78
+ });
79
+ Object.defineProperty(exports, "profile", {
80
+ get() {
81
+ return __config.get("profile");
82
+ },
83
+ enumerable: true,
84
+ });
85
+ Object.defineProperty(exports, "protocol", {
86
+ get() {
87
+ return __config.get("protocol");
88
+ },
89
+ enumerable: true,
90
+ });
91
+ Object.defineProperty(exports, "region", {
92
+ get() {
93
+ return __config.get("region");
94
+ },
95
+ enumerable: true,
96
+ });
97
+ Object.defineProperty(exports, "resourceTimeout", {
98
+ get() {
99
+ return __config.getObject("resourceTimeout");
100
+ },
101
+ enumerable: true,
102
+ });
103
+ Object.defineProperty(exports, "secretKey", {
104
+ get() {
105
+ return __config.get("secretKey");
106
+ },
107
+ enumerable: true,
108
+ });
109
+ Object.defineProperty(exports, "skipVerifyCertificate", {
110
+ get() {
111
+ return __config.getObject("skipVerifyCertificate");
112
+ },
113
+ enumerable: true,
114
+ });
115
+ Object.defineProperty(exports, "syncMode", {
116
+ get() {
117
+ return __config.getObject("syncMode");
118
+ },
119
+ enumerable: true,
120
+ });
121
+ Object.defineProperty(exports, "timeout", {
122
+ get() {
123
+ return __config.getObject("timeout");
124
+ },
125
+ enumerable: true,
126
+ });
127
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAOnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE;IAC9C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC3C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAQH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE;IAClC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAQH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC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Q,CAAC,SAAS,CAAU,UAAU,CAAC,CAAC;IACnD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,SAAS,CAAC,CAAC;IACjD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -0,0 +1,172 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Resource for custom url category manipulation.
4
+ *
5
+ * ## Admin Permission Type
6
+ *
7
+ * * `Rulestack` (for `scope="Local"`)
8
+ * * `Global Rulestack` (for `scope="Global"`)
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as cloudngfwaws from "@pulumi/cloudngfwaws";
15
+ *
16
+ * const r = new cloudngfwaws.Rulestack("r", {
17
+ * name: "terraform-rulestack",
18
+ * scope: "Local",
19
+ * accountId: "123456789",
20
+ * description: "Made by Pulumi",
21
+ * profileConfig: {
22
+ * antiSpyware: "BestPractice",
23
+ * },
24
+ * });
25
+ * const example = new cloudngfwaws.CustomUrlCategory("example", {
26
+ * rulestack: r.name,
27
+ * name: "tf-custom-category",
28
+ * description: "Also configured by Terraform",
29
+ * urlLists: [
30
+ * "example.com",
31
+ * "paloaltonetworks.com",
32
+ * "foobar.org",
33
+ * ],
34
+ * action: "alert",
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * import name is <scope>:<rulestack>:<category_name>
41
+ *
42
+ * ```sh
43
+ * $ pulumi import cloudngfwaws:index/customUrlCategory:CustomUrlCategory example Local:terraform-rulestack:tf-custom-category
44
+ * ```
45
+ */
46
+ export declare class CustomUrlCategory extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing CustomUrlCategory resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomUrlCategoryState, opts?: pulumi.CustomResourceOptions): CustomUrlCategory;
57
+ /**
58
+ * Returns true if the given object is an instance of CustomUrlCategory. This is designed to work even
59
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
60
+ */
61
+ static isInstance(obj: any): obj is CustomUrlCategory;
62
+ /**
63
+ * The action to take. Valid values are `none`, `alert`, `allow`, `block`, `continue`, or `override`. Defaults to `none`.
64
+ */
65
+ readonly action: pulumi.Output<string | undefined>;
66
+ /**
67
+ * The audit comment.
68
+ */
69
+ readonly auditComment: pulumi.Output<string | undefined>;
70
+ /**
71
+ * The description.
72
+ */
73
+ readonly description: pulumi.Output<string | undefined>;
74
+ /**
75
+ * The name.
76
+ */
77
+ readonly name: pulumi.Output<string>;
78
+ /**
79
+ * The rulestack.
80
+ */
81
+ readonly rulestack: pulumi.Output<string>;
82
+ /**
83
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
84
+ */
85
+ readonly scope: pulumi.Output<string | undefined>;
86
+ /**
87
+ * The update token.
88
+ */
89
+ readonly updateToken: pulumi.Output<string>;
90
+ /**
91
+ * The URL list for this custom URL category.
92
+ */
93
+ readonly urlLists: pulumi.Output<string[]>;
94
+ /**
95
+ * Create a CustomUrlCategory resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: CustomUrlCategoryArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering CustomUrlCategory resources.
105
+ */
106
+ export interface CustomUrlCategoryState {
107
+ /**
108
+ * The action to take. Valid values are `none`, `alert`, `allow`, `block`, `continue`, or `override`. Defaults to `none`.
109
+ */
110
+ action?: pulumi.Input<string>;
111
+ /**
112
+ * The audit comment.
113
+ */
114
+ auditComment?: pulumi.Input<string>;
115
+ /**
116
+ * The description.
117
+ */
118
+ description?: pulumi.Input<string>;
119
+ /**
120
+ * The name.
121
+ */
122
+ name?: pulumi.Input<string>;
123
+ /**
124
+ * The rulestack.
125
+ */
126
+ rulestack?: pulumi.Input<string>;
127
+ /**
128
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
129
+ */
130
+ scope?: pulumi.Input<string>;
131
+ /**
132
+ * The update token.
133
+ */
134
+ updateToken?: pulumi.Input<string>;
135
+ /**
136
+ * The URL list for this custom URL category.
137
+ */
138
+ urlLists?: pulumi.Input<pulumi.Input<string>[]>;
139
+ }
140
+ /**
141
+ * The set of arguments for constructing a CustomUrlCategory resource.
142
+ */
143
+ export interface CustomUrlCategoryArgs {
144
+ /**
145
+ * The action to take. Valid values are `none`, `alert`, `allow`, `block`, `continue`, or `override`. Defaults to `none`.
146
+ */
147
+ action?: pulumi.Input<string>;
148
+ /**
149
+ * The audit comment.
150
+ */
151
+ auditComment?: pulumi.Input<string>;
152
+ /**
153
+ * The description.
154
+ */
155
+ description?: pulumi.Input<string>;
156
+ /**
157
+ * The name.
158
+ */
159
+ name?: pulumi.Input<string>;
160
+ /**
161
+ * The rulestack.
162
+ */
163
+ rulestack: pulumi.Input<string>;
164
+ /**
165
+ * The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are `Local` or `Global`. Defaults to `Local`.
166
+ */
167
+ scope?: pulumi.Input<string>;
168
+ /**
169
+ * The URL list for this custom URL category.
170
+ */
171
+ urlLists: pulumi.Input<pulumi.Input<string>[]>;
172
+ }