Skip to content

Commit 2e8472d

Browse files
author
awstools
committed
feat(client-network-firewall): Partner Managed Rulegroup feature support
1 parent 7e6e168 commit 2e8472d

File tree

10 files changed

+151
-8
lines changed

10 files changed

+151
-8
lines changed

clients/client-network-firewall/src/commands/CreateFirewallCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export interface CreateFirewallCommandOutput extends CreateFirewallResponse, __M
133133
* // },
134134
* // Config: { // SyncStateConfig
135135
* // "<keys>": { // PerObjectStatus
136-
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED",
136+
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED" || "NOT_SUBSCRIBED" || "DEPRECATED",
137137
* // UpdateToken: "STRING_VALUE",
138138
* // },
139139
* // },

clients/client-network-firewall/src/commands/DeleteFirewallCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export interface DeleteFirewallCommandOutput extends DeleteFirewallResponse, __M
105105
* // },
106106
* // Config: { // SyncStateConfig
107107
* // "<keys>": { // PerObjectStatus
108-
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED",
108+
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED" || "NOT_SUBSCRIBED" || "DEPRECATED",
109109
* // UpdateToken: "STRING_VALUE",
110110
* // },
111111
* // },

clients/client-network-firewall/src/commands/DescribeFirewallCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export interface DescribeFirewallCommandOutput extends DescribeFirewallResponse,
9696
* // },
9797
* // Config: { // SyncStateConfig
9898
* // "<keys>": { // PerObjectStatus
99-
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED",
99+
* // SyncStatus: "PENDING" || "IN_SYNC" || "CAPACITY_CONSTRAINED" || "NOT_SUBSCRIBED" || "DEPRECATED",
100100
* // UpdateToken: "STRING_VALUE",
101101
* // },
102102
* // },

clients/client-network-firewall/src/commands/DescribeRuleGroupMetadataCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export interface DescribeRuleGroupMetadataCommandOutput extends DescribeRuleGrou
5656
* // RuleOrder: "DEFAULT_ACTION_ORDER" || "STRICT_ORDER",
5757
* // },
5858
* // LastModifiedTime: new Date("TIMESTAMP"),
59+
* // VendorName: "STRING_VALUE",
60+
* // ProductId: "STRING_VALUE",
61+
* // ListingName: "STRING_VALUE",
5962
* // };
6063
*
6164
* ```

clients/client-network-firewall/src/commands/ListRuleGroupsCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __M
4242
* NextToken: "STRING_VALUE",
4343
* MaxResults: Number("int"),
4444
* Scope: "MANAGED" || "ACCOUNT",
45-
* ManagedType: "AWS_MANAGED_THREAT_SIGNATURES" || "AWS_MANAGED_DOMAIN_LISTS" || "ACTIVE_THREAT_DEFENSE",
45+
* ManagedType: "AWS_MANAGED_THREAT_SIGNATURES" || "AWS_MANAGED_DOMAIN_LISTS" || "ACTIVE_THREAT_DEFENSE" || "PARTNER_MANAGED",
46+
* SubscriptionStatus: "NOT_SUBSCRIBED" || "SUBSCRIBED",
4647
* Type: "STATELESS" || "STATEFUL",
4748
* };
4849
* const command = new ListRuleGroupsCommand(input);
@@ -53,6 +54,7 @@ export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __M
5354
* // { // RuleGroupMetadata
5455
* // Name: "STRING_VALUE",
5556
* // Arn: "STRING_VALUE",
57+
* // VendorName: "STRING_VALUE",
5658
* // },
5759
* // ],
5860
* // };

clients/client-network-firewall/src/commands/UpdateFirewallAnalysisSettingsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export interface UpdateFirewallAnalysisSettingsCommandOutput
8585
* </li>
8686
* </ul>
8787
*
88+
* @throws {@link InvalidTokenException} (client fault)
89+
* <p>The token you provided is stale or isn't valid for the operation. </p>
90+
*
8891
* @throws {@link ResourceNotFoundException} (client fault)
8992
* <p>Unable to locate a resource using the parameters that you provided.</p>
9093
*

clients/client-network-firewall/src/models/enums.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export type FirewallStatusValue = (typeof FirewallStatusValue)[keyof typeof Fire
138138
*/
139139
export const PerObjectSyncStatus = {
140140
CAPACITY_CONSTRAINED: "CAPACITY_CONSTRAINED",
141+
DEPRECATED: "DEPRECATED",
141142
IN_SYNC: "IN_SYNC",
143+
NOT_SUBSCRIBED: "NOT_SUBSCRIBED",
142144
PENDING: "PENDING",
143145
} as const;
144146
/**
@@ -397,6 +399,7 @@ export const ResourceManagedType = {
397399
ACTIVE_THREAT_DEFENSE: "ACTIVE_THREAT_DEFENSE",
398400
AWS_MANAGED_DOMAIN_LISTS: "AWS_MANAGED_DOMAIN_LISTS",
399401
AWS_MANAGED_THREAT_SIGNATURES: "AWS_MANAGED_THREAT_SIGNATURES",
402+
PARTNER_MANAGED: "PARTNER_MANAGED",
400403
} as const;
401404
/**
402405
* @public
@@ -415,3 +418,16 @@ export const ResourceManagedStatus = {
415418
* @public
416419
*/
417420
export type ResourceManagedStatus = (typeof ResourceManagedStatus)[keyof typeof ResourceManagedStatus];
421+
422+
/**
423+
* @public
424+
* @enum
425+
*/
426+
export const SubscriptionStatus = {
427+
NOT_SUBSCRIBED: "NOT_SUBSCRIBED",
428+
SUBSCRIBED: "SUBSCRIBED",
429+
} as const;
430+
/**
431+
* @public
432+
*/
433+
export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];

clients/client-network-firewall/src/models/models_0.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
StatefulRuleDirection,
2525
StatefulRuleProtocol,
2626
StreamExceptionPolicy,
27+
SubscriptionStatus,
2728
SummaryRuleOption,
2829
TargetType,
2930
TCPFlag,
@@ -3885,6 +3886,24 @@ export interface DescribeRuleGroupMetadataResponse {
38853886
* @public
38863887
*/
38873888
LastModifiedTime?: Date | undefined;
3889+
3890+
/**
3891+
* <p>The name of the Amazon Web Services Marketplace vendor that provides this rule group.</p>
3892+
* @public
3893+
*/
3894+
VendorName?: string | undefined;
3895+
3896+
/**
3897+
* <p>The unique identifier for the product listing associated with this rule group.</p>
3898+
* @public
3899+
*/
3900+
ProductId?: string | undefined;
3901+
3902+
/**
3903+
* <p>The display name of the product listing for this rule group.</p>
3904+
* @public
3905+
*/
3906+
ListingName?: string | undefined;
38883907
}
38893908

38903909
/**
@@ -4813,6 +4832,12 @@ export interface ListRuleGroupsRequest {
48134832
*/
48144833
ManagedType?: ResourceManagedType | undefined;
48154834

4835+
/**
4836+
* <p>Filters the results to show only rule groups with the specified subscription status. Use this to find subscribed or unsubscribed rule groups.</p>
4837+
* @public
4838+
*/
4839+
SubscriptionStatus?: SubscriptionStatus | undefined;
4840+
48164841
/**
48174842
* <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.</p>
48184843
* @public
@@ -4838,6 +4863,12 @@ export interface RuleGroupMetadata {
48384863
* @public
48394864
*/
48404865
Arn?: string | undefined;
4866+
4867+
/**
4868+
* <p>The name of the Amazon Web Services Marketplace seller that provides this rule group.</p>
4869+
* @public
4870+
*/
4871+
VendorName?: string | undefined;
48414872
}
48424873

48434874
/**

clients/client-network-firewall/src/schemas/schemas_0.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ const _LFPRi = "ListFirewallPoliciesResponse";
235235
const _LFR = "ListFirewallsRequest";
236236
const _LFRi = "ListFirewallsResponse";
237237
const _LMT = "LastModifiedTime";
238+
const _LN = "ListingName";
238239
const _LRG = "ListRuleGroups";
239240
const _LRGR = "ListRuleGroupsRequest";
240241
const _LRGRi = "ListRuleGroupsResponse";
@@ -262,6 +263,7 @@ const _NT = "NextToken";
262263
const _O = "Override";
263264
const _P = "Protocol";
264265
const _PC = "PacketCount";
266+
const _PI = "ProductId";
265267
const _PMA = "PublishMetricAction";
266268
const _POS = "PerObjectStatus";
267269
const _PR = "PortRange";
@@ -354,6 +356,7 @@ const _SRta = "StatelessRule";
354356
const _SRtat = "StatelessRules";
355357
const _SS = "SyncStates";
356358
const _SSC = "SyncStateConfig";
359+
const _SSu = "SubscriptionStatus";
357360
const _SSy = "SyncStatus";
358361
const _SSyn = "SyncState";
359362
const _ST = "StartTime";
@@ -445,6 +448,7 @@ const _VEAp = "VpcEndpointAssociations";
445448
const _VEI = "VpcEndpointId";
446449
const _VI = "VpcId";
447450
const _VIp = "VpcIds";
451+
const _VN = "VendorName";
448452
const _c = "client";
449453
const _e = "error";
450454
const _s = "server";
@@ -801,8 +805,8 @@ export var DescribeRuleGroupMetadataResponse: StaticStructureSchema = [
801805
n0,
802806
_DRGMRe,
803807
0,
804-
[_RGA, _RGN, _De, _Ty, _C, _SRO, _LMT],
805-
[0, 0, 0, 0, 1, () => StatefulRuleOptions, 4],
808+
[_RGA, _RGN, _De, _Ty, _C, _SRO, _LMT, _VN, _PI, _LN],
809+
[0, 0, 0, 0, 1, () => StatefulRuleOptions, 4, 0, 0, 0],
806810
];
807811
export var DescribeRuleGroupRequest: StaticStructureSchema = [3, n0, _DRGRes, 0, [_RGN, _RGA, _Ty, _ARG], [0, 0, 0, 2]];
808812
export var DescribeRuleGroupResponse: StaticStructureSchema = [
@@ -1121,7 +1125,14 @@ export var ListFlowOperationsResponse: StaticStructureSchema = [
11211125
[_FOl, _NT],
11221126
[() => FlowOperations, 0],
11231127
];
1124-
export var ListRuleGroupsRequest: StaticStructureSchema = [3, n0, _LRGR, 0, [_NT, _MR, _Sc, _MT, _Ty], [0, 1, 0, 0, 0]];
1128+
export var ListRuleGroupsRequest: StaticStructureSchema = [
1129+
3,
1130+
n0,
1131+
_LRGR,
1132+
0,
1133+
[_NT, _MR, _Sc, _MT, _SSu, _Ty],
1134+
[0, 1, 0, 0, 0, 0],
1135+
];
11251136
export var ListRuleGroupsResponse: StaticStructureSchema = [3, n0, _LRGRi, 0, [_NT, _RGu], [0, () => RuleGroups]];
11261137
export var ListTagsForResourceRequest: StaticStructureSchema = [3, n0, _LTFRR, 0, [_NT, _MR, _RA], [0, 1, 0]];
11271138
export var ListTagsForResourceResponse: StaticStructureSchema = [3, n0, _LTFRRi, 0, [_NT, _T], [0, () => TagList]];
@@ -1222,7 +1233,7 @@ export var RuleGroup: StaticStructureSchema = [
12221233
[_RV, _RS, _RSu, _SRO],
12231234
[() => RuleVariables, () => ReferenceSets, () => RulesSource, () => StatefulRuleOptions],
12241235
];
1225-
export var RuleGroupMetadata: StaticStructureSchema = [3, n0, _RGM, 0, [_N, _Ar], [0, 0]];
1236+
export var RuleGroupMetadata: StaticStructureSchema = [3, n0, _RGM, 0, [_N, _Ar, _VN], [0, 0, 0]];
12261237
export var RuleGroupResponse: StaticStructureSchema = [
12271238
3,
12281239
n0,

codegen/sdk-codegen/aws-models/network-firewall.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,6 +2530,24 @@
25302530
"traits": {
25312531
"smithy.api#documentation": "<p>A timestamp indicating when the rule group was last modified.</p>"
25322532
}
2533+
},
2534+
"VendorName": {
2535+
"target": "com.amazonaws.networkfirewall#VendorName",
2536+
"traits": {
2537+
"smithy.api#documentation": "<p>The name of the Amazon Web Services Marketplace vendor that provides this rule group.</p>"
2538+
}
2539+
},
2540+
"ProductId": {
2541+
"target": "com.amazonaws.networkfirewall#ProductId",
2542+
"traits": {
2543+
"smithy.api#documentation": "<p>The unique identifier for the product listing associated with this rule group.</p>"
2544+
}
2545+
},
2546+
"ListingName": {
2547+
"target": "com.amazonaws.networkfirewall#ListingName",
2548+
"traits": {
2549+
"smithy.api#documentation": "<p>The display name of the product listing for this rule group.</p>"
2550+
}
25332551
}
25342552
},
25352553
"traits": {
@@ -4775,6 +4793,12 @@
47754793
"smithy.api#documentation": "<p>Indicates the general category of the Amazon Web Services managed rule group.</p>"
47764794
}
47774795
},
4796+
"SubscriptionStatus": {
4797+
"target": "com.amazonaws.networkfirewall#SubscriptionStatus",
4798+
"traits": {
4799+
"smithy.api#documentation": "<p>Filters the results to show only rule groups with the specified subscription status. Use this to find subscribed or unsubscribed rule groups.</p>"
4800+
}
4801+
},
47784802
"Type": {
47794803
"target": "com.amazonaws.networkfirewall#RuleGroupType",
47804804
"traits": {
@@ -5029,6 +5053,9 @@
50295053
"smithy.api#output": {}
50305054
}
50315055
},
5056+
"com.amazonaws.networkfirewall#ListingName": {
5057+
"type": "string"
5058+
},
50325059
"com.amazonaws.networkfirewall#LogDestinationConfig": {
50335060
"type": "structure",
50345061
"members": {
@@ -6387,6 +6414,18 @@
63876414
"traits": {
63886415
"smithy.api#enumValue": "CAPACITY_CONSTRAINED"
63896416
}
6417+
},
6418+
"NOT_SUBSCRIBED": {
6419+
"target": "smithy.api#Unit",
6420+
"traits": {
6421+
"smithy.api#enumValue": "NOT_SUBSCRIBED"
6422+
}
6423+
},
6424+
"DEPRECATED": {
6425+
"target": "smithy.api#Unit",
6426+
"traits": {
6427+
"smithy.api#enumValue": "DEPRECATED"
6428+
}
63906429
}
63916430
}
63926431
},
@@ -6496,6 +6535,9 @@
64966535
}
64976536
}
64986537
},
6538+
"com.amazonaws.networkfirewall#ProductId": {
6539+
"type": "string"
6540+
},
64996541
"com.amazonaws.networkfirewall#ProtocolNumber": {
65006542
"type": "integer",
65016543
"traits": {
@@ -6738,6 +6780,12 @@
67386780
"traits": {
67396781
"smithy.api#enumValue": "ACTIVE_THREAT_DEFENSE"
67406782
}
6783+
},
6784+
"PARTNER_MANAGED": {
6785+
"target": "smithy.api#Unit",
6786+
"traits": {
6787+
"smithy.api#enumValue": "PARTNER_MANAGED"
6788+
}
67416789
}
67426790
}
67436791
},
@@ -6893,6 +6941,12 @@
68936941
"traits": {
68946942
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the rule group.</p>"
68956943
}
6944+
},
6945+
"VendorName": {
6946+
"target": "com.amazonaws.networkfirewall#VendorName",
6947+
"traits": {
6948+
"smithy.api#documentation": "<p>The name of the Amazon Web Services Marketplace seller that provides this rule group.</p>"
6949+
}
68966950
}
68976951
},
68986952
"traits": {
@@ -8092,6 +8146,23 @@
80928146
"target": "com.amazonaws.networkfirewall#SubnetMapping"
80938147
}
80948148
},
8149+
"com.amazonaws.networkfirewall#SubscriptionStatus": {
8150+
"type": "enum",
8151+
"members": {
8152+
"NOT_SUBSCRIBED": {
8153+
"target": "smithy.api#Unit",
8154+
"traits": {
8155+
"smithy.api#enumValue": "NOT_SUBSCRIBED"
8156+
}
8157+
},
8158+
"SUBSCRIBED": {
8159+
"target": "smithy.api#Unit",
8160+
"traits": {
8161+
"smithy.api#enumValue": "SUBSCRIBED"
8162+
}
8163+
}
8164+
}
8165+
},
80958166
"com.amazonaws.networkfirewall#Summary": {
80968167
"type": "structure",
80978168
"members": {
@@ -8894,6 +8965,9 @@
88948965
{
88958966
"target": "com.amazonaws.networkfirewall#InvalidRequestException"
88968967
},
8968+
{
8969+
"target": "com.amazonaws.networkfirewall#InvalidTokenException"
8970+
},
88978971
{
88988972
"target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
88998973
},
@@ -9902,6 +9976,9 @@
99029976
"target": "com.amazonaws.networkfirewall#VariableDefinition"
99039977
}
99049978
},
9979+
"com.amazonaws.networkfirewall#VendorName": {
9980+
"type": "string"
9981+
},
99059982
"com.amazonaws.networkfirewall#VpcEndpointAssociation": {
99069983
"type": "structure",
99079984
"members": {

0 commit comments

Comments
 (0)