@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.
- package/LICENSE +177 -0
- package/README.md +54 -0
- package/account.d.ts +148 -0
- package/account.js +73 -0
- package/account.js.map +1 -0
- package/accountOnboarding.d.ts +68 -0
- package/accountOnboarding.js +62 -0
- package/accountOnboarding.js.map +1 -0
- package/accountOnboardingStack.d.ts +233 -0
- package/accountOnboardingStack.js +103 -0
- package/accountOnboardingStack.js.map +1 -0
- package/certificate.d.ts +168 -0
- package/certificate.js +106 -0
- package/certificate.js.map +1 -0
- package/commitRulestack.d.ts +123 -0
- package/commitRulestack.js +83 -0
- package/commitRulestack.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +96 -0
- package/config/vars.js +127 -0
- package/config/vars.js.map +1 -0
- package/customUrlCategory.d.ts +172 -0
- package/customUrlCategory.js +113 -0
- package/customUrlCategory.js.map +1 -0
- package/fqdnList.d.ts +159 -0
- package/fqdnList.js +110 -0
- package/fqdnList.js.map +1 -0
- package/getAccount.d.ts +138 -0
- package/getAccount.js +54 -0
- package/getAccount.js.map +1 -0
- package/getAccounts.d.ts +76 -0
- package/getAccounts.js +44 -0
- package/getAccounts.js.map +1 -0
- package/getAppIdVersion.d.ts +102 -0
- package/getAppIdVersion.js +62 -0
- package/getAppIdVersion.js.map +1 -0
- package/getAppIdVersions.d.ts +86 -0
- package/getAppIdVersions.js +58 -0
- package/getAppIdVersions.js.map +1 -0
- package/getCertificate.d.ts +148 -0
- package/getCertificate.js +86 -0
- package/getCertificate.js.map +1 -0
- package/getCountry.d.ts +88 -0
- package/getCountry.js +58 -0
- package/getCountry.js.map +1 -0
- package/getCustomUrlCategory.d.ts +148 -0
- package/getCustomUrlCategory.js +86 -0
- package/getCustomUrlCategory.js.map +1 -0
- package/getFqdnList.d.ts +144 -0
- package/getFqdnList.js +86 -0
- package/getFqdnList.js.map +1 -0
- package/getIntelligentFeed.d.ts +160 -0
- package/getIntelligentFeed.js +86 -0
- package/getIntelligentFeed.js.map +1 -0
- package/getNgfw.d.ts +146 -0
- package/getNgfw.js +60 -0
- package/getNgfw.js.map +1 -0
- package/getNgfwLogProfile.d.ts +101 -0
- package/getNgfwLogProfile.js +62 -0
- package/getNgfwLogProfile.js.map +1 -0
- package/getNgfws.d.ts +83 -0
- package/getNgfws.js +58 -0
- package/getNgfws.js.map +1 -0
- package/getPredefinedUrlCategories.d.ts +88 -0
- package/getPredefinedUrlCategories.js +60 -0
- package/getPredefinedUrlCategories.js.map +1 -0
- package/getPredefinedUrlCategoryOverride.d.ts +128 -0
- package/getPredefinedUrlCategoryOverride.js +84 -0
- package/getPredefinedUrlCategoryOverride.js.map +1 -0
- package/getPrefixList.d.ts +144 -0
- package/getPrefixList.js +86 -0
- package/getPrefixList.js.map +1 -0
- package/getRulestack.d.ts +128 -0
- package/getRulestack.js +64 -0
- package/getRulestack.js.map +1 -0
- package/getSecurityRule.d.ts +169 -0
- package/getSecurityRule.js +46 -0
- package/getSecurityRule.js.map +1 -0
- package/getValidateRulestack.d.ts +82 -0
- package/getValidateRulestack.js +40 -0
- package/getValidateRulestack.js.map +1 -0
- package/index.d.ts +102 -0
- package/index.js +158 -0
- package/index.js.map +1 -0
- package/intelligentFeed.d.ts +207 -0
- package/intelligentFeed.js +118 -0
- package/intelligentFeed.js.map +1 -0
- package/ngfw.d.ts +295 -0
- package/ngfw.js +153 -0
- package/ngfw.js.map +1 -0
- package/ngfwLogProfile.d.ts +191 -0
- package/ngfwLogProfile.js +149 -0
- package/ngfwLogProfile.js.map +1 -0
- package/package.json +32 -0
- package/predefinedUrlCategoryOverride.d.ts +130 -0
- package/predefinedUrlCategoryOverride.js +98 -0
- package/predefinedUrlCategoryOverride.js.map +1 -0
- package/prefixList.d.ts +159 -0
- package/prefixList.js +110 -0
- package/prefixList.js.map +1 -0
- package/provider.d.ts +192 -0
- package/provider.js +64 -0
- package/provider.js.map +1 -0
- package/rulestack.d.ts +184 -0
- package/rulestack.js +103 -0
- package/rulestack.js.map +1 -0
- package/securityRule.d.ts +344 -0
- package/securityRule.js +162 -0
- package/securityRule.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +174 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +313 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/prefixList.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.PrefixList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for prefix 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.PrefixList("example", {
|
|
32
|
+
* rulestack: r.name,
|
|
33
|
+
* name: "tf-prefix-list",
|
|
34
|
+
* description: "Also configured by Terraform",
|
|
35
|
+
* prefixLists: [
|
|
36
|
+
* "192.168.0.0",
|
|
37
|
+
* "10.1.5.0",
|
|
38
|
+
* ],
|
|
39
|
+
* auditComment: "initial config",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* import name is <scope>:<rulestack>:<prefix_list_name>
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import cloudngfwaws:index/prefixList:PrefixList example Local:terraform-rulestack:tf-prefix-list
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class PrefixList extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing PrefixList 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 PrefixList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of PrefixList. 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'] === PrefixList.__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["name"] = state ? state.name : undefined;
|
|
82
|
+
resourceInputs["prefixLists"] = state ? state.prefixLists : 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.prefixLists === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'prefixLists'");
|
|
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["name"] = args ? args.name : undefined;
|
|
98
|
+
resourceInputs["prefixLists"] = args ? args.prefixLists : 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(PrefixList.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.PrefixList = PrefixList;
|
|
108
|
+
/** @internal */
|
|
109
|
+
PrefixList.__pulumiType = 'cloudngfwaws:index/prefixList:PrefixList';
|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CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,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,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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA/FL,gCAgGC;AAlFG,gBAAgB;AACO,uBAAY,GAAG,0CAA0C,CAAC"}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the cloudngfwaws package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* (Used for the initial `sts assume role`) AWS access key. Environment variable: `CLOUDNGFWAWS_ACCESS_KEY`. JSON conf file
|
|
16
|
+
* variable: `access-key`.
|
|
17
|
+
*/
|
|
18
|
+
readonly accessKey: pulumi.Output<string | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* The ARN allowing account admin permissions. Environment variable: `CLOUDNGFWAWS_ACCT_ADMIN_ARN`. JSON conf file
|
|
21
|
+
* variable: `account-admin-arn`.
|
|
22
|
+
*/
|
|
23
|
+
readonly accountAdminArn: pulumi.Output<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The ARN allowing firewall, rulestack, and global rulestack admin permissions. Global rulestack admin permissions can be
|
|
26
|
+
* enabled only if the AWS account is onboarded by AWS Firewall Manager. Use 'lfa_arn' and 'lra_arn' if you want to enable
|
|
27
|
+
* only firewall and rulestack admin permissions. Environment variable: `CLOUDNGFWAWS_ARN`. JSON conf file variable: `arn`.
|
|
28
|
+
*/
|
|
29
|
+
readonly arn: pulumi.Output<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The ARN allowing global rulestack admin permissions. Global rulestack admin permissions can be enabled only if the AWS
|
|
32
|
+
* account is onboarded by AWS Firewall Manager. 'gra_arn' is preferentially used over the `arn` param if both are
|
|
33
|
+
* specified. Environment variable: `CLOUDNGFWAWS_GRA_ARN`. JSON conf file variable: `gra-arn`.
|
|
34
|
+
*/
|
|
35
|
+
readonly graArn: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* The hostname of the API (default: `api.us-east-1.aws.cloudngfw.paloaltonetworks.com`). Environment variable:
|
|
38
|
+
* `CLOUDNGFWAWS_HOST`. JSON conf file variable: `host`.
|
|
39
|
+
*/
|
|
40
|
+
readonly host: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve provider configuration from this JSON file.
|
|
43
|
+
*/
|
|
44
|
+
readonly jsonConfigFile: pulumi.Output<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* The ARN allowing firewall admin permissions. This is preferentially used over the `arn` param if both are specified.
|
|
47
|
+
* Environment variable: `CLOUDNGFWAWS_LFA_ARN`. JSON conf file variable: `lfa-arn`.
|
|
48
|
+
*/
|
|
49
|
+
readonly lfaArn: pulumi.Output<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The ARN allowing rulestack admin permissions. This is preferentially used over the `arn` param if both are specified.
|
|
52
|
+
* Environment variable: `CLOUDNGFWAWS_LRA_ARN`. JSON conf file variable: `lra-arn`.
|
|
53
|
+
*/
|
|
54
|
+
readonly lraArn: pulumi.Output<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* AWS management plane region. Environment variable: `CLOUDNGFWAWS_MP_REGION`. JSON conf file variable: `mpRegion`.
|
|
57
|
+
*/
|
|
58
|
+
readonly mpRegion: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* AWS management plane MP region host Environment variable: `CLOUDNGFWAWS_MP_REGION_HOST`. JSON conf file variable:
|
|
61
|
+
* `mpRegionHost`.
|
|
62
|
+
*/
|
|
63
|
+
readonly mpRegionHost: pulumi.Output<string | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* (Used for the initial `sts assume role`) AWS PROFILE. Environment variable: `CLOUDNGFWAWS_PROFILE`. JSON conf file
|
|
66
|
+
* variable: `profile`.
|
|
67
|
+
*/
|
|
68
|
+
readonly profile: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The protocol (defaults to `https`). Environment variable: `CLOUDNGFWAWS_PROTOCOL`. JSON conf file variable: `protocol`.
|
|
71
|
+
* Valid values are `https` or `http`.
|
|
72
|
+
*/
|
|
73
|
+
readonly protocol: pulumi.Output<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* AWS region. Environment variable: `CLOUDNGFWAWS_REGION`. JSON conf file variable: `region`.
|
|
76
|
+
*/
|
|
77
|
+
readonly region: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* (Used for the initial `sts assume role`) AWS secret key. Environment variable: `CLOUDNGFWAWS_SECRET_KEY`. JSON conf file
|
|
80
|
+
* variable: `secret-key`.
|
|
81
|
+
*/
|
|
82
|
+
readonly secretKey: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a Provider resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface ProviderArgs {
|
|
96
|
+
/**
|
|
97
|
+
* (Used for the initial `sts assume role`) AWS access key. Environment variable: `CLOUDNGFWAWS_ACCESS_KEY`. JSON conf file
|
|
98
|
+
* variable: `access-key`.
|
|
99
|
+
*/
|
|
100
|
+
accessKey?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The ARN allowing account admin permissions. Environment variable: `CLOUDNGFWAWS_ACCT_ADMIN_ARN`. JSON conf file
|
|
103
|
+
* variable: `account-admin-arn`.
|
|
104
|
+
*/
|
|
105
|
+
accountAdminArn?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The ARN allowing firewall, rulestack, and global rulestack admin permissions. Global rulestack admin permissions can be
|
|
108
|
+
* enabled only if the AWS account is onboarded by AWS Firewall Manager. Use 'lfa_arn' and 'lra_arn' if you want to enable
|
|
109
|
+
* only firewall and rulestack admin permissions. Environment variable: `CLOUDNGFWAWS_ARN`. JSON conf file variable: `arn`.
|
|
110
|
+
*/
|
|
111
|
+
arn?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The ARN allowing global rulestack admin permissions. Global rulestack admin permissions can be enabled only if the AWS
|
|
114
|
+
* account is onboarded by AWS Firewall Manager. 'gra_arn' is preferentially used over the `arn` param if both are
|
|
115
|
+
* specified. Environment variable: `CLOUDNGFWAWS_GRA_ARN`. JSON conf file variable: `gra-arn`.
|
|
116
|
+
*/
|
|
117
|
+
graArn?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Additional HTTP headers to send with API calls. Environment variable: `CLOUDNGFWAWS_HEADERS`. JSON conf file variable:
|
|
120
|
+
* `headers`.
|
|
121
|
+
*/
|
|
122
|
+
headers?: pulumi.Input<{
|
|
123
|
+
[key: string]: pulumi.Input<string>;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* The hostname of the API (default: `api.us-east-1.aws.cloudngfw.paloaltonetworks.com`). Environment variable:
|
|
127
|
+
* `CLOUDNGFWAWS_HOST`. JSON conf file variable: `host`.
|
|
128
|
+
*/
|
|
129
|
+
host?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Retrieve provider configuration from this JSON file.
|
|
132
|
+
*/
|
|
133
|
+
jsonConfigFile?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The ARN allowing firewall admin permissions. This is preferentially used over the `arn` param if both are specified.
|
|
136
|
+
* Environment variable: `CLOUDNGFWAWS_LFA_ARN`. JSON conf file variable: `lfa-arn`.
|
|
137
|
+
*/
|
|
138
|
+
lfaArn?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The logging options for the provider. Environment variable: `CLOUDNGFWAWS_LOGGING`. JSON conf file variable: `logging`.
|
|
141
|
+
*/
|
|
142
|
+
loggings?: pulumi.Input<pulumi.Input<string>[]>;
|
|
143
|
+
/**
|
|
144
|
+
* The ARN allowing rulestack admin permissions. This is preferentially used over the `arn` param if both are specified.
|
|
145
|
+
* Environment variable: `CLOUDNGFWAWS_LRA_ARN`. JSON conf file variable: `lra-arn`.
|
|
146
|
+
*/
|
|
147
|
+
lraArn?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* AWS management plane region. Environment variable: `CLOUDNGFWAWS_MP_REGION`. JSON conf file variable: `mpRegion`.
|
|
150
|
+
*/
|
|
151
|
+
mpRegion?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* AWS management plane MP region host Environment variable: `CLOUDNGFWAWS_MP_REGION_HOST`. JSON conf file variable:
|
|
154
|
+
* `mpRegionHost`.
|
|
155
|
+
*/
|
|
156
|
+
mpRegionHost?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* (Used for the initial `sts assume role`) AWS PROFILE. Environment variable: `CLOUDNGFWAWS_PROFILE`. JSON conf file
|
|
159
|
+
* variable: `profile`.
|
|
160
|
+
*/
|
|
161
|
+
profile?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The protocol (defaults to `https`). Environment variable: `CLOUDNGFWAWS_PROTOCOL`. JSON conf file variable: `protocol`.
|
|
164
|
+
* Valid values are `https` or `http`.
|
|
165
|
+
*/
|
|
166
|
+
protocol?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* AWS region. Environment variable: `CLOUDNGFWAWS_REGION`. JSON conf file variable: `region`.
|
|
169
|
+
*/
|
|
170
|
+
region?: pulumi.Input<string>;
|
|
171
|
+
resourceTimeout?: pulumi.Input<number>;
|
|
172
|
+
/**
|
|
173
|
+
* (Used for the initial `sts assume role`) AWS secret key. Environment variable: `CLOUDNGFWAWS_SECRET_KEY`. JSON conf file
|
|
174
|
+
* variable: `secret-key`.
|
|
175
|
+
*/
|
|
176
|
+
secretKey?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Skip verifying the SSL certificate. Environment variable: `CLOUDNGFWAWS_SKIP_VERIFY_CERTIFICATE`. JSON conf file
|
|
179
|
+
* variable: `skip-verify-certificate`.
|
|
180
|
+
*/
|
|
181
|
+
skipVerifyCertificate?: pulumi.Input<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* Enable synchronous mode while creating resources Environment variable: `CLOUDNGFWAWS_SYNC_MODE`. JSON conf file
|
|
184
|
+
* variable: `syncMode`.
|
|
185
|
+
*/
|
|
186
|
+
syncMode?: pulumi.Input<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* The timeout for any single API call (default: `30`). Environment variable: `CLOUDNGFWAWS_TIMEOUT`. JSON conf file
|
|
189
|
+
* variable: `timeout`.
|
|
190
|
+
*/
|
|
191
|
+
timeout?: pulumi.Input<number>;
|
|
192
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the cloudngfwaws package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name, args, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
{
|
|
36
|
+
resourceInputs["accessKey"] = args ? args.accessKey : undefined;
|
|
37
|
+
resourceInputs["accountAdminArn"] = args ? args.accountAdminArn : undefined;
|
|
38
|
+
resourceInputs["arn"] = args ? args.arn : undefined;
|
|
39
|
+
resourceInputs["graArn"] = args ? args.graArn : undefined;
|
|
40
|
+
resourceInputs["headers"] = pulumi.output(args ? args.headers : undefined).apply(JSON.stringify);
|
|
41
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
42
|
+
resourceInputs["jsonConfigFile"] = args ? args.jsonConfigFile : undefined;
|
|
43
|
+
resourceInputs["lfaArn"] = args ? args.lfaArn : undefined;
|
|
44
|
+
resourceInputs["loggings"] = pulumi.output(args ? args.loggings : undefined).apply(JSON.stringify);
|
|
45
|
+
resourceInputs["lraArn"] = args ? args.lraArn : undefined;
|
|
46
|
+
resourceInputs["mpRegion"] = args ? args.mpRegion : undefined;
|
|
47
|
+
resourceInputs["mpRegionHost"] = args ? args.mpRegionHost : undefined;
|
|
48
|
+
resourceInputs["profile"] = args ? args.profile : undefined;
|
|
49
|
+
resourceInputs["protocol"] = args ? args.protocol : undefined;
|
|
50
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
51
|
+
resourceInputs["resourceTimeout"] = pulumi.output(args ? args.resourceTimeout : undefined).apply(JSON.stringify);
|
|
52
|
+
resourceInputs["secretKey"] = args ? args.secretKey : undefined;
|
|
53
|
+
resourceInputs["skipVerifyCertificate"] = pulumi.output(args ? args.skipVerifyCertificate : undefined).apply(JSON.stringify);
|
|
54
|
+
resourceInputs["syncMode"] = pulumi.output(args ? args.syncMode : undefined).apply(JSON.stringify);
|
|
55
|
+
resourceInputs["timeout"] = pulumi.output(args ? args.timeout : undefined).apply(JSON.stringify);
|
|
56
|
+
}
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Provider = Provider;
|
|
62
|
+
/** @internal */
|
|
63
|
+
Provider.__pulumiType = 'cloudngfwaws';
|
|
64
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAwED;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Resource for rulestack manipulation.
|
|
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.Rulestack("example", {
|
|
19
|
+
* name: "terraform-rulestack",
|
|
20
|
+
* scope: "Local",
|
|
21
|
+
* accountId: "123456789",
|
|
22
|
+
* description: "Made by Pulumi",
|
|
23
|
+
* profileConfig: {
|
|
24
|
+
* antiSpyware: "BestPractice",
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* import name is <scope>:<rulestack>
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import cloudngfwaws:index/rulestack:Rulestack example Local:terraform-rulestack
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class Rulestack extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing Rulestack resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RulestackState, opts?: pulumi.CustomResourceOptions): Rulestack;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Rulestack. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is Rulestack;
|
|
53
|
+
/**
|
|
54
|
+
* Account group.
|
|
55
|
+
*/
|
|
56
|
+
readonly accountGroup: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The account ID.
|
|
59
|
+
*/
|
|
60
|
+
readonly accountId: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* The description.
|
|
63
|
+
*/
|
|
64
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Lookup x forwarded for.
|
|
67
|
+
*/
|
|
68
|
+
readonly lookupXForwardedFor: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Minimum App-ID version number.
|
|
71
|
+
*/
|
|
72
|
+
readonly minimumAppIdVersion: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The name.
|
|
75
|
+
*/
|
|
76
|
+
readonly name: pulumi.Output<string>;
|
|
77
|
+
readonly profileConfig: pulumi.Output<outputs.RulestackProfileConfig>;
|
|
78
|
+
/**
|
|
79
|
+
* 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`.
|
|
80
|
+
*/
|
|
81
|
+
readonly scope: pulumi.Output<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The rulestack state.
|
|
84
|
+
*/
|
|
85
|
+
readonly state: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The tags.
|
|
88
|
+
*/
|
|
89
|
+
readonly tags: pulumi.Output<{
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
} | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a Rulestack resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: RulestackArgs, opts?: pulumi.CustomResourceOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering Rulestack resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface RulestackState {
|
|
105
|
+
/**
|
|
106
|
+
* Account group.
|
|
107
|
+
*/
|
|
108
|
+
accountGroup?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The account ID.
|
|
111
|
+
*/
|
|
112
|
+
accountId?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The description.
|
|
115
|
+
*/
|
|
116
|
+
description?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Lookup x forwarded for.
|
|
119
|
+
*/
|
|
120
|
+
lookupXForwardedFor?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Minimum App-ID version number.
|
|
123
|
+
*/
|
|
124
|
+
minimumAppIdVersion?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The name.
|
|
127
|
+
*/
|
|
128
|
+
name?: pulumi.Input<string>;
|
|
129
|
+
profileConfig?: pulumi.Input<inputs.RulestackProfileConfig>;
|
|
130
|
+
/**
|
|
131
|
+
* 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`.
|
|
132
|
+
*/
|
|
133
|
+
scope?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The rulestack state.
|
|
136
|
+
*/
|
|
137
|
+
state?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The tags.
|
|
140
|
+
*/
|
|
141
|
+
tags?: pulumi.Input<{
|
|
142
|
+
[key: string]: pulumi.Input<string>;
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The set of arguments for constructing a Rulestack resource.
|
|
147
|
+
*/
|
|
148
|
+
export interface RulestackArgs {
|
|
149
|
+
/**
|
|
150
|
+
* Account group.
|
|
151
|
+
*/
|
|
152
|
+
accountGroup?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The account ID.
|
|
155
|
+
*/
|
|
156
|
+
accountId?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The description.
|
|
159
|
+
*/
|
|
160
|
+
description?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Lookup x forwarded for.
|
|
163
|
+
*/
|
|
164
|
+
lookupXForwardedFor?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Minimum App-ID version number.
|
|
167
|
+
*/
|
|
168
|
+
minimumAppIdVersion?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The name.
|
|
171
|
+
*/
|
|
172
|
+
name?: pulumi.Input<string>;
|
|
173
|
+
profileConfig: pulumi.Input<inputs.RulestackProfileConfig>;
|
|
174
|
+
/**
|
|
175
|
+
* 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`.
|
|
176
|
+
*/
|
|
177
|
+
scope?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The tags.
|
|
180
|
+
*/
|
|
181
|
+
tags?: pulumi.Input<{
|
|
182
|
+
[key: string]: pulumi.Input<string>;
|
|
183
|
+
}>;
|
|
184
|
+
}
|
package/rulestack.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
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.Rulestack = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for rulestack 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 example = new cloudngfwaws.Rulestack("example", {
|
|
23
|
+
* name: "terraform-rulestack",
|
|
24
|
+
* scope: "Local",
|
|
25
|
+
* accountId: "123456789",
|
|
26
|
+
* description: "Made by Pulumi",
|
|
27
|
+
* profileConfig: {
|
|
28
|
+
* antiSpyware: "BestPractice",
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* import name is <scope>:<rulestack>
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import cloudngfwaws:index/rulestack:Rulestack example Local:terraform-rulestack
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class Rulestack extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing Rulestack resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new Rulestack(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of Rulestack. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === Rulestack.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
constructor(name, argsOrState, opts) {
|
|
65
|
+
let resourceInputs = {};
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
if (opts.id) {
|
|
68
|
+
const state = argsOrState;
|
|
69
|
+
resourceInputs["accountGroup"] = state ? state.accountGroup : undefined;
|
|
70
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
71
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
72
|
+
resourceInputs["lookupXForwardedFor"] = state ? state.lookupXForwardedFor : undefined;
|
|
73
|
+
resourceInputs["minimumAppIdVersion"] = state ? state.minimumAppIdVersion : undefined;
|
|
74
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
75
|
+
resourceInputs["profileConfig"] = state ? state.profileConfig : undefined;
|
|
76
|
+
resourceInputs["scope"] = state ? state.scope : undefined;
|
|
77
|
+
resourceInputs["state"] = state ? state.state : undefined;
|
|
78
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if ((!args || args.profileConfig === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'profileConfig'");
|
|
84
|
+
}
|
|
85
|
+
resourceInputs["accountGroup"] = args ? args.accountGroup : undefined;
|
|
86
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
87
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
88
|
+
resourceInputs["lookupXForwardedFor"] = args ? args.lookupXForwardedFor : undefined;
|
|
89
|
+
resourceInputs["minimumAppIdVersion"] = args ? args.minimumAppIdVersion : undefined;
|
|
90
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
91
|
+
resourceInputs["profileConfig"] = args ? args.profileConfig : undefined;
|
|
92
|
+
resourceInputs["scope"] = args ? args.scope : undefined;
|
|
93
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
94
|
+
resourceInputs["state"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(Rulestack.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.Rulestack = Rulestack;
|
|
101
|
+
/** @internal */
|
|
102
|
+
Rulestack.__pulumiType = 'cloudngfwaws:index/rulestack:Rulestack';
|
|
103
|
+
//# sourceMappingURL=rulestack.js.map
|