Skip to content

Commit 5690387

Browse files
author
awstools
committed
feat(client-ec2): This release adds API support for Path Component Exclusion (Filter Out ARN) for Reachability Analyzer
1 parent b527f8c commit 5690387

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

clients/client-ec2/src/commands/DescribeNetworkInsightsAnalysesCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
7373
* // FilterInArns: [ // ArnList
7474
* // "STRING_VALUE",
7575
* // ],
76+
* // FilterOutArns: [
77+
* // "STRING_VALUE",
78+
* // ],
7679
* // StartDate: new Date("TIMESTAMP"),
7780
* // Status: "running" || "succeeded" || "failed",
7881
* // StatusMessage: "STRING_VALUE",

clients/client-ec2/src/commands/StartNetworkInsightsAnalysisCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export interface StartNetworkInsightsAnalysisCommandOutput
4646
* FilterInArns: [ // ArnList
4747
* "STRING_VALUE",
4848
* ],
49+
* FilterOutArns: [
50+
* "STRING_VALUE",
51+
* ],
4952
* DryRun: true || false,
5053
* TagSpecifications: [ // TagSpecificationList
5154
* { // TagSpecification
@@ -73,6 +76,9 @@ export interface StartNetworkInsightsAnalysisCommandOutput
7376
* // FilterInArns: [ // ArnList
7477
* // "STRING_VALUE",
7578
* // ],
79+
* // FilterOutArns: [
80+
* // "STRING_VALUE",
81+
* // ],
7682
* // StartDate: new Date("TIMESTAMP"),
7783
* // Status: "running" || "succeeded" || "failed",
7884
* // StatusMessage: "STRING_VALUE",

clients/client-ec2/src/models/models_5.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,12 @@ export interface NetworkInsightsAnalysis {
11811181
*/
11821182
FilterInArns?: string[] | undefined;
11831183

1184+
/**
1185+
* <p>The Amazon Resource Names (ARN) of the resources that the path must ignore.</p>
1186+
* @public
1187+
*/
1188+
FilterOutArns?: string[] | undefined;
1189+
11841190
/**
11851191
* <p>The time the analysis started.</p>
11861192
* @public

clients/client-ec2/src/models/models_8.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,6 +2898,12 @@ export interface StartNetworkInsightsAnalysisRequest {
28982898
*/
28992899
FilterInArns?: string[] | undefined;
29002900

2901+
/**
2902+
* <p>The Amazon Resource Names (ARN) of the resources that the path will ignore.</p>
2903+
* @public
2904+
*/
2905+
FilterOutArns?: string[] | undefined;
2906+
29012907
/**
29022908
* <p>Checks whether you have the required permissions for the action, without actually making the request,
29032909
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.

clients/client-ec2/src/protocols/Aws_ec2.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57195,6 +57195,13 @@ const se_StartNetworkInsightsAnalysisRequest = (
5719557195
entries[loc] = value;
5719657196
});
5719757197
}
57198+
if (input[_FOA] != null) {
57199+
const memberEntries = se_ArnList(input[_FOA], context);
57200+
Object.entries(memberEntries).forEach(([key, value]) => {
57201+
const loc = `FilterOutArn.${key.substring(key.indexOf(".") + 1)}`;
57202+
entries[loc] = value;
57203+
});
57204+
}
5719857205
if (input[_DRr] != null) {
5719957206
entries[_DRr] = input[_DRr];
5720057207
}
@@ -79580,6 +79587,11 @@ const de_NetworkInsightsAnalysis = (output: any, context: __SerdeContext): Netwo
7958079587
} else if (output[_fIAS] != null && output[_fIAS][_i] != null) {
7958179588
contents[_FIA] = de_ArnList(__getArrayIfSingleItem(output[_fIAS][_i]), context);
7958279589
}
79590+
if (output.filterOutArnSet === "") {
79591+
contents[_FOA] = [];
79592+
} else if (output[_fOAS] != null && output[_fOAS][_i] != null) {
79593+
contents[_FOA] = de_ArnList(__getArrayIfSingleItem(output[_fOAS][_i]), context);
79594+
}
7958379595
if (output[_sD] != null) {
7958479596
contents[_SD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sD]));
7958579597
}
@@ -91220,6 +91232,7 @@ const _FLIa = "FastLaunchImages";
9122091232
const _FLIl = "FlowLogId";
9122191233
const _FLS = "FlowLogStatus";
9122291234
const _FM = "FailureMessage";
91235+
const _FOA = "FilterOutArns";
9122391236
const _FODC = "FulfilledOnDemandCapacity";
9122491237
const _FP = "FromPort";
9122591238
const _FPC = "ForwardPathComponents";
@@ -93442,6 +93455,7 @@ const _fLISa = "fastLaunchImageSet";
9344293455
const _fLS = "flowLogSet";
9344393456
const _fLSl = "flowLogStatus";
9344493457
const _fM = "failureMessage";
93458+
const _fOAS = "filterOutArnSet";
9344593459
const _fODC = "fulfilledOnDemandCapacity";
9344693460
const _fP = "fromPort";
9344793461
const _fPCS = "forwardPathComponentSet";

codegen/sdk-codegen/aws-models/ec2.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88289,6 +88289,14 @@
8828988289
"smithy.api#xmlName": "filterInArnSet"
8829088290
}
8829188291
},
88292+
"FilterOutArns": {
88293+
"target": "com.amazonaws.ec2#ArnList",
88294+
"traits": {
88295+
"aws.protocols#ec2QueryName": "FilterOutArnSet",
88296+
"smithy.api#documentation": "<p>The Amazon Resource Names (ARN) of the resources that the path must ignore.</p>",
88297+
"smithy.api#xmlName": "filterOutArnSet"
88298+
}
88299+
},
8829288300
"StartDate": {
8829388301
"target": "com.amazonaws.ec2#MillisecondDateTime",
8829488302
"traits": {
@@ -106522,6 +106530,13 @@
106522106530
"smithy.api#xmlName": "FilterInArn"
106523106531
}
106524106532
},
106533+
"FilterOutArns": {
106534+
"target": "com.amazonaws.ec2#ArnList",
106535+
"traits": {
106536+
"smithy.api#documentation": "<p>The Amazon Resource Names (ARN) of the resources that the path will ignore.</p>",
106537+
"smithy.api#xmlName": "FilterOutArn"
106538+
}
106539+
},
106525106540
"DryRun": {
106526106541
"target": "com.amazonaws.ec2#Boolean",
106527106542
"traits": {

0 commit comments

Comments
 (0)