Skip to content

Commit 417e154

Browse files
author
awstools
committed
feat(client-networkflowmonitor): Add ConflictExceptions to UpdateScope and DeleteScope operations for scopes being mutated.
1 parent 3e92ce7 commit 417e154

16 files changed

+117
-81
lines changed

clients/client-networkflowmonitor/src/commands/DeleteScopeCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export interface DeleteScopeCommandOutput extends DeleteScopeOutput, __MetadataB
5757
* @throws {@link AccessDeniedException} (client fault)
5858
* <p>You don't have sufficient permission to perform this action.</p>
5959
*
60+
* @throws {@link ConflictException} (client fault)
61+
* <p>The requested resource is in use.</p>
62+
*
6063
* @throws {@link InternalServerException} (server fault)
6164
* <p>An internal error occurred.</p>
6265
*

clients/client-networkflowmonitor/src/commands/GetQueryResultsMonitorTopContributorsCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export interface GetQueryResultsMonitorTopContributorsCommandOutput
4747
* <code>StartQueryMonitorTopContributors</code>. Use the scope ID that was returned
4848
* for your account by <code>CreateScope</code>.</p>
4949
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
50-
* metric type, related to a scope (for workload insights) or a monitor.</p>
50+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
51+
* a specific monitor. Use the applicable call for the top contributors that you want to be
52+
* returned.</p>
5153
* @example
5254
* Use a bare-bones client and the command you need to make an API call.
5355
* ```javascript

clients/client-networkflowmonitor/src/commands/GetQueryResultsWorkloadInsightsTopContributorsCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export interface GetQueryResultsWorkloadInsightsTopContributorsCommandOutput
5151
* <code>StartQueryWorkloadInsightsTopContributors</code>. Use the scope ID that was returned
5252
* for your account by <code>CreateScope</code>.</p>
5353
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
54-
* metric type, related to a scope (for workload insights) or a monitor.</p>
54+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
55+
* a specific monitor. Use the applicable call for the top contributors that you want to be
56+
* returned.</p>
5557
* @example
5658
* Use a bare-bones client and the command you need to make an API call.
5759
* ```javascript

clients/client-networkflowmonitor/src/commands/GetQueryResultsWorkloadInsightsTopContributorsDataCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ export interface GetQueryResultsWorkloadInsightsTopContributorsDataCommandOutput
5151
* <code>StartQueryWorkloadInsightsTopContributorsData</code>. Use the scope ID that was returned
5252
* for your account by <code>CreateScope</code>.</p>
5353
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
54-
* metric type, related to a scope (for workload insights) or a monitor.</p>
55-
* <p>The top contributor network flows overall for a specific metric type, for example, the
54+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
55+
* a specific monitor. Use the applicable call for the top contributors that you want to be
56+
* returned.</p>
57+
* <p>The top contributor network flows overall are for a specific metric type, for example, the
5658
* number of retransmissions.</p>
5759
* @example
5860
* Use a bare-bones client and the command you need to make an API call.

clients/client-networkflowmonitor/src/commands/GetQueryStatusMonitorTopContributorsCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export interface GetQueryStatusMonitorTopContributorsCommandOutput
4242
/**
4343
* <p>Returns the current status of a query for the Network Flow Monitor query interface, for a specified query ID and monitor.
4444
* This call returns the query status for the top contributors for a monitor.</p>
45-
* <p>When you start a query, use this call to check the status of the query to make sure that it has
46-
* has <code>SUCCEEDED</code> before you reviewStartQueryWorkloadInsightsTopContributorsData the results. Use the same query ID that you used for
47-
* the corresponding API call to start the query, <code>StartQueryMonitorTopContributors</code>.</p>
45+
* <p>When you create a query, use this call to check the status of the query to make sure that it has
46+
* has <code>SUCCEEDED</code> before you review the results. Use the same query ID that you used for
47+
* the corresponding API call to start (create) the query, <code>StartQueryMonitorTopContributors</code>.</p>
4848
* <p>When you run a query, use this call to check the status of the query to make sure that the query
4949
* has <code>SUCCEEDED</code> before you review the results.</p>
5050
* @example

clients/client-networkflowmonitor/src/commands/GetQueryStatusWorkloadInsightsTopContributorsCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export interface GetQueryStatusWorkloadInsightsTopContributorsCommandOutput
4848
* has <code>SUCCEEDED</code> before you review the results. Use the same query ID that you used for
4949
* the corresponding API call to start the query, <code>StartQueryWorkloadInsightsTopContributors</code>.</p>
5050
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
51-
* metric type, related to a scope (for workload insights) or a monitor.</p>
51+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
52+
* a specific monitor. Use the applicable call for the top contributors that you want to be
53+
* returned.</p>
5254
* @example
5355
* Use a bare-bones client and the command you need to make an API call.
5456
* ```javascript

clients/client-networkflowmonitor/src/commands/GetQueryStatusWorkloadInsightsTopContributorsDataCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ export interface GetQueryStatusWorkloadInsightsTopContributorsDataCommandOutput
4747
* has <code>SUCCEEDED</code> before you review the results. Use the same query ID that you used for
4848
* the corresponding API call to start the query, <code>StartQueryWorkloadInsightsTopContributorsData</code>.</p>
4949
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
50-
* metric type, related to a scope (for workload insights) or a monitor.</p>
51-
* <p>The top contributor network flows overall for a specific metric type, for example, the
50+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
51+
* a specific monitor. Use the applicable call for the top contributors that you want to be
52+
* returned.</p>
53+
* <p>The top contributor network flows overall are for a specific metric type, for example, the
5254
* number of retransmissions.</p>
5355
* @example
5456
* Use a bare-bones client and the command you need to make an API call.

clients/client-networkflowmonitor/src/commands/StartQueryMonitorTopContributorsCommand.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ export interface StartQueryMonitorTopContributorsCommandOutput
3737
__MetadataBearer {}
3838

3939
/**
40-
* <p>Start a query to return the data with the Network Flow Monitor query interface.
41-
* Specify the query that you want to return results for by providing a query ID
42-
* and a monitor name. This query returns the top contributors for a specific monitor.</p>
40+
* <p>Create a query that you can use with the Network Flow Monitor query interface to return the top
41+
* contributors for a monitor. Specify the monitor that you want to create the query for. </p>
42+
* <p>The call returns a query ID that you can use with
43+
* <a href="https://docs.aws.amazon.com/networkflowmonitor/2.0/APIReference/API_GetQueryResultsMonitorTopContributors.html">
44+
* GetQueryResultsMonitorTopContributors</a>
45+
* to run the query and return the top contributors for a specific monitor.</p>
4346
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
44-
* metric type, related to a scope (for workload insights) or a monitor.</p>
47+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
48+
* a specific monitor. Use the applicable APIs for the top contributors that you want to be
49+
* returned.</p>
4550
* @example
4651
* Use a bare-bones client and the command you need to make an API call.
4752
* ```javascript

clients/client-networkflowmonitor/src/commands/StartQueryWorkloadInsightsTopContributorsCommand.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ export interface StartQueryWorkloadInsightsTopContributorsCommandOutput
4141
__MetadataBearer {}
4242

4343
/**
44-
* <p>Start a query to return the data with the Network Flow Monitor query interface.
45-
* Specify the query that you want to start by providing a query ID
46-
* and a monitor name. This query returns the top contributors for a specific monitor.</p>
44+
* <p>Create a query with the Network Flow Monitor query interface that you can run to return workload insights top contributors.
45+
* Specify the scope that you want to create a query for.</p>
46+
* <p>The call returns a query ID that you can use with
47+
* <a href="https://docs.aws.amazon.com/networkflowmonitor/2.0/APIReference/API_GetQueryResultsWorkloadInsightsTopContributors.html">
48+
* GetQueryResultsWorkloadInsightsTopContributors</a>
49+
* to run the query and return the top contributors for the workload insights for a scope.</p>
4750
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
48-
* metric type, related to a scope (for workload insights) or a monitor.</p>
51+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
52+
* a specific monitor. Use the applicable APIs for the top contributors that you want to be
53+
* returned.</p>
4954
* @example
5055
* Use a bare-bones client and the command you need to make an API call.
5156
* ```javascript

clients/client-networkflowmonitor/src/commands/StartQueryWorkloadInsightsTopContributorsDataCommand.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ export interface StartQueryWorkloadInsightsTopContributorsDataCommandOutput
4141
__MetadataBearer {}
4242

4343
/**
44-
* <p>Start a query to return the with the Network Flow Monitor query interface.
45-
* Specify the query that you want to start by providing a query ID
46-
* and a monitor name. This query returns the data for top contributors for workload insights.</p>
44+
* <p>Create a query with the Network Flow Monitor query interface that you can run to return data for
45+
* workload insights top contributors. Specify the scope that you want to create a query for.</p>
46+
* <p>The call returns a query ID that you can use with
47+
* <a href="https://docs.aws.amazon.com/networkflowmonitor/2.0/APIReference/API_GetQueryResultsWorkloadInsightsTopContributorsData.html">
48+
* GetQueryResultsWorkloadInsightsTopContributorsData</a>
49+
* to run the query and return the data for the top contributors for the workload insights for a scope.</p>
4750
* <p>Top contributors in Network Flow Monitor are network flows with the highest values for a specific
48-
* metric type, related to a scope (for workload insights) or a monitor.</p>
51+
* metric type. Top contributors can be across all workload insights, for a given scope, or for
52+
* a specific monitor. Use the applicable call for the top contributors that you want to be
53+
* returned.</p>
4954
* @example
5055
* Use a bare-bones client and the command you need to make an API call.
5156
* ```javascript

0 commit comments

Comments
 (0)