Skip to content

Commit a7ae6ff

Browse files
You can now monitor flow and alert log metrics from the Network Firewall console.
1 parent a87b7a9 commit a7ae6ff

9 files changed

+132
-5
lines changed

generator/ServiceModels/network-firewall/network-firewall-2020-11-12.api.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,8 @@
13301330
"type":"structure",
13311331
"members":{
13321332
"FirewallArn":{"shape":"ResourceArn"},
1333-
"LoggingConfiguration":{"shape":"LoggingConfiguration"}
1333+
"LoggingConfiguration":{"shape":"LoggingConfiguration"},
1334+
"EnableMonitoringDashboard":{"shape":"EnableMonitoringDashboard"}
13341335
}
13351336
},
13361337
"DescribeResourcePolicyRequest":{
@@ -1474,6 +1475,7 @@
14741475
}
14751476
},
14761477
"Domain":{"type":"string"},
1478+
"EnableMonitoringDashboard":{"type":"boolean"},
14771479
"EnabledAnalysisType":{
14781480
"type":"string",
14791481
"enum":[
@@ -3045,15 +3047,17 @@
30453047
"members":{
30463048
"FirewallArn":{"shape":"ResourceArn"},
30473049
"FirewallName":{"shape":"ResourceName"},
3048-
"LoggingConfiguration":{"shape":"LoggingConfiguration"}
3050+
"LoggingConfiguration":{"shape":"LoggingConfiguration"},
3051+
"EnableMonitoringDashboard":{"shape":"EnableMonitoringDashboard"}
30493052
}
30503053
},
30513054
"UpdateLoggingConfigurationResponse":{
30523055
"type":"structure",
30533056
"members":{
30543057
"FirewallArn":{"shape":"ResourceArn"},
30553058
"FirewallName":{"shape":"ResourceName"},
3056-
"LoggingConfiguration":{"shape":"LoggingConfiguration"}
3059+
"LoggingConfiguration":{"shape":"LoggingConfiguration"},
3060+
"EnableMonitoringDashboard":{"shape":"EnableMonitoringDashboard"}
30573061
}
30583062
},
30593063
"UpdateRuleGroupRequest":{

generator/ServiceModels/network-firewall/network-firewall-2020-11-12.docs.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,14 @@
556556
"AnalysisTypeReportResult$Domain": "<p>The most frequently accessed domains.</p>"
557557
}
558558
},
559+
"EnableMonitoringDashboard": {
560+
"base": null,
561+
"refs": {
562+
"DescribeLoggingConfigurationResponse$EnableMonitoringDashboard": "<p>A boolean that reflects whether or not the firewall monitoring dashboard is enabled on a firewall.</p> <p> Returns <code>TRUE</code> when the firewall monitoring dashboard is enabled on the firewall. Returns <code>FALSE</code> when the firewall monitoring dashboard is not enabled on the firewall. </p>",
563+
"UpdateLoggingConfigurationRequest$EnableMonitoringDashboard": "<p>A boolean that lets you enable or disable the detailed firewall monitoring dashboard on the firewall. </p> <p>The monitoring dashboard provides comprehensive visibility into your firewall's flow logs and alert logs. After you enable detailed monitoring, you can access these dashboards directly from the <b>Monitoring</b> page of the Network Firewall console.</p> <p> Specify <code>TRUE</code> to enable the the detailed monitoring dashboard on the firewall. Specify <code>FALSE</code> to disable the the detailed monitoring dashboard on the firewall. </p>",
564+
"UpdateLoggingConfigurationResponse$EnableMonitoringDashboard": "<p>A boolean that reflects whether or not the firewall monitoring dashboard is enabled on a firewall.</p> <p> Returns <code>TRUE</code> when the firewall monitoring dashboard is enabled on the firewall. Returns <code>FALSE</code> when the firewall monitoring dashboard is not enabled on the firewall. </p>"
565+
}
566+
},
559567
"EnabledAnalysisType": {
560568
"base": null,
561569
"refs": {

generator/ServiceModels/network-firewall/network-firewall-2020-11-12.normal.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,11 @@
18121812
"shape":"ResourceArn",
18131813
"documentation":"<p>The Amazon Resource Name (ARN) of the firewall.</p>"
18141814
},
1815-
"LoggingConfiguration":{"shape":"LoggingConfiguration"}
1815+
"LoggingConfiguration":{"shape":"LoggingConfiguration"},
1816+
"EnableMonitoringDashboard":{
1817+
"shape":"EnableMonitoringDashboard",
1818+
"documentation":"<p>A boolean that reflects whether or not the firewall monitoring dashboard is enabled on a firewall.</p> <p> Returns <code>TRUE</code> when the firewall monitoring dashboard is enabled on the firewall. Returns <code>FALSE</code> when the firewall monitoring dashboard is not enabled on the firewall. </p>"
1819+
}
18161820
}
18171821
},
18181822
"DescribeResourcePolicyRequest":{
@@ -2062,6 +2066,7 @@
20622066
}
20632067
},
20642068
"Domain":{"type":"string"},
2069+
"EnableMonitoringDashboard":{"type":"boolean"},
20652070
"EnabledAnalysisType":{
20662071
"type":"string",
20672072
"enum":[
@@ -4685,6 +4690,10 @@
46854690
"LoggingConfiguration":{
46864691
"shape":"LoggingConfiguration",
46874692
"documentation":"<p>Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.</p>"
4693+
},
4694+
"EnableMonitoringDashboard":{
4695+
"shape":"EnableMonitoringDashboard",
4696+
"documentation":"<p>A boolean that lets you enable or disable the detailed firewall monitoring dashboard on the firewall. </p> <p>The monitoring dashboard provides comprehensive visibility into your firewall's flow logs and alert logs. After you enable detailed monitoring, you can access these dashboards directly from the <b>Monitoring</b> page of the Network Firewall console.</p> <p> Specify <code>TRUE</code> to enable the the detailed monitoring dashboard on the firewall. Specify <code>FALSE</code> to disable the the detailed monitoring dashboard on the firewall. </p>"
46884697
}
46894698
}
46904699
},
@@ -4699,7 +4708,11 @@
46994708
"shape":"ResourceName",
47004709
"documentation":"<p>The descriptive name of the firewall. You can't change the name of a firewall after you create it.</p>"
47014710
},
4702-
"LoggingConfiguration":{"shape":"LoggingConfiguration"}
4711+
"LoggingConfiguration":{"shape":"LoggingConfiguration"},
4712+
"EnableMonitoringDashboard":{
4713+
"shape":"EnableMonitoringDashboard",
4714+
"documentation":"<p>A boolean that reflects whether or not the firewall monitoring dashboard is enabled on a firewall.</p> <p> Returns <code>TRUE</code> when the firewall monitoring dashboard is enabled on the firewall. Returns <code>FALSE</code> when the firewall monitoring dashboard is not enabled on the firewall. </p>"
4715+
}
47034716
}
47044717
},
47054718
"UpdateRuleGroupRequest":{

sdk/src/Services/NetworkFirewall/Generated/Model/DescribeLoggingConfigurationResponse.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,35 @@ namespace Amazon.NetworkFirewall.Model
3434
/// </summary>
3535
public partial class DescribeLoggingConfigurationResponse : AmazonWebServiceResponse
3636
{
37+
private bool? _enableMonitoringDashboard;
3738
private string _firewallArn;
3839
private LoggingConfiguration _loggingConfiguration;
3940

41+
/// <summary>
42+
/// Gets and sets the property EnableMonitoringDashboard.
43+
/// <para>
44+
/// A boolean that reflects whether or not the firewall monitoring dashboard is enabled
45+
/// on a firewall.
46+
/// </para>
47+
///
48+
/// <para>
49+
/// Returns <c>TRUE</c> when the firewall monitoring dashboard is enabled on the firewall.
50+
/// Returns <c>FALSE</c> when the firewall monitoring dashboard is not enabled on the
51+
/// firewall.
52+
/// </para>
53+
/// </summary>
54+
public bool EnableMonitoringDashboard
55+
{
56+
get { return this._enableMonitoringDashboard.GetValueOrDefault(); }
57+
set { this._enableMonitoringDashboard = value; }
58+
}
59+
60+
// Check to see if EnableMonitoringDashboard property is set
61+
internal bool IsSetEnableMonitoringDashboard()
62+
{
63+
return this._enableMonitoringDashboard.HasValue;
64+
}
65+
4066
/// <summary>
4167
/// Gets and sets the property FirewallArn.
4268
/// <para>

sdk/src/Services/NetworkFirewall/Generated/Model/Internal/MarshallTransformations/DescribeLoggingConfigurationResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
5252
int targetDepth = context.CurrentDepth;
5353
while (context.ReadAtDepth(targetDepth))
5454
{
55+
if (context.TestExpression("EnableMonitoringDashboard", targetDepth))
56+
{
57+
var unmarshaller = BoolUnmarshaller.Instance;
58+
response.EnableMonitoringDashboard = unmarshaller.Unmarshall(context);
59+
continue;
60+
}
5561
if (context.TestExpression("FirewallArn", targetDepth))
5662
{
5763
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/NetworkFirewall/Generated/Model/Internal/MarshallTransformations/UpdateLoggingConfigurationRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ public IRequest Marshall(UpdateLoggingConfigurationRequest publicRequest)
6969
writer.Validate = false;
7070
writer.WriteObjectStart();
7171
var context = new JsonMarshallerContext(request, writer);
72+
if(publicRequest.IsSetEnableMonitoringDashboard())
73+
{
74+
context.Writer.WritePropertyName("EnableMonitoringDashboard");
75+
context.Writer.Write(publicRequest.EnableMonitoringDashboard);
76+
}
77+
7278
if(publicRequest.IsSetFirewallArn())
7379
{
7480
context.Writer.WritePropertyName("FirewallArn");

sdk/src/Services/NetworkFirewall/Generated/Model/Internal/MarshallTransformations/UpdateLoggingConfigurationResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
5252
int targetDepth = context.CurrentDepth;
5353
while (context.ReadAtDepth(targetDepth))
5454
{
55+
if (context.TestExpression("EnableMonitoringDashboard", targetDepth))
56+
{
57+
var unmarshaller = BoolUnmarshaller.Instance;
58+
response.EnableMonitoringDashboard = unmarshaller.Unmarshall(context);
59+
continue;
60+
}
5561
if (context.TestExpression("FirewallArn", targetDepth))
5662
{
5763
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/NetworkFirewall/Generated/Model/UpdateLoggingConfigurationRequest.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,42 @@ namespace Amazon.NetworkFirewall.Model
6969
/// </summary>
7070
public partial class UpdateLoggingConfigurationRequest : AmazonNetworkFirewallRequest
7171
{
72+
private bool? _enableMonitoringDashboard;
7273
private string _firewallArn;
7374
private string _firewallName;
7475
private LoggingConfiguration _loggingConfiguration;
7576

77+
/// <summary>
78+
/// Gets and sets the property EnableMonitoringDashboard.
79+
/// <para>
80+
/// A boolean that lets you enable or disable the detailed firewall monitoring dashboard
81+
/// on the firewall.
82+
/// </para>
83+
///
84+
/// <para>
85+
/// The monitoring dashboard provides comprehensive visibility into your firewall's flow
86+
/// logs and alert logs. After you enable detailed monitoring, you can access these dashboards
87+
/// directly from the <b>Monitoring</b> page of the Network Firewall console.
88+
/// </para>
89+
///
90+
/// <para>
91+
/// Specify <c>TRUE</c> to enable the the detailed monitoring dashboard on the firewall.
92+
/// Specify <c>FALSE</c> to disable the the detailed monitoring dashboard on the firewall.
93+
///
94+
/// </para>
95+
/// </summary>
96+
public bool EnableMonitoringDashboard
97+
{
98+
get { return this._enableMonitoringDashboard.GetValueOrDefault(); }
99+
set { this._enableMonitoringDashboard = value; }
100+
}
101+
102+
// Check to see if EnableMonitoringDashboard property is set
103+
internal bool IsSetEnableMonitoringDashboard()
104+
{
105+
return this._enableMonitoringDashboard.HasValue;
106+
}
107+
76108
/// <summary>
77109
/// Gets and sets the property FirewallArn.
78110
/// <para>

sdk/src/Services/NetworkFirewall/Generated/Model/UpdateLoggingConfigurationResponse.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,36 @@ namespace Amazon.NetworkFirewall.Model
3434
/// </summary>
3535
public partial class UpdateLoggingConfigurationResponse : AmazonWebServiceResponse
3636
{
37+
private bool? _enableMonitoringDashboard;
3738
private string _firewallArn;
3839
private string _firewallName;
3940
private LoggingConfiguration _loggingConfiguration;
4041

42+
/// <summary>
43+
/// Gets and sets the property EnableMonitoringDashboard.
44+
/// <para>
45+
/// A boolean that reflects whether or not the firewall monitoring dashboard is enabled
46+
/// on a firewall.
47+
/// </para>
48+
///
49+
/// <para>
50+
/// Returns <c>TRUE</c> when the firewall monitoring dashboard is enabled on the firewall.
51+
/// Returns <c>FALSE</c> when the firewall monitoring dashboard is not enabled on the
52+
/// firewall.
53+
/// </para>
54+
/// </summary>
55+
public bool EnableMonitoringDashboard
56+
{
57+
get { return this._enableMonitoringDashboard.GetValueOrDefault(); }
58+
set { this._enableMonitoringDashboard = value; }
59+
}
60+
61+
// Check to see if EnableMonitoringDashboard property is set
62+
internal bool IsSetEnableMonitoringDashboard()
63+
{
64+
return this._enableMonitoringDashboard.HasValue;
65+
}
66+
4167
/// <summary>
4268
/// Gets and sets the property FirewallArn.
4369
/// <para>

0 commit comments

Comments
 (0)