@aws-sdk/client-ec2 3.436.0 → 3.437.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 (40) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/EC2.js +2 -0
  3. package/dist-cjs/commands/GetSecurityGroupsForVpcCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/pagination/GetSecurityGroupsForVpcPaginator.js +29 -0
  6. package/dist-cjs/pagination/index.js +1 -0
  7. package/dist-cjs/protocols/Aws_ec2.js +125 -16
  8. package/dist-es/EC2.js +2 -0
  9. package/dist-es/commands/GetSecurityGroupsForVpcCommand.js +47 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/pagination/GetSecurityGroupsForVpcPaginator.js +25 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_ec2.js +107 -0
  14. package/dist-types/EC2.d.ts +7 -0
  15. package/dist-types/EC2Client.d.ts +3 -2
  16. package/dist-types/commands/GetSecurityGroupsForVpcCommand.d.ts +99 -0
  17. package/dist-types/commands/GetTransitGatewayRouteTableAssociationsCommand.d.ts +2 -1
  18. package/dist-types/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +1 -2
  19. package/dist-types/commands/RevokeSecurityGroupIngressCommand.d.ts +2 -1
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_5.d.ts +108 -91
  22. package/dist-types/models/models_6.d.ts +93 -69
  23. package/dist-types/models/models_7.d.ts +68 -2
  24. package/dist-types/pagination/GetSecurityGroupsForVpcPaginator.d.ts +7 -0
  25. package/dist-types/pagination/index.d.ts +1 -0
  26. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  27. package/dist-types/ts3.4/EC2.d.ts +17 -0
  28. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  29. package/dist-types/ts3.4/commands/GetSecurityGroupsForVpcCommand.d.ts +42 -0
  30. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTableAssociationsCommand.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +4 -2
  32. package/dist-types/ts3.4/commands/RevokeSecurityGroupIngressCommand.d.ts +2 -4
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/models_5.d.ts +19 -18
  35. package/dist-types/ts3.4/models/models_6.d.ts +19 -14
  36. package/dist-types/ts3.4/models/models_7.d.ts +14 -2
  37. package/dist-types/ts3.4/pagination/GetSecurityGroupsForVpcPaginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  40. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetAssociation, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAssociationState, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
1
+ import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetAssociation, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
2
2
  import { DiskImageFormat, InstanceRequirementsRequest, IpamResourceTag, NetworkInsightsAccessScopeContent, RequestIpamResourceTag, ResponseLaunchTemplateData, TargetCapacityUnitType, VolumeType, Vpc } from "./models_1";
3
3
  import { ConnectionNotification, DnsEntry, DnsNameState, IpAddressType, PayerResponsibility, ServiceConfiguration, ServiceConnectivityType, ServiceTypeDetail, SSEType, State, SubnetCidrReservation, TransitGatewayPrefixListReference, 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";
@@ -6659,6 +6659,113 @@ export interface GetReservedInstancesExchangeQuoteResult {
6659
6659
  */
6660
6660
  ValidationFailureReason?: string;
6661
6661
  }
6662
+ /**
6663
+ * @public
6664
+ */
6665
+ export interface GetSecurityGroupsForVpcRequest {
6666
+ /**
6667
+ * @public
6668
+ * <p>The VPC ID where the security group can be used.</p>
6669
+ */
6670
+ VpcId: string | undefined;
6671
+ /**
6672
+ * @public
6673
+ * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
6674
+ */
6675
+ NextToken?: string;
6676
+ /**
6677
+ * @public
6678
+ * <p>The maximum number of items to return for this request.
6679
+ * To get the next page of items, make another request with the token returned in the output.
6680
+ * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
6681
+ */
6682
+ MaxResults?: number;
6683
+ /**
6684
+ * @public
6685
+ * <p>The filters. If using multiple filters, the results include security groups which match all filters.</p>
6686
+ * <ul>
6687
+ * <li>
6688
+ * <p>
6689
+ * <code>group-id</code>: The security group ID.</p>
6690
+ * </li>
6691
+ * <li>
6692
+ * <p>
6693
+ * <code>description</code>: The security group's description.</p>
6694
+ * </li>
6695
+ * <li>
6696
+ * <p>
6697
+ * <code>group-name</code>: The security group name.</p>
6698
+ * </li>
6699
+ * <li>
6700
+ * <p>
6701
+ * <code>owner-id</code>: The security group owner ID.</p>
6702
+ * </li>
6703
+ * <li>
6704
+ * <p>
6705
+ * <code>primary-vpc-id</code>: The VPC ID in which the security group was created.</p>
6706
+ * </li>
6707
+ * </ul>
6708
+ */
6709
+ Filters?: Filter[];
6710
+ /**
6711
+ * @public
6712
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
6713
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
6714
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
6715
+ */
6716
+ DryRun?: boolean;
6717
+ }
6718
+ /**
6719
+ * @public
6720
+ * <p>A security group that can be used by interfaces in the VPC.</p>
6721
+ */
6722
+ export interface SecurityGroupForVpc {
6723
+ /**
6724
+ * @public
6725
+ * <p>The security group's description.</p>
6726
+ */
6727
+ Description?: string;
6728
+ /**
6729
+ * @public
6730
+ * <p>The security group name.</p>
6731
+ */
6732
+ GroupName?: string;
6733
+ /**
6734
+ * @public
6735
+ * <p>The security group owner ID.</p>
6736
+ */
6737
+ OwnerId?: string;
6738
+ /**
6739
+ * @public
6740
+ * <p>The security group ID.</p>
6741
+ */
6742
+ GroupId?: string;
6743
+ /**
6744
+ * @public
6745
+ * <p>The security group tags.</p>
6746
+ */
6747
+ Tags?: Tag[];
6748
+ /**
6749
+ * @public
6750
+ * <p>The VPC ID in which the security group was created.</p>
6751
+ */
6752
+ PrimaryVpcId?: string;
6753
+ }
6754
+ /**
6755
+ * @public
6756
+ */
6757
+ export interface GetSecurityGroupsForVpcResult {
6758
+ /**
6759
+ * @public
6760
+ * <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
6761
+ */
6762
+ NextToken?: string;
6763
+ /**
6764
+ * @public
6765
+ * <p>The security group that can be used by interfaces in the VPC.</p>
6766
+ */
6767
+ SecurityGroupForVpcs?: SecurityGroupForVpc[];
6768
+ }
6662
6769
  /**
6663
6770
  * @public
6664
6771
  */
@@ -7373,96 +7480,6 @@ export interface GetTransitGatewayRouteTableAssociationsRequest {
7373
7480
  */
7374
7481
  DryRun?: boolean;
7375
7482
  }
7376
- /**
7377
- * @public
7378
- * <p>Describes an association between a route table and a resource attachment.</p>
7379
- */
7380
- export interface TransitGatewayRouteTableAssociation {
7381
- /**
7382
- * @public
7383
- * <p>The ID of the attachment.</p>
7384
- */
7385
- TransitGatewayAttachmentId?: string;
7386
- /**
7387
- * @public
7388
- * <p>The ID of the resource.</p>
7389
- */
7390
- ResourceId?: string;
7391
- /**
7392
- * @public
7393
- * <p>The resource type. Note that the <code>tgw-peering</code> resource type has been deprecated.</p>
7394
- */
7395
- ResourceType?: TransitGatewayAttachmentResourceType;
7396
- /**
7397
- * @public
7398
- * <p>The state of the association.</p>
7399
- */
7400
- State?: TransitGatewayAssociationState;
7401
- }
7402
- /**
7403
- * @public
7404
- */
7405
- export interface GetTransitGatewayRouteTableAssociationsResult {
7406
- /**
7407
- * @public
7408
- * <p>Information about the associations.</p>
7409
- */
7410
- Associations?: TransitGatewayRouteTableAssociation[];
7411
- /**
7412
- * @public
7413
- * <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>
7414
- */
7415
- NextToken?: string;
7416
- }
7417
- /**
7418
- * @public
7419
- */
7420
- export interface GetTransitGatewayRouteTablePropagationsRequest {
7421
- /**
7422
- * @public
7423
- * <p>The ID of the transit gateway route table.</p>
7424
- */
7425
- TransitGatewayRouteTableId: string | undefined;
7426
- /**
7427
- * @public
7428
- * <p>One or more filters. The possible values are:</p>
7429
- * <ul>
7430
- * <li>
7431
- * <p>
7432
- * <code>resource-id</code> - The ID of the resource.</p>
7433
- * </li>
7434
- * <li>
7435
- * <p>
7436
- * <code>resource-type</code> - The resource type. Valid values are <code>vpc</code>
7437
- * | <code>vpn</code> | <code>direct-connect-gateway</code> | <code>peering</code>
7438
- * | <code>connect</code>.</p>
7439
- * </li>
7440
- * <li>
7441
- * <p>
7442
- * <code>transit-gateway-attachment-id</code> - The ID of the attachment.</p>
7443
- * </li>
7444
- * </ul>
7445
- */
7446
- Filters?: Filter[];
7447
- /**
7448
- * @public
7449
- * <p>The maximum number of results to return with a single call.
7450
- * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
7451
- */
7452
- MaxResults?: number;
7453
- /**
7454
- * @public
7455
- * <p>The token for the next page of results.</p>
7456
- */
7457
- NextToken?: string;
7458
- /**
7459
- * @public
7460
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7461
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7462
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7463
- */
7464
- DryRun?: boolean;
7465
- }
7466
7483
  /**
7467
7484
  * @internal
7468
7485
  */
@@ -1,9 +1,99 @@
1
- import { _InstanceType, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, AddressAttributeName, Affinity, ApplianceModeSupportValue, AutoPlacement, ByoipCidr, ClientVpnAuthorizationRuleStatus, CurrencyCodeValues, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, IamInstanceProfileAssociation, IamInstanceProfileSpecification, InstanceEventWindow, IpPermission, Ipv6SupportValue, PortRange, RouteTableAssociationState, Tag, TagSpecification, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
2
- import { AmdSevSnpSpecification, AttributeValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, ClientConnectOptions, ClientLoginBannerOptions, ConnectionLogOptions, DiskImageFormat, FleetExcessCapacityTerminationPolicy, FleetLaunchTemplateConfigRequest, HostnameType, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, Ipam, IpamPool, IpamResourceDiscovery, IpamScope, LaunchTemplate, LocalGatewayRoute, ManagedPrefixList, Placement, PlatformValues, RequestIpamResourceTag, RuleAction, SelfServicePortal, ShutdownBehavior, SpotInstanceType, TargetCapacitySpecificationRequest, VolumeType } from "./models_1";
1
+ import { _InstanceType, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, AddressAttributeName, Affinity, ApplianceModeSupportValue, AutoPlacement, ByoipCidr, ClientVpnAuthorizationRuleStatus, CurrencyCodeValues, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, IamInstanceProfileAssociation, IamInstanceProfileSpecification, InstanceEventWindow, IpPermission, Ipv6SupportValue, PortRange, RouteTableAssociationState, Tag, TagSpecification, TransitGatewayAssociationState, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
2
+ import { AttributeValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, ClientConnectOptions, ClientLoginBannerOptions, ConnectionLogOptions, DiskImageFormat, FleetExcessCapacityTerminationPolicy, FleetLaunchTemplateConfigRequest, HostnameType, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, Ipam, IpamPool, IpamResourceDiscovery, IpamScope, LaunchTemplate, LocalGatewayRoute, ManagedPrefixList, Placement, PlatformValues, RequestIpamResourceTag, RuleAction, SelfServicePortal, ShutdownBehavior, SpotInstanceType, TargetCapacitySpecificationRequest, VolumeType } from "./models_1";
3
3
  import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DnsOptionsSpecification, IKEVersionsRequestListValue, IpAddressType, PayerResponsibility, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, SnapshotState, SSEType, SubnetConfiguration, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, TransitGatewayPrefixListReference, TransitGatewayRoute, VerifiedAccessEndpoint, VerifiedAccessEndpointProtocol, VerifiedAccessGroup, VerifiedAccessSseSpecificationRequest, VpnConnection, VpnEcmpSupportValue, VpnTunnelLogOptionsSpecification } from "./models_2";
4
- import { ArchitectureValues, AttributeBooleanValue, BootModeValues, ConversionTask, FpgaImageAttribute, FpgaImageAttributeName, ImdsSupportValues, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceTagNotificationAttribute, IpamPoolCidr, LaunchPermission, PermissionGroup, SnapshotDetail, SnapshotTaskDetail, TpmSupportValues } from "./models_3";
4
+ import { ArchitectureValues, AttributeBooleanValue, BootModeValues, ConversionTask, Filter, FpgaImageAttribute, FpgaImageAttributeName, ImdsSupportValues, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceTagNotificationAttribute, IpamPoolCidr, LaunchPermission, PermissionGroup, SnapshotDetail, SnapshotTaskDetail, TpmSupportValues } from "./models_3";
5
5
  import { CreateVolumePermission, ExcessCapacityTerminationPolicy, HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataOptionsResponse, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceStatusEvent, LaunchTemplateConfig, Monitoring, PublicIpv4PoolRange, ReservedInstancesConfiguration, RunInstancesMonitoringEnabled, ScheduledInstance, SnapshotAttributeName, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement } from "./models_4";
6
6
  import { InstanceFamilyCreditSpecification, IpamResourceCidr, Purchase, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VerifiedAccessInstanceLoggingConfiguration, VolumeModification } from "./models_5";
7
+ /**
8
+ * @public
9
+ * <p>Describes an association between a route table and a resource attachment.</p>
10
+ */
11
+ export interface TransitGatewayRouteTableAssociation {
12
+ /**
13
+ * @public
14
+ * <p>The ID of the attachment.</p>
15
+ */
16
+ TransitGatewayAttachmentId?: string;
17
+ /**
18
+ * @public
19
+ * <p>The ID of the resource.</p>
20
+ */
21
+ ResourceId?: string;
22
+ /**
23
+ * @public
24
+ * <p>The resource type. Note that the <code>tgw-peering</code> resource type has been deprecated.</p>
25
+ */
26
+ ResourceType?: TransitGatewayAttachmentResourceType;
27
+ /**
28
+ * @public
29
+ * <p>The state of the association.</p>
30
+ */
31
+ State?: TransitGatewayAssociationState;
32
+ }
33
+ /**
34
+ * @public
35
+ */
36
+ export interface GetTransitGatewayRouteTableAssociationsResult {
37
+ /**
38
+ * @public
39
+ * <p>Information about the associations.</p>
40
+ */
41
+ Associations?: TransitGatewayRouteTableAssociation[];
42
+ /**
43
+ * @public
44
+ * <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>
45
+ */
46
+ NextToken?: string;
47
+ }
48
+ /**
49
+ * @public
50
+ */
51
+ export interface GetTransitGatewayRouteTablePropagationsRequest {
52
+ /**
53
+ * @public
54
+ * <p>The ID of the transit gateway route table.</p>
55
+ */
56
+ TransitGatewayRouteTableId: string | undefined;
57
+ /**
58
+ * @public
59
+ * <p>One or more filters. The possible values are:</p>
60
+ * <ul>
61
+ * <li>
62
+ * <p>
63
+ * <code>resource-id</code> - The ID of the resource.</p>
64
+ * </li>
65
+ * <li>
66
+ * <p>
67
+ * <code>resource-type</code> - The resource type. Valid values are <code>vpc</code>
68
+ * | <code>vpn</code> | <code>direct-connect-gateway</code> | <code>peering</code>
69
+ * | <code>connect</code>.</p>
70
+ * </li>
71
+ * <li>
72
+ * <p>
73
+ * <code>transit-gateway-attachment-id</code> - The ID of the attachment.</p>
74
+ * </li>
75
+ * </ul>
76
+ */
77
+ Filters?: Filter[];
78
+ /**
79
+ * @public
80
+ * <p>The maximum number of results to return with a single call.
81
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
82
+ */
83
+ MaxResults?: number;
84
+ /**
85
+ * @public
86
+ * <p>The token for the next page of results.</p>
87
+ */
88
+ NextToken?: string;
89
+ /**
90
+ * @public
91
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
92
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
93
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
94
+ */
95
+ DryRun?: boolean;
96
+ }
7
97
  /**
8
98
  * @public
9
99
  * <p>Describes a route table propagation.</p>
@@ -7941,72 +8031,6 @@ export interface RevokeSecurityGroupIngressRequest {
7941
8031
  */
7942
8032
  SecurityGroupRuleIds?: string[];
7943
8033
  }
7944
- /**
7945
- * @public
7946
- */
7947
- export interface RevokeSecurityGroupIngressResult {
7948
- /**
7949
- * @public
7950
- * <p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>
7951
- */
7952
- Return?: boolean;
7953
- /**
7954
- * @public
7955
- * <p>The inbound rules that were unknown to the service. In some cases,
7956
- * <code>unknownIpPermissionSet</code> might be in a different format from the request
7957
- * parameter. </p>
7958
- */
7959
- UnknownIpPermissions?: IpPermission[];
7960
- }
7961
- /**
7962
- * @public
7963
- * <p>The CPU options for the instance. Both the core count and threads per core must be
7964
- * specified in the request.</p>
7965
- */
7966
- export interface CpuOptionsRequest {
7967
- /**
7968
- * @public
7969
- * <p>The number of CPU cores for the instance.</p>
7970
- */
7971
- CoreCount?: number;
7972
- /**
7973
- * @public
7974
- * <p>The number of threads per CPU core. To disable multithreading for the instance,
7975
- * specify a value of <code>1</code>. Otherwise, specify the default value of
7976
- * <code>2</code>.</p>
7977
- */
7978
- ThreadsPerCore?: number;
7979
- /**
7980
- * @public
7981
- * <p>Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported
7982
- * with M6a, R6a, and C6a instance types only. For more information, see
7983
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html">AMD SEV-SNP</a>.</p>
7984
- */
7985
- AmdSevSnp?: AmdSevSnpSpecification;
7986
- }
7987
- /**
7988
- * @public
7989
- * <p>
7990
- * Describes an elastic inference accelerator.
7991
- * </p>
7992
- */
7993
- export interface ElasticInferenceAccelerator {
7994
- /**
7995
- * @public
7996
- * <p>
7997
- * The type of elastic inference accelerator. The possible values are <code>eia1.medium</code>, <code>eia1.large</code>, <code>eia1.xlarge</code>, <code>eia2.medium</code>, <code>eia2.large</code>, and <code>eia2.xlarge</code>.
7998
- * </p>
7999
- */
8000
- Type: string | undefined;
8001
- /**
8002
- * @public
8003
- * <p>
8004
- * The number of elastic inference accelerators to attach to the instance.
8005
- * </p>
8006
- * <p>Default: 1</p>
8007
- */
8008
- Count?: number;
8009
- }
8010
8034
  /**
8011
8035
  * @internal
8012
8036
  */
@@ -1,9 +1,75 @@
1
1
  import { _InstanceType, ByoipCidr, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, TagSpecification, TransitGatewayAttachmentResourceType } from "./models_0";
2
- import { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, MarketType, Placement, ShutdownBehavior, SpotInstanceType } from "./models_1";
2
+ import { AmdSevSnpSpecification, BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, MarketType, Placement, ShutdownBehavior, SpotInstanceType } from "./models_1";
3
3
  import { TransitGatewayRoute } from "./models_2";
4
4
  import { ClientVpnConnectionStatus, Filter } from "./models_3";
5
5
  import { HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, RunInstancesMonitoringEnabled } from "./models_4";
6
- import { CapacityReservationSpecification, CpuOptionsRequest, ElasticInferenceAccelerator, InstanceMonitoring } from "./models_6";
6
+ import { CapacityReservationSpecification, InstanceMonitoring } from "./models_6";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface RevokeSecurityGroupIngressResult {
11
+ /**
12
+ * @public
13
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, returns an error.</p>
14
+ */
15
+ Return?: boolean;
16
+ /**
17
+ * @public
18
+ * <p>The inbound rules that were unknown to the service. In some cases,
19
+ * <code>unknownIpPermissionSet</code> might be in a different format from the request
20
+ * parameter. </p>
21
+ */
22
+ UnknownIpPermissions?: IpPermission[];
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The CPU options for the instance. Both the core count and threads per core must be
27
+ * specified in the request.</p>
28
+ */
29
+ export interface CpuOptionsRequest {
30
+ /**
31
+ * @public
32
+ * <p>The number of CPU cores for the instance.</p>
33
+ */
34
+ CoreCount?: number;
35
+ /**
36
+ * @public
37
+ * <p>The number of threads per CPU core. To disable multithreading for the instance,
38
+ * specify a value of <code>1</code>. Otherwise, specify the default value of
39
+ * <code>2</code>.</p>
40
+ */
41
+ ThreadsPerCore?: number;
42
+ /**
43
+ * @public
44
+ * <p>Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported
45
+ * with M6a, R6a, and C6a instance types only. For more information, see
46
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html">AMD SEV-SNP</a>.</p>
47
+ */
48
+ AmdSevSnp?: AmdSevSnpSpecification;
49
+ }
50
+ /**
51
+ * @public
52
+ * <p>
53
+ * Describes an elastic inference accelerator.
54
+ * </p>
55
+ */
56
+ export interface ElasticInferenceAccelerator {
57
+ /**
58
+ * @public
59
+ * <p>
60
+ * The type of elastic inference accelerator. The possible values are <code>eia1.medium</code>, <code>eia1.large</code>, <code>eia1.xlarge</code>, <code>eia2.medium</code>, <code>eia2.large</code>, and <code>eia2.xlarge</code>.
61
+ * </p>
62
+ */
63
+ Type: string | undefined;
64
+ /**
65
+ * @public
66
+ * <p>
67
+ * The number of elastic inference accelerators to attach to the instance.
68
+ * </p>
69
+ * <p>Default: 1</p>
70
+ */
71
+ Count?: number;
72
+ }
7
73
  /**
8
74
  * @public
9
75
  * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { GetSecurityGroupsForVpcCommandInput, GetSecurityGroupsForVpcCommandOutput } from "../commands/GetSecurityGroupsForVpcCommand";
3
+ import { EC2PaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateGetSecurityGroupsForVpc(config: EC2PaginationConfiguration, input: GetSecurityGroupsForVpcCommandInput, ...additionalArguments: any): Paginator<GetSecurityGroupsForVpcCommandOutput>;
@@ -123,6 +123,7 @@ export * from "./GetIpamResourceCidrsPaginator";
123
123
  export * from "./GetManagedPrefixListAssociationsPaginator";
124
124
  export * from "./GetManagedPrefixListEntriesPaginator";
125
125
  export * from "./GetNetworkInsightsAccessScopeAnalysisFindingsPaginator";
126
+ export * from "./GetSecurityGroupsForVpcPaginator";
126
127
  export * from "./GetSpotPlacementScoresPaginator";
127
128
  export * from "./GetTransitGatewayAttachmentPropagationsPaginator";
128
129
  export * from "./GetTransitGatewayMulticastDomainAssociationsPaginator";
@@ -445,6 +445,7 @@ import { GetNetworkInsightsAccessScopeAnalysisFindingsCommandInput, GetNetworkIn
445
445
  import { GetNetworkInsightsAccessScopeContentCommandInput, GetNetworkInsightsAccessScopeContentCommandOutput } from "../commands/GetNetworkInsightsAccessScopeContentCommand";
446
446
  import { GetPasswordDataCommandInput, GetPasswordDataCommandOutput } from "../commands/GetPasswordDataCommand";
447
447
  import { GetReservedInstancesExchangeQuoteCommandInput, GetReservedInstancesExchangeQuoteCommandOutput } from "../commands/GetReservedInstancesExchangeQuoteCommand";
448
+ import { GetSecurityGroupsForVpcCommandInput, GetSecurityGroupsForVpcCommandOutput } from "../commands/GetSecurityGroupsForVpcCommand";
448
449
  import { GetSerialConsoleAccessStatusCommandInput, GetSerialConsoleAccessStatusCommandOutput } from "../commands/GetSerialConsoleAccessStatusCommand";
449
450
  import { GetSpotPlacementScoresCommandInput, GetSpotPlacementScoresCommandOutput } from "../commands/GetSpotPlacementScoresCommand";
450
451
  import { GetSubnetCidrReservationsCommandInput, GetSubnetCidrReservationsCommandOutput } from "../commands/GetSubnetCidrReservationsCommand";
@@ -2379,6 +2380,10 @@ export declare const se_GetPasswordDataCommand: (input: GetPasswordDataCommandIn
2379
2380
  * serializeAws_ec2GetReservedInstancesExchangeQuoteCommand
2380
2381
  */
2381
2382
  export declare const se_GetReservedInstancesExchangeQuoteCommand: (input: GetReservedInstancesExchangeQuoteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2383
+ /**
2384
+ * serializeAws_ec2GetSecurityGroupsForVpcCommand
2385
+ */
2386
+ export declare const se_GetSecurityGroupsForVpcCommand: (input: GetSecurityGroupsForVpcCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2382
2387
  /**
2383
2388
  * serializeAws_ec2GetSerialConsoleAccessStatusCommand
2384
2389
  */
@@ -4775,6 +4780,10 @@ export declare const de_GetPasswordDataCommand: (output: __HttpResponse, context
4775
4780
  * deserializeAws_ec2GetReservedInstancesExchangeQuoteCommand
4776
4781
  */
4777
4782
  export declare const de_GetReservedInstancesExchangeQuoteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetReservedInstancesExchangeQuoteCommandOutput>;
4783
+ /**
4784
+ * deserializeAws_ec2GetSecurityGroupsForVpcCommand
4785
+ */
4786
+ export declare const de_GetSecurityGroupsForVpcCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSecurityGroupsForVpcCommandOutput>;
4778
4787
  /**
4779
4788
  * deserializeAws_ec2GetSerialConsoleAccessStatusCommand
4780
4789
  */
@@ -1779,6 +1779,10 @@ import {
1779
1779
  GetReservedInstancesExchangeQuoteCommandInput,
1780
1780
  GetReservedInstancesExchangeQuoteCommandOutput,
1781
1781
  } from "./commands/GetReservedInstancesExchangeQuoteCommand";
1782
+ import {
1783
+ GetSecurityGroupsForVpcCommandInput,
1784
+ GetSecurityGroupsForVpcCommandOutput,
1785
+ } from "./commands/GetSecurityGroupsForVpcCommand";
1782
1786
  import {
1783
1787
  GetSerialConsoleAccessStatusCommandInput,
1784
1788
  GetSerialConsoleAccessStatusCommandOutput,
@@ -8722,6 +8726,19 @@ export interface EC2 {
8722
8726
  data?: GetReservedInstancesExchangeQuoteCommandOutput
8723
8727
  ) => void
8724
8728
  ): void;
8729
+ getSecurityGroupsForVpc(
8730
+ args: GetSecurityGroupsForVpcCommandInput,
8731
+ options?: __HttpHandlerOptions
8732
+ ): Promise<GetSecurityGroupsForVpcCommandOutput>;
8733
+ getSecurityGroupsForVpc(
8734
+ args: GetSecurityGroupsForVpcCommandInput,
8735
+ cb: (err: any, data?: GetSecurityGroupsForVpcCommandOutput) => void
8736
+ ): void;
8737
+ getSecurityGroupsForVpc(
8738
+ args: GetSecurityGroupsForVpcCommandInput,
8739
+ options: __HttpHandlerOptions,
8740
+ cb: (err: any, data?: GetSecurityGroupsForVpcCommandOutput) => void
8741
+ ): void;
8725
8742
  getSerialConsoleAccessStatus(
8726
8743
  args: GetSerialConsoleAccessStatusCommandInput,
8727
8744
  options?: __HttpHandlerOptions
@@ -1825,6 +1825,10 @@ import {
1825
1825
  GetReservedInstancesExchangeQuoteCommandInput,
1826
1826
  GetReservedInstancesExchangeQuoteCommandOutput,
1827
1827
  } from "./commands/GetReservedInstancesExchangeQuoteCommand";
1828
+ import {
1829
+ GetSecurityGroupsForVpcCommandInput,
1830
+ GetSecurityGroupsForVpcCommandOutput,
1831
+ } from "./commands/GetSecurityGroupsForVpcCommand";
1828
1832
  import {
1829
1833
  GetSerialConsoleAccessStatusCommandInput,
1830
1834
  GetSerialConsoleAccessStatusCommandOutput,
@@ -2894,6 +2898,7 @@ export type ServiceInputTypes =
2894
2898
  | GetNetworkInsightsAccessScopeContentCommandInput
2895
2899
  | GetPasswordDataCommandInput
2896
2900
  | GetReservedInstancesExchangeQuoteCommandInput
2901
+ | GetSecurityGroupsForVpcCommandInput
2897
2902
  | GetSerialConsoleAccessStatusCommandInput
2898
2903
  | GetSpotPlacementScoresCommandInput
2899
2904
  | GetSubnetCidrReservationsCommandInput
@@ -3494,6 +3499,7 @@ export type ServiceOutputTypes =
3494
3499
  | GetNetworkInsightsAccessScopeContentCommandOutput
3495
3500
  | GetPasswordDataCommandOutput
3496
3501
  | GetReservedInstancesExchangeQuoteCommandOutput
3502
+ | GetSecurityGroupsForVpcCommandOutput
3497
3503
  | GetSerialConsoleAccessStatusCommandOutput
3498
3504
  | GetSpotPlacementScoresCommandOutput
3499
3505
  | GetSubnetCidrReservationsCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ EC2ClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../EC2Client";
14
+ import {
15
+ GetSecurityGroupsForVpcRequest,
16
+ GetSecurityGroupsForVpcResult,
17
+ } from "../models/models_5";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetSecurityGroupsForVpcCommandInput
20
+ extends GetSecurityGroupsForVpcRequest {}
21
+ export interface GetSecurityGroupsForVpcCommandOutput
22
+ extends GetSecurityGroupsForVpcResult,
23
+ __MetadataBearer {}
24
+ export declare class GetSecurityGroupsForVpcCommand extends $Command<
25
+ GetSecurityGroupsForVpcCommandInput,
26
+ GetSecurityGroupsForVpcCommandOutput,
27
+ EC2ClientResolvedConfig
28
+ > {
29
+ readonly input: GetSecurityGroupsForVpcCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetSecurityGroupsForVpcCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: EC2ClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ GetSecurityGroupsForVpcCommandInput,
38
+ GetSecurityGroupsForVpcCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import {
15
- GetTransitGatewayRouteTableAssociationsRequest,
16
- GetTransitGatewayRouteTableAssociationsResult,
17
- } from "../models/models_5";
14
+ import { GetTransitGatewayRouteTableAssociationsRequest } from "../models/models_5";
15
+ import { GetTransitGatewayRouteTableAssociationsResult } from "../models/models_6";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface GetTransitGatewayRouteTableAssociationsCommandInput
20
18
  extends GetTransitGatewayRouteTableAssociationsRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import { GetTransitGatewayRouteTablePropagationsRequest } from "../models/models_5";
15
- import { GetTransitGatewayRouteTablePropagationsResult } from "../models/models_6";
14
+ import {
15
+ GetTransitGatewayRouteTablePropagationsRequest,
16
+ GetTransitGatewayRouteTablePropagationsResult,
17
+ } from "../models/models_6";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface GetTransitGatewayRouteTablePropagationsCommandInput
18
20
  extends GetTransitGatewayRouteTablePropagationsRequest {}
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../EC2Client";
14
- import {
15
- RevokeSecurityGroupIngressRequest,
16
- RevokeSecurityGroupIngressResult,
17
- } from "../models/models_6";
14
+ import { RevokeSecurityGroupIngressRequest } from "../models/models_6";
15
+ import { RevokeSecurityGroupIngressResult } from "../models/models_7";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface RevokeSecurityGroupIngressCommandInput
20
18
  extends RevokeSecurityGroupIngressRequest {}