@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
|
@@ -0,0 +1,149 @@
|
|
|
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.NgfwLogProfile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for NGFW log profile manipulation.
|
|
10
|
+
*
|
|
11
|
+
* ## Admin Permission Type
|
|
12
|
+
*
|
|
13
|
+
* * `Firewall`
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
* import * as cloudngfwaws from "@pulumi/cloudngfwaws";
|
|
21
|
+
*
|
|
22
|
+
* const exampleVpc = new aws.index.Vpc("example", {
|
|
23
|
+
* cidrBlock: "172.16.0.0/16",
|
|
24
|
+
* tags: {
|
|
25
|
+
* name: "tf-example",
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* const subnet1 = new aws.index.Subnet("subnet1", {
|
|
29
|
+
* vpcId: myVpc.id,
|
|
30
|
+
* cidrBlock: "172.16.10.0/24",
|
|
31
|
+
* availabilityZone: "us-west-2a",
|
|
32
|
+
* tags: {
|
|
33
|
+
* name: "tf-example",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* const subnet2 = new aws.index.Subnet("subnet2", {
|
|
37
|
+
* vpcId: myVpc.id,
|
|
38
|
+
* cidrBlock: "172.16.20.0/24",
|
|
39
|
+
* availabilityZone: "us-west-2b",
|
|
40
|
+
* tags: {
|
|
41
|
+
* name: "tf-example",
|
|
42
|
+
* },
|
|
43
|
+
* });
|
|
44
|
+
* const x = new cloudngfwaws.Ngfw("x", {
|
|
45
|
+
* name: "example-instance",
|
|
46
|
+
* vpcId: exampleVpc.id,
|
|
47
|
+
* accountId: "12345678",
|
|
48
|
+
* description: "Example description",
|
|
49
|
+
* endpointMode: "ServiceManaged",
|
|
50
|
+
* subnetMappings: [
|
|
51
|
+
* {
|
|
52
|
+
* subnetId: subnet1.id,
|
|
53
|
+
* },
|
|
54
|
+
* {
|
|
55
|
+
* subnetId: subnet2.id,
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* rulestack: "example-rulestack",
|
|
59
|
+
* tags: {
|
|
60
|
+
* Foo: "bar",
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* const example = new cloudngfwaws.NgfwLogProfile("example", {
|
|
64
|
+
* ngfw: x.name,
|
|
65
|
+
* accountId: x.accountId,
|
|
66
|
+
* logDestinations: [
|
|
67
|
+
* {
|
|
68
|
+
* destinationType: "S3",
|
|
69
|
+
* destination: "my-s3-bucket",
|
|
70
|
+
* logType: "TRAFFIC",
|
|
71
|
+
* },
|
|
72
|
+
* {
|
|
73
|
+
* destinationType: "CloudWatchLogs",
|
|
74
|
+
* destination: "panw-log-group",
|
|
75
|
+
* logType: "THREAT",
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* ## Import
|
|
82
|
+
*
|
|
83
|
+
* import name is <account_id>:<ngfw>
|
|
84
|
+
*
|
|
85
|
+
* ```sh
|
|
86
|
+
* $ pulumi import cloudngfwaws:index/ngfwLogProfile:NgfwLogProfile example 12345678:example-instance
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
class NgfwLogProfile extends pulumi.CustomResource {
|
|
90
|
+
/**
|
|
91
|
+
* Get an existing NgfwLogProfile resource's state with the given name, ID, and optional extra
|
|
92
|
+
* properties used to qualify the lookup.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resulting resource.
|
|
95
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
96
|
+
* @param state Any extra arguments used during the lookup.
|
|
97
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
98
|
+
*/
|
|
99
|
+
static get(name, id, state, opts) {
|
|
100
|
+
return new NgfwLogProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Returns true if the given object is an instance of NgfwLogProfile. This is designed to work even
|
|
104
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
105
|
+
*/
|
|
106
|
+
static isInstance(obj) {
|
|
107
|
+
if (obj === undefined || obj === null) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
return obj['__pulumiType'] === NgfwLogProfile.__pulumiType;
|
|
111
|
+
}
|
|
112
|
+
constructor(name, argsOrState, opts) {
|
|
113
|
+
let resourceInputs = {};
|
|
114
|
+
opts = opts || {};
|
|
115
|
+
if (opts.id) {
|
|
116
|
+
const state = argsOrState;
|
|
117
|
+
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
118
|
+
resourceInputs["advancedThreatLog"] = state ? state.advancedThreatLog : undefined;
|
|
119
|
+
resourceInputs["cloudWatchMetricNamespace"] = state ? state.cloudWatchMetricNamespace : undefined;
|
|
120
|
+
resourceInputs["cloudwatchMetricFields"] = state ? state.cloudwatchMetricFields : undefined;
|
|
121
|
+
resourceInputs["logDestinations"] = state ? state.logDestinations : undefined;
|
|
122
|
+
resourceInputs["ngfw"] = state ? state.ngfw : undefined;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
const args = argsOrState;
|
|
126
|
+
if ((!args || args.accountId === undefined) && !opts.urn) {
|
|
127
|
+
throw new Error("Missing required property 'accountId'");
|
|
128
|
+
}
|
|
129
|
+
if ((!args || args.logDestinations === undefined) && !opts.urn) {
|
|
130
|
+
throw new Error("Missing required property 'logDestinations'");
|
|
131
|
+
}
|
|
132
|
+
if ((!args || args.ngfw === undefined) && !opts.urn) {
|
|
133
|
+
throw new Error("Missing required property 'ngfw'");
|
|
134
|
+
}
|
|
135
|
+
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
136
|
+
resourceInputs["advancedThreatLog"] = args ? args.advancedThreatLog : undefined;
|
|
137
|
+
resourceInputs["cloudWatchMetricNamespace"] = args ? args.cloudWatchMetricNamespace : undefined;
|
|
138
|
+
resourceInputs["cloudwatchMetricFields"] = args ? args.cloudwatchMetricFields : undefined;
|
|
139
|
+
resourceInputs["logDestinations"] = args ? args.logDestinations : undefined;
|
|
140
|
+
resourceInputs["ngfw"] = args ? args.ngfw : undefined;
|
|
141
|
+
}
|
|
142
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
143
|
+
super(NgfwLogProfile.__pulumiType, name, resourceInputs, opts);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.NgfwLogProfile = NgfwLogProfile;
|
|
147
|
+
/** @internal */
|
|
148
|
+
NgfwLogProfile.__pulumiType = 'cloudngfwaws:index/ngfwLogProfile:NgfwLogProfile';
|
|
149
|
+
//# sourceMappingURL=ngfwLogProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngfwLogProfile.js","sourceRoot":"","sources":["../ngfwLogProfile.ts"],"names":[],"mappings":";AAAA,wFAAwF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CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA5FL,wCA6FC;AA/EG,gBAAgB;AACO,2BAAY,GAAG,kDAAkD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/cloudngfwaws",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Cloud NGFW for AWS resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"cloudngfwaws",
|
|
8
|
+
"Palo Alto Networks",
|
|
9
|
+
"ngfw",
|
|
10
|
+
"category/network"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://pulumi.com",
|
|
13
|
+
"repository": "https://github.com/pulumi/pulumi-cloudngfwaws",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@pulumi/pulumi": "^3.136.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/mime": "^2.0.0",
|
|
23
|
+
"@types/node": "^10.0.0",
|
|
24
|
+
"typescript": "^4.3.5"
|
|
25
|
+
},
|
|
26
|
+
"pulumi": {
|
|
27
|
+
"resource": true,
|
|
28
|
+
"name": "cloudngfwaws",
|
|
29
|
+
"version": "0.0.1",
|
|
30
|
+
"server": "github://api.github.com/pulumi/pulumi-cloudngfwaws"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource for predefined URL category override management.
|
|
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.PredefinedUrlCategoryOverride("example", {
|
|
26
|
+
* rulestack: r.name,
|
|
27
|
+
* name: "foobar",
|
|
28
|
+
* action: "block",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* import name is <rulestack>:<predefined_url_category_override_name>
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import cloudngfwaws:index/predefinedUrlCategoryOverride:PredefinedUrlCategoryOverride example terraform-rulestack:foobar
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare class PredefinedUrlCategoryOverride extends pulumi.CustomResource {
|
|
41
|
+
/**
|
|
42
|
+
* Get an existing PredefinedUrlCategoryOverride resource's state with the given name, ID, and optional extra
|
|
43
|
+
* properties used to qualify the lookup.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resulting resource.
|
|
46
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
+
* @param state Any extra arguments used during the lookup.
|
|
48
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
+
*/
|
|
50
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PredefinedUrlCategoryOverrideState, opts?: pulumi.CustomResourceOptions): PredefinedUrlCategoryOverride;
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of PredefinedUrlCategoryOverride. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj: any): obj is PredefinedUrlCategoryOverride;
|
|
56
|
+
/**
|
|
57
|
+
* The action to take. Valid values are `none`, `allow`, `alert`, or `block`. Defaults to `none`.
|
|
58
|
+
*/
|
|
59
|
+
readonly action: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The audit comment.
|
|
62
|
+
*/
|
|
63
|
+
readonly auditComment: pulumi.Output<string | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* The name.
|
|
66
|
+
*/
|
|
67
|
+
readonly name: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The rulestack.
|
|
70
|
+
*/
|
|
71
|
+
readonly rulestack: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Update token.
|
|
74
|
+
*/
|
|
75
|
+
readonly updateToken: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a PredefinedUrlCategoryOverride resource with the given unique name, arguments, and options.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resource.
|
|
80
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
81
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
82
|
+
*/
|
|
83
|
+
constructor(name: string, args: PredefinedUrlCategoryOverrideArgs, opts?: pulumi.CustomResourceOptions);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Input properties used for looking up and filtering PredefinedUrlCategoryOverride resources.
|
|
87
|
+
*/
|
|
88
|
+
export interface PredefinedUrlCategoryOverrideState {
|
|
89
|
+
/**
|
|
90
|
+
* The action to take. Valid values are `none`, `allow`, `alert`, or `block`. Defaults to `none`.
|
|
91
|
+
*/
|
|
92
|
+
action?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The audit comment.
|
|
95
|
+
*/
|
|
96
|
+
auditComment?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The name.
|
|
99
|
+
*/
|
|
100
|
+
name?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The rulestack.
|
|
103
|
+
*/
|
|
104
|
+
rulestack?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Update token.
|
|
107
|
+
*/
|
|
108
|
+
updateToken?: pulumi.Input<string>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The set of arguments for constructing a PredefinedUrlCategoryOverride resource.
|
|
112
|
+
*/
|
|
113
|
+
export interface PredefinedUrlCategoryOverrideArgs {
|
|
114
|
+
/**
|
|
115
|
+
* The action to take. Valid values are `none`, `allow`, `alert`, or `block`. Defaults to `none`.
|
|
116
|
+
*/
|
|
117
|
+
action?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The audit comment.
|
|
120
|
+
*/
|
|
121
|
+
auditComment?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The name.
|
|
124
|
+
*/
|
|
125
|
+
name?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The rulestack.
|
|
128
|
+
*/
|
|
129
|
+
rulestack: pulumi.Input<string>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.PredefinedUrlCategoryOverride = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Resource for predefined URL category override management.
|
|
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.PredefinedUrlCategoryOverride("example", {
|
|
32
|
+
* rulestack: r.name,
|
|
33
|
+
* name: "foobar",
|
|
34
|
+
* action: "block",
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* import name is <rulestack>:<predefined_url_category_override_name>
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import cloudngfwaws:index/predefinedUrlCategoryOverride:PredefinedUrlCategoryOverride example terraform-rulestack:foobar
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class PredefinedUrlCategoryOverride extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing PredefinedUrlCategoryOverride 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, id, state, opts) {
|
|
57
|
+
return new PredefinedUrlCategoryOverride(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of PredefinedUrlCategoryOverride. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === PredefinedUrlCategoryOverride.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
constructor(name, argsOrState, opts) {
|
|
70
|
+
let resourceInputs = {};
|
|
71
|
+
opts = opts || {};
|
|
72
|
+
if (opts.id) {
|
|
73
|
+
const state = argsOrState;
|
|
74
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
75
|
+
resourceInputs["auditComment"] = state ? state.auditComment : undefined;
|
|
76
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
77
|
+
resourceInputs["rulestack"] = state ? state.rulestack : undefined;
|
|
78
|
+
resourceInputs["updateToken"] = state ? state.updateToken : undefined;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if ((!args || args.rulestack === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'rulestack'");
|
|
84
|
+
}
|
|
85
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
86
|
+
resourceInputs["auditComment"] = args ? args.auditComment : undefined;
|
|
87
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
88
|
+
resourceInputs["rulestack"] = args ? args.rulestack : undefined;
|
|
89
|
+
resourceInputs["updateToken"] = undefined /*out*/;
|
|
90
|
+
}
|
|
91
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
|
+
super(PredefinedUrlCategoryOverride.__pulumiType, name, resourceInputs, opts);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.PredefinedUrlCategoryOverride = PredefinedUrlCategoryOverride;
|
|
96
|
+
/** @internal */
|
|
97
|
+
PredefinedUrlCategoryOverride.__pulumiType = 'cloudngfwaws:index/predefinedUrlCategoryOverride:PredefinedUrlCategoryOverride';
|
|
98
|
+
//# sourceMappingURL=predefinedUrlCategoryOverride.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predefinedUrlCategoryOverride.js","sourceRoot":"","sources":["../predefinedUrlCategoryOverride.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI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AC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,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,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AAhFL,sEAiFC;AAnEG,gBAAgB;AACO,0CAAY,GAAG,gFAAgF,CAAC"}
|
package/prefixList.d.ts
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource for prefix 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.PrefixList("example", {
|
|
26
|
+
* rulestack: r.name,
|
|
27
|
+
* name: "tf-prefix-list",
|
|
28
|
+
* description: "Also configured by Terraform",
|
|
29
|
+
* prefixLists: [
|
|
30
|
+
* "192.168.0.0",
|
|
31
|
+
* "10.1.5.0",
|
|
32
|
+
* ],
|
|
33
|
+
* auditComment: "initial config",
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* import name is <scope>:<rulestack>:<prefix_list_name>
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import cloudngfwaws:index/prefixList:PrefixList example Local:terraform-rulestack:tf-prefix-list
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class PrefixList extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing PrefixList 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?: PrefixListState, opts?: pulumi.CustomResourceOptions): PrefixList;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of PrefixList. 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 PrefixList;
|
|
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 name.
|
|
71
|
+
*/
|
|
72
|
+
readonly name: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The prefix list.
|
|
75
|
+
*/
|
|
76
|
+
readonly prefixLists: 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 PrefixList 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: PrefixListArgs, opts?: pulumi.CustomResourceOptions);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Input properties used for looking up and filtering PrefixList resources.
|
|
100
|
+
*/
|
|
101
|
+
export interface PrefixListState {
|
|
102
|
+
/**
|
|
103
|
+
* The audit comment.
|
|
104
|
+
*/
|
|
105
|
+
auditComment?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The description.
|
|
108
|
+
*/
|
|
109
|
+
description?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The name.
|
|
112
|
+
*/
|
|
113
|
+
name?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The prefix list.
|
|
116
|
+
*/
|
|
117
|
+
prefixLists?: pulumi.Input<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 PrefixList resource.
|
|
133
|
+
*/
|
|
134
|
+
export interface PrefixListArgs {
|
|
135
|
+
/**
|
|
136
|
+
* The audit comment.
|
|
137
|
+
*/
|
|
138
|
+
auditComment?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The description.
|
|
141
|
+
*/
|
|
142
|
+
description?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The name.
|
|
145
|
+
*/
|
|
146
|
+
name?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* The prefix list.
|
|
149
|
+
*/
|
|
150
|
+
prefixLists: pulumi.Input<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
|
+
}
|