Skip to content

Commit c3b7099

Browse files
This release adds AvailabilityZoneId support for CreateInstanceConnectEndpoint, DescribeInstanceConnectEndpoints, and DeleteInstanceConnectEndpoint APIs.
1 parent e9630fe commit c3b7099

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24891,6 +24891,10 @@
2489124891
"PublicDnsNames":{
2489224892
"shape":"InstanceConnectEndpointPublicDnsNames",
2489324893
"locationName":"publicDnsNames"
24894+
},
24895+
"AvailabilityZoneId":{
24896+
"shape":"AvailabilityZoneId",
24897+
"locationName":"availabilityZoneId"
2489424898
}
2489524899
}
2489624900
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,7 @@
20082008
"CreateVolumeRequest$AvailabilityZoneId": "<p>The ID of the Availability Zone in which to create the volume. For example, <code>use1-az1</code>.</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be specified, but not both.</p>",
20092009
"DescribeReservedInstancesOfferingsRequest$AvailabilityZoneId": "<p>The ID of the Availability Zone.</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> can be specified, but not both.</p>",
20102010
"DescribeSpotPriceHistoryRequest$AvailabilityZoneId": "<p>Filters the results by the specified ID of the Availability Zone.</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> can be specified, but not both</p>",
2011+
"Ec2InstanceConnectEndpoint$AvailabilityZoneId": "<p>The ID of the Availability Zone of the EC2 Instance Connect Endpoint.</p>",
20112012
"ImportVolumeRequest$AvailabilityZoneId": "<p>The ID of the Availability Zone for the resulting EBS volume.</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be specified, but not both.</p>",
20122013
"InstanceStatus$AvailabilityZoneId": "<p>The ID of the Availability Zone of the instance.</p>",
20132014
"LaunchTemplatePlacement$AvailabilityZoneId": "<p>The ID of the Availability Zone of the instance.</p>",

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32547,6 +32547,11 @@
3254732547
"shape":"InstanceConnectEndpointPublicDnsNames",
3254832548
"documentation":"<p>The public DNS names of the endpoint.</p>",
3254932549
"locationName":"publicDnsNames"
32550+
},
32551+
"AvailabilityZoneId":{
32552+
"shape":"AvailabilityZoneId",
32553+
"documentation":"<p>The ID of the Availability Zone of the EC2 Instance Connect Endpoint.</p>",
32554+
"locationName":"availabilityZoneId"
3255032555
}
3255132556
},
3255232557
"documentation":"<p>Describes an EC2 Instance Connect Endpoint.</p>"

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace Amazon.EC2.Model
3535
public partial class Ec2InstanceConnectEndpoint
3636
{
3737
private string _availabilityZone;
38+
private string _availabilityZoneId;
3839
private DateTime? _createdAt;
3940
private string _dnsName;
4041
private string _fipsDnsName;
@@ -70,6 +71,24 @@ internal bool IsSetAvailabilityZone()
7071
return this._availabilityZone != null;
7172
}
7273

74+
/// <summary>
75+
/// Gets and sets the property AvailabilityZoneId.
76+
/// <para>
77+
/// The ID of the Availability Zone of the EC2 Instance Connect Endpoint.
78+
/// </para>
79+
/// </summary>
80+
public string AvailabilityZoneId
81+
{
82+
get { return this._availabilityZoneId; }
83+
set { this._availabilityZoneId = value; }
84+
}
85+
86+
// Check to see if AvailabilityZoneId property is set
87+
internal bool IsSetAvailabilityZoneId()
88+
{
89+
return this._availabilityZoneId != null;
90+
}
91+
7392
/// <summary>
7493
/// Gets and sets the property CreatedAt.
7594
/// <para>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public Ec2InstanceConnectEndpoint Unmarshall(XmlUnmarshallerContext context)
6161
unmarshalledObject.AvailabilityZone = unmarshaller.Unmarshall(context);
6262
continue;
6363
}
64+
if (context.TestExpression("availabilityZoneId", targetDepth))
65+
{
66+
var unmarshaller = StringUnmarshaller.Instance;
67+
unmarshalledObject.AvailabilityZoneId = unmarshaller.Unmarshall(context);
68+
continue;
69+
}
6470
if (context.TestExpression("createdAt", targetDepth))
6571
{
6672
var unmarshaller = DateTimeUnmarshaller.Instance;

0 commit comments

Comments
 (0)