Skip to content

Commit 6672978

Browse files
author
awstools
committed
feat(client-networkflowmonitor): Added new enum value (AWS::EKS::Cluster) for type field under MonitorLocalResource
1 parent 2e49349 commit 6672978

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __Metad
4444
* monitorName: "STRING_VALUE", // required
4545
* localResources: [ // MonitorLocalResources // required
4646
* { // MonitorLocalResource
47-
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
47+
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
4848
* identifier: "STRING_VALUE", // required
4949
* },
5050
* ],
@@ -68,7 +68,7 @@ export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __Metad
6868
* // monitorStatus: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
6969
* // localResources: [ // MonitorLocalResources // required
7070
* // { // MonitorLocalResource
71-
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
71+
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
7272
* // identifier: "STRING_VALUE", // required
7373
* // },
7474
* // ],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface GetMonitorCommandOutput extends GetMonitorOutput, __MetadataBea
5151
* // monitorStatus: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
5252
* // localResources: [ // MonitorLocalResources // required
5353
* // { // MonitorLocalResource
54-
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
54+
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
5555
* // identifier: "STRING_VALUE", // required
5656
* // },
5757
* // ],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ export interface UpdateMonitorCommandOutput extends UpdateMonitorOutput, __Metad
4444
* monitorName: "STRING_VALUE", // required
4545
* localResourcesToAdd: [ // MonitorLocalResources
4646
* { // MonitorLocalResource
47-
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
47+
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
4848
* identifier: "STRING_VALUE", // required
4949
* },
5050
* ],
5151
* localResourcesToRemove: [
5252
* {
53-
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
53+
* type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
5454
* identifier: "STRING_VALUE", // required
5555
* },
5656
* ],
@@ -76,7 +76,7 @@ export interface UpdateMonitorCommandOutput extends UpdateMonitorOutput, __Metad
7676
* // monitorStatus: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
7777
* // localResources: [ // MonitorLocalResources // required
7878
* // { // MonitorLocalResource
79-
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region", // required
79+
* // type: "AWS::EC2::VPC" || "AWS::AvailabilityZone" || "AWS::EC2::Subnet" || "AWS::Region" || "AWS::EKS::Cluster", // required
8080
* // identifier: "STRING_VALUE", // required
8181
* // },
8282
* // ],

clients/client-networkflowmonitor/src/models/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const MonitorLocalResourceType = {
88
AWS_REGION: "AWS::Region",
99
AWS_SUBNET: "AWS::EC2::Subnet",
1010
AWS_VPC: "AWS::EC2::VPC",
11+
EKS_CLUSTER: "AWS::EKS::Cluster",
1112
} as const;
1213
/**
1314
* @public

clients/client-networkflowmonitor/src/models/models_0.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ import {
1313
} from "./enums";
1414

1515
/**
16-
* <p>A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, an Availability Zone, or an Amazon Web Services service.</p>
16+
* <p>A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, an Availability Zone, an EKS cluster or an Amazon Web Services Region.</p>
1717
* @public
1818
*/
1919
export interface MonitorLocalResource {
2020
/**
21-
* <p>The type of the local resource. Valid values are <code>AWS::EC2::VPC</code> <code>AWS::AvailabilityZone</code>, <code>AWS::EC2::Subnet</code>, or <code>AWS::Region</code>.</p>
21+
* <p>The type of the local resource. Valid values are <code>AWS::EC2::VPC</code> <code>AWS::AvailabilityZone</code>, <code>AWS::EC2::Subnet</code>, <code>AWS::EKS::Cluster</code>, or <code>AWS::Region</code>.</p>
2222
* @public
2323
*/
2424
type: MonitorLocalResourceType | undefined;
2525

2626
/**
27-
* <p>The identifier of the local resource. For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN. For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p>
27+
* <p>The identifier of the local resource. The values you can specify are the following:</p> <ul> <li> <p>For a VPC, subnet or EKS cluster, this identifier is the VPC Amazon Resource Name (ARN), subnet ARN or cluster ARN.</p> </li> <li> <p>For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p> </li> <li> <p>For a Region, this identifier is the Region name, for example, us-west-2.</p> </li> </ul>
2828
* @public
2929
*/
3030
identifier: string | undefined;
3131
}
3232

3333
/**
34-
* <p>A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. Remote resources can be a a subnet, a VPC, an Availability Zone, an Amazon Web Services service, or an Amazon Web Services Region.</p> <p>When a remote resource is an Amazon Web Services Region, Network Flow Monitor provides network performance measurements up to the edge of the Region that you specify.</p>
34+
* <p>A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. The values you can specify are the following:</p> <ul> <li> <p>For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN.</p> </li> <li> <p>For a service, this identifier is one of the following strings: <code>S3</code> or <code>DynamoDB</code>.</p> </li> <li> <p>For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p> </li> <li> <p>For a Region, this identifier is the Region name, for example, us-west-2.</p> </li> </ul> <p>When a remote resource is an Amazon Web Services Region, Network Flow Monitor provides network performance measurements up to the edge of the Region that you specify.</p>
3535
* @public
3636
*/
3737
export interface MonitorRemoteResource {

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,20 +1825,20 @@
18251825
"type": {
18261826
"target": "com.amazonaws.networkflowmonitor#MonitorLocalResourceType",
18271827
"traits": {
1828-
"smithy.api#documentation": "<p>The type of the local resource. Valid values are <code>AWS::EC2::VPC</code> <code>AWS::AvailabilityZone</code>, <code>AWS::EC2::Subnet</code>, or <code>AWS::Region</code>.</p>",
1828+
"smithy.api#documentation": "<p>The type of the local resource. Valid values are <code>AWS::EC2::VPC</code> <code>AWS::AvailabilityZone</code>, <code>AWS::EC2::Subnet</code>, <code>AWS::EKS::Cluster</code>, or <code>AWS::Region</code>.</p>",
18291829
"smithy.api#required": {}
18301830
}
18311831
},
18321832
"identifier": {
18331833
"target": "smithy.api#String",
18341834
"traits": {
1835-
"smithy.api#documentation": "<p>The identifier of the local resource. For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN. For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p>",
1835+
"smithy.api#documentation": "<p>The identifier of the local resource. The values you can specify are the following:</p> <ul> <li> <p>For a VPC, subnet or EKS cluster, this identifier is the VPC Amazon Resource Name (ARN), subnet ARN or cluster ARN.</p> </li> <li> <p>For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p> </li> <li> <p>For a Region, this identifier is the Region name, for example, us-west-2.</p> </li> </ul>",
18361836
"smithy.api#required": {}
18371837
}
18381838
}
18391839
},
18401840
"traits": {
1841-
"smithy.api#documentation": "<p>A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, an Availability Zone, or an Amazon Web Services service.</p>"
1841+
"smithy.api#documentation": "<p>A local resource is the host where the agent is installed. Local resources can be a a subnet, a VPC, an Availability Zone, an EKS cluster or an Amazon Web Services Region.</p>"
18421842
}
18431843
},
18441844
"com.amazonaws.networkflowmonitor#MonitorLocalResourceType": {
@@ -1867,6 +1867,12 @@
18671867
"traits": {
18681868
"smithy.api#enumValue": "AWS::Region"
18691869
}
1870+
},
1871+
"EKS_CLUSTER": {
1872+
"target": "smithy.api#Unit",
1873+
"traits": {
1874+
"smithy.api#enumValue": "AWS::EKS::Cluster"
1875+
}
18701876
}
18711877
}
18721878
},
@@ -1924,7 +1930,7 @@
19241930
}
19251931
},
19261932
"traits": {
1927-
"smithy.api#documentation": "<p>A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. Remote resources can be a a subnet, a VPC, an Availability Zone, an Amazon Web Services service, or an Amazon Web Services Region.</p> <p>When a remote resource is an Amazon Web Services Region, Network Flow Monitor provides network performance measurements up to the edge of the Region that you specify.</p>"
1933+
"smithy.api#documentation": "<p>A remote resource is the other endpoint in a network flow. That is, one endpoint is the local resource and the other is the remote resource. The values you can specify are the following:</p> <ul> <li> <p>For a VPC or subnet, this identifier is the VPC Amazon Resource Name (ARN) or subnet ARN.</p> </li> <li> <p>For a service, this identifier is one of the following strings: <code>S3</code> or <code>DynamoDB</code>.</p> </li> <li> <p>For an Availability Zone, this identifier is the AZ name, for example, us-west-2b.</p> </li> <li> <p>For a Region, this identifier is the Region name, for example, us-west-2.</p> </li> </ul> <p>When a remote resource is an Amazon Web Services Region, Network Flow Monitor provides network performance measurements up to the edge of the Region that you specify.</p>"
19281934
}
19291935
},
19301936
"com.amazonaws.networkflowmonitor#MonitorRemoteResourceType": {

0 commit comments

Comments
 (0)