aws-sdk-ec2 1.415.0 → 1.416.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4579119ace8927db16d1523c9fc1b17878d975fe8ccbae16bdd6642d326af31c
4
- data.tar.gz: 7e5b310e58b2bf1b2e70e3502ff9365389451b06dd94bebb2f929846a5527ac2
3
+ metadata.gz: be9cd549908340f8b6d774a7c901825fc651feb1cd3df0dbcdd865e067d58390
4
+ data.tar.gz: 69c5daac300e84329abbaba6aa5cc878fc65eca8628e0e6a915cd10c5dbb0e12
5
5
  SHA512:
6
- metadata.gz: 68654626b76465c5458bfffa0cb1c0e8b9ab19e3ec1ce7b819e68c87a814750b4cf3a00b11b5a6daee6d83017943150acf1eb4c4460cb584e68f8d68559ebe32
7
- data.tar.gz: 0d56ea563876462ee6e654ecea86109fc45223fe78d45d37eb1ba93afad96ceb3a3386d96b9b019c3ee98e85d7a49aae32076aa93143388c2395e78cd79f309b
6
+ metadata.gz: a39112c01ebb25500d3f8aa72dd3f809c5de94928cfbf969806b27338ec4eae44b9308495c205e910bceb6e12decd7c668b3b9d888834a44cc17b504fe229382
7
+ data.tar.gz: 19c8d323bd3e6ee1570f206a36169e356662506d3b687330e0840ed5afa8bb2f241ce78de82eb47ba850e99f72d82f61709fa1c8b077424e2ef89c25f5b2ca95
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.416.0 (2023-10-26)
5
+ ------------------
6
+
7
+ * Feature - Launching GetSecurityGroupsForVpc API. This API gets security groups that can be associated by the AWS account making the request with network interfaces in the specified VPC.
8
+
4
9
  1.415.0 (2023-10-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.415.0
1
+ 1.416.0
@@ -42131,6 +42131,91 @@ module Aws::EC2
42131
42131
  req.send_request(options)
42132
42132
  end
42133
42133
 
42134
+ # Gets security groups that can be associated by the Amazon Web Services
42135
+ # account making the request with network interfaces in the specified
42136
+ # VPC.
42137
+ #
42138
+ # @option params [required, String] :vpc_id
42139
+ # The VPC ID where the security group can be used.
42140
+ #
42141
+ # @option params [String] :next_token
42142
+ # The token returned from a previous paginated request. Pagination
42143
+ # continues from the end of the items returned by the previous request.
42144
+ #
42145
+ # @option params [Integer] :max_results
42146
+ # The maximum number of items to return for this request. To get the
42147
+ # next page of items, make another request with the token returned in
42148
+ # the output. For more information, see [Pagination][1].
42149
+ #
42150
+ #
42151
+ #
42152
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
42153
+ #
42154
+ # @option params [Array<Types::Filter>] :filters
42155
+ # The filters. If using multiple filters, the results include security
42156
+ # groups which match all filters.
42157
+ #
42158
+ # * `group-id`: The security group ID.
42159
+ #
42160
+ # * `description`: The security group's description.
42161
+ #
42162
+ # * `group-name`: The security group name.
42163
+ #
42164
+ # * `owner-id`: The security group owner ID.
42165
+ #
42166
+ # * `primary-vpc-id`: The VPC ID in which the security group was
42167
+ # created.
42168
+ #
42169
+ # @option params [Boolean] :dry_run
42170
+ # Checks whether you have the required permissions for the action,
42171
+ # without actually making the request, and provides an error response.
42172
+ # If you have the required permissions, the error response is
42173
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
42174
+ #
42175
+ # @return [Types::GetSecurityGroupsForVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
42176
+ #
42177
+ # * {Types::GetSecurityGroupsForVpcResult#next_token #next_token} => String
42178
+ # * {Types::GetSecurityGroupsForVpcResult#security_group_for_vpcs #security_group_for_vpcs} => Array&lt;Types::SecurityGroupForVpc&gt;
42179
+ #
42180
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
42181
+ #
42182
+ # @example Request syntax with placeholder values
42183
+ #
42184
+ # resp = client.get_security_groups_for_vpc({
42185
+ # vpc_id: "VpcId", # required
42186
+ # next_token: "String",
42187
+ # max_results: 1,
42188
+ # filters: [
42189
+ # {
42190
+ # name: "String",
42191
+ # values: ["String"],
42192
+ # },
42193
+ # ],
42194
+ # dry_run: false,
42195
+ # })
42196
+ #
42197
+ # @example Response structure
42198
+ #
42199
+ # resp.next_token #=> String
42200
+ # resp.security_group_for_vpcs #=> Array
42201
+ # resp.security_group_for_vpcs[0].description #=> String
42202
+ # resp.security_group_for_vpcs[0].group_name #=> String
42203
+ # resp.security_group_for_vpcs[0].owner_id #=> String
42204
+ # resp.security_group_for_vpcs[0].group_id #=> String
42205
+ # resp.security_group_for_vpcs[0].tags #=> Array
42206
+ # resp.security_group_for_vpcs[0].tags[0].key #=> String
42207
+ # resp.security_group_for_vpcs[0].tags[0].value #=> String
42208
+ # resp.security_group_for_vpcs[0].primary_vpc_id #=> String
42209
+ #
42210
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpc AWS API Documentation
42211
+ #
42212
+ # @overload get_security_groups_for_vpc(params = {})
42213
+ # @param [Hash] params ({})
42214
+ def get_security_groups_for_vpc(params = {}, options = {})
42215
+ req = build_request(:get_security_groups_for_vpc, params)
42216
+ req.send_request(options)
42217
+ end
42218
+
42134
42219
  # Retrieves the access status of your account to the EC2 serial console
42135
42220
  # of all instances. By default, access to the EC2 serial console is
42136
42221
  # disabled for your account. For more information, see [Manage account
@@ -57184,7 +57269,7 @@ module Aws::EC2
57184
57269
  params: params,
57185
57270
  config: config)
57186
57271
  context[:gem_name] = 'aws-sdk-ec2'
57187
- context[:gem_version] = '1.415.0'
57272
+ context[:gem_version] = '1.416.0'
57188
57273
  Seahorse::Client::Request.new(handlers, context)
57189
57274
  end
57190
57275
 
@@ -1448,6 +1448,9 @@ module Aws::EC2
1448
1448
  GetPasswordDataResult = Shapes::StructureShape.new(name: 'GetPasswordDataResult')
1449
1449
  GetReservedInstancesExchangeQuoteRequest = Shapes::StructureShape.new(name: 'GetReservedInstancesExchangeQuoteRequest')
1450
1450
  GetReservedInstancesExchangeQuoteResult = Shapes::StructureShape.new(name: 'GetReservedInstancesExchangeQuoteResult')
1451
+ GetSecurityGroupsForVpcRequest = Shapes::StructureShape.new(name: 'GetSecurityGroupsForVpcRequest')
1452
+ GetSecurityGroupsForVpcRequestMaxResults = Shapes::IntegerShape.new(name: 'GetSecurityGroupsForVpcRequestMaxResults')
1453
+ GetSecurityGroupsForVpcResult = Shapes::StructureShape.new(name: 'GetSecurityGroupsForVpcResult')
1451
1454
  GetSerialConsoleAccessStatusRequest = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusRequest')
1452
1455
  GetSerialConsoleAccessStatusResult = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusResult')
1453
1456
  GetSpotPlacementScoresRequest = Shapes::StructureShape.new(name: 'GetSpotPlacementScoresRequest')
@@ -2554,6 +2557,8 @@ module Aws::EC2
2554
2557
  SearchTransitGatewayRoutesRequest = Shapes::StructureShape.new(name: 'SearchTransitGatewayRoutesRequest')
2555
2558
  SearchTransitGatewayRoutesResult = Shapes::StructureShape.new(name: 'SearchTransitGatewayRoutesResult')
2556
2559
  SecurityGroup = Shapes::StructureShape.new(name: 'SecurityGroup')
2560
+ SecurityGroupForVpc = Shapes::StructureShape.new(name: 'SecurityGroupForVpc')
2561
+ SecurityGroupForVpcList = Shapes::ListShape.new(name: 'SecurityGroupForVpcList')
2557
2562
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
2558
2563
  SecurityGroupIdList = Shapes::ListShape.new(name: 'SecurityGroupIdList')
2559
2564
  SecurityGroupIdSet = Shapes::ListShape.new(name: 'SecurityGroupIdSet')
@@ -8927,6 +8932,17 @@ module Aws::EC2
8927
8932
  GetReservedInstancesExchangeQuoteResult.add_member(:validation_failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "validationFailureReason"))
8928
8933
  GetReservedInstancesExchangeQuoteResult.struct_class = Types::GetReservedInstancesExchangeQuoteResult
8929
8934
 
8935
+ GetSecurityGroupsForVpcRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
8936
+ GetSecurityGroupsForVpcRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
8937
+ GetSecurityGroupsForVpcRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcRequestMaxResults, location_name: "MaxResults"))
8938
+ GetSecurityGroupsForVpcRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
8939
+ GetSecurityGroupsForVpcRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
8940
+ GetSecurityGroupsForVpcRequest.struct_class = Types::GetSecurityGroupsForVpcRequest
8941
+
8942
+ GetSecurityGroupsForVpcResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
8943
+ GetSecurityGroupsForVpcResult.add_member(:security_group_for_vpcs, Shapes::ShapeRef.new(shape: SecurityGroupForVpcList, location_name: "securityGroupForVpcSet"))
8944
+ GetSecurityGroupsForVpcResult.struct_class = Types::GetSecurityGroupsForVpcResult
8945
+
8930
8946
  GetSerialConsoleAccessStatusRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
8931
8947
  GetSerialConsoleAccessStatusRequest.struct_class = Types::GetSerialConsoleAccessStatusRequest
8932
8948
 
@@ -13292,6 +13308,16 @@ module Aws::EC2
13292
13308
  SecurityGroup.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
13293
13309
  SecurityGroup.struct_class = Types::SecurityGroup
13294
13310
 
13311
+ SecurityGroupForVpc.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
13312
+ SecurityGroupForVpc.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
13313
+ SecurityGroupForVpc.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
13314
+ SecurityGroupForVpc.add_member(:group_id, Shapes::ShapeRef.new(shape: String, location_name: "groupId"))
13315
+ SecurityGroupForVpc.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
13316
+ SecurityGroupForVpc.add_member(:primary_vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "primaryVpcId"))
13317
+ SecurityGroupForVpc.struct_class = Types::SecurityGroupForVpc
13318
+
13319
+ SecurityGroupForVpcList.member = Shapes::ShapeRef.new(shape: SecurityGroupForVpc, location_name: "item")
13320
+
13295
13321
  SecurityGroupIdList.member = Shapes::ShapeRef.new(shape: SecurityGroupId, location_name: "item")
13296
13322
 
13297
13323
  SecurityGroupIdSet.member = Shapes::ShapeRef.new(shape: SecurityGroupId, location_name: "item")
@@ -19400,6 +19426,20 @@ module Aws::EC2
19400
19426
  o.output = Shapes::ShapeRef.new(shape: GetReservedInstancesExchangeQuoteResult)
19401
19427
  end)
19402
19428
 
19429
+ api.add_operation(:get_security_groups_for_vpc, Seahorse::Model::Operation.new.tap do |o|
19430
+ o.name = "GetSecurityGroupsForVpc"
19431
+ o.http_method = "POST"
19432
+ o.http_request_uri = "/"
19433
+ o.input = Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcRequest)
19434
+ o.output = Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcResult)
19435
+ o[:pager] = Aws::Pager.new(
19436
+ limit_key: "max_results",
19437
+ tokens: {
19438
+ "next_token" => "next_token"
19439
+ }
19440
+ )
19441
+ end)
19442
+
19403
19443
  api.add_operation(:get_serial_console_access_status, Seahorse::Model::Operation.new.tap do |o|
19404
19444
  o.name = "GetSerialConsoleAccessStatus"
19405
19445
  o.http_method = "POST"
@@ -6242,6 +6242,20 @@ module Aws::EC2
6242
6242
  end
6243
6243
  end
6244
6244
 
6245
+ class GetSecurityGroupsForVpc
6246
+ def self.build(context)
6247
+ unless context.config.regional_endpoint
6248
+ endpoint = context.config.endpoint.to_s
6249
+ end
6250
+ Aws::EC2::EndpointParameters.new(
6251
+ region: context.config.region,
6252
+ use_dual_stack: context.config.use_dualstack_endpoint,
6253
+ use_fips: context.config.use_fips_endpoint,
6254
+ endpoint: endpoint,
6255
+ )
6256
+ end
6257
+ end
6258
+
6245
6259
  class GetSerialConsoleAccessStatus
6246
6260
  def self.build(context)
6247
6261
  unless context.config.regional_endpoint
@@ -946,6 +946,8 @@ module Aws::EC2
946
946
  Aws::EC2::Endpoints::GetPasswordData.build(context)
947
947
  when :get_reserved_instances_exchange_quote
948
948
  Aws::EC2::Endpoints::GetReservedInstancesExchangeQuote.build(context)
949
+ when :get_security_groups_for_vpc
950
+ Aws::EC2::Endpoints::GetSecurityGroupsForVpc.build(context)
949
951
  when :get_serial_console_access_status
950
952
  Aws::EC2::Endpoints::GetSerialConsoleAccessStatus.build(context)
951
953
  when :get_spot_placement_scores
@@ -34153,6 +34153,79 @@ module Aws::EC2
34153
34153
  include Aws::Structure
34154
34154
  end
34155
34155
 
34156
+ # @!attribute [rw] vpc_id
34157
+ # The VPC ID where the security group can be used.
34158
+ # @return [String]
34159
+ #
34160
+ # @!attribute [rw] next_token
34161
+ # The token returned from a previous paginated request. Pagination
34162
+ # continues from the end of the items returned by the previous
34163
+ # request.
34164
+ # @return [String]
34165
+ #
34166
+ # @!attribute [rw] max_results
34167
+ # The maximum number of items to return for this request. To get the
34168
+ # next page of items, make another request with the token returned in
34169
+ # the output. For more information, see [Pagination][1].
34170
+ #
34171
+ #
34172
+ #
34173
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
34174
+ # @return [Integer]
34175
+ #
34176
+ # @!attribute [rw] filters
34177
+ # The filters. If using multiple filters, the results include security
34178
+ # groups which match all filters.
34179
+ #
34180
+ # * `group-id`: The security group ID.
34181
+ #
34182
+ # * `description`: The security group's description.
34183
+ #
34184
+ # * `group-name`: The security group name.
34185
+ #
34186
+ # * `owner-id`: The security group owner ID.
34187
+ #
34188
+ # * `primary-vpc-id`: The VPC ID in which the security group was
34189
+ # created.
34190
+ # @return [Array<Types::Filter>]
34191
+ #
34192
+ # @!attribute [rw] dry_run
34193
+ # Checks whether you have the required permissions for the action,
34194
+ # without actually making the request, and provides an error response.
34195
+ # If you have the required permissions, the error response is
34196
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
34197
+ # @return [Boolean]
34198
+ #
34199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpcRequest AWS API Documentation
34200
+ #
34201
+ class GetSecurityGroupsForVpcRequest < Struct.new(
34202
+ :vpc_id,
34203
+ :next_token,
34204
+ :max_results,
34205
+ :filters,
34206
+ :dry_run)
34207
+ SENSITIVE = []
34208
+ include Aws::Structure
34209
+ end
34210
+
34211
+ # @!attribute [rw] next_token
34212
+ # The token to include in another request to get the next page of
34213
+ # items. This value is `null` when there are no more items to return.
34214
+ # @return [String]
34215
+ #
34216
+ # @!attribute [rw] security_group_for_vpcs
34217
+ # The security group that can be used by interfaces in the VPC.
34218
+ # @return [Array<Types::SecurityGroupForVpc>]
34219
+ #
34220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpcResult AWS API Documentation
34221
+ #
34222
+ class GetSecurityGroupsForVpcResult < Struct.new(
34223
+ :next_token,
34224
+ :security_group_for_vpcs)
34225
+ SENSITIVE = []
34226
+ include Aws::Structure
34227
+ end
34228
+
34156
34229
  # @!attribute [rw] dry_run
34157
34230
  # Checks whether you have the required permissions for the action,
34158
34231
  # without actually making the request, and provides an error response.
@@ -57440,6 +57513,45 @@ module Aws::EC2
57440
57513
  include Aws::Structure
57441
57514
  end
57442
57515
 
57516
+ # A security group that can be used by interfaces in the VPC.
57517
+ #
57518
+ # @!attribute [rw] description
57519
+ # The security group's description.
57520
+ # @return [String]
57521
+ #
57522
+ # @!attribute [rw] group_name
57523
+ # The security group name.
57524
+ # @return [String]
57525
+ #
57526
+ # @!attribute [rw] owner_id
57527
+ # The security group owner ID.
57528
+ # @return [String]
57529
+ #
57530
+ # @!attribute [rw] group_id
57531
+ # The security group ID.
57532
+ # @return [String]
57533
+ #
57534
+ # @!attribute [rw] tags
57535
+ # The security group tags.
57536
+ # @return [Array<Types::Tag>]
57537
+ #
57538
+ # @!attribute [rw] primary_vpc_id
57539
+ # The VPC ID in which the security group was created.
57540
+ # @return [String]
57541
+ #
57542
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupForVpc AWS API Documentation
57543
+ #
57544
+ class SecurityGroupForVpc < Struct.new(
57545
+ :description,
57546
+ :group_name,
57547
+ :owner_id,
57548
+ :group_id,
57549
+ :tags,
57550
+ :primary_vpc_id)
57551
+ SENSITIVE = []
57552
+ include Aws::Structure
57553
+ end
57554
+
57443
57555
  # Describes a security group.
57444
57556
  #
57445
57557
  # @!attribute [rw] group_id
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.415.0'
79
+ GEM_VERSION = '1.416.0'
80
80
 
81
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.415.0
4
+ version: 1.416.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-24 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4