@aws-sdk/client-network-firewall 3.936.0 → 3.940.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +183 -7
- package/dist-cjs/index.js +1000 -42
- package/dist-es/NetworkFirewall.js +44 -0
- package/dist-es/commands/AttachRuleGroupsToProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/CreateProxyCommand.js +16 -0
- package/dist-es/commands/CreateProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/CreateProxyRuleGroupCommand.js +16 -0
- package/dist-es/commands/CreateProxyRulesCommand.js +16 -0
- package/dist-es/commands/DeleteProxyCommand.js +16 -0
- package/dist-es/commands/DeleteProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/DeleteProxyRuleGroupCommand.js +16 -0
- package/dist-es/commands/DeleteProxyRulesCommand.js +16 -0
- package/dist-es/commands/DescribeProxyCommand.js +16 -0
- package/dist-es/commands/DescribeProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/DescribeProxyRuleCommand.js +16 -0
- package/dist-es/commands/DescribeProxyRuleGroupCommand.js +16 -0
- package/dist-es/commands/DetachRuleGroupsFromProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/ListProxiesCommand.js +16 -0
- package/dist-es/commands/ListProxyConfigurationsCommand.js +16 -0
- package/dist-es/commands/ListProxyRuleGroupsCommand.js +16 -0
- package/dist-es/commands/UpdateProxyCommand.js +16 -0
- package/dist-es/commands/UpdateProxyConfigurationCommand.js +16 -0
- package/dist-es/commands/UpdateProxyRuleCommand.js +16 -0
- package/dist-es/commands/UpdateProxyRuleGroupPrioritiesCommand.js +16 -0
- package/dist-es/commands/UpdateProxyRulePrioritiesCommand.js +16 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/models/enums.js +31 -0
- package/dist-es/pagination/ListProxiesPaginator.js +4 -0
- package/dist-es/pagination/ListProxyConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListProxyRuleGroupsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +649 -42
- package/dist-types/NetworkFirewall.d.ts +162 -0
- package/dist-types/NetworkFirewallClient.d.ts +24 -2
- package/dist-types/commands/AttachRuleGroupsToProxyConfigurationCommand.d.ts +136 -0
- package/dist-types/commands/CreateProxyCommand.d.ts +159 -0
- package/dist-types/commands/CreateProxyConfigurationCommand.d.ts +151 -0
- package/dist-types/commands/CreateProxyRuleGroupCommand.d.ts +225 -0
- package/dist-types/commands/CreateProxyRulesCommand.d.ts +216 -0
- package/dist-types/commands/DeleteProxyCommand.d.ts +108 -0
- package/dist-types/commands/DeleteProxyConfigurationCommand.d.ts +102 -0
- package/dist-types/commands/DeleteProxyRuleGroupCommand.d.ts +102 -0
- package/dist-types/commands/DeleteProxyRulesCommand.d.ts +167 -0
- package/dist-types/commands/DescribeProxyCommand.d.ts +133 -0
- package/dist-types/commands/DescribeProxyConfigurationCommand.d.ts +127 -0
- package/dist-types/commands/DescribeProxyRuleCommand.d.ts +116 -0
- package/dist-types/commands/DescribeProxyRuleGroupCommand.d.ts +164 -0
- package/dist-types/commands/DetachRuleGroupsFromProxyConfigurationCommand.d.ts +136 -0
- package/dist-types/commands/ListProxiesCommand.d.ts +106 -0
- package/dist-types/commands/ListProxyConfigurationsCommand.d.ts +109 -0
- package/dist-types/commands/ListProxyRuleGroupsCommand.d.ts +109 -0
- package/dist-types/commands/UpdateProxyCommand.d.ts +152 -0
- package/dist-types/commands/UpdateProxyConfigurationCommand.d.ts +133 -0
- package/dist-types/commands/UpdateProxyRuleCommand.d.ts +146 -0
- package/dist-types/commands/UpdateProxyRuleGroupPrioritiesCommand.d.ts +114 -0
- package/dist-types/commands/UpdateProxyRulePrioritiesCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/models/enums.d.ts +79 -0
- package/dist-types/models/models_0.d.ts +1834 -264
- package/dist-types/pagination/ListProxiesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProxyConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProxyRuleGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/schemas/schemas_0.d.ts +104 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +394 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +132 -0
- package/dist-types/ts3.4/commands/AttachRuleGroupsToProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateProxyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateProxyRuleGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateProxyRulesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteProxyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteProxyRuleGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteProxyRulesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribeProxyCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribeProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeProxyRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeProxyRuleGroupCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DetachRuleGroupsFromProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListProxiesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListProxyConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListProxyRuleGroupsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateProxyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateProxyConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateProxyRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateProxyRuleGroupPrioritiesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateProxyRulePrioritiesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/models/enums.d.ts +42 -0
- package/dist-types/ts3.4/models/models_0.d.ts +372 -4
- package/dist-types/ts3.4/pagination/ListProxiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProxyConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProxyRuleGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +104 -0
- package/package.json +5 -5
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateProxyRequest, CreateProxyResponse } from "../models/models_0";
|
|
4
|
+
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateProxyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateProxyCommandInput extends CreateProxyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateProxyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateProxyCommandOutput extends CreateProxyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateProxyCommand_base: {
|
|
25
|
+
new (input: CreateProxyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyCommandInput, CreateProxyCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateProxyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyCommandInput, CreateProxyCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an Network Firewall <a>Proxy</a>
|
|
31
|
+
* </p>
|
|
32
|
+
* <p>Attaches a Proxy configuration to a NAT Gateway. </p>
|
|
33
|
+
* <p>To manage a proxy's tags, use the standard Amazon Web Services resource tagging operations, <a>ListTagsForResource</a>, <a>TagResource</a>, and <a>UntagResource</a>.</p>
|
|
34
|
+
* <p>To retrieve information about proxies, use <a>ListProxies</a> and <a>DescribeProxy</a>.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { NetworkFirewallClient, CreateProxyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
39
|
+
* // const { NetworkFirewallClient, CreateProxyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
40
|
+
* // import type { NetworkFirewallClientConfig } from "@aws-sdk/client-network-firewall";
|
|
41
|
+
* const config = {}; // type is NetworkFirewallClientConfig
|
|
42
|
+
* const client = new NetworkFirewallClient(config);
|
|
43
|
+
* const input = { // CreateProxyRequest
|
|
44
|
+
* ProxyName: "STRING_VALUE", // required
|
|
45
|
+
* NatGatewayId: "STRING_VALUE", // required
|
|
46
|
+
* ProxyConfigurationName: "STRING_VALUE",
|
|
47
|
+
* ProxyConfigurationArn: "STRING_VALUE",
|
|
48
|
+
* ListenerProperties: [ // ListenerPropertiesRequest
|
|
49
|
+
* { // ListenerPropertyRequest
|
|
50
|
+
* Port: Number("int"), // required
|
|
51
|
+
* Type: "HTTP" || "HTTPS", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* TlsInterceptProperties: { // TlsInterceptPropertiesRequest
|
|
55
|
+
* PcaArn: "STRING_VALUE",
|
|
56
|
+
* TlsInterceptMode: "ENABLED" || "DISABLED",
|
|
57
|
+
* },
|
|
58
|
+
* Tags: [ // TagList
|
|
59
|
+
* { // Tag
|
|
60
|
+
* Key: "STRING_VALUE", // required
|
|
61
|
+
* Value: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* };
|
|
65
|
+
* const command = new CreateProxyCommand(input);
|
|
66
|
+
* const response = await client.send(command);
|
|
67
|
+
* // { // CreateProxyResponse
|
|
68
|
+
* // Proxy: { // Proxy
|
|
69
|
+
* // CreateTime: new Date("TIMESTAMP"),
|
|
70
|
+
* // DeleteTime: new Date("TIMESTAMP"),
|
|
71
|
+
* // UpdateTime: new Date("TIMESTAMP"),
|
|
72
|
+
* // FailureCode: "STRING_VALUE",
|
|
73
|
+
* // FailureMessage: "STRING_VALUE",
|
|
74
|
+
* // ProxyState: "ATTACHING" || "ATTACHED" || "DETACHING" || "DETACHED" || "ATTACH_FAILED" || "DETACH_FAILED",
|
|
75
|
+
* // ProxyModifyState: "MODIFYING" || "COMPLETED" || "FAILED",
|
|
76
|
+
* // NatGatewayId: "STRING_VALUE",
|
|
77
|
+
* // ProxyConfigurationName: "STRING_VALUE",
|
|
78
|
+
* // ProxyConfigurationArn: "STRING_VALUE",
|
|
79
|
+
* // ProxyName: "STRING_VALUE",
|
|
80
|
+
* // ProxyArn: "STRING_VALUE",
|
|
81
|
+
* // ListenerProperties: [ // ListenerProperties
|
|
82
|
+
* // { // ListenerProperty
|
|
83
|
+
* // Port: Number("int"),
|
|
84
|
+
* // Type: "HTTP" || "HTTPS",
|
|
85
|
+
* // },
|
|
86
|
+
* // ],
|
|
87
|
+
* // TlsInterceptProperties: { // TlsInterceptProperties
|
|
88
|
+
* // PcaArn: "STRING_VALUE",
|
|
89
|
+
* // TlsInterceptMode: "ENABLED" || "DISABLED",
|
|
90
|
+
* // },
|
|
91
|
+
* // Tags: [ // TagList
|
|
92
|
+
* // { // Tag
|
|
93
|
+
* // Key: "STRING_VALUE", // required
|
|
94
|
+
* // Value: "STRING_VALUE", // required
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
97
|
+
* // },
|
|
98
|
+
* // UpdateToken: "STRING_VALUE",
|
|
99
|
+
* // };
|
|
100
|
+
*
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @param CreateProxyCommandInput - {@link CreateProxyCommandInput}
|
|
104
|
+
* @returns {@link CreateProxyCommandOutput}
|
|
105
|
+
* @see {@link CreateProxyCommandInput} for command's `input` shape.
|
|
106
|
+
* @see {@link CreateProxyCommandOutput} for command's `response` shape.
|
|
107
|
+
* @see {@link NetworkFirewallClientResolvedConfig | config} for NetworkFirewallClient's `config` shape.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link InternalServerError} (server fault)
|
|
110
|
+
* <p>Your request is valid, but Network Firewall couldn't perform the operation because of a
|
|
111
|
+
* system problem. Retry your request. </p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
114
|
+
* <p>The operation failed because of a problem with your request. Examples include: </p>
|
|
115
|
+
* <ul>
|
|
116
|
+
* <li>
|
|
117
|
+
* <p>You specified an unsupported parameter name or value.</p>
|
|
118
|
+
* </li>
|
|
119
|
+
* <li>
|
|
120
|
+
* <p>You tried to update a property with a value that isn't among the available
|
|
121
|
+
* types.</p>
|
|
122
|
+
* </li>
|
|
123
|
+
* <li>
|
|
124
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
125
|
+
* that isn't valid in the context of the request.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* </ul>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
130
|
+
* <p>Unable to perform the operation because doing so would violate a limit setting. </p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
133
|
+
* <p>Unable to locate a resource using the parameters that you provided.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
136
|
+
* <p>Unable to process the request due to throttling limitations.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link UnsupportedOperationException} (client fault)
|
|
139
|
+
* <p>The operation you requested isn't supported by Network Firewall. </p>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link NetworkFirewallServiceException}
|
|
142
|
+
* <p>Base exception class for all service exceptions from NetworkFirewall service.</p>
|
|
143
|
+
*
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
export declare class CreateProxyCommand extends CreateProxyCommand_base {
|
|
148
|
+
/** @internal type navigation helper, not in runtime. */
|
|
149
|
+
protected static __types: {
|
|
150
|
+
api: {
|
|
151
|
+
input: CreateProxyRequest;
|
|
152
|
+
output: CreateProxyResponse;
|
|
153
|
+
};
|
|
154
|
+
sdk: {
|
|
155
|
+
input: CreateProxyCommandInput;
|
|
156
|
+
output: CreateProxyCommandOutput;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateProxyConfigurationRequest, CreateProxyConfigurationResponse } from "../models/models_0";
|
|
4
|
+
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateProxyConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateProxyConfigurationCommandInput extends CreateProxyConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateProxyConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateProxyConfigurationCommandOutput extends CreateProxyConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateProxyConfigurationCommand_base: {
|
|
25
|
+
new (input: CreateProxyConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyConfigurationCommandInput, CreateProxyConfigurationCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateProxyConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyConfigurationCommandInput, CreateProxyConfigurationCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an Network Firewall <a>ProxyConfiguration</a>
|
|
31
|
+
* </p>
|
|
32
|
+
* <p>A Proxy Configuration defines the monitoring and protection behavior for a Proxy. The details of the behavior are defined in the rule groups that you add to your configuration. </p>
|
|
33
|
+
* <p>To manage a proxy configuration's tags, use the standard Amazon Web Services resource tagging operations, <a>ListTagsForResource</a>, <a>TagResource</a>, and <a>UntagResource</a>.</p>
|
|
34
|
+
* <p>To retrieve information about proxies, use <a>ListProxyConfigurations</a> and <a>DescribeProxyConfiguration</a>.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { NetworkFirewallClient, CreateProxyConfigurationCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
39
|
+
* // const { NetworkFirewallClient, CreateProxyConfigurationCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
40
|
+
* // import type { NetworkFirewallClientConfig } from "@aws-sdk/client-network-firewall";
|
|
41
|
+
* const config = {}; // type is NetworkFirewallClientConfig
|
|
42
|
+
* const client = new NetworkFirewallClient(config);
|
|
43
|
+
* const input = { // CreateProxyConfigurationRequest
|
|
44
|
+
* ProxyConfigurationName: "STRING_VALUE", // required
|
|
45
|
+
* Description: "STRING_VALUE",
|
|
46
|
+
* RuleGroupNames: [ // ResourceNameList
|
|
47
|
+
* "STRING_VALUE",
|
|
48
|
+
* ],
|
|
49
|
+
* RuleGroupArns: [ // ResourceArnList
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* DefaultRulePhaseActions: { // ProxyConfigDefaultRulePhaseActionsRequest
|
|
53
|
+
* PreDNS: "ALLOW" || "DENY" || "ALERT",
|
|
54
|
+
* PreREQUEST: "ALLOW" || "DENY" || "ALERT",
|
|
55
|
+
* PostRESPONSE: "ALLOW" || "DENY" || "ALERT",
|
|
56
|
+
* },
|
|
57
|
+
* Tags: [ // TagList
|
|
58
|
+
* { // Tag
|
|
59
|
+
* Key: "STRING_VALUE", // required
|
|
60
|
+
* Value: "STRING_VALUE", // required
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* };
|
|
64
|
+
* const command = new CreateProxyConfigurationCommand(input);
|
|
65
|
+
* const response = await client.send(command);
|
|
66
|
+
* // { // CreateProxyConfigurationResponse
|
|
67
|
+
* // ProxyConfiguration: { // ProxyConfiguration
|
|
68
|
+
* // ProxyConfigurationName: "STRING_VALUE",
|
|
69
|
+
* // ProxyConfigurationArn: "STRING_VALUE",
|
|
70
|
+
* // Description: "STRING_VALUE",
|
|
71
|
+
* // CreateTime: new Date("TIMESTAMP"),
|
|
72
|
+
* // DeleteTime: new Date("TIMESTAMP"),
|
|
73
|
+
* // RuleGroups: [ // ProxyConfigRuleGroupSet
|
|
74
|
+
* // { // ProxyConfigRuleGroup
|
|
75
|
+
* // ProxyRuleGroupName: "STRING_VALUE",
|
|
76
|
+
* // ProxyRuleGroupArn: "STRING_VALUE",
|
|
77
|
+
* // Type: "STRING_VALUE",
|
|
78
|
+
* // Priority: Number("int"),
|
|
79
|
+
* // },
|
|
80
|
+
* // ],
|
|
81
|
+
* // DefaultRulePhaseActions: { // ProxyConfigDefaultRulePhaseActionsRequest
|
|
82
|
+
* // PreDNS: "ALLOW" || "DENY" || "ALERT",
|
|
83
|
+
* // PreREQUEST: "ALLOW" || "DENY" || "ALERT",
|
|
84
|
+
* // PostRESPONSE: "ALLOW" || "DENY" || "ALERT",
|
|
85
|
+
* // },
|
|
86
|
+
* // Tags: [ // TagList
|
|
87
|
+
* // { // Tag
|
|
88
|
+
* // Key: "STRING_VALUE", // required
|
|
89
|
+
* // Value: "STRING_VALUE", // required
|
|
90
|
+
* // },
|
|
91
|
+
* // ],
|
|
92
|
+
* // },
|
|
93
|
+
* // UpdateToken: "STRING_VALUE",
|
|
94
|
+
* // };
|
|
95
|
+
*
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @param CreateProxyConfigurationCommandInput - {@link CreateProxyConfigurationCommandInput}
|
|
99
|
+
* @returns {@link CreateProxyConfigurationCommandOutput}
|
|
100
|
+
* @see {@link CreateProxyConfigurationCommandInput} for command's `input` shape.
|
|
101
|
+
* @see {@link CreateProxyConfigurationCommandOutput} for command's `response` shape.
|
|
102
|
+
* @see {@link NetworkFirewallClientResolvedConfig | config} for NetworkFirewallClient's `config` shape.
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link InternalServerError} (server fault)
|
|
105
|
+
* <p>Your request is valid, but Network Firewall couldn't perform the operation because of a
|
|
106
|
+
* system problem. Retry your request. </p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
109
|
+
* <p>The operation failed because of a problem with your request. Examples include: </p>
|
|
110
|
+
* <ul>
|
|
111
|
+
* <li>
|
|
112
|
+
* <p>You specified an unsupported parameter name or value.</p>
|
|
113
|
+
* </li>
|
|
114
|
+
* <li>
|
|
115
|
+
* <p>You tried to update a property with a value that isn't among the available
|
|
116
|
+
* types.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
120
|
+
* that isn't valid in the context of the request.</p>
|
|
121
|
+
* </li>
|
|
122
|
+
* </ul>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
125
|
+
* <p>Unable to perform the operation because doing so would violate a limit setting. </p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
128
|
+
* <p>Unable to locate a resource using the parameters that you provided.</p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
131
|
+
* <p>Unable to process the request due to throttling limitations.</p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link NetworkFirewallServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from NetworkFirewall service.</p>
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
export declare class CreateProxyConfigurationCommand extends CreateProxyConfigurationCommand_base {
|
|
140
|
+
/** @internal type navigation helper, not in runtime. */
|
|
141
|
+
protected static __types: {
|
|
142
|
+
api: {
|
|
143
|
+
input: CreateProxyConfigurationRequest;
|
|
144
|
+
output: CreateProxyConfigurationResponse;
|
|
145
|
+
};
|
|
146
|
+
sdk: {
|
|
147
|
+
input: CreateProxyConfigurationCommandInput;
|
|
148
|
+
output: CreateProxyConfigurationCommandOutput;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateProxyRuleGroupRequest, CreateProxyRuleGroupResponse } from "../models/models_0";
|
|
4
|
+
import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateProxyRuleGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateProxyRuleGroupCommandInput extends CreateProxyRuleGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateProxyRuleGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateProxyRuleGroupCommandOutput extends CreateProxyRuleGroupResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateProxyRuleGroupCommand_base: {
|
|
25
|
+
new (input: CreateProxyRuleGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyRuleGroupCommandInput, CreateProxyRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateProxyRuleGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProxyRuleGroupCommandInput, CreateProxyRuleGroupCommandOutput, NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an Network Firewall <a>ProxyRuleGroup</a>
|
|
31
|
+
* </p>
|
|
32
|
+
* <p>Collections of related proxy filtering rules. Rule groups help you manage and reuse sets of rules across multiple proxy configurations. </p>
|
|
33
|
+
* <p>To manage a proxy rule group's tags, use the standard Amazon Web Services resource tagging operations, <a>ListTagsForResource</a>, <a>TagResource</a>, and <a>UntagResource</a>.</p>
|
|
34
|
+
* <p>To retrieve information about proxy rule groups, use <a>ListProxyRuleGroups</a> and <a>DescribeProxyRuleGroup</a>.</p>
|
|
35
|
+
* <p>To retrieve information about individual proxy rules, use <a>DescribeProxyRuleGroup</a> and <a>DescribeProxyRule</a>.</p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { NetworkFirewallClient, CreateProxyRuleGroupCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
|
|
40
|
+
* // const { NetworkFirewallClient, CreateProxyRuleGroupCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
|
|
41
|
+
* // import type { NetworkFirewallClientConfig } from "@aws-sdk/client-network-firewall";
|
|
42
|
+
* const config = {}; // type is NetworkFirewallClientConfig
|
|
43
|
+
* const client = new NetworkFirewallClient(config);
|
|
44
|
+
* const input = { // CreateProxyRuleGroupRequest
|
|
45
|
+
* ProxyRuleGroupName: "STRING_VALUE", // required
|
|
46
|
+
* Description: "STRING_VALUE",
|
|
47
|
+
* Rules: { // ProxyRulesByRequestPhase
|
|
48
|
+
* PreDNS: [ // ProxyRuleList
|
|
49
|
+
* { // ProxyRule
|
|
50
|
+
* ProxyRuleName: "STRING_VALUE",
|
|
51
|
+
* Description: "STRING_VALUE",
|
|
52
|
+
* Action: "ALLOW" || "DENY" || "ALERT",
|
|
53
|
+
* Conditions: [ // ProxyRuleConditionList
|
|
54
|
+
* { // ProxyRuleCondition
|
|
55
|
+
* ConditionOperator: "STRING_VALUE",
|
|
56
|
+
* ConditionKey: "STRING_VALUE",
|
|
57
|
+
* ConditionValues: [ // ProxyConditionValueList
|
|
58
|
+
* "STRING_VALUE",
|
|
59
|
+
* ],
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* PreREQUEST: [
|
|
65
|
+
* {
|
|
66
|
+
* ProxyRuleName: "STRING_VALUE",
|
|
67
|
+
* Description: "STRING_VALUE",
|
|
68
|
+
* Action: "ALLOW" || "DENY" || "ALERT",
|
|
69
|
+
* Conditions: [
|
|
70
|
+
* {
|
|
71
|
+
* ConditionOperator: "STRING_VALUE",
|
|
72
|
+
* ConditionKey: "STRING_VALUE",
|
|
73
|
+
* ConditionValues: [
|
|
74
|
+
* "STRING_VALUE",
|
|
75
|
+
* ],
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* PostRESPONSE: [
|
|
81
|
+
* {
|
|
82
|
+
* ProxyRuleName: "STRING_VALUE",
|
|
83
|
+
* Description: "STRING_VALUE",
|
|
84
|
+
* Action: "ALLOW" || "DENY" || "ALERT",
|
|
85
|
+
* Conditions: [
|
|
86
|
+
* {
|
|
87
|
+
* ConditionOperator: "STRING_VALUE",
|
|
88
|
+
* ConditionKey: "STRING_VALUE",
|
|
89
|
+
* ConditionValues: [
|
|
90
|
+
* "STRING_VALUE",
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* ],
|
|
94
|
+
* },
|
|
95
|
+
* ],
|
|
96
|
+
* },
|
|
97
|
+
* Tags: [ // TagList
|
|
98
|
+
* { // Tag
|
|
99
|
+
* Key: "STRING_VALUE", // required
|
|
100
|
+
* Value: "STRING_VALUE", // required
|
|
101
|
+
* },
|
|
102
|
+
* ],
|
|
103
|
+
* };
|
|
104
|
+
* const command = new CreateProxyRuleGroupCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* // { // CreateProxyRuleGroupResponse
|
|
107
|
+
* // ProxyRuleGroup: { // ProxyRuleGroup
|
|
108
|
+
* // ProxyRuleGroupName: "STRING_VALUE",
|
|
109
|
+
* // ProxyRuleGroupArn: "STRING_VALUE",
|
|
110
|
+
* // CreateTime: new Date("TIMESTAMP"),
|
|
111
|
+
* // DeleteTime: new Date("TIMESTAMP"),
|
|
112
|
+
* // Rules: { // ProxyRulesByRequestPhase
|
|
113
|
+
* // PreDNS: [ // ProxyRuleList
|
|
114
|
+
* // { // ProxyRule
|
|
115
|
+
* // ProxyRuleName: "STRING_VALUE",
|
|
116
|
+
* // Description: "STRING_VALUE",
|
|
117
|
+
* // Action: "ALLOW" || "DENY" || "ALERT",
|
|
118
|
+
* // Conditions: [ // ProxyRuleConditionList
|
|
119
|
+
* // { // ProxyRuleCondition
|
|
120
|
+
* // ConditionOperator: "STRING_VALUE",
|
|
121
|
+
* // ConditionKey: "STRING_VALUE",
|
|
122
|
+
* // ConditionValues: [ // ProxyConditionValueList
|
|
123
|
+
* // "STRING_VALUE",
|
|
124
|
+
* // ],
|
|
125
|
+
* // },
|
|
126
|
+
* // ],
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
129
|
+
* // PreREQUEST: [
|
|
130
|
+
* // {
|
|
131
|
+
* // ProxyRuleName: "STRING_VALUE",
|
|
132
|
+
* // Description: "STRING_VALUE",
|
|
133
|
+
* // Action: "ALLOW" || "DENY" || "ALERT",
|
|
134
|
+
* // Conditions: [
|
|
135
|
+
* // {
|
|
136
|
+
* // ConditionOperator: "STRING_VALUE",
|
|
137
|
+
* // ConditionKey: "STRING_VALUE",
|
|
138
|
+
* // ConditionValues: [
|
|
139
|
+
* // "STRING_VALUE",
|
|
140
|
+
* // ],
|
|
141
|
+
* // },
|
|
142
|
+
* // ],
|
|
143
|
+
* // },
|
|
144
|
+
* // ],
|
|
145
|
+
* // PostRESPONSE: [
|
|
146
|
+
* // {
|
|
147
|
+
* // ProxyRuleName: "STRING_VALUE",
|
|
148
|
+
* // Description: "STRING_VALUE",
|
|
149
|
+
* // Action: "ALLOW" || "DENY" || "ALERT",
|
|
150
|
+
* // Conditions: [
|
|
151
|
+
* // {
|
|
152
|
+
* // ConditionOperator: "STRING_VALUE",
|
|
153
|
+
* // ConditionKey: "STRING_VALUE",
|
|
154
|
+
* // ConditionValues: [
|
|
155
|
+
* // "STRING_VALUE",
|
|
156
|
+
* // ],
|
|
157
|
+
* // },
|
|
158
|
+
* // ],
|
|
159
|
+
* // },
|
|
160
|
+
* // ],
|
|
161
|
+
* // },
|
|
162
|
+
* // Description: "STRING_VALUE",
|
|
163
|
+
* // Tags: [ // TagList
|
|
164
|
+
* // { // Tag
|
|
165
|
+
* // Key: "STRING_VALUE", // required
|
|
166
|
+
* // Value: "STRING_VALUE", // required
|
|
167
|
+
* // },
|
|
168
|
+
* // ],
|
|
169
|
+
* // },
|
|
170
|
+
* // UpdateToken: "STRING_VALUE",
|
|
171
|
+
* // };
|
|
172
|
+
*
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* @param CreateProxyRuleGroupCommandInput - {@link CreateProxyRuleGroupCommandInput}
|
|
176
|
+
* @returns {@link CreateProxyRuleGroupCommandOutput}
|
|
177
|
+
* @see {@link CreateProxyRuleGroupCommandInput} for command's `input` shape.
|
|
178
|
+
* @see {@link CreateProxyRuleGroupCommandOutput} for command's `response` shape.
|
|
179
|
+
* @see {@link NetworkFirewallClientResolvedConfig | config} for NetworkFirewallClient's `config` shape.
|
|
180
|
+
*
|
|
181
|
+
* @throws {@link InternalServerError} (server fault)
|
|
182
|
+
* <p>Your request is valid, but Network Firewall couldn't perform the operation because of a
|
|
183
|
+
* system problem. Retry your request. </p>
|
|
184
|
+
*
|
|
185
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
186
|
+
* <p>The operation failed because of a problem with your request. Examples include: </p>
|
|
187
|
+
* <ul>
|
|
188
|
+
* <li>
|
|
189
|
+
* <p>You specified an unsupported parameter name or value.</p>
|
|
190
|
+
* </li>
|
|
191
|
+
* <li>
|
|
192
|
+
* <p>You tried to update a property with a value that isn't among the available
|
|
193
|
+
* types.</p>
|
|
194
|
+
* </li>
|
|
195
|
+
* <li>
|
|
196
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
197
|
+
* that isn't valid in the context of the request.</p>
|
|
198
|
+
* </li>
|
|
199
|
+
* </ul>
|
|
200
|
+
*
|
|
201
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
202
|
+
* <p>Unable to perform the operation because doing so would violate a limit setting. </p>
|
|
203
|
+
*
|
|
204
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
205
|
+
* <p>Unable to process the request due to throttling limitations.</p>
|
|
206
|
+
*
|
|
207
|
+
* @throws {@link NetworkFirewallServiceException}
|
|
208
|
+
* <p>Base exception class for all service exceptions from NetworkFirewall service.</p>
|
|
209
|
+
*
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
export declare class CreateProxyRuleGroupCommand extends CreateProxyRuleGroupCommand_base {
|
|
214
|
+
/** @internal type navigation helper, not in runtime. */
|
|
215
|
+
protected static __types: {
|
|
216
|
+
api: {
|
|
217
|
+
input: CreateProxyRuleGroupRequest;
|
|
218
|
+
output: CreateProxyRuleGroupResponse;
|
|
219
|
+
};
|
|
220
|
+
sdk: {
|
|
221
|
+
input: CreateProxyRuleGroupCommandInput;
|
|
222
|
+
output: CreateProxyRuleGroupCommandOutput;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}
|