@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,113 @@
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.CustomUrlCategory = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Resource for custom url category manipulation.
10
+ *
11
+ * ## Admin Permission Type
12
+ *
13
+ * * `Rulestack` (for `scope="Local"`)
14
+ * * `Global Rulestack` (for `scope="Global"`)
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as cloudngfwaws from "@pulumi/cloudngfwaws";
21
+ *
22
+ * const r = new cloudngfwaws.Rulestack("r", {
23
+ * name: "terraform-rulestack",
24
+ * scope: "Local",
25
+ * accountId: "123456789",
26
+ * description: "Made by Pulumi",
27
+ * profileConfig: {
28
+ * antiSpyware: "BestPractice",
29
+ * },
30
+ * });
31
+ * const example = new cloudngfwaws.CustomUrlCategory("example", {
32
+ * rulestack: r.name,
33
+ * name: "tf-custom-category",
34
+ * description: "Also configured by Terraform",
35
+ * urlLists: [
36
+ * "example.com",
37
+ * "paloaltonetworks.com",
38
+ * "foobar.org",
39
+ * ],
40
+ * action: "alert",
41
+ * });
42
+ * ```
43
+ *
44
+ * ## Import
45
+ *
46
+ * import name is <scope>:<rulestack>:<category_name>
47
+ *
48
+ * ```sh
49
+ * $ pulumi import cloudngfwaws:index/customUrlCategory:CustomUrlCategory example Local:terraform-rulestack:tf-custom-category
50
+ * ```
51
+ */
52
+ class CustomUrlCategory extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing CustomUrlCategory resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name, id, state, opts) {
63
+ return new CustomUrlCategory(name, state, Object.assign(Object.assign({}, opts), { id: id }));
64
+ }
65
+ /**
66
+ * Returns true if the given object is an instance of CustomUrlCategory. This is designed to work even
67
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
+ */
69
+ static isInstance(obj) {
70
+ if (obj === undefined || obj === null) {
71
+ return false;
72
+ }
73
+ return obj['__pulumiType'] === CustomUrlCategory.__pulumiType;
74
+ }
75
+ constructor(name, argsOrState, opts) {
76
+ let resourceInputs = {};
77
+ opts = opts || {};
78
+ if (opts.id) {
79
+ const state = argsOrState;
80
+ resourceInputs["action"] = state ? state.action : undefined;
81
+ resourceInputs["auditComment"] = state ? state.auditComment : undefined;
82
+ resourceInputs["description"] = state ? state.description : undefined;
83
+ resourceInputs["name"] = state ? state.name : undefined;
84
+ resourceInputs["rulestack"] = state ? state.rulestack : undefined;
85
+ resourceInputs["scope"] = state ? state.scope : undefined;
86
+ resourceInputs["updateToken"] = state ? state.updateToken : undefined;
87
+ resourceInputs["urlLists"] = state ? state.urlLists : undefined;
88
+ }
89
+ else {
90
+ const args = argsOrState;
91
+ if ((!args || args.rulestack === undefined) && !opts.urn) {
92
+ throw new Error("Missing required property 'rulestack'");
93
+ }
94
+ if ((!args || args.urlLists === undefined) && !opts.urn) {
95
+ throw new Error("Missing required property 'urlLists'");
96
+ }
97
+ resourceInputs["action"] = args ? args.action : undefined;
98
+ resourceInputs["auditComment"] = args ? args.auditComment : undefined;
99
+ resourceInputs["description"] = args ? args.description : undefined;
100
+ resourceInputs["name"] = args ? args.name : undefined;
101
+ resourceInputs["rulestack"] = args ? args.rulestack : undefined;
102
+ resourceInputs["scope"] = args ? args.scope : undefined;
103
+ resourceInputs["urlLists"] = args ? args.urlLists : undefined;
104
+ resourceInputs["updateToken"] = undefined /*out*/;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(CustomUrlCategory.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.CustomUrlCategory = CustomUrlCategory;
111
+ /** @internal */
112
+ CustomUrlCategory.__pulumiType = 'cloudngfwaws:index/customUrlCategory:CustomUrlCategory';
113
+ //# sourceMappingURL=customUrlCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customUrlCategory.js","sourceRoot":"","sources":["../customUrlCategory.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,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AAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AArGL,8CAsGC;AAxFG,gBAAgB;AACO,8BAAY,GAAG,wDAAwD,CAAC"}
package/fqdnList.d.ts ADDED
@@ -0,0 +1,159 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Resource for fqdn list 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.FqdnList("example", {
26
+ * rulestack: r.name,
27
+ * name: "tf-fqdn-list",
28
+ * description: "Also configured by Terraform",
29
+ * fqdnLists: [
30
+ * "example.com",
31
+ * "foobar.org",
32
+ * ],
33
+ * auditComment: "initial config",
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * import name is <scope>:<rulestack>:<fqdn_list_name>
40
+ *
41
+ * ```sh
42
+ * $ pulumi import cloudngfwaws:index/fqdnList:FqdnList example Local:terraform-rulestack:tf-fqdn-list
43
+ * ```
44
+ */
45
+ export declare class FqdnList extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing FqdnList resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FqdnListState, opts?: pulumi.CustomResourceOptions): FqdnList;
56
+ /**
57
+ * Returns true if the given object is an instance of FqdnList. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj: any): obj is FqdnList;
61
+ /**
62
+ * The audit comment.
63
+ */
64
+ readonly auditComment: pulumi.Output<string | undefined>;
65
+ /**
66
+ * The description.
67
+ */
68
+ readonly description: pulumi.Output<string | undefined>;
69
+ /**
70
+ * The fqdn list.
71
+ */
72
+ readonly fqdnLists: pulumi.Output<string[]>;
73
+ /**
74
+ * The name.
75
+ */
76
+ readonly name: pulumi.Output<string>;
77
+ /**
78
+ * The rulestack.
79
+ */
80
+ readonly rulestack: pulumi.Output<string>;
81
+ /**
82
+ * 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`.
83
+ */
84
+ readonly scope: pulumi.Output<string | undefined>;
85
+ /**
86
+ * The update token.
87
+ */
88
+ readonly updateToken: pulumi.Output<string>;
89
+ /**
90
+ * Create a FqdnList resource with the given unique name, arguments, and options.
91
+ *
92
+ * @param name The _unique_ name of the resource.
93
+ * @param args The arguments to use to populate this resource's properties.
94
+ * @param opts A bag of options that control this resource's behavior.
95
+ */
96
+ constructor(name: string, args: FqdnListArgs, opts?: pulumi.CustomResourceOptions);
97
+ }
98
+ /**
99
+ * Input properties used for looking up and filtering FqdnList resources.
100
+ */
101
+ export interface FqdnListState {
102
+ /**
103
+ * The audit comment.
104
+ */
105
+ auditComment?: pulumi.Input<string>;
106
+ /**
107
+ * The description.
108
+ */
109
+ description?: pulumi.Input<string>;
110
+ /**
111
+ * The fqdn list.
112
+ */
113
+ fqdnLists?: pulumi.Input<pulumi.Input<string>[]>;
114
+ /**
115
+ * The name.
116
+ */
117
+ name?: pulumi.Input<string>;
118
+ /**
119
+ * The rulestack.
120
+ */
121
+ rulestack?: pulumi.Input<string>;
122
+ /**
123
+ * 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`.
124
+ */
125
+ scope?: pulumi.Input<string>;
126
+ /**
127
+ * The update token.
128
+ */
129
+ updateToken?: pulumi.Input<string>;
130
+ }
131
+ /**
132
+ * The set of arguments for constructing a FqdnList resource.
133
+ */
134
+ export interface FqdnListArgs {
135
+ /**
136
+ * The audit comment.
137
+ */
138
+ auditComment?: pulumi.Input<string>;
139
+ /**
140
+ * The description.
141
+ */
142
+ description?: pulumi.Input<string>;
143
+ /**
144
+ * The fqdn list.
145
+ */
146
+ fqdnLists: pulumi.Input<pulumi.Input<string>[]>;
147
+ /**
148
+ * The name.
149
+ */
150
+ name?: pulumi.Input<string>;
151
+ /**
152
+ * The rulestack.
153
+ */
154
+ rulestack: pulumi.Input<string>;
155
+ /**
156
+ * 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`.
157
+ */
158
+ scope?: pulumi.Input<string>;
159
+ }
package/fqdnList.js ADDED
@@ -0,0 +1,110 @@
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.FqdnList = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Resource for fqdn list manipulation.
10
+ *
11
+ * ## Admin Permission Type
12
+ *
13
+ * * `Rulestack` (for `scope="Local"`)
14
+ * * `Global Rulestack` (for `scope="Global"`)
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as cloudngfwaws from "@pulumi/cloudngfwaws";
21
+ *
22
+ * const r = new cloudngfwaws.Rulestack("r", {
23
+ * name: "terraform-rulestack",
24
+ * scope: "Local",
25
+ * accountId: "123456789",
26
+ * description: "Made by Pulumi",
27
+ * profileConfig: {
28
+ * antiSpyware: "BestPractice",
29
+ * },
30
+ * });
31
+ * const example = new cloudngfwaws.FqdnList("example", {
32
+ * rulestack: r.name,
33
+ * name: "tf-fqdn-list",
34
+ * description: "Also configured by Terraform",
35
+ * fqdnLists: [
36
+ * "example.com",
37
+ * "foobar.org",
38
+ * ],
39
+ * auditComment: "initial config",
40
+ * });
41
+ * ```
42
+ *
43
+ * ## Import
44
+ *
45
+ * import name is <scope>:<rulestack>:<fqdn_list_name>
46
+ *
47
+ * ```sh
48
+ * $ pulumi import cloudngfwaws:index/fqdnList:FqdnList example Local:terraform-rulestack:tf-fqdn-list
49
+ * ```
50
+ */
51
+ class FqdnList extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing FqdnList resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param state Any extra arguments used during the lookup.
59
+ * @param opts Optional settings to control the behavior of the CustomResource.
60
+ */
61
+ static get(name, id, state, opts) {
62
+ return new FqdnList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
63
+ }
64
+ /**
65
+ * Returns true if the given object is an instance of FqdnList. This is designed to work even
66
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
+ */
68
+ static isInstance(obj) {
69
+ if (obj === undefined || obj === null) {
70
+ return false;
71
+ }
72
+ return obj['__pulumiType'] === FqdnList.__pulumiType;
73
+ }
74
+ constructor(name, argsOrState, opts) {
75
+ let resourceInputs = {};
76
+ opts = opts || {};
77
+ if (opts.id) {
78
+ const state = argsOrState;
79
+ resourceInputs["auditComment"] = state ? state.auditComment : undefined;
80
+ resourceInputs["description"] = state ? state.description : undefined;
81
+ resourceInputs["fqdnLists"] = state ? state.fqdnLists : undefined;
82
+ resourceInputs["name"] = state ? state.name : undefined;
83
+ resourceInputs["rulestack"] = state ? state.rulestack : undefined;
84
+ resourceInputs["scope"] = state ? state.scope : undefined;
85
+ resourceInputs["updateToken"] = state ? state.updateToken : undefined;
86
+ }
87
+ else {
88
+ const args = argsOrState;
89
+ if ((!args || args.fqdnLists === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'fqdnLists'");
91
+ }
92
+ if ((!args || args.rulestack === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'rulestack'");
94
+ }
95
+ resourceInputs["auditComment"] = args ? args.auditComment : undefined;
96
+ resourceInputs["description"] = args ? args.description : undefined;
97
+ resourceInputs["fqdnLists"] = args ? args.fqdnLists : undefined;
98
+ resourceInputs["name"] = args ? args.name : undefined;
99
+ resourceInputs["rulestack"] = args ? args.rulestack : undefined;
100
+ resourceInputs["scope"] = args ? args.scope : undefined;
101
+ resourceInputs["updateToken"] = undefined /*out*/;
102
+ }
103
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
+ super(FqdnList.__pulumiType, name, resourceInputs, opts);
105
+ }
106
+ }
107
+ exports.FqdnList = FqdnList;
108
+ /** @internal */
109
+ FqdnList.__pulumiType = 'cloudngfwaws:index/fqdnList:FqdnList';
110
+ //# sourceMappingURL=fqdnList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fqdnList.js","sourceRoot":"","sources":["../fqdnList.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/FL,4BAgGC;AAlFG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,138 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Data source for retrieving account information.
4
+ *
5
+ * ## Admin Permission Type
6
+ *
7
+ * * `Rulestack` (for `scope="Local"`)
8
+ * * `Global Rulestack` (for `scope="Global"`)
9
+ */
10
+ export declare function getAccount(args?: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
11
+ /**
12
+ * A collection of arguments for invoking getAccount.
13
+ */
14
+ export interface GetAccountArgs {
15
+ /**
16
+ * The account ID
17
+ */
18
+ accountId?: string;
19
+ /**
20
+ * The CFT URL.
21
+ */
22
+ cftUrl?: string;
23
+ /**
24
+ * The external ID of the account
25
+ */
26
+ externalId?: string;
27
+ /**
28
+ * The Account onboarding status
29
+ */
30
+ onboardingStatus?: string;
31
+ /**
32
+ * Origin of account onboarding
33
+ */
34
+ origin?: string;
35
+ /**
36
+ * The account ID of cloud NGFW service
37
+ */
38
+ serviceAccountId?: string;
39
+ /**
40
+ * The SNS topic ARN
41
+ */
42
+ snsTopicArn?: string;
43
+ /**
44
+ * The trusted account ID
45
+ */
46
+ trustedAccount?: string;
47
+ }
48
+ /**
49
+ * A collection of values returned by getAccount.
50
+ */
51
+ export interface GetAccountResult {
52
+ /**
53
+ * The account ID
54
+ */
55
+ readonly accountId?: string;
56
+ /**
57
+ * The CFT URL.
58
+ */
59
+ readonly cftUrl: string;
60
+ /**
61
+ * The external ID of the account
62
+ */
63
+ readonly externalId: string;
64
+ /**
65
+ * The provider-assigned unique ID for this managed resource.
66
+ */
67
+ readonly id: string;
68
+ /**
69
+ * The Account onboarding status
70
+ */
71
+ readonly onboardingStatus: string;
72
+ /**
73
+ * Origin of account onboarding
74
+ */
75
+ readonly origin: string;
76
+ /**
77
+ * The account ID of cloud NGFW service
78
+ */
79
+ readonly serviceAccountId: string;
80
+ /**
81
+ * The SNS topic ARN
82
+ */
83
+ readonly snsTopicArn: string;
84
+ /**
85
+ * The trusted account ID
86
+ */
87
+ readonly trustedAccount: string;
88
+ /**
89
+ * The update token.
90
+ */
91
+ readonly updateToken: string;
92
+ }
93
+ /**
94
+ * Data source for retrieving account information.
95
+ *
96
+ * ## Admin Permission Type
97
+ *
98
+ * * `Rulestack` (for `scope="Local"`)
99
+ * * `Global Rulestack` (for `scope="Global"`)
100
+ */
101
+ export declare function getAccountOutput(args?: GetAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountResult>;
102
+ /**
103
+ * A collection of arguments for invoking getAccount.
104
+ */
105
+ export interface GetAccountOutputArgs {
106
+ /**
107
+ * The account ID
108
+ */
109
+ accountId?: pulumi.Input<string>;
110
+ /**
111
+ * The CFT URL.
112
+ */
113
+ cftUrl?: pulumi.Input<string>;
114
+ /**
115
+ * The external ID of the account
116
+ */
117
+ externalId?: pulumi.Input<string>;
118
+ /**
119
+ * The Account onboarding status
120
+ */
121
+ onboardingStatus?: pulumi.Input<string>;
122
+ /**
123
+ * Origin of account onboarding
124
+ */
125
+ origin?: pulumi.Input<string>;
126
+ /**
127
+ * The account ID of cloud NGFW service
128
+ */
129
+ serviceAccountId?: pulumi.Input<string>;
130
+ /**
131
+ * The SNS topic ARN
132
+ */
133
+ snsTopicArn?: pulumi.Input<string>;
134
+ /**
135
+ * The trusted account ID
136
+ */
137
+ trustedAccount?: pulumi.Input<string>;
138
+ }
package/getAccount.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.getAccountOutput = exports.getAccount = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Data source for retrieving account information.
10
+ *
11
+ * ## Admin Permission Type
12
+ *
13
+ * * `Rulestack` (for `scope="Local"`)
14
+ * * `Global Rulestack` (for `scope="Global"`)
15
+ */
16
+ function getAccount(args, opts) {
17
+ args = args || {};
18
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
19
+ return pulumi.runtime.invoke("cloudngfwaws:index/getAccount:getAccount", {
20
+ "accountId": args.accountId,
21
+ "cftUrl": args.cftUrl,
22
+ "externalId": args.externalId,
23
+ "onboardingStatus": args.onboardingStatus,
24
+ "origin": args.origin,
25
+ "serviceAccountId": args.serviceAccountId,
26
+ "snsTopicArn": args.snsTopicArn,
27
+ "trustedAccount": args.trustedAccount,
28
+ }, opts);
29
+ }
30
+ exports.getAccount = getAccount;
31
+ /**
32
+ * Data source for retrieving account information.
33
+ *
34
+ * ## Admin Permission Type
35
+ *
36
+ * * `Rulestack` (for `scope="Local"`)
37
+ * * `Global Rulestack` (for `scope="Global"`)
38
+ */
39
+ function getAccountOutput(args, opts) {
40
+ args = args || {};
41
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
42
+ return pulumi.runtime.invokeOutput("cloudngfwaws:index/getAccount:getAccount", {
43
+ "accountId": args.accountId,
44
+ "cftUrl": args.cftUrl,
45
+ "externalId": args.externalId,
46
+ "onboardingStatus": args.onboardingStatus,
47
+ "origin": args.origin,
48
+ "serviceAccountId": args.serviceAccountId,
49
+ "snsTopicArn": args.snsTopicArn,
50
+ "trustedAccount": args.trustedAccount,
51
+ }, opts);
52
+ }
53
+ exports.getAccountOutput = getAccountOutput;
54
+ //# sourceMappingURL=getAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccount.js","sourceRoot":"","sources":["../getAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC;AAqFD;;;;;;;GAOG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,4CAaC"}
@@ -0,0 +1,76 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Data source get a list of Accounts.
6
+ *
7
+ * ## Admin Permission Type
8
+ *
9
+ * * `Rulestack` (for `scope="Local"`)
10
+ * * `Global Rulestack` (for `scope="Global"`)
11
+ */
12
+ export declare function getAccounts(args?: GetAccountsArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountsResult>;
13
+ /**
14
+ * A collection of arguments for invoking getAccounts.
15
+ */
16
+ export interface GetAccountsArgs {
17
+ /**
18
+ * List of account details.
19
+ */
20
+ accountDetails?: inputs.GetAccountsAccountDetail[];
21
+ /**
22
+ * List of account ids.
23
+ */
24
+ accountIds?: string[];
25
+ /**
26
+ * Flag to include account details while listing accounts. Defaults to `false`.
27
+ */
28
+ describe?: boolean;
29
+ }
30
+ /**
31
+ * A collection of values returned by getAccounts.
32
+ */
33
+ export interface GetAccountsResult {
34
+ /**
35
+ * List of account details.
36
+ */
37
+ readonly accountDetails: outputs.GetAccountsAccountDetail[];
38
+ /**
39
+ * List of account ids.
40
+ */
41
+ readonly accountIds: string[];
42
+ /**
43
+ * Flag to include account details while listing accounts. Defaults to `false`.
44
+ */
45
+ readonly describe?: boolean;
46
+ /**
47
+ * The provider-assigned unique ID for this managed resource.
48
+ */
49
+ readonly id: string;
50
+ }
51
+ /**
52
+ * Data source get a list of Accounts.
53
+ *
54
+ * ## Admin Permission Type
55
+ *
56
+ * * `Rulestack` (for `scope="Local"`)
57
+ * * `Global Rulestack` (for `scope="Global"`)
58
+ */
59
+ export declare function getAccountsOutput(args?: GetAccountsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountsResult>;
60
+ /**
61
+ * A collection of arguments for invoking getAccounts.
62
+ */
63
+ export interface GetAccountsOutputArgs {
64
+ /**
65
+ * List of account details.
66
+ */
67
+ accountDetails?: pulumi.Input<pulumi.Input<inputs.GetAccountsAccountDetailArgs>[]>;
68
+ /**
69
+ * List of account ids.
70
+ */
71
+ accountIds?: pulumi.Input<pulumi.Input<string>[]>;
72
+ /**
73
+ * Flag to include account details while listing accounts. Defaults to `false`.
74
+ */
75
+ describe?: pulumi.Input<boolean>;
76
+ }