@aws-sdk/client-ec2 3.445.0 → 3.449.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/EC2.js +6 -0
  3. package/dist-cjs/commands/DisableSnapshotBlockPublicAccessCommand.js +51 -0
  4. package/dist-cjs/commands/EnableSnapshotBlockPublicAccessCommand.js +51 -0
  5. package/dist-cjs/commands/GetSnapshotBlockPublicAccessStateCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_1.js +1 -16
  8. package/dist-cjs/models/models_2.js +17 -2
  9. package/dist-cjs/models/models_5.js +6 -1
  10. package/dist-cjs/protocols/Aws_ec2.js +272 -18
  11. package/dist-es/EC2.js +6 -0
  12. package/dist-es/commands/DisableSnapshotBlockPublicAccessCommand.js +47 -0
  13. package/dist-es/commands/EnableSnapshotBlockPublicAccessCommand.js +47 -0
  14. package/dist-es/commands/GetSnapshotBlockPublicAccessStateCommand.js +47 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_1.js +0 -15
  17. package/dist-es/models/models_2.js +15 -0
  18. package/dist-es/models/models_5.js +5 -0
  19. package/dist-es/protocols/Aws_ec2.js +248 -0
  20. package/dist-types/EC2.d.ts +21 -0
  21. package/dist-types/EC2Client.d.ts +5 -2
  22. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +6 -0
  23. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +12 -0
  24. package/dist-types/commands/CreatePlacementGroupCommand.d.ts +1 -2
  25. package/dist-types/commands/DeleteNetworkInterfaceCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteNetworkInterfacePermissionCommand.d.ts +1 -1
  27. package/dist-types/commands/DeletePlacementGroupCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeInstanceEventNotificationAttributesCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeInstanceEventWindowsCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeInstancesCommand.d.ts +6 -0
  31. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +6 -0
  32. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +6 -0
  33. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +6 -0
  34. package/dist-types/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
  37. package/dist-types/commands/DisableSnapshotBlockPublicAccessCommand.d.ts +81 -0
  38. package/dist-types/commands/EnableSnapshotBlockPublicAccessCommand.d.ts +85 -0
  39. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +6 -0
  40. package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +76 -0
  41. package/dist-types/commands/GetSubnetCidrReservationsCommand.d.ts +2 -1
  42. package/dist-types/commands/GetTransitGatewayAttachmentPropagationsCommand.d.ts +1 -1
  43. package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
  44. package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  45. package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
  46. package/dist-types/commands/RequestSpotFleetCommand.d.ts +6 -0
  47. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +12 -0
  48. package/dist-types/commands/ResetImageAttributeCommand.d.ts +1 -1
  49. package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  50. package/dist-types/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  51. package/dist-types/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  52. package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +1 -1
  53. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
  54. package/dist-types/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
  55. package/dist-types/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
  56. package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +1 -2
  57. package/dist-types/commands/RunInstancesCommand.d.ts +12 -0
  58. package/dist-types/commands/index.d.ts +3 -0
  59. package/dist-types/models/models_0.d.ts +3 -2
  60. package/dist-types/models/models_1.d.ts +99 -99
  61. package/dist-types/models/models_2.d.ts +89 -71
  62. package/dist-types/models/models_3.d.ts +71 -126
  63. package/dist-types/models/models_4.d.ts +182 -240
  64. package/dist-types/models/models_5.d.ts +370 -354
  65. package/dist-types/models/models_6.d.ts +350 -306
  66. package/dist-types/models/models_7.d.ts +308 -5
  67. package/dist-types/protocols/Aws_ec2.d.ts +27 -0
  68. package/dist-types/ts3.4/EC2.d.ts +57 -0
  69. package/dist-types/ts3.4/EC2Client.d.ts +18 -0
  70. package/dist-types/ts3.4/commands/CreatePlacementGroupCommand.d.ts +4 -2
  71. package/dist-types/ts3.4/commands/DeleteNetworkInterfaceCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DeleteNetworkInterfacePermissionCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/DeletePlacementGroupCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/DescribeInstanceEventNotificationAttributesCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/DescribeInstanceEventWindowsCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/DescribeTransitGatewayRouteTablesCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/DescribeTransitGatewayVpcAttachmentsCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/DescribeTransitGatewaysCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/DisableSnapshotBlockPublicAccessCommand.d.ts +42 -0
  80. package/dist-types/ts3.4/commands/EnableSnapshotBlockPublicAccessCommand.d.ts +42 -0
  81. package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +42 -0
  82. package/dist-types/ts3.4/commands/GetSubnetCidrReservationsCommand.d.ts +2 -4
  83. package/dist-types/ts3.4/commands/GetTransitGatewayAttachmentPropagationsCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +4 -2
  87. package/dist-types/ts3.4/commands/ResetImageAttributeCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/RestoreAddressToClassicCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/RestoreImageFromRecycleBinCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/RestoreSnapshotTierCommand.d.ts +4 -2
  96. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  97. package/dist-types/ts3.4/models/models_1.d.ts +16 -28
  98. package/dist-types/ts3.4/models/models_2.d.ts +28 -19
  99. package/dist-types/ts3.4/models/models_3.d.ts +16 -18
  100. package/dist-types/ts3.4/models/models_4.d.ts +29 -36
  101. package/dist-types/ts3.4/models/models_5.d.ts +62 -75
  102. package/dist-types/ts3.4/models/models_6.d.ts +76 -70
  103. package/dist-types/ts3.4/models/models_7.d.ts +77 -2
  104. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
  105. package/package.json +13 -13
@@ -1,8 +1,242 @@
1
- import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetAssociation, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, TrunkInterfaceAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
1
+ import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, TransitGatewayVpcAttachment, TrunkInterfaceAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
2
2
  import { DiskImageFormat, InstanceRequirementsRequest, IpamResourceTag, NetworkInsightsAccessScopeContent, RequestIpamResourceTag, ResponseLaunchTemplateData, TargetCapacityUnitType, VolumeType, Vpc } from "./models_1";
3
- import { ConnectionNotification, DnsEntry, DnsNameState, IpAddressType, PayerResponsibility, ServiceConfiguration, ServiceConnectivityType, ServiceTypeDetail, SSEType, State, SubnetCidrReservation, VerifiedAccessEndpoint, VerifiedAccessGroup, Volume, VpcEndpoint, VpnConnection, VpnGateway } from "./models_2";
3
+ import { ConnectionNotification, DnsEntry, DnsNameState, IpAddressType, PayerResponsibility, ServiceConfiguration, ServiceConnectivityType, ServiceTypeDetail, SSEType, State, TransitGateway, TransitGatewayRouteTable, VerifiedAccessEndpoint, VerifiedAccessGroup, Volume, VpcEndpoint, VpnConnection, VpnGateway } from "./models_2";
4
4
  import { AttributeBooleanValue, ExportTaskS3Location, FastLaunchLaunchTemplateSpecificationResponse, FastLaunchResourceType, FastLaunchSnapshotConfigurationResponse, FastLaunchStateCode, FastSnapshotRestoreStateCode, Filter, IpamPoolCidr, MetricType, PaymentOption, PeriodType, ProductCode, StatisticType, VirtualizationType } from "./models_3";
5
5
  import { AnalysisStatus, ArchitectureType } from "./models_4";
6
+ /**
7
+ * @public
8
+ */
9
+ export interface DescribeTransitGatewayRouteTablesRequest {
10
+ /**
11
+ * @public
12
+ * <p>The IDs of the transit gateway route tables.</p>
13
+ */
14
+ TransitGatewayRouteTableIds?: string[];
15
+ /**
16
+ * @public
17
+ * <p>One or more filters. The possible values are:</p>
18
+ * <ul>
19
+ * <li>
20
+ * <p>
21
+ * <code>default-association-route-table</code> - Indicates whether this is the default
22
+ * association route table for the transit gateway (<code>true</code> | <code>false</code>).</p>
23
+ * </li>
24
+ * <li>
25
+ * <p>
26
+ * <code>default-propagation-route-table</code> - Indicates whether this is the default
27
+ * propagation route table for the transit gateway (<code>true</code> | <code>false</code>).</p>
28
+ * </li>
29
+ * <li>
30
+ * <p>
31
+ * <code>state</code> - The state of the route table (<code>available</code> | <code>deleting</code> | <code>deleted</code> | <code>pending</code>).</p>
32
+ * </li>
33
+ * <li>
34
+ * <p>
35
+ * <code>transit-gateway-id</code> - The ID of the transit gateway.</p>
36
+ * </li>
37
+ * <li>
38
+ * <p>
39
+ * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway route table.</p>
40
+ * </li>
41
+ * </ul>
42
+ */
43
+ Filters?: Filter[];
44
+ /**
45
+ * @public
46
+ * <p>The maximum number of results to return with a single call.
47
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
48
+ */
49
+ MaxResults?: number;
50
+ /**
51
+ * @public
52
+ * <p>The token for the next page of results.</p>
53
+ */
54
+ NextToken?: string;
55
+ /**
56
+ * @public
57
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
58
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
59
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
60
+ */
61
+ DryRun?: boolean;
62
+ }
63
+ /**
64
+ * @public
65
+ */
66
+ export interface DescribeTransitGatewayRouteTablesResult {
67
+ /**
68
+ * @public
69
+ * <p>Information about the transit gateway route tables.</p>
70
+ */
71
+ TransitGatewayRouteTables?: TransitGatewayRouteTable[];
72
+ /**
73
+ * @public
74
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
75
+ */
76
+ NextToken?: string;
77
+ }
78
+ /**
79
+ * @public
80
+ */
81
+ export interface DescribeTransitGatewaysRequest {
82
+ /**
83
+ * @public
84
+ * <p>The IDs of the transit gateways.</p>
85
+ */
86
+ TransitGatewayIds?: string[];
87
+ /**
88
+ * @public
89
+ * <p>One or more filters. The possible values are:</p>
90
+ * <ul>
91
+ * <li>
92
+ * <p>
93
+ * <code>options.propagation-default-route-table-id</code> - The ID of the default propagation route table.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>
97
+ * <code>options.amazon-side-asn</code> - The private ASN for the Amazon side of a BGP session.</p>
98
+ * </li>
99
+ * <li>
100
+ * <p>
101
+ * <code>options.association-default-route-table-id</code> - The ID of the default association route table.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>
105
+ * <code>options.auto-accept-shared-attachments</code> - Indicates whether there is automatic acceptance of attachment requests (<code>enable</code> | <code>disable</code>).</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>
109
+ * <code>options.default-route-table-association</code> - Indicates whether resource attachments are automatically
110
+ * associated with the default association route table (<code>enable</code> | <code>disable</code>).</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>
114
+ * <code>options.default-route-table-propagation</code> - Indicates whether resource attachments automatically propagate
115
+ * routes to the default propagation route table (<code>enable</code> | <code>disable</code>).</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>
119
+ * <code>options.dns-support</code> - Indicates whether DNS support is enabled (<code>enable</code> | <code>disable</code>).</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>
123
+ * <code>options.vpn-ecmp-support</code> - Indicates whether Equal Cost Multipath Protocol support is enabled (<code>enable</code> | <code>disable</code>).</p>
124
+ * </li>
125
+ * <li>
126
+ * <p>
127
+ * <code>owner-id</code> - The ID of the Amazon Web Services account that owns the transit gateway.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>
131
+ * <code>state</code> - The state of the transit gateway (<code>available</code> | <code>deleted</code> | <code>deleting</code> | <code>modifying</code> | <code>pending</code>).</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>
135
+ * <code>transit-gateway-id</code> - The ID of the transit gateway.</p>
136
+ * </li>
137
+ * </ul>
138
+ */
139
+ Filters?: Filter[];
140
+ /**
141
+ * @public
142
+ * <p>The maximum number of results to return with a single call.
143
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
144
+ */
145
+ MaxResults?: number;
146
+ /**
147
+ * @public
148
+ * <p>The token for the next page of results.</p>
149
+ */
150
+ NextToken?: string;
151
+ /**
152
+ * @public
153
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
154
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
155
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
156
+ */
157
+ DryRun?: boolean;
158
+ }
159
+ /**
160
+ * @public
161
+ */
162
+ export interface DescribeTransitGatewaysResult {
163
+ /**
164
+ * @public
165
+ * <p>Information about the transit gateways.</p>
166
+ */
167
+ TransitGateways?: TransitGateway[];
168
+ /**
169
+ * @public
170
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
171
+ */
172
+ NextToken?: string;
173
+ }
174
+ /**
175
+ * @public
176
+ */
177
+ export interface DescribeTransitGatewayVpcAttachmentsRequest {
178
+ /**
179
+ * @public
180
+ * <p>The IDs of the attachments.</p>
181
+ */
182
+ TransitGatewayAttachmentIds?: string[];
183
+ /**
184
+ * @public
185
+ * <p>One or more filters. The possible values are:</p>
186
+ * <ul>
187
+ * <li>
188
+ * <p>
189
+ * <code>state</code> - The state of the attachment. Valid values are <code>available</code> | <code>deleted</code> | <code>deleting</code> | <code>failed</code> | <code>failing</code> | <code>initiatingRequest</code> | <code>modifying</code> | <code>pendingAcceptance</code> | <code>pending</code> | <code>rollingBack</code> | <code>rejected</code> | <code>rejecting</code>.</p>
190
+ * </li>
191
+ * <li>
192
+ * <p>
193
+ * <code>transit-gateway-attachment-id</code> - The ID of the attachment.</p>
194
+ * </li>
195
+ * <li>
196
+ * <p>
197
+ * <code>transit-gateway-id</code> - The ID of the transit gateway.</p>
198
+ * </li>
199
+ * <li>
200
+ * <p>
201
+ * <code>vpc-id</code> - The ID of the VPC.</p>
202
+ * </li>
203
+ * </ul>
204
+ */
205
+ Filters?: Filter[];
206
+ /**
207
+ * @public
208
+ * <p>The maximum number of results to return with a single call.
209
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
210
+ */
211
+ MaxResults?: number;
212
+ /**
213
+ * @public
214
+ * <p>The token for the next page of results.</p>
215
+ */
216
+ NextToken?: string;
217
+ /**
218
+ * @public
219
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
220
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
221
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
222
+ */
223
+ DryRun?: boolean;
224
+ }
225
+ /**
226
+ * @public
227
+ */
228
+ export interface DescribeTransitGatewayVpcAttachmentsResult {
229
+ /**
230
+ * @public
231
+ * <p>Information about the VPC attachments.</p>
232
+ */
233
+ TransitGatewayVpcAttachments?: TransitGatewayVpcAttachment[];
234
+ /**
235
+ * @public
236
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
237
+ */
238
+ NextToken?: string;
239
+ }
6
240
  /**
7
241
  * @public
8
242
  */
@@ -3030,6 +3264,41 @@ export interface DisableSerialConsoleAccessResult {
3030
3264
  */
3031
3265
  SerialConsoleAccessEnabled?: boolean;
3032
3266
  }
3267
+ /**
3268
+ * @public
3269
+ */
3270
+ export interface DisableSnapshotBlockPublicAccessRequest {
3271
+ /**
3272
+ * @public
3273
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
3274
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
3275
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
3276
+ */
3277
+ DryRun?: boolean;
3278
+ }
3279
+ /**
3280
+ * @public
3281
+ * @enum
3282
+ */
3283
+ export declare const SnapshotBlockPublicAccessState: {
3284
+ readonly block_all_sharing: "block-all-sharing";
3285
+ readonly block_new_sharing: "block-new-sharing";
3286
+ readonly unblocked: "unblocked";
3287
+ };
3288
+ /**
3289
+ * @public
3290
+ */
3291
+ export type SnapshotBlockPublicAccessState = (typeof SnapshotBlockPublicAccessState)[keyof typeof SnapshotBlockPublicAccessState];
3292
+ /**
3293
+ * @public
3294
+ */
3295
+ export interface DisableSnapshotBlockPublicAccessResult {
3296
+ /**
3297
+ * @public
3298
+ * <p>Returns <code>unblocked</code> if the request succeeds.</p>
3299
+ */
3300
+ State?: SnapshotBlockPublicAccessState;
3301
+ }
3033
3302
  /**
3034
3303
  * @public
3035
3304
  */
@@ -4196,6 +4465,59 @@ export interface EnableSerialConsoleAccessResult {
4196
4465
  */
4197
4466
  SerialConsoleAccessEnabled?: boolean;
4198
4467
  }
4468
+ /**
4469
+ * @public
4470
+ */
4471
+ export interface EnableSnapshotBlockPublicAccessRequest {
4472
+ /**
4473
+ * @public
4474
+ * <p>The mode in which to enable block public access for snapshots for the Region.
4475
+ * Specify one of the following values:</p>
4476
+ * <ul>
4477
+ * <li>
4478
+ * <p>
4479
+ * <code>block-all-sharing</code> - Prevents all public sharing of snapshots in
4480
+ * the Region. Users in the account will no longer be able to request new public
4481
+ * sharing. Additionally, snapshots that are already publicly shared are treated as
4482
+ * private and they are no longer publicly available.</p>
4483
+ * <note>
4484
+ * <p>If you enable block public access for snapshots in <code>block-all-sharing</code>
4485
+ * mode, it does not change the permissions for snapshots that are already publicly shared.
4486
+ * Instead, it prevents these snapshots from be publicly visible and publicly accessible.
4487
+ * Therefore, the attributes for these snapshots still indicate that they are publicly
4488
+ * shared, even though they are not publicly available.</p>
4489
+ * </note>
4490
+ * </li>
4491
+ * <li>
4492
+ * <p>
4493
+ * <code>block-new-sharing</code> - Prevents only new public sharing of snapshots
4494
+ * in the Region. Users in the account will no longer be able to request new public
4495
+ * sharing. However, snapshots that are already publicly shared, remain publicly
4496
+ * available.</p>
4497
+ * </li>
4498
+ * </ul>
4499
+ */
4500
+ State: SnapshotBlockPublicAccessState | undefined;
4501
+ /**
4502
+ * @public
4503
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
4504
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
4505
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
4506
+ */
4507
+ DryRun?: boolean;
4508
+ }
4509
+ /**
4510
+ * @public
4511
+ */
4512
+ export interface EnableSnapshotBlockPublicAccessResult {
4513
+ /**
4514
+ * @public
4515
+ * <p>The state of block public access for snapshots for the account and Region. Returns
4516
+ * either <code>block-all-sharing</code> or <code>block-new-sharing</code> if the request
4517
+ * succeeds.</p>
4518
+ */
4519
+ State?: SnapshotBlockPublicAccessState;
4520
+ }
4199
4521
  /**
4200
4522
  * @public
4201
4523
  */
@@ -6906,11 +7228,52 @@ export interface GetSerialConsoleAccessStatusResult {
6906
7228
  }
6907
7229
  /**
6908
7230
  * @public
6909
- * <p>The architecture type, virtualization type, and other attributes for the instance types.
6910
- * When you specify instance attributes, Amazon EC2 will identify instance types with those
6911
- * attributes.</p>
6912
- * <p>If you specify <code>InstanceRequirementsWithMetadataRequest</code>, you can't specify
6913
- * <code>InstanceTypes</code>.</p>
7231
+ */
7232
+ export interface GetSnapshotBlockPublicAccessStateRequest {
7233
+ /**
7234
+ * @public
7235
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
7236
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7237
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7238
+ */
7239
+ DryRun?: boolean;
7240
+ }
7241
+ /**
7242
+ * @public
7243
+ */
7244
+ export interface GetSnapshotBlockPublicAccessStateResult {
7245
+ /**
7246
+ * @public
7247
+ * <p>The current state of block public access for snapshots. Possible values include:</p>
7248
+ * <ul>
7249
+ * <li>
7250
+ * <p>
7251
+ * <code>block-all-sharing</code> - All public sharing of snapshots is blocked. Users in
7252
+ * the account can't request new public sharing. Additionally, snapshots that were already
7253
+ * publicly shared are treated as private and are not publicly available.</p>
7254
+ * </li>
7255
+ * <li>
7256
+ * <p>
7257
+ * <code>block-new-sharing</code> - Only new public sharing of snapshots is blocked.
7258
+ * Users in the account can't request new public sharing. However, snapshots that were
7259
+ * already publicly shared, remain publicly available.</p>
7260
+ * </li>
7261
+ * <li>
7262
+ * <p>
7263
+ * <code>unblocked</code> - Public sharing is not blocked. Users can publicly share
7264
+ * snapshots.</p>
7265
+ * </li>
7266
+ * </ul>
7267
+ */
7268
+ State?: SnapshotBlockPublicAccessState;
7269
+ }
7270
+ /**
7271
+ * @public
7272
+ * <p>The architecture type, virtualization type, and other attributes for the instance types.
7273
+ * When you specify instance attributes, Amazon EC2 will identify instance types with those
7274
+ * attributes.</p>
7275
+ * <p>If you specify <code>InstanceRequirementsWithMetadataRequest</code>, you can't specify
7276
+ * <code>InstanceTypes</code>.</p>
6914
7277
  */
6915
7278
  export interface InstanceRequirementsWithMetadataRequest {
6916
7279
  /**
@@ -7110,353 +7473,6 @@ export interface GetSubnetCidrReservationsRequest {
7110
7473
  */
7111
7474
  MaxResults?: number;
7112
7475
  }
7113
- /**
7114
- * @public
7115
- */
7116
- export interface GetSubnetCidrReservationsResult {
7117
- /**
7118
- * @public
7119
- * <p>Information about the IPv4 subnet CIDR reservations.</p>
7120
- */
7121
- SubnetIpv4CidrReservations?: SubnetCidrReservation[];
7122
- /**
7123
- * @public
7124
- * <p>Information about the IPv6 subnet CIDR reservations.</p>
7125
- */
7126
- SubnetIpv6CidrReservations?: SubnetCidrReservation[];
7127
- /**
7128
- * @public
7129
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
7130
- */
7131
- NextToken?: string;
7132
- }
7133
- /**
7134
- * @public
7135
- */
7136
- export interface GetTransitGatewayAttachmentPropagationsRequest {
7137
- /**
7138
- * @public
7139
- * <p>The ID of the attachment.</p>
7140
- */
7141
- TransitGatewayAttachmentId: string | undefined;
7142
- /**
7143
- * @public
7144
- * <p>One or more filters. The possible values are:</p>
7145
- * <ul>
7146
- * <li>
7147
- * <p>
7148
- * <code>transit-gateway-route-table-id</code> - The ID of the transit gateway route table.</p>
7149
- * </li>
7150
- * </ul>
7151
- */
7152
- Filters?: Filter[];
7153
- /**
7154
- * @public
7155
- * <p>The maximum number of results to return with a single call.
7156
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
7157
- */
7158
- MaxResults?: number;
7159
- /**
7160
- * @public
7161
- * <p>The token for the next page of results.</p>
7162
- */
7163
- NextToken?: string;
7164
- /**
7165
- * @public
7166
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7167
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7168
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7169
- */
7170
- DryRun?: boolean;
7171
- }
7172
- /**
7173
- * @public
7174
- * <p>Describes a propagation route table.</p>
7175
- */
7176
- export interface TransitGatewayAttachmentPropagation {
7177
- /**
7178
- * @public
7179
- * <p>The ID of the propagation route table.</p>
7180
- */
7181
- TransitGatewayRouteTableId?: string;
7182
- /**
7183
- * @public
7184
- * <p>The state of the propagation route table.</p>
7185
- */
7186
- State?: TransitGatewayPropagationState;
7187
- }
7188
- /**
7189
- * @public
7190
- */
7191
- export interface GetTransitGatewayAttachmentPropagationsResult {
7192
- /**
7193
- * @public
7194
- * <p>Information about the propagation route tables.</p>
7195
- */
7196
- TransitGatewayAttachmentPropagations?: TransitGatewayAttachmentPropagation[];
7197
- /**
7198
- * @public
7199
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
7200
- */
7201
- NextToken?: string;
7202
- }
7203
- /**
7204
- * @public
7205
- */
7206
- export interface GetTransitGatewayMulticastDomainAssociationsRequest {
7207
- /**
7208
- * @public
7209
- * <p>The ID of the transit gateway multicast domain.</p>
7210
- */
7211
- TransitGatewayMulticastDomainId: string | undefined;
7212
- /**
7213
- * @public
7214
- * <p>One or more filters. The possible values are:</p>
7215
- * <ul>
7216
- * <li>
7217
- * <p>
7218
- * <code>resource-id</code> - The ID of the resource.</p>
7219
- * </li>
7220
- * <li>
7221
- * <p>
7222
- * <code>resource-type</code> - The type of resource. The valid value is: <code>vpc</code>.</p>
7223
- * </li>
7224
- * <li>
7225
- * <p>
7226
- * <code>state</code> - The state of the subnet association. Valid values are
7227
- * <code>associated</code> | <code>associating</code> |
7228
- * <code>disassociated</code> | <code>disassociating</code>.</p>
7229
- * </li>
7230
- * <li>
7231
- * <p>
7232
- * <code>subnet-id</code> - The ID of the subnet.</p>
7233
- * </li>
7234
- * <li>
7235
- * <p>
7236
- * <code>transit-gateway-attachment-id</code> - The id of the transit gateway attachment.</p>
7237
- * </li>
7238
- * </ul>
7239
- */
7240
- Filters?: Filter[];
7241
- /**
7242
- * @public
7243
- * <p>The maximum number of results to return with a single call.
7244
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
7245
- */
7246
- MaxResults?: number;
7247
- /**
7248
- * @public
7249
- * <p>The token for the next page of results.</p>
7250
- */
7251
- NextToken?: string;
7252
- /**
7253
- * @public
7254
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7255
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7256
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7257
- */
7258
- DryRun?: boolean;
7259
- }
7260
- /**
7261
- * @public
7262
- * <p>Describes the resources associated with the transit gateway multicast domain.</p>
7263
- */
7264
- export interface TransitGatewayMulticastDomainAssociation {
7265
- /**
7266
- * @public
7267
- * <p>The ID of the transit gateway attachment.</p>
7268
- */
7269
- TransitGatewayAttachmentId?: string;
7270
- /**
7271
- * @public
7272
- * <p>The ID of the resource.</p>
7273
- */
7274
- ResourceId?: string;
7275
- /**
7276
- * @public
7277
- * <p>The type of resource, for example a VPC attachment.</p>
7278
- */
7279
- ResourceType?: TransitGatewayAttachmentResourceType;
7280
- /**
7281
- * @public
7282
- * <p> The ID of the Amazon Web Services account that owns the transit gateway multicast domain association resource.</p>
7283
- */
7284
- ResourceOwnerId?: string;
7285
- /**
7286
- * @public
7287
- * <p>The subnet associated with the transit gateway multicast domain.</p>
7288
- */
7289
- Subnet?: SubnetAssociation;
7290
- }
7291
- /**
7292
- * @public
7293
- */
7294
- export interface GetTransitGatewayMulticastDomainAssociationsResult {
7295
- /**
7296
- * @public
7297
- * <p>Information about the multicast domain associations.</p>
7298
- */
7299
- MulticastDomainAssociations?: TransitGatewayMulticastDomainAssociation[];
7300
- /**
7301
- * @public
7302
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
7303
- */
7304
- NextToken?: string;
7305
- }
7306
- /**
7307
- * @public
7308
- */
7309
- export interface GetTransitGatewayPolicyTableAssociationsRequest {
7310
- /**
7311
- * @public
7312
- * <p>The ID of the transit gateway policy table.</p>
7313
- */
7314
- TransitGatewayPolicyTableId: string | undefined;
7315
- /**
7316
- * @public
7317
- * <p>The filters associated with the transit gateway policy table.</p>
7318
- */
7319
- Filters?: Filter[];
7320
- /**
7321
- * @public
7322
- * <p>The maximum number of results to return with a single call.
7323
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
7324
- */
7325
- MaxResults?: number;
7326
- /**
7327
- * @public
7328
- * <p>The token for the next page of results.</p>
7329
- */
7330
- NextToken?: string;
7331
- /**
7332
- * @public
7333
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7334
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7335
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7336
- */
7337
- DryRun?: boolean;
7338
- }
7339
- /**
7340
- * @public
7341
- */
7342
- export interface GetTransitGatewayPolicyTableAssociationsResult {
7343
- /**
7344
- * @public
7345
- * <p>Returns details about the transit gateway policy table association.</p>
7346
- */
7347
- Associations?: TransitGatewayPolicyTableAssociation[];
7348
- /**
7349
- * @public
7350
- * <p>The token for the next page of results.</p>
7351
- */
7352
- NextToken?: string;
7353
- }
7354
- /**
7355
- * @public
7356
- */
7357
- export interface GetTransitGatewayPolicyTableEntriesRequest {
7358
- /**
7359
- * @public
7360
- * <p>The ID of the transit gateway policy table.</p>
7361
- */
7362
- TransitGatewayPolicyTableId: string | undefined;
7363
- /**
7364
- * @public
7365
- * <p>The filters associated with the transit gateway policy table.</p>
7366
- */
7367
- Filters?: Filter[];
7368
- /**
7369
- * @public
7370
- * <p>The maximum number of results to return with a single call.
7371
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
7372
- */
7373
- MaxResults?: number;
7374
- /**
7375
- * @public
7376
- * <p>The token for the next page of results.</p>
7377
- */
7378
- NextToken?: string;
7379
- /**
7380
- * @public
7381
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7382
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7383
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7384
- */
7385
- DryRun?: boolean;
7386
- }
7387
- /**
7388
- * @public
7389
- * <p>Describes the meta data tags associated with a transit gateway policy rule.</p>
7390
- */
7391
- export interface TransitGatewayPolicyRuleMetaData {
7392
- /**
7393
- * @public
7394
- * <p>The key name for the transit gateway policy rule meta data tag.</p>
7395
- */
7396
- MetaDataKey?: string;
7397
- /**
7398
- * @public
7399
- * <p>The value of the key for the transit gateway policy rule meta data tag.</p>
7400
- */
7401
- MetaDataValue?: string;
7402
- }
7403
- /**
7404
- * @public
7405
- * <p>Describes a rule associated with a transit gateway policy.</p>
7406
- */
7407
- export interface TransitGatewayPolicyRule {
7408
- /**
7409
- * @public
7410
- * <p>The source CIDR block for the transit gateway policy rule.</p>
7411
- */
7412
- SourceCidrBlock?: string;
7413
- /**
7414
- * @public
7415
- * <p>The port range for the transit gateway policy rule. Currently this is set to * (all).</p>
7416
- */
7417
- SourcePortRange?: string;
7418
- /**
7419
- * @public
7420
- * <p>The destination CIDR block for the transit gateway policy rule.</p>
7421
- */
7422
- DestinationCidrBlock?: string;
7423
- /**
7424
- * @public
7425
- * <p>The port range for the transit gateway policy rule. Currently this is set to * (all).</p>
7426
- */
7427
- DestinationPortRange?: string;
7428
- /**
7429
- * @public
7430
- * <p>The protocol used by the transit gateway policy rule.</p>
7431
- */
7432
- Protocol?: string;
7433
- /**
7434
- * @public
7435
- * <p>The meta data tags used for the transit gateway policy rule.</p>
7436
- */
7437
- MetaData?: TransitGatewayPolicyRuleMetaData;
7438
- }
7439
- /**
7440
- * @public
7441
- * <p>Describes a transit gateway policy table entry</p>
7442
- */
7443
- export interface TransitGatewayPolicyTableEntry {
7444
- /**
7445
- * @public
7446
- * <p>The rule number for the transit gateway policy table entry.</p>
7447
- */
7448
- PolicyRuleNumber?: string;
7449
- /**
7450
- * @public
7451
- * <p>The policy rule associated with the transit gateway policy table.</p>
7452
- */
7453
- PolicyRule?: TransitGatewayPolicyRule;
7454
- /**
7455
- * @public
7456
- * <p>The ID of the target route table.</p>
7457
- */
7458
- TargetRouteTableId?: string;
7459
- }
7460
7476
  /**
7461
7477
  * @internal
7462
7478
  */