Skip to content

Commit ed7b520

Browse files
author
awstools
committed
feat(client-ec2): This release introduces a target type Gateway Load Balancer Endpoint for mirrored traffic. Customers can now specify GatewayLoadBalancerEndpoint option during the creation of a traffic mirror target.
1 parent 7bcf41f commit ed7b520

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

clients/client-ec2/src/EC2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6344,7 +6344,7 @@ export class EC2 extends EC2Client {
63446344
* <p>A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and
63456345
* the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in
63466346
* different VPCs connected via VPC peering or a transit gateway.</p>
6347-
* <p>A Traffic Mirror target can be a network interface, or a Network Load Balancer.</p>
6347+
* <p>A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.</p>
63486348
* <p>To use the target in a Traffic Mirror session, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm">CreateTrafficMirrorSession</a>.</p>
63496349
*/
63506350
public createTrafficMirrorTarget(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface CreateTrafficMirrorTargetCommandOutput extends CreateTrafficMir
2727
* <p>A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and
2828
* the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in
2929
* different VPCs connected via VPC peering or a transit gateway.</p>
30-
* <p>A Traffic Mirror target can be a network interface, or a Network Load Balancer.</p>
30+
* <p>A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.</p>
3131
* <p>To use the target in a Traffic Mirror session, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm">CreateTrafficMirrorSession</a>.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10003,6 +10003,11 @@ export interface CreateTrafficMirrorTargetRequest {
1000310003
* <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to ensure idempotency</a>.</p>
1000410004
*/
1000510005
ClientToken?: string;
10006+
10007+
/**
10008+
* <p>The ID of the Gateway Load Balancer endpoint.</p>
10009+
*/
10010+
GatewayLoadBalancerEndpointId?: string;
1000610011
}
1000710012

1000810013
export namespace CreateTrafficMirrorTargetRequest {
@@ -10014,7 +10019,7 @@ export namespace CreateTrafficMirrorTargetRequest {
1001410019
});
1001510020
}
1001610021

10017-
export type TrafficMirrorTargetType = "network-interface" | "network-load-balancer";
10022+
export type TrafficMirrorTargetType = "gateway-load-balancer-endpoint" | "network-interface" | "network-load-balancer";
1001810023

1001910024
/**
1002010025
* <p>Describes a Traffic Mirror target.</p>
@@ -10054,6 +10059,11 @@ export interface TrafficMirrorTarget {
1005410059
* <p>The tags assigned to the Traffic Mirror target.</p>
1005510060
*/
1005610061
Tags?: Tag[];
10062+
10063+
/**
10064+
* <p>The ID of the Gateway Load Balancer endpoint.</p>
10065+
*/
10066+
GatewayLoadBalancerEndpointId?: string;
1005710067
}
1005810068

1005910069
export namespace TrafficMirrorTarget {

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36154,6 +36154,9 @@ const serializeAws_ec2CreateTrafficMirrorTargetRequest = (
3615436154
if (input.ClientToken !== undefined && input.ClientToken !== null) {
3615536155
entries["ClientToken"] = input.ClientToken;
3615636156
}
36157+
if (input.GatewayLoadBalancerEndpointId !== undefined && input.GatewayLoadBalancerEndpointId !== null) {
36158+
entries["GatewayLoadBalancerEndpointId"] = input.GatewayLoadBalancerEndpointId;
36159+
}
3615736160
return entries;
3615836161
};
3615936162

@@ -78826,6 +78829,7 @@ const deserializeAws_ec2TrafficMirrorTarget = (output: any, context: __SerdeCont
7882678829
Description: undefined,
7882778830
OwnerId: undefined,
7882878831
Tags: undefined,
78832+
GatewayLoadBalancerEndpointId: undefined,
7882978833
};
7883078834
if (output["trafficMirrorTargetId"] !== undefined) {
7883178835
contents.TrafficMirrorTargetId = __expectString(output["trafficMirrorTargetId"]);
@@ -78851,6 +78855,9 @@ const deserializeAws_ec2TrafficMirrorTarget = (output: any, context: __SerdeCont
7885178855
if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
7885278856
contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
7885378857
}
78858+
if (output["gatewayLoadBalancerEndpointId"] !== undefined) {
78859+
contents.GatewayLoadBalancerEndpointId = __expectString(output["gatewayLoadBalancerEndpointId"]);
78860+
}
7885478861
return contents;
7885578862
};
7885678863

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14089,7 +14089,7 @@
1408914089
"target": "com.amazonaws.ec2#CreateTrafficMirrorTargetResult"
1409014090
},
1409114091
"traits": {
14092-
"smithy.api#documentation": "<p>Creates a target for your Traffic Mirror session.</p>\n <p>A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and\n the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in\n different VPCs connected via VPC peering or a transit gateway.</p>\n <p>A Traffic Mirror target can be a network interface, or a Network Load Balancer.</p>\n <p>To use the target in a Traffic Mirror session, use <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm\">CreateTrafficMirrorSession</a>.</p>"
14092+
"smithy.api#documentation": "<p>Creates a target for your Traffic Mirror session.</p>\n <p>A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and\n the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in\n different VPCs connected via VPC peering or a transit gateway.</p>\n <p>A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.</p>\n <p>To use the target in a Traffic Mirror session, use <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm\">CreateTrafficMirrorSession</a>.</p>"
1409314093
}
1409414094
},
1409514095
"com.amazonaws.ec2#CreateTrafficMirrorTargetRequest": {
@@ -14132,6 +14132,12 @@
1413214132
"smithy.api#documentation": "<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">How to ensure idempotency</a>.</p>",
1413314133
"smithy.api#idempotencyToken": {}
1413414134
}
14135+
},
14136+
"GatewayLoadBalancerEndpointId": {
14137+
"target": "com.amazonaws.ec2#VpcEndpointId",
14138+
"traits": {
14139+
"smithy.api#documentation": "<p>The ID of the Gateway Load Balancer endpoint.</p>"
14140+
}
1413514141
}
1413614142
}
1413714143
},
@@ -74422,6 +74428,14 @@
7442274428
"smithy.api#documentation": "<p>The tags assigned to the Traffic Mirror target.</p>",
7442374429
"smithy.api#xmlName": "tagSet"
7442474430
}
74431+
},
74432+
"GatewayLoadBalancerEndpointId": {
74433+
"target": "com.amazonaws.ec2#String",
74434+
"traits": {
74435+
"aws.protocols#ec2QueryName": "GatewayLoadBalancerEndpointId",
74436+
"smithy.api#documentation": "<p>The ID of the Gateway Load Balancer endpoint.</p>",
74437+
"smithy.api#xmlName": "gatewayLoadBalancerEndpointId"
74438+
}
7442574439
}
7442674440
},
7442774441
"traits": {
@@ -74460,6 +74474,10 @@
7446074474
{
7446174475
"value": "network-load-balancer",
7446274476
"name": "network_load_balancer"
74477+
},
74478+
{
74479+
"value": "gateway-load-balancer-endpoint",
74480+
"name": "gateway_load_balancer_endpoint"
7446374481
}
7446474482
]
7446574483
}

0 commit comments

Comments
 (0)