aws-sdk-ec2 1.231.0 → 1.232.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 634b0eb7092e5c8ef3df3598e91f315f72175db5e96fa5a20b8feb5e94347bc1
4
- data.tar.gz: 256bace9cbf72c7492b3b771de0a2796ca2a5f6bf31201189326badd5372f87a
3
+ metadata.gz: a7a13230b8cf8f435b939934156d642062e16b24508436a09b0404d131ef4f6b
4
+ data.tar.gz: 869509762a55a5f38f3303d43c19f1d9fdcad1450b2a8c3a66ebe5bbc55b8b8b
5
5
  SHA512:
6
- metadata.gz: 473c91ee60600258448be2d617a53a76a92d405fee35348e2254486289ca85ad6365012b9dfccc5b980aaa9c6658f73cd20295254ade219835c0966dc586c0fb
7
- data.tar.gz: 54ac4a0ab91886ce284050ea8ac6d4b8419fbad007b8b9b8ea56e4e40b97f4baed68461ae370bd20786353bec36b13dc0edc9fa2a04b1cbd537fe4f10f8edd25
6
+ metadata.gz: a8b22854ddff5bb007df9f7d3f5fba7be71ce5a4a7c53e6032ef8194b1cf3c46d9e4666c34841aa775bd0b1501d84a3dc23cfcce939e3795c56c49d34a11e240
7
+ data.tar.gz: 9062295bfc6e517990410b21acf22e8b80d50c9412e72cc47d4edb642b90442fa1a349eb3decf4c6c326210dd880854b09492790f0776a2ac6877398c416adb2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.232.0 (2021-04-01)
5
+ ------------------
6
+
7
+ * Feature - VPC Flow Logs Service adds a new API, GetFlowLogsIntegrationTemplate, which generates CloudFormation templates for Athena. For more info, see https://docs.aws.amazon.com/console/vpc/flow-logs/athena
8
+
4
9
  1.231.0 (2021-03-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.231.0
1
+ 1.232.0
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.231.0'
75
+ GEM_VERSION = '1.232.0'
76
76
 
77
77
  end
@@ -1682,13 +1682,13 @@ module Aws::EC2
1682
1682
  # single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have
1683
1683
  # a prefix length of /64.
1684
1684
  #
1685
- # @option params [required, String] :subnet_id
1686
- # The ID of your subnet.
1687
- #
1688
1685
  # @option params [required, String] :ipv_6_cidr_block
1689
1686
  # The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix
1690
1687
  # length.
1691
1688
  #
1689
+ # @option params [required, String] :subnet_id
1690
+ # The ID of your subnet.
1691
+ #
1692
1692
  # @return [Types::AssociateSubnetCidrBlockResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1693
1693
  #
1694
1694
  # * {Types::AssociateSubnetCidrBlockResult#ipv_6_cidr_block_association #ipv_6_cidr_block_association} => Types::SubnetIpv6CidrBlockAssociation
@@ -1697,8 +1697,8 @@ module Aws::EC2
1697
1697
  # @example Request syntax with placeholder values
1698
1698
  #
1699
1699
  # resp = client.associate_subnet_cidr_block({
1700
- # subnet_id: "SubnetId", # required
1701
1700
  # ipv_6_cidr_block: "String", # required
1701
+ # subnet_id: "SubnetId", # required
1702
1702
  # })
1703
1703
  #
1704
1704
  # @example Response structure
@@ -8339,6 +8339,12 @@ module Aws::EC2
8339
8339
  # @option params [String] :availability_zone_id
8340
8340
  # The AZ ID or the Local Zone ID of the subnet.
8341
8341
  #
8342
+ # @option params [required, String] :cidr_block
8343
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
8344
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
8345
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
8346
+ # `100.68.0.0/18`.
8347
+ #
8342
8348
  # @option params [String] :ipv_6_cidr_block
8343
8349
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
8344
8350
  # size must use a /64 prefix length.
@@ -8357,12 +8363,6 @@ module Aws::EC2
8357
8363
  # If you have the required permissions, the error response is
8358
8364
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
8359
8365
  #
8360
- # @option params [required, String] :cidr_block
8361
- # The IPv4 network range for the subnet, in CIDR notation. For example,
8362
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
8363
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
8364
- # `100.68.0.0/18`.
8365
- #
8366
8366
  # @return [Types::CreateSubnetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8367
8367
  #
8368
8368
  # * {Types::CreateSubnetResult#subnet #subnet} => Types::Subnet
@@ -8406,11 +8406,11 @@ module Aws::EC2
8406
8406
  # ],
8407
8407
  # availability_zone: "String",
8408
8408
  # availability_zone_id: "String",
8409
+ # cidr_block: "String", # required
8409
8410
  # ipv_6_cidr_block: "String",
8410
8411
  # outpost_arn: "String",
8411
8412
  # vpc_id: "VpcId", # required
8412
8413
  # dry_run: false,
8413
- # cidr_block: "String", # required
8414
8414
  # })
8415
8415
  #
8416
8416
  # @example Response structure
@@ -24765,6 +24765,8 @@ module Aws::EC2
24765
24765
  # * `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR
24766
24766
  # block associated with the subnet.
24767
24767
  #
24768
+ # * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost.
24769
+ #
24768
24770
  # * `owner-id` - The ID of the AWS account that owns the subnet.
24769
24771
  #
24770
24772
  # * `state` - The state of the subnet (`pending` \| `available`).
@@ -30152,6 +30154,73 @@ module Aws::EC2
30152
30154
  req.send_request(options)
30153
30155
  end
30154
30156
 
30157
+ # Generates a CloudFormation template that streamlines and automates the
30158
+ # integration of VPC flow logs with Amazon Athena. This make it easier
30159
+ # for you to query and gain insights from VPC flow logs data. Based on
30160
+ # the information that you provide, we configure resources in the
30161
+ # template to do the following:
30162
+ #
30163
+ # * Create a table in Athena that maps fields to a custom log format
30164
+ #
30165
+ # * Create a Lambda function that updates the table with new partitions
30166
+ # on a daily, weekly, or monthly basis
30167
+ #
30168
+ # * Create a table partitioned between two timestamps in the past
30169
+ #
30170
+ # * Create a set of named queries in Athena that you can use to get
30171
+ # started quickly
30172
+ #
30173
+ # @option params [Boolean] :dry_run
30174
+ # Checks whether you have the required permissions for the action,
30175
+ # without actually making the request, and provides an error response.
30176
+ # If you have the required permissions, the error response is
30177
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
30178
+ #
30179
+ # @option params [required, String] :flow_log_id
30180
+ # The ID of the flow log.
30181
+ #
30182
+ # @option params [required, String] :config_delivery_s3_destination_arn
30183
+ # To store the CloudFormation template in Amazon S3, specify the
30184
+ # location in Amazon S3.
30185
+ #
30186
+ # @option params [required, Types::IntegrateServices] :integrate_services
30187
+ # Information about the service integration.
30188
+ #
30189
+ # @return [Types::GetFlowLogsIntegrationTemplateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
30190
+ #
30191
+ # * {Types::GetFlowLogsIntegrationTemplateResult#result #result} => String
30192
+ #
30193
+ # @example Request syntax with placeholder values
30194
+ #
30195
+ # resp = client.get_flow_logs_integration_template({
30196
+ # dry_run: false,
30197
+ # flow_log_id: "VpcFlowLogId", # required
30198
+ # config_delivery_s3_destination_arn: "String", # required
30199
+ # integrate_services: { # required
30200
+ # athena_integrations: [
30201
+ # {
30202
+ # integration_result_s3_destination_arn: "String", # required
30203
+ # partition_load_frequency: "none", # required, accepts none, daily, weekly, monthly
30204
+ # partition_start_date: Time.now,
30205
+ # partition_end_date: Time.now,
30206
+ # },
30207
+ # ],
30208
+ # },
30209
+ # })
30210
+ #
30211
+ # @example Response structure
30212
+ #
30213
+ # resp.result #=> String
30214
+ #
30215
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetFlowLogsIntegrationTemplate AWS API Documentation
30216
+ #
30217
+ # @overload get_flow_logs_integration_template(params = {})
30218
+ # @param [Hash] params ({})
30219
+ def get_flow_logs_integration_template(params = {}, options = {})
30220
+ req = build_request(:get_flow_logs_integration_template, params)
30221
+ req.send_request(options)
30222
+ end
30223
+
30155
30224
  # Lists the resource groups to which a Capacity Reservation has been
30156
30225
  # added.
30157
30226
  #
@@ -41540,7 +41609,7 @@ module Aws::EC2
41540
41609
  params: params,
41541
41610
  config: config)
41542
41611
  context[:gem_name] = 'aws-sdk-ec2'
41543
- context[:gem_version] = '1.231.0'
41612
+ context[:gem_version] = '1.232.0'
41544
41613
  Seahorse::Client::Request.new(handlers, context)
41545
41614
  end
41546
41615
 
@@ -108,6 +108,8 @@ module Aws::EC2
108
108
  AssociationIdList = Shapes::ListShape.new(name: 'AssociationIdList')
109
109
  AssociationStatus = Shapes::StructureShape.new(name: 'AssociationStatus')
110
110
  AssociationStatusCode = Shapes::StringShape.new(name: 'AssociationStatusCode')
111
+ AthenaIntegration = Shapes::StructureShape.new(name: 'AthenaIntegration')
112
+ AthenaIntegrationsSet = Shapes::ListShape.new(name: 'AthenaIntegrationsSet')
111
113
  AttachClassicLinkVpcRequest = Shapes::StructureShape.new(name: 'AttachClassicLinkVpcRequest')
112
114
  AttachClassicLinkVpcResult = Shapes::StructureShape.new(name: 'AttachClassicLinkVpcResult')
113
115
  AttachInternetGatewayRequest = Shapes::StructureShape.new(name: 'AttachInternetGatewayRequest')
@@ -1063,6 +1065,8 @@ module Aws::EC2
1063
1065
  GetEbsDefaultKmsKeyIdResult = Shapes::StructureShape.new(name: 'GetEbsDefaultKmsKeyIdResult')
1064
1066
  GetEbsEncryptionByDefaultRequest = Shapes::StructureShape.new(name: 'GetEbsEncryptionByDefaultRequest')
1065
1067
  GetEbsEncryptionByDefaultResult = Shapes::StructureShape.new(name: 'GetEbsEncryptionByDefaultResult')
1068
+ GetFlowLogsIntegrationTemplateRequest = Shapes::StructureShape.new(name: 'GetFlowLogsIntegrationTemplateRequest')
1069
+ GetFlowLogsIntegrationTemplateResult = Shapes::StructureShape.new(name: 'GetFlowLogsIntegrationTemplateResult')
1066
1070
  GetGroupsForCapacityReservationRequest = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationRequest')
1067
1071
  GetGroupsForCapacityReservationRequestMaxResults = Shapes::IntegerShape.new(name: 'GetGroupsForCapacityReservationRequestMaxResults')
1068
1072
  GetGroupsForCapacityReservationResult = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationResult')
@@ -1260,6 +1264,7 @@ module Aws::EC2
1260
1264
  InstanceUsage = Shapes::StructureShape.new(name: 'InstanceUsage')
1261
1265
  InstanceUsageSet = Shapes::ListShape.new(name: 'InstanceUsageSet')
1262
1266
  Integer = Shapes::IntegerShape.new(name: 'Integer')
1267
+ IntegrateServices = Shapes::StructureShape.new(name: 'IntegrateServices')
1263
1268
  InterfacePermissionType = Shapes::StringShape.new(name: 'InterfacePermissionType')
1264
1269
  InternetGateway = Shapes::StructureShape.new(name: 'InternetGateway')
1265
1270
  InternetGatewayAttachment = Shapes::StructureShape.new(name: 'InternetGatewayAttachment')
@@ -1585,6 +1590,7 @@ module Aws::EC2
1585
1590
  OnDemandOptionsRequest = Shapes::StructureShape.new(name: 'OnDemandOptionsRequest')
1586
1591
  OperationType = Shapes::StringShape.new(name: 'OperationType')
1587
1592
  OwnerStringList = Shapes::ListShape.new(name: 'OwnerStringList')
1593
+ PartitionLoadFrequency = Shapes::StringShape.new(name: 'PartitionLoadFrequency')
1588
1594
  PathComponent = Shapes::StructureShape.new(name: 'PathComponent')
1589
1595
  PathComponentList = Shapes::ListShape.new(name: 'PathComponentList')
1590
1596
  PaymentOption = Shapes::StringShape.new(name: 'PaymentOption')
@@ -2542,8 +2548,8 @@ module Aws::EC2
2542
2548
  AssociateRouteTableResult.add_member(:association_state, Shapes::ShapeRef.new(shape: RouteTableAssociationState, location_name: "associationState"))
2543
2549
  AssociateRouteTableResult.struct_class = Types::AssociateRouteTableResult
2544
2550
 
2545
- AssociateSubnetCidrBlockRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
2546
2551
  AssociateSubnetCidrBlockRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ipv6CidrBlock"))
2552
+ AssociateSubnetCidrBlockRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
2547
2553
  AssociateSubnetCidrBlockRequest.struct_class = Types::AssociateSubnetCidrBlockRequest
2548
2554
 
2549
2555
  AssociateSubnetCidrBlockResult.add_member(:ipv_6_cidr_block_association, Shapes::ShapeRef.new(shape: SubnetIpv6CidrBlockAssociation, location_name: "ipv6CidrBlockAssociation"))
@@ -2600,6 +2606,14 @@ module Aws::EC2
2600
2606
  AssociationStatus.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
2601
2607
  AssociationStatus.struct_class = Types::AssociationStatus
2602
2608
 
2609
+ AthenaIntegration.add_member(:integration_result_s3_destination_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "IntegrationResultS3DestinationArn"))
2610
+ AthenaIntegration.add_member(:partition_load_frequency, Shapes::ShapeRef.new(shape: PartitionLoadFrequency, required: true, location_name: "PartitionLoadFrequency"))
2611
+ AthenaIntegration.add_member(:partition_start_date, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "PartitionStartDate"))
2612
+ AthenaIntegration.add_member(:partition_end_date, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "PartitionEndDate"))
2613
+ AthenaIntegration.struct_class = Types::AthenaIntegration
2614
+
2615
+ AthenaIntegrationsSet.member = Shapes::ShapeRef.new(shape: AthenaIntegration, location_name: "item")
2616
+
2603
2617
  AttachClassicLinkVpcRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
2604
2618
  AttachClassicLinkVpcRequest.add_member(:groups, Shapes::ShapeRef.new(shape: GroupIdStringList, required: true, location_name: "SecurityGroupId"))
2605
2619
  AttachClassicLinkVpcRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "instanceId"))
@@ -3602,11 +3616,11 @@ module Aws::EC2
3602
3616
  CreateSubnetRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3603
3617
  CreateSubnetRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
3604
3618
  CreateSubnetRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZoneId"))
3619
+ CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
3605
3620
  CreateSubnetRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, location_name: "Ipv6CidrBlock"))
3606
3621
  CreateSubnetRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "OutpostArn"))
3607
3622
  CreateSubnetRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
3608
3623
  CreateSubnetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3609
- CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
3610
3624
  CreateSubnetRequest.struct_class = Types::CreateSubnetRequest
3611
3625
 
3612
3626
  CreateSubnetResult.add_member(:subnet, Shapes::ShapeRef.new(shape: Subnet, location_name: "subnet"))
@@ -6460,6 +6474,15 @@ module Aws::EC2
6460
6474
  GetEbsEncryptionByDefaultResult.add_member(:ebs_encryption_by_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "ebsEncryptionByDefault"))
6461
6475
  GetEbsEncryptionByDefaultResult.struct_class = Types::GetEbsEncryptionByDefaultResult
6462
6476
 
6477
+ GetFlowLogsIntegrationTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
6478
+ GetFlowLogsIntegrationTemplateRequest.add_member(:flow_log_id, Shapes::ShapeRef.new(shape: VpcFlowLogId, required: true, location_name: "FlowLogId"))
6479
+ GetFlowLogsIntegrationTemplateRequest.add_member(:config_delivery_s3_destination_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ConfigDeliveryS3DestinationArn"))
6480
+ GetFlowLogsIntegrationTemplateRequest.add_member(:integrate_services, Shapes::ShapeRef.new(shape: IntegrateServices, required: true, location_name: "IntegrateService"))
6481
+ GetFlowLogsIntegrationTemplateRequest.struct_class = Types::GetFlowLogsIntegrationTemplateRequest
6482
+
6483
+ GetFlowLogsIntegrationTemplateResult.add_member(:result, Shapes::ShapeRef.new(shape: String, location_name: "result"))
6484
+ GetFlowLogsIntegrationTemplateResult.struct_class = Types::GetFlowLogsIntegrationTemplateResult
6485
+
6463
6486
  GetGroupsForCapacityReservationRequest.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "CapacityReservationId"))
6464
6487
  GetGroupsForCapacityReservationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
6465
6488
  GetGroupsForCapacityReservationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetGroupsForCapacityReservationRequestMaxResults, location_name: "MaxResults"))
@@ -7296,6 +7319,9 @@ module Aws::EC2
7296
7319
 
7297
7320
  InstanceUsageSet.member = Shapes::ShapeRef.new(shape: InstanceUsage, location_name: "item")
7298
7321
 
7322
+ IntegrateServices.add_member(:athena_integrations, Shapes::ShapeRef.new(shape: AthenaIntegrationsSet, location_name: "AthenaIntegration"))
7323
+ IntegrateServices.struct_class = Types::IntegrateServices
7324
+
7299
7325
  InternetGateway.add_member(:attachments, Shapes::ShapeRef.new(shape: InternetGatewayAttachmentList, location_name: "attachmentSet"))
7300
7326
  InternetGateway.add_member(:internet_gateway_id, Shapes::ShapeRef.new(shape: String, location_name: "internetGatewayId"))
7301
7327
  InternetGateway.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
@@ -14144,6 +14170,14 @@ module Aws::EC2
14144
14170
  o.output = Shapes::ShapeRef.new(shape: GetEbsEncryptionByDefaultResult)
14145
14171
  end)
14146
14172
 
14173
+ api.add_operation(:get_flow_logs_integration_template, Seahorse::Model::Operation.new.tap do |o|
14174
+ o.name = "GetFlowLogsIntegrationTemplate"
14175
+ o.http_method = "POST"
14176
+ o.http_request_uri = "/"
14177
+ o.input = Shapes::ShapeRef.new(shape: GetFlowLogsIntegrationTemplateRequest)
14178
+ o.output = Shapes::ShapeRef.new(shape: GetFlowLogsIntegrationTemplateResult)
14179
+ end)
14180
+
14147
14181
  api.add_operation(:get_groups_for_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
14148
14182
  o.name = "GetGroupsForCapacityReservation"
14149
14183
  o.http_method = "POST"
@@ -1023,11 +1023,11 @@ module Aws::EC2
1023
1023
  # ],
1024
1024
  # availability_zone: "String",
1025
1025
  # availability_zone_id: "String",
1026
+ # cidr_block: "String", # required
1026
1027
  # ipv_6_cidr_block: "String",
1027
1028
  # outpost_arn: "String",
1028
1029
  # vpc_id: "VpcId", # required
1029
1030
  # dry_run: false,
1030
- # cidr_block: "String", # required
1031
1031
  # })
1032
1032
  # @param [Hash] options ({})
1033
1033
  # @option options [Array<Types::TagSpecification>] :tag_specifications
@@ -1052,6 +1052,11 @@ module Aws::EC2
1052
1052
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
1053
1053
  # @option options [String] :availability_zone_id
1054
1054
  # The AZ ID or the Local Zone ID of the subnet.
1055
+ # @option options [required, String] :cidr_block
1056
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
1057
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
1058
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
1059
+ # `100.68.0.0/18`.
1055
1060
  # @option options [String] :ipv_6_cidr_block
1056
1061
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
1057
1062
  # size must use a /64 prefix length.
@@ -1066,11 +1071,6 @@ module Aws::EC2
1066
1071
  # without actually making the request, and provides an error response.
1067
1072
  # If you have the required permissions, the error response is
1068
1073
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1069
- # @option options [required, String] :cidr_block
1070
- # The IPv4 network range for the subnet, in CIDR notation. For example,
1071
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
1072
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
1073
- # `100.68.0.0/18`.
1074
1074
  # @return [Subnet]
1075
1075
  def create_subnet(options = {})
1076
1076
  resp = @client.create_subnet(options)
@@ -3229,6 +3229,8 @@ module Aws::EC2
3229
3229
  # * `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR
3230
3230
  # block associated with the subnet.
3231
3231
  #
3232
+ # * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost.
3233
+ #
3232
3234
  # * `owner-id` - The ID of the AWS account that owns the subnet.
3233
3235
  #
3234
3236
  # * `state` - The state of the subnet (`pending` \| `available`).
@@ -1647,24 +1647,24 @@ module Aws::EC2
1647
1647
  # data as a hash:
1648
1648
  #
1649
1649
  # {
1650
- # subnet_id: "SubnetId", # required
1651
1650
  # ipv_6_cidr_block: "String", # required
1651
+ # subnet_id: "SubnetId", # required
1652
1652
  # }
1653
1653
  #
1654
- # @!attribute [rw] subnet_id
1655
- # The ID of your subnet.
1656
- # @return [String]
1657
- #
1658
1654
  # @!attribute [rw] ipv_6_cidr_block
1659
1655
  # The IPv6 CIDR block for your subnet. The subnet must have a /64
1660
1656
  # prefix length.
1661
1657
  # @return [String]
1662
1658
  #
1659
+ # @!attribute [rw] subnet_id
1660
+ # The ID of your subnet.
1661
+ # @return [String]
1662
+ #
1663
1663
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest AWS API Documentation
1664
1664
  #
1665
1665
  class AssociateSubnetCidrBlockRequest < Struct.new(
1666
- :subnet_id,
1667
- :ipv_6_cidr_block)
1666
+ :ipv_6_cidr_block,
1667
+ :subnet_id)
1668
1668
  SENSITIVE = []
1669
1669
  include Aws::Structure
1670
1670
  end
@@ -1944,6 +1944,46 @@ module Aws::EC2
1944
1944
  include Aws::Structure
1945
1945
  end
1946
1946
 
1947
+ # Describes integration options for Amazon Athena.
1948
+ #
1949
+ # @note When making an API call, you may pass AthenaIntegration
1950
+ # data as a hash:
1951
+ #
1952
+ # {
1953
+ # integration_result_s3_destination_arn: "String", # required
1954
+ # partition_load_frequency: "none", # required, accepts none, daily, weekly, monthly
1955
+ # partition_start_date: Time.now,
1956
+ # partition_end_date: Time.now,
1957
+ # }
1958
+ #
1959
+ # @!attribute [rw] integration_result_s3_destination_arn
1960
+ # The location in Amazon S3 to store the generated CloudFormation
1961
+ # template.
1962
+ # @return [String]
1963
+ #
1964
+ # @!attribute [rw] partition_load_frequency
1965
+ # The schedule for adding new partitions to the table.
1966
+ # @return [String]
1967
+ #
1968
+ # @!attribute [rw] partition_start_date
1969
+ # The start date for the partition.
1970
+ # @return [Time]
1971
+ #
1972
+ # @!attribute [rw] partition_end_date
1973
+ # The end date for the partition.
1974
+ # @return [Time]
1975
+ #
1976
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AthenaIntegration AWS API Documentation
1977
+ #
1978
+ class AthenaIntegration < Struct.new(
1979
+ :integration_result_s3_destination_arn,
1980
+ :partition_load_frequency,
1981
+ :partition_start_date,
1982
+ :partition_end_date)
1983
+ SENSITIVE = []
1984
+ include Aws::Structure
1985
+ end
1986
+
1947
1987
  # @note When making an API call, you may pass AttachClassicLinkVpcRequest
1948
1988
  # data as a hash:
1949
1989
  #
@@ -9053,11 +9093,11 @@ module Aws::EC2
9053
9093
  # ],
9054
9094
  # availability_zone: "String",
9055
9095
  # availability_zone_id: "String",
9096
+ # cidr_block: "String", # required
9056
9097
  # ipv_6_cidr_block: "String",
9057
9098
  # outpost_arn: "String",
9058
9099
  # vpc_id: "VpcId", # required
9059
9100
  # dry_run: false,
9060
- # cidr_block: "String", # required
9061
9101
  # }
9062
9102
  #
9063
9103
  # @!attribute [rw] tag_specifications
@@ -9088,6 +9128,13 @@ module Aws::EC2
9088
9128
  # The AZ ID or the Local Zone ID of the subnet.
9089
9129
  # @return [String]
9090
9130
  #
9131
+ # @!attribute [rw] cidr_block
9132
+ # The IPv4 network range for the subnet, in CIDR notation. For
9133
+ # example, `10.0.0.0/24`. We modify the specified CIDR block to its
9134
+ # canonical form; for example, if you specify `100.68.0.18/18`, we
9135
+ # modify it to `100.68.0.0/18`.
9136
+ # @return [String]
9137
+ #
9091
9138
  # @!attribute [rw] ipv_6_cidr_block
9092
9139
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
9093
9140
  # size must use a /64 prefix length.
@@ -9110,24 +9157,17 @@ module Aws::EC2
9110
9157
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
9111
9158
  # @return [Boolean]
9112
9159
  #
9113
- # @!attribute [rw] cidr_block
9114
- # The IPv4 network range for the subnet, in CIDR notation. For
9115
- # example, `10.0.0.0/24`. We modify the specified CIDR block to its
9116
- # canonical form; for example, if you specify `100.68.0.18/18`, we
9117
- # modify it to `100.68.0.0/18`.
9118
- # @return [String]
9119
- #
9120
9160
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest AWS API Documentation
9121
9161
  #
9122
9162
  class CreateSubnetRequest < Struct.new(
9123
9163
  :tag_specifications,
9124
9164
  :availability_zone,
9125
9165
  :availability_zone_id,
9166
+ :cidr_block,
9126
9167
  :ipv_6_cidr_block,
9127
9168
  :outpost_arn,
9128
9169
  :vpc_id,
9129
- :dry_run,
9130
- :cidr_block)
9170
+ :dry_run)
9131
9171
  SENSITIVE = []
9132
9172
  include Aws::Structure
9133
9173
  end
@@ -22423,6 +22463,8 @@ module Aws::EC2
22423
22463
  # * `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR
22424
22464
  # block associated with the subnet.
22425
22465
  #
22466
+ # * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost.
22467
+ #
22426
22468
  # * `owner-id` - The ID of the AWS account that owns the subnet.
22427
22469
  #
22428
22470
  # * `state` - The state of the subnet (`pending` \| `available`).
@@ -29792,6 +29834,68 @@ module Aws::EC2
29792
29834
  include Aws::Structure
29793
29835
  end
29794
29836
 
29837
+ # @note When making an API call, you may pass GetFlowLogsIntegrationTemplateRequest
29838
+ # data as a hash:
29839
+ #
29840
+ # {
29841
+ # dry_run: false,
29842
+ # flow_log_id: "VpcFlowLogId", # required
29843
+ # config_delivery_s3_destination_arn: "String", # required
29844
+ # integrate_services: { # required
29845
+ # athena_integrations: [
29846
+ # {
29847
+ # integration_result_s3_destination_arn: "String", # required
29848
+ # partition_load_frequency: "none", # required, accepts none, daily, weekly, monthly
29849
+ # partition_start_date: Time.now,
29850
+ # partition_end_date: Time.now,
29851
+ # },
29852
+ # ],
29853
+ # },
29854
+ # }
29855
+ #
29856
+ # @!attribute [rw] dry_run
29857
+ # Checks whether you have the required permissions for the action,
29858
+ # without actually making the request, and provides an error response.
29859
+ # If you have the required permissions, the error response is
29860
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
29861
+ # @return [Boolean]
29862
+ #
29863
+ # @!attribute [rw] flow_log_id
29864
+ # The ID of the flow log.
29865
+ # @return [String]
29866
+ #
29867
+ # @!attribute [rw] config_delivery_s3_destination_arn
29868
+ # To store the CloudFormation template in Amazon S3, specify the
29869
+ # location in Amazon S3.
29870
+ # @return [String]
29871
+ #
29872
+ # @!attribute [rw] integrate_services
29873
+ # Information about the service integration.
29874
+ # @return [Types::IntegrateServices]
29875
+ #
29876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetFlowLogsIntegrationTemplateRequest AWS API Documentation
29877
+ #
29878
+ class GetFlowLogsIntegrationTemplateRequest < Struct.new(
29879
+ :dry_run,
29880
+ :flow_log_id,
29881
+ :config_delivery_s3_destination_arn,
29882
+ :integrate_services)
29883
+ SENSITIVE = []
29884
+ include Aws::Structure
29885
+ end
29886
+
29887
+ # @!attribute [rw] result
29888
+ # The generated CloudFormation template.
29889
+ # @return [String]
29890
+ #
29891
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetFlowLogsIntegrationTemplateResult AWS API Documentation
29892
+ #
29893
+ class GetFlowLogsIntegrationTemplateResult < Struct.new(
29894
+ :result)
29895
+ SENSITIVE = []
29896
+ include Aws::Structure
29897
+ end
29898
+
29795
29899
  # @note When making an API call, you may pass GetGroupsForCapacityReservationRequest
29796
29900
  # data as a hash:
29797
29901
  #
@@ -34421,6 +34525,34 @@ module Aws::EC2
34421
34525
  include Aws::Structure
34422
34526
  end
34423
34527
 
34528
+ # Describes service integrations with VPC Flow logs.
34529
+ #
34530
+ # @note When making an API call, you may pass IntegrateServices
34531
+ # data as a hash:
34532
+ #
34533
+ # {
34534
+ # athena_integrations: [
34535
+ # {
34536
+ # integration_result_s3_destination_arn: "String", # required
34537
+ # partition_load_frequency: "none", # required, accepts none, daily, weekly, monthly
34538
+ # partition_start_date: Time.now,
34539
+ # partition_end_date: Time.now,
34540
+ # },
34541
+ # ],
34542
+ # }
34543
+ #
34544
+ # @!attribute [rw] athena_integrations
34545
+ # Information about the integration with Amazon Athena.
34546
+ # @return [Array<Types::AthenaIntegration>]
34547
+ #
34548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IntegrateServices AWS API Documentation
34549
+ #
34550
+ class IntegrateServices < Struct.new(
34551
+ :athena_integrations)
34552
+ SENSITIVE = []
34553
+ include Aws::Structure
34554
+ end
34555
+
34424
34556
  # Describes an internet gateway.
34425
34557
  #
34426
34558
  # @!attribute [rw] attachments
@@ -480,10 +480,10 @@ module Aws::EC2
480
480
  # ],
481
481
  # availability_zone: "String",
482
482
  # availability_zone_id: "String",
483
+ # cidr_block: "String", # required
483
484
  # ipv_6_cidr_block: "String",
484
485
  # outpost_arn: "String",
485
486
  # dry_run: false,
486
- # cidr_block: "String", # required
487
487
  # })
488
488
  # @param [Hash] options ({})
489
489
  # @option options [Array<Types::TagSpecification>] :tag_specifications
@@ -508,6 +508,11 @@ module Aws::EC2
508
508
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
509
509
  # @option options [String] :availability_zone_id
510
510
  # The AZ ID or the Local Zone ID of the subnet.
511
+ # @option options [required, String] :cidr_block
512
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
513
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
514
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
515
+ # `100.68.0.0/18`.
511
516
  # @option options [String] :ipv_6_cidr_block
512
517
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
513
518
  # size must use a /64 prefix length.
@@ -520,11 +525,6 @@ module Aws::EC2
520
525
  # without actually making the request, and provides an error response.
521
526
  # If you have the required permissions, the error response is
522
527
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
523
- # @option options [required, String] :cidr_block
524
- # The IPv4 network range for the subnet, in CIDR notation. For example,
525
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
526
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
527
- # `100.68.0.0/18`.
528
528
  # @return [Subnet]
529
529
  def create_subnet(options = {})
530
530
  options = options.merge(vpc_id: @id)
@@ -1937,6 +1937,8 @@ module Aws::EC2
1937
1937
  # * `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR
1938
1938
  # block associated with the subnet.
1939
1939
  #
1940
+ # * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost.
1941
+ #
1940
1942
  # * `owner-id` - The ID of the AWS account that owns the subnet.
1941
1943
  #
1942
1944
  # * `state` - The state of the subnet (`pending` \| `available`).
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.231.0
4
+ version: 1.232.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: 2021-03-30 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4