Skip to content

Commit 46806f9

Browse files
This release adds API support for Path Component Exclusion (Filter Out ARN) for Reachability Analyzer
1 parent 7d9e397 commit 46806f9

File tree

7 files changed

+84
-1
lines changed

7 files changed

+84
-1
lines changed

generator/ServiceModels/ec2/ec2-2016-11-15.api.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38333,6 +38333,10 @@
3833338333
"shape":"ArnList",
3833438334
"locationName":"filterInArnSet"
3833538335
},
38336+
"FilterOutArns":{
38337+
"shape":"ArnList",
38338+
"locationName":"filterOutArnSet"
38339+
},
3833638340
"StartDate":{
3833738341
"shape":"MillisecondDateTime",
3833838342
"locationName":"startDate"
@@ -46466,6 +46470,10 @@
4646646470
"shape":"ArnList",
4646746471
"locationName":"FilterInArn"
4646846472
},
46473+
"FilterOutArns":{
46474+
"shape":"ArnList",
46475+
"locationName":"FilterOutArn"
46476+
},
4646946477
"DryRun":{"shape":"Boolean"},
4647046478
"TagSpecifications":{
4647146479
"shape":"TagSpecificationList",

generator/ServiceModels/ec2/ec2-2016-11-15.docs.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,9 @@
13701370
"base": null,
13711371
"refs": {
13721372
"NetworkInsightsAnalysis$FilterInArns": "<p>The Amazon Resource Names (ARN) of the resources that the path must traverse.</p>",
1373-
"StartNetworkInsightsAnalysisRequest$FilterInArns": "<p>The Amazon Resource Names (ARN) of the resources that the path must traverse.</p>"
1373+
"NetworkInsightsAnalysis$FilterOutArns": "<p>The Amazon Resource Names (ARN) of the resources that the path must ignore.</p>",
1374+
"StartNetworkInsightsAnalysisRequest$FilterInArns": "<p>The Amazon Resource Names (ARN) of the resources that the path must traverse.</p>",
1375+
"StartNetworkInsightsAnalysisRequest$FilterOutArns": "<p>The Amazon Resource Names (ARN) of the resources that the path will ignore.</p>"
13741376
}
13751377
},
13761378
"AsPath": {

generator/ServiceModels/ec2/ec2-2016-11-15.normal.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50127,6 +50127,11 @@
5012750127
"documentation":"<p>The Amazon Resource Names (ARN) of the resources that the path must traverse.</p>",
5012850128
"locationName":"filterInArnSet"
5012950129
},
50130+
"FilterOutArns":{
50131+
"shape":"ArnList",
50132+
"documentation":"<p>The Amazon Resource Names (ARN) of the resources that the path must ignore.</p>",
50133+
"locationName":"filterOutArnSet"
50134+
},
5013050135
"StartDate":{
5013150136
"shape":"MillisecondDateTime",
5013250137
"documentation":"<p>The time the analysis started.</p>",
@@ -60511,6 +60516,11 @@
6051160516
"documentation":"<p>The Amazon Resource Names (ARN) of the resources that the path must traverse.</p>",
6051260517
"locationName":"FilterInArn"
6051360518
},
60519+
"FilterOutArns":{
60520+
"shape":"ArnList",
60521+
"documentation":"<p>The Amazon Resource Names (ARN) of the resources that the path will ignore.</p>",
60522+
"locationName":"FilterOutArn"
60523+
},
6051460524
"DryRun":{
6051560525
"shape":"Boolean",
6051660526
"documentation":"<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"

sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/NetworkInsightsAnalysisUnmarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ public NetworkInsightsAnalysis Unmarshall(XmlUnmarshallerContext context)
9999
unmarshalledObject.FilterInArns.Add(item);
100100
continue;
101101
}
102+
if (context.TestExpression("filterOutArnSet/item", targetDepth))
103+
{
104+
var unmarshaller = StringUnmarshaller.Instance;
105+
if (unmarshalledObject.FilterOutArns == null)
106+
{
107+
unmarshalledObject.FilterOutArns = new List<string>();
108+
}
109+
var item = unmarshaller.Unmarshall(context);
110+
unmarshalledObject.FilterOutArns.Add(item);
111+
continue;
112+
}
102113
if (context.TestExpression("forwardPathComponentSet/item", targetDepth))
103114
{
104115
var unmarshaller = PathComponentUnmarshaller.Instance;

sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/StartNetworkInsightsAnalysisRequestMarshaller.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ public IRequest Marshall(StartNetworkInsightsAnalysisRequest publicRequest)
9999
}
100100
}
101101
}
102+
if(publicRequest.IsSetFilterOutArns())
103+
{
104+
if (publicRequest.FilterOutArns.Count == 0)
105+
request.Parameters.Add("FilterOutArn", "");
106+
else
107+
{
108+
int publicRequestlistValueIndex = 1;
109+
foreach(var publicRequestlistValue in publicRequest.FilterOutArns)
110+
{
111+
request.Parameters.Add("FilterOutArn" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue));
112+
publicRequestlistValueIndex++;
113+
}
114+
}
115+
}
102116
if(publicRequest.IsSetNetworkInsightsPathId())
103117
{
104118
request.Parameters.Add("NetworkInsightsPathId", StringUtils.FromString(publicRequest.NetworkInsightsPathId));

sdk/src/Services/EC2/Generated/Model/NetworkInsightsAnalysis.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public partial class NetworkInsightsAnalysis
3838
private List<AlternatePathHint> _alternatePathHints = AWSConfigs.InitializeCollections ? new List<AlternatePathHint>() : null;
3939
private List<Explanation> _explanations = AWSConfigs.InitializeCollections ? new List<Explanation>() : null;
4040
private List<string> _filterInArns = AWSConfigs.InitializeCollections ? new List<string>() : null;
41+
private List<string> _filterOutArns = AWSConfigs.InitializeCollections ? new List<string>() : null;
4142
private List<PathComponent> _forwardPathComponents = AWSConfigs.InitializeCollections ? new List<PathComponent>() : null;
4243
private string _networkInsightsAnalysisArn;
4344
private string _networkInsightsAnalysisId;
@@ -124,6 +125,24 @@ internal bool IsSetFilterInArns()
124125
return this._filterInArns != null && (this._filterInArns.Count > 0 || !AWSConfigs.InitializeCollections);
125126
}
126127

128+
/// <summary>
129+
/// Gets and sets the property FilterOutArns.
130+
/// <para>
131+
/// The Amazon Resource Names (ARN) of the resources that the path must ignore.
132+
/// </para>
133+
/// </summary>
134+
public List<string> FilterOutArns
135+
{
136+
get { return this._filterOutArns; }
137+
set { this._filterOutArns = value; }
138+
}
139+
140+
// Check to see if FilterOutArns property is set
141+
internal bool IsSetFilterOutArns()
142+
{
143+
return this._filterOutArns != null && (this._filterOutArns.Count > 0 || !AWSConfigs.InitializeCollections);
144+
}
145+
127146
/// <summary>
128147
/// Gets and sets the property ForwardPathComponents.
129148
/// <para>

sdk/src/Services/EC2/Generated/Model/StartNetworkInsightsAnalysisRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public partial class StartNetworkInsightsAnalysisRequest : AmazonEC2Request
4040
private string _clientToken;
4141
private bool? _dryRun;
4242
private List<string> _filterInArns = AWSConfigs.InitializeCollections ? new List<string>() : null;
43+
private List<string> _filterOutArns = AWSConfigs.InitializeCollections ? new List<string>() : null;
4344
private string _networkInsightsPathId;
4445
private List<TagSpecification> _tagSpecifications = AWSConfigs.InitializeCollections ? new List<TagSpecification>() : null;
4546

@@ -119,6 +120,24 @@ internal bool IsSetFilterInArns()
119120
return this._filterInArns != null && (this._filterInArns.Count > 0 || !AWSConfigs.InitializeCollections);
120121
}
121122

123+
/// <summary>
124+
/// Gets and sets the property FilterOutArns.
125+
/// <para>
126+
/// The Amazon Resource Names (ARN) of the resources that the path will ignore.
127+
/// </para>
128+
/// </summary>
129+
public List<string> FilterOutArns
130+
{
131+
get { return this._filterOutArns; }
132+
set { this._filterOutArns = value; }
133+
}
134+
135+
// Check to see if FilterOutArns property is set
136+
internal bool IsSetFilterOutArns()
137+
{
138+
return this._filterOutArns != null && (this._filterOutArns.Count > 0 || !AWSConfigs.InitializeCollections);
139+
}
140+
122141
/// <summary>
123142
/// Gets and sets the property NetworkInsightsPathId.
124143
/// <para>

0 commit comments

Comments
 (0)