aws-sdk-ec2 1.95.0 → 1.96.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 +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +1350 -217
- data/lib/aws-sdk-ec2/client_api.rb +399 -0
- data/lib/aws-sdk-ec2/image.rb +1 -1
- data/lib/aws-sdk-ec2/resource.rb +7 -7
- data/lib/aws-sdk-ec2/subnet.rb +3 -3
- data/lib/aws-sdk-ec2/types.rb +1415 -109
- data/lib/aws-sdk-ec2/volume.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c206903e64660ba1f2e7377aaf155d15e729bacf
|
|
4
|
+
data.tar.gz: 82380efbe0f30c88654fbdba8422880382d1bcc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e57e5789a28046f7d5892bbcf6386de59b6833c6abd6fc0b431fc634877d07f032f273f137812e5dc1151888c3f13541a89b6db2b1f4b8c31264d4bf612fb504
|
|
7
|
+
data.tar.gz: 9b543f189f10c1c0e4f38ffb9508a4a6ea2b1d85868343661489c9888011ed079a21c378c8b9a194c2b0cc2696ab79d2c247cca1ef361ca50f0932b27b090795
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
|
@@ -705,7 +705,7 @@ module Aws::EC2
|
|
|
705
705
|
# quantity: 1, # required
|
|
706
706
|
# tag_specifications: [
|
|
707
707
|
# {
|
|
708
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
708
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
709
709
|
# tags: [
|
|
710
710
|
# {
|
|
711
711
|
# key: "String",
|
|
@@ -1141,7 +1141,7 @@ module Aws::EC2
|
|
|
1141
1141
|
#
|
|
1142
1142
|
#
|
|
1143
1143
|
#
|
|
1144
|
-
# [1]: https://docs.aws.amazon.com/
|
|
1144
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
|
|
1145
1145
|
#
|
|
1146
1146
|
# @option params [required, String] :dhcp_options_id
|
|
1147
1147
|
# The ID of the DHCP options set, or `default` to associate no DHCP
|
|
@@ -1273,7 +1273,7 @@ module Aws::EC2
|
|
|
1273
1273
|
#
|
|
1274
1274
|
#
|
|
1275
1275
|
#
|
|
1276
|
-
# [1]: https://docs.aws.amazon.com/
|
|
1276
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
1277
1277
|
#
|
|
1278
1278
|
# @option params [Boolean] :dry_run
|
|
1279
1279
|
# Checks whether you have the required permissions for the action,
|
|
@@ -1422,7 +1422,7 @@ module Aws::EC2
|
|
|
1422
1422
|
#
|
|
1423
1423
|
#
|
|
1424
1424
|
#
|
|
1425
|
-
# [1]: https://docs.aws.amazon.com/
|
|
1425
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing
|
|
1426
1426
|
#
|
|
1427
1427
|
# @option params [Boolean] :amazon_provided_ipv_6_cidr_block
|
|
1428
1428
|
# Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
|
|
@@ -1534,7 +1534,7 @@ module Aws::EC2
|
|
|
1534
1534
|
#
|
|
1535
1535
|
#
|
|
1536
1536
|
#
|
|
1537
|
-
# [1]: https://docs.aws.amazon.com/
|
|
1537
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/
|
|
1538
1538
|
#
|
|
1539
1539
|
# @option params [Boolean] :dry_run
|
|
1540
1540
|
# Checks whether you have the required permissions for the action,
|
|
@@ -3340,7 +3340,7 @@ module Aws::EC2
|
|
|
3340
3340
|
# instance_match_criteria: "open", # accepts open, targeted
|
|
3341
3341
|
# tag_specifications: [
|
|
3342
3342
|
# {
|
|
3343
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
3343
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
3344
3344
|
# tags: [
|
|
3345
3345
|
# {
|
|
3346
3346
|
# key: "String",
|
|
@@ -3490,7 +3490,7 @@ module Aws::EC2
|
|
|
3490
3490
|
# client_token: "String",
|
|
3491
3491
|
# tag_specifications: [
|
|
3492
3492
|
# {
|
|
3493
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
3493
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
3494
3494
|
# tags: [
|
|
3495
3495
|
# {
|
|
3496
3496
|
# key: "String",
|
|
@@ -3710,7 +3710,7 @@ module Aws::EC2
|
|
|
3710
3710
|
#
|
|
3711
3711
|
#
|
|
3712
3712
|
#
|
|
3713
|
-
# [1]: https://docs.aws.amazon.com/
|
|
3713
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-subnet
|
|
3714
3714
|
#
|
|
3715
3715
|
# @option params [required, String] :availability_zone
|
|
3716
3716
|
# The Availability Zone in which to create the default subnet.
|
|
@@ -3781,7 +3781,7 @@ module Aws::EC2
|
|
|
3781
3781
|
#
|
|
3782
3782
|
#
|
|
3783
3783
|
#
|
|
3784
|
-
# [1]: https://docs.aws.amazon.com/
|
|
3784
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html
|
|
3785
3785
|
# [2]: http://aws.amazon.com/vpc/faqs/#Default_VPCs
|
|
3786
3786
|
#
|
|
3787
3787
|
# @option params [Boolean] :dry_run
|
|
@@ -3880,7 +3880,7 @@ module Aws::EC2
|
|
|
3880
3880
|
#
|
|
3881
3881
|
#
|
|
3882
3882
|
# [1]: http://www.ietf.org/rfc/rfc2132.txt
|
|
3883
|
-
# [2]: https://docs.aws.amazon.com/
|
|
3883
|
+
# [2]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
|
|
3884
3884
|
#
|
|
3885
3885
|
# @option params [required, Array<Types::NewDhcpConfiguration>] :dhcp_configurations
|
|
3886
3886
|
# A DHCP configuration option.
|
|
@@ -4178,7 +4178,7 @@ module Aws::EC2
|
|
|
4178
4178
|
# replace_unhealthy_instances: false,
|
|
4179
4179
|
# tag_specifications: [
|
|
4180
4180
|
# {
|
|
4181
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
4181
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
4182
4182
|
# tags: [
|
|
4183
4183
|
# {
|
|
4184
4184
|
# key: "String",
|
|
@@ -4251,8 +4251,8 @@ module Aws::EC2
|
|
|
4251
4251
|
#
|
|
4252
4252
|
#
|
|
4253
4253
|
#
|
|
4254
|
-
# [1]: https://docs.aws.amazon.com/
|
|
4255
|
-
# [2]: https://docs.aws.amazon.com/
|
|
4254
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records
|
|
4255
|
+
# [2]: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html
|
|
4256
4256
|
#
|
|
4257
4257
|
# @option params [Boolean] :dry_run
|
|
4258
4258
|
# Checks whether you have the required permissions for the action,
|
|
@@ -4637,7 +4637,7 @@ module Aws::EC2
|
|
|
4637
4637
|
#
|
|
4638
4638
|
#
|
|
4639
4639
|
#
|
|
4640
|
-
# [1]: https://docs.aws.amazon.com/
|
|
4640
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/
|
|
4641
4641
|
#
|
|
4642
4642
|
# @option params [Boolean] :dry_run
|
|
4643
4643
|
# Checks whether you have the required permissions for the action,
|
|
@@ -4918,7 +4918,7 @@ module Aws::EC2
|
|
|
4918
4918
|
# user_data: "String",
|
|
4919
4919
|
# tag_specifications: [
|
|
4920
4920
|
# {
|
|
4921
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
4921
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
4922
4922
|
# tags: [
|
|
4923
4923
|
# {
|
|
4924
4924
|
# key: "String",
|
|
@@ -5165,7 +5165,7 @@ module Aws::EC2
|
|
|
5165
5165
|
# user_data: "String",
|
|
5166
5166
|
# tag_specifications: [
|
|
5167
5167
|
# {
|
|
5168
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
5168
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
5169
5169
|
# tags: [
|
|
5170
5170
|
# {
|
|
5171
5171
|
# key: "String",
|
|
@@ -5277,7 +5277,7 @@ module Aws::EC2
|
|
|
5277
5277
|
# resp.launch_template_version.launch_template_data.instance_initiated_shutdown_behavior #=> String, one of "stop", "terminate"
|
|
5278
5278
|
# resp.launch_template_version.launch_template_data.user_data #=> String
|
|
5279
5279
|
# resp.launch_template_version.launch_template_data.tag_specifications #=> Array
|
|
5280
|
-
# resp.launch_template_version.launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
5280
|
+
# resp.launch_template_version.launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
5281
5281
|
# resp.launch_template_version.launch_template_data.tag_specifications[0].tags #=> Array
|
|
5282
5282
|
# resp.launch_template_version.launch_template_data.tag_specifications[0].tags[0].key #=> String
|
|
5283
5283
|
# resp.launch_template_version.launch_template_data.tag_specifications[0].tags[0].value #=> String
|
|
@@ -5323,7 +5323,7 @@ module Aws::EC2
|
|
|
5323
5323
|
#
|
|
5324
5324
|
#
|
|
5325
5325
|
#
|
|
5326
|
-
# [1]: https://docs.aws.amazon.com/
|
|
5326
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
|
|
5327
5327
|
#
|
|
5328
5328
|
# @option params [required, String] :allocation_id
|
|
5329
5329
|
# The allocation ID of an Elastic IP address to associate with the NAT
|
|
@@ -5427,7 +5427,7 @@ module Aws::EC2
|
|
|
5427
5427
|
#
|
|
5428
5428
|
#
|
|
5429
5429
|
#
|
|
5430
|
-
# [1]: https://docs.aws.amazon.com/
|
|
5430
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html
|
|
5431
5431
|
#
|
|
5432
5432
|
# @option params [Boolean] :dry_run
|
|
5433
5433
|
# Checks whether you have the required permissions for the action,
|
|
@@ -5542,7 +5542,7 @@ module Aws::EC2
|
|
|
5542
5542
|
#
|
|
5543
5543
|
#
|
|
5544
5544
|
#
|
|
5545
|
-
# [1]: https://docs.aws.amazon.com/
|
|
5545
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html
|
|
5546
5546
|
#
|
|
5547
5547
|
# @option params [String] :cidr_block
|
|
5548
5548
|
# The IPv4 network range to allow or deny, in CIDR notation (for example
|
|
@@ -6105,7 +6105,7 @@ module Aws::EC2
|
|
|
6105
6105
|
#
|
|
6106
6106
|
#
|
|
6107
6107
|
#
|
|
6108
|
-
# [1]: https://docs.aws.amazon.com/
|
|
6108
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
6109
6109
|
#
|
|
6110
6110
|
# @option params [String] :destination_cidr_block
|
|
6111
6111
|
# The IPv4 CIDR address block used for the destination match. Routing
|
|
@@ -6201,7 +6201,7 @@ module Aws::EC2
|
|
|
6201
6201
|
#
|
|
6202
6202
|
#
|
|
6203
6203
|
#
|
|
6204
|
-
# [1]: https://docs.aws.amazon.com/
|
|
6204
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
6205
6205
|
#
|
|
6206
6206
|
# @option params [Boolean] :dry_run
|
|
6207
6207
|
# Checks whether you have the required permissions for the action,
|
|
@@ -6499,7 +6499,7 @@ module Aws::EC2
|
|
|
6499
6499
|
# volume_id: "String", # required
|
|
6500
6500
|
# tag_specifications: [
|
|
6501
6501
|
# {
|
|
6502
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6502
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6503
6503
|
# tags: [
|
|
6504
6504
|
# {
|
|
6505
6505
|
# key: "String",
|
|
@@ -6578,7 +6578,7 @@ module Aws::EC2
|
|
|
6578
6578
|
# },
|
|
6579
6579
|
# tag_specifications: [
|
|
6580
6580
|
# {
|
|
6581
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6581
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6582
6582
|
# tags: [
|
|
6583
6583
|
# {
|
|
6584
6584
|
# key: "String",
|
|
@@ -6719,7 +6719,7 @@ module Aws::EC2
|
|
|
6719
6719
|
#
|
|
6720
6720
|
#
|
|
6721
6721
|
#
|
|
6722
|
-
# [1]: https://docs.aws.amazon.com/
|
|
6722
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html
|
|
6723
6723
|
#
|
|
6724
6724
|
# @option params [String] :availability_zone
|
|
6725
6725
|
# The Availability Zone for the subnet.
|
|
@@ -6893,6 +6893,452 @@ module Aws::EC2
|
|
|
6893
6893
|
req.send_request(options)
|
|
6894
6894
|
end
|
|
6895
6895
|
|
|
6896
|
+
# Creates a Traffic Mirror filter.
|
|
6897
|
+
#
|
|
6898
|
+
# A Traffic Mirror filter is a set of rules that defines the traffic to
|
|
6899
|
+
# mirror.
|
|
6900
|
+
#
|
|
6901
|
+
# By default, no traffic is mirrored. To mirror traffic, use
|
|
6902
|
+
# CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the
|
|
6903
|
+
# filter. The rules you add define what traffic gets mirrored. You can
|
|
6904
|
+
# also use ModifyTrafficMirrorFilterNetworkServices to mirror supported
|
|
6905
|
+
# network services.
|
|
6906
|
+
#
|
|
6907
|
+
# @option params [String] :description
|
|
6908
|
+
# The description of the Traffic Mirror filter.
|
|
6909
|
+
#
|
|
6910
|
+
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
|
6911
|
+
# The tags to assign to a Traffic Mirror filter.
|
|
6912
|
+
#
|
|
6913
|
+
# @option params [Boolean] :dry_run
|
|
6914
|
+
# Checks whether you have the required permissions for the action,
|
|
6915
|
+
# without actually making the request, and provides an error response.
|
|
6916
|
+
# If you have the required permissions, the error response is
|
|
6917
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
6918
|
+
#
|
|
6919
|
+
# @option params [String] :client_token
|
|
6920
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
|
6921
|
+
# idempotency of the request. For more information, see [How to Ensure
|
|
6922
|
+
# Idempotency][1].
|
|
6923
|
+
#
|
|
6924
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
6925
|
+
# not need to pass this option.**
|
|
6926
|
+
#
|
|
6927
|
+
#
|
|
6928
|
+
#
|
|
6929
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
6930
|
+
#
|
|
6931
|
+
# @return [Types::CreateTrafficMirrorFilterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6932
|
+
#
|
|
6933
|
+
# * {Types::CreateTrafficMirrorFilterResult#traffic_mirror_filter #traffic_mirror_filter} => Types::TrafficMirrorFilter
|
|
6934
|
+
# * {Types::CreateTrafficMirrorFilterResult#client_token #client_token} => String
|
|
6935
|
+
#
|
|
6936
|
+
# @example Request syntax with placeholder values
|
|
6937
|
+
#
|
|
6938
|
+
# resp = client.create_traffic_mirror_filter({
|
|
6939
|
+
# description: "String",
|
|
6940
|
+
# tag_specifications: [
|
|
6941
|
+
# {
|
|
6942
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6943
|
+
# tags: [
|
|
6944
|
+
# {
|
|
6945
|
+
# key: "String",
|
|
6946
|
+
# value: "String",
|
|
6947
|
+
# },
|
|
6948
|
+
# ],
|
|
6949
|
+
# },
|
|
6950
|
+
# ],
|
|
6951
|
+
# dry_run: false,
|
|
6952
|
+
# client_token: "String",
|
|
6953
|
+
# })
|
|
6954
|
+
#
|
|
6955
|
+
# @example Response structure
|
|
6956
|
+
#
|
|
6957
|
+
# resp.traffic_mirror_filter.traffic_mirror_filter_id #=> String
|
|
6958
|
+
# resp.traffic_mirror_filter.ingress_filter_rules #=> Array
|
|
6959
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
6960
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
6961
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
6962
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].rule_number #=> Integer
|
|
6963
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
6964
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].protocol #=> Integer
|
|
6965
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
6966
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
6967
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
6968
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
6969
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_cidr_block #=> String
|
|
6970
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_cidr_block #=> String
|
|
6971
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].description #=> String
|
|
6972
|
+
# resp.traffic_mirror_filter.egress_filter_rules #=> Array
|
|
6973
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
6974
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
6975
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
6976
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].rule_number #=> Integer
|
|
6977
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
6978
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].protocol #=> Integer
|
|
6979
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
6980
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
6981
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
6982
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
6983
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_cidr_block #=> String
|
|
6984
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_cidr_block #=> String
|
|
6985
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].description #=> String
|
|
6986
|
+
# resp.traffic_mirror_filter.network_services #=> Array
|
|
6987
|
+
# resp.traffic_mirror_filter.network_services[0] #=> String, one of "amazon-dns"
|
|
6988
|
+
# resp.traffic_mirror_filter.description #=> String
|
|
6989
|
+
# resp.traffic_mirror_filter.tags #=> Array
|
|
6990
|
+
# resp.traffic_mirror_filter.tags[0].key #=> String
|
|
6991
|
+
# resp.traffic_mirror_filter.tags[0].value #=> String
|
|
6992
|
+
# resp.client_token #=> String
|
|
6993
|
+
#
|
|
6994
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorFilter AWS API Documentation
|
|
6995
|
+
#
|
|
6996
|
+
# @overload create_traffic_mirror_filter(params = {})
|
|
6997
|
+
# @param [Hash] params ({})
|
|
6998
|
+
def create_traffic_mirror_filter(params = {}, options = {})
|
|
6999
|
+
req = build_request(:create_traffic_mirror_filter, params)
|
|
7000
|
+
req.send_request(options)
|
|
7001
|
+
end
|
|
7002
|
+
|
|
7003
|
+
# Creates a Traffic Mirror rule.
|
|
7004
|
+
#
|
|
7005
|
+
# A Traffic Mirror rule defines the Traffic Mirror source traffic to
|
|
7006
|
+
# mirror.
|
|
7007
|
+
#
|
|
7008
|
+
# You need the Traffic Mirror filter ID when you create the rule.
|
|
7009
|
+
#
|
|
7010
|
+
# @option params [required, String] :traffic_mirror_filter_id
|
|
7011
|
+
# The ID of the filter that this rule is associated with.
|
|
7012
|
+
#
|
|
7013
|
+
# @option params [required, String] :traffic_direction
|
|
7014
|
+
# The type of traffic (`ingress` \| `egress`).
|
|
7015
|
+
#
|
|
7016
|
+
# @option params [required, Integer] :rule_number
|
|
7017
|
+
# The number of the Traffic Mirror rule. This number must be unique for
|
|
7018
|
+
# each Traffic Mirror rule in a given direction. The rules are processed
|
|
7019
|
+
# in ascending order by rule number.
|
|
7020
|
+
#
|
|
7021
|
+
# @option params [required, String] :rule_action
|
|
7022
|
+
# The action to take (`accept` \| `reject`) on the filtered traffic.
|
|
7023
|
+
#
|
|
7024
|
+
# @option params [Types::TrafficMirrorPortRangeRequest] :destination_port_range
|
|
7025
|
+
# The destination port range.
|
|
7026
|
+
#
|
|
7027
|
+
# @option params [Types::TrafficMirrorPortRangeRequest] :source_port_range
|
|
7028
|
+
# The source port range.
|
|
7029
|
+
#
|
|
7030
|
+
# @option params [Integer] :protocol
|
|
7031
|
+
# The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
|
7032
|
+
#
|
|
7033
|
+
# For information about the protocol value, see [Protocol Numbers][1] on
|
|
7034
|
+
# the Internet Assigned Numbers Authority (IANA) website.
|
|
7035
|
+
#
|
|
7036
|
+
#
|
|
7037
|
+
#
|
|
7038
|
+
# [1]: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
|
|
7039
|
+
#
|
|
7040
|
+
# @option params [required, String] :destination_cidr_block
|
|
7041
|
+
# The destination CIDR block to assign to the Traffic Mirror rule.
|
|
7042
|
+
#
|
|
7043
|
+
# @option params [required, String] :source_cidr_block
|
|
7044
|
+
# The source CIDR block to assign to the Traffic Mirror rule.
|
|
7045
|
+
#
|
|
7046
|
+
# @option params [String] :description
|
|
7047
|
+
# The description of the Traffic Mirror rule.
|
|
7048
|
+
#
|
|
7049
|
+
# @option params [Boolean] :dry_run
|
|
7050
|
+
# Checks whether you have the required permissions for the action,
|
|
7051
|
+
# without actually making the request, and provides an error response.
|
|
7052
|
+
# If you have the required permissions, the error response is
|
|
7053
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
7054
|
+
#
|
|
7055
|
+
# @option params [String] :client_token
|
|
7056
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
|
7057
|
+
# idempotency of the request. For more information, see [How to Ensure
|
|
7058
|
+
# Idempotency][1].
|
|
7059
|
+
#
|
|
7060
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
7061
|
+
# not need to pass this option.**
|
|
7062
|
+
#
|
|
7063
|
+
#
|
|
7064
|
+
#
|
|
7065
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
7066
|
+
#
|
|
7067
|
+
# @return [Types::CreateTrafficMirrorFilterRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
7068
|
+
#
|
|
7069
|
+
# * {Types::CreateTrafficMirrorFilterRuleResult#traffic_mirror_filter_rule #traffic_mirror_filter_rule} => Types::TrafficMirrorFilterRule
|
|
7070
|
+
# * {Types::CreateTrafficMirrorFilterRuleResult#client_token #client_token} => String
|
|
7071
|
+
#
|
|
7072
|
+
# @example Request syntax with placeholder values
|
|
7073
|
+
#
|
|
7074
|
+
# resp = client.create_traffic_mirror_filter_rule({
|
|
7075
|
+
# traffic_mirror_filter_id: "String", # required
|
|
7076
|
+
# traffic_direction: "ingress", # required, accepts ingress, egress
|
|
7077
|
+
# rule_number: 1, # required
|
|
7078
|
+
# rule_action: "accept", # required, accepts accept, reject
|
|
7079
|
+
# destination_port_range: {
|
|
7080
|
+
# from_port: 1,
|
|
7081
|
+
# to_port: 1,
|
|
7082
|
+
# },
|
|
7083
|
+
# source_port_range: {
|
|
7084
|
+
# from_port: 1,
|
|
7085
|
+
# to_port: 1,
|
|
7086
|
+
# },
|
|
7087
|
+
# protocol: 1,
|
|
7088
|
+
# destination_cidr_block: "String", # required
|
|
7089
|
+
# source_cidr_block: "String", # required
|
|
7090
|
+
# description: "String",
|
|
7091
|
+
# dry_run: false,
|
|
7092
|
+
# client_token: "String",
|
|
7093
|
+
# })
|
|
7094
|
+
#
|
|
7095
|
+
# @example Response structure
|
|
7096
|
+
#
|
|
7097
|
+
# resp.traffic_mirror_filter_rule.traffic_mirror_filter_rule_id #=> String
|
|
7098
|
+
# resp.traffic_mirror_filter_rule.traffic_mirror_filter_id #=> String
|
|
7099
|
+
# resp.traffic_mirror_filter_rule.traffic_direction #=> String, one of "ingress", "egress"
|
|
7100
|
+
# resp.traffic_mirror_filter_rule.rule_number #=> Integer
|
|
7101
|
+
# resp.traffic_mirror_filter_rule.rule_action #=> String, one of "accept", "reject"
|
|
7102
|
+
# resp.traffic_mirror_filter_rule.protocol #=> Integer
|
|
7103
|
+
# resp.traffic_mirror_filter_rule.destination_port_range.from_port #=> Integer
|
|
7104
|
+
# resp.traffic_mirror_filter_rule.destination_port_range.to_port #=> Integer
|
|
7105
|
+
# resp.traffic_mirror_filter_rule.source_port_range.from_port #=> Integer
|
|
7106
|
+
# resp.traffic_mirror_filter_rule.source_port_range.to_port #=> Integer
|
|
7107
|
+
# resp.traffic_mirror_filter_rule.destination_cidr_block #=> String
|
|
7108
|
+
# resp.traffic_mirror_filter_rule.source_cidr_block #=> String
|
|
7109
|
+
# resp.traffic_mirror_filter_rule.description #=> String
|
|
7110
|
+
# resp.client_token #=> String
|
|
7111
|
+
#
|
|
7112
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorFilterRule AWS API Documentation
|
|
7113
|
+
#
|
|
7114
|
+
# @overload create_traffic_mirror_filter_rule(params = {})
|
|
7115
|
+
# @param [Hash] params ({})
|
|
7116
|
+
def create_traffic_mirror_filter_rule(params = {}, options = {})
|
|
7117
|
+
req = build_request(:create_traffic_mirror_filter_rule, params)
|
|
7118
|
+
req.send_request(options)
|
|
7119
|
+
end
|
|
7120
|
+
|
|
7121
|
+
# Creates a Traffic Mirror session.
|
|
7122
|
+
#
|
|
7123
|
+
# A Traffic Mirror session actively copies packets from a Traffic Mirror
|
|
7124
|
+
# source to a Traffic Mirror target. Create a filter, and then assign it
|
|
7125
|
+
# to the session to define a subset of the traffic to mirror, for
|
|
7126
|
+
# example all TCP traffic.
|
|
7127
|
+
#
|
|
7128
|
+
# The Traffic Mirror source and the Traffic Mirror target (monitoring
|
|
7129
|
+
# appliances) can be in the same VPC, or in a different VPC connected
|
|
7130
|
+
# via VPC peering or a transit gateway.
|
|
7131
|
+
#
|
|
7132
|
+
# By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to
|
|
7133
|
+
# create filter rules that specify the traffic to mirror.
|
|
7134
|
+
#
|
|
7135
|
+
# @option params [required, String] :network_interface_id
|
|
7136
|
+
# The ID of the source network interface.
|
|
7137
|
+
#
|
|
7138
|
+
# @option params [required, String] :traffic_mirror_target_id
|
|
7139
|
+
# The ID of the Traffic Mirror target.
|
|
7140
|
+
#
|
|
7141
|
+
# @option params [required, String] :traffic_mirror_filter_id
|
|
7142
|
+
# The ID of the Traffic Mirror filter.
|
|
7143
|
+
#
|
|
7144
|
+
# @option params [Integer] :packet_length
|
|
7145
|
+
# The number of bytes in each packet to mirror. These are bytes after
|
|
7146
|
+
# the VXLAN header. Do not specify this parameter when you want to
|
|
7147
|
+
# mirror the entire packet. To mirror a subset of the packet, set this
|
|
7148
|
+
# to the length (in bytes) that you want to mirror. For example, if you
|
|
7149
|
+
# set this value to 1network0, then the first 100 bytes that meet the
|
|
7150
|
+
# filter criteria are copied to the target.
|
|
7151
|
+
#
|
|
7152
|
+
# If you do not want to mirror the entire packet, use the `PacketLength`
|
|
7153
|
+
# parameter to specify the number of bytes in each packet to mirror.
|
|
7154
|
+
#
|
|
7155
|
+
# @option params [required, Integer] :session_number
|
|
7156
|
+
# The session number determines the order in which sessions are
|
|
7157
|
+
# evaluated when an interface is used by multiple sessions. The first
|
|
7158
|
+
# session with a matching filter is the one that mirrors the packets.
|
|
7159
|
+
#
|
|
7160
|
+
# Valid values are 1-32766.
|
|
7161
|
+
#
|
|
7162
|
+
# @option params [Integer] :virtual_network_id
|
|
7163
|
+
# The VXLAN ID for the Traffic Mirror session. For more information
|
|
7164
|
+
# about the VXLAN protocol, see [RFC 7348][1]. If you do not specify a
|
|
7165
|
+
# `VirtualNetworkId`, an account-wide unique id is chosen at random.
|
|
7166
|
+
#
|
|
7167
|
+
#
|
|
7168
|
+
#
|
|
7169
|
+
# [1]: https://tools.ietf.org/html/rfc7348
|
|
7170
|
+
#
|
|
7171
|
+
# @option params [String] :description
|
|
7172
|
+
# The description of the Traffic Mirror session.
|
|
7173
|
+
#
|
|
7174
|
+
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
|
7175
|
+
# The tags to assign to a Traffic Mirror session.
|
|
7176
|
+
#
|
|
7177
|
+
# @option params [Boolean] :dry_run
|
|
7178
|
+
# Checks whether you have the required permissions for the action,
|
|
7179
|
+
# without actually making the request, and provides an error response.
|
|
7180
|
+
# If you have the required permissions, the error response is
|
|
7181
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
7182
|
+
#
|
|
7183
|
+
# @option params [String] :client_token
|
|
7184
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
|
7185
|
+
# idempotency of the request. For more information, see [How to Ensure
|
|
7186
|
+
# Idempotency][1].
|
|
7187
|
+
#
|
|
7188
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
7189
|
+
# not need to pass this option.**
|
|
7190
|
+
#
|
|
7191
|
+
#
|
|
7192
|
+
#
|
|
7193
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
7194
|
+
#
|
|
7195
|
+
# @return [Types::CreateTrafficMirrorSessionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
7196
|
+
#
|
|
7197
|
+
# * {Types::CreateTrafficMirrorSessionResult#traffic_mirror_session #traffic_mirror_session} => Types::TrafficMirrorSession
|
|
7198
|
+
# * {Types::CreateTrafficMirrorSessionResult#client_token #client_token} => String
|
|
7199
|
+
#
|
|
7200
|
+
# @example Request syntax with placeholder values
|
|
7201
|
+
#
|
|
7202
|
+
# resp = client.create_traffic_mirror_session({
|
|
7203
|
+
# network_interface_id: "String", # required
|
|
7204
|
+
# traffic_mirror_target_id: "String", # required
|
|
7205
|
+
# traffic_mirror_filter_id: "String", # required
|
|
7206
|
+
# packet_length: 1,
|
|
7207
|
+
# session_number: 1, # required
|
|
7208
|
+
# virtual_network_id: 1,
|
|
7209
|
+
# description: "String",
|
|
7210
|
+
# tag_specifications: [
|
|
7211
|
+
# {
|
|
7212
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7213
|
+
# tags: [
|
|
7214
|
+
# {
|
|
7215
|
+
# key: "String",
|
|
7216
|
+
# value: "String",
|
|
7217
|
+
# },
|
|
7218
|
+
# ],
|
|
7219
|
+
# },
|
|
7220
|
+
# ],
|
|
7221
|
+
# dry_run: false,
|
|
7222
|
+
# client_token: "String",
|
|
7223
|
+
# })
|
|
7224
|
+
#
|
|
7225
|
+
# @example Response structure
|
|
7226
|
+
#
|
|
7227
|
+
# resp.traffic_mirror_session.traffic_mirror_session_id #=> String
|
|
7228
|
+
# resp.traffic_mirror_session.traffic_mirror_target_id #=> String
|
|
7229
|
+
# resp.traffic_mirror_session.traffic_mirror_filter_id #=> String
|
|
7230
|
+
# resp.traffic_mirror_session.network_interface_id #=> String
|
|
7231
|
+
# resp.traffic_mirror_session.owner_id #=> String
|
|
7232
|
+
# resp.traffic_mirror_session.packet_length #=> Integer
|
|
7233
|
+
# resp.traffic_mirror_session.session_number #=> Integer
|
|
7234
|
+
# resp.traffic_mirror_session.virtual_network_id #=> Integer
|
|
7235
|
+
# resp.traffic_mirror_session.description #=> String
|
|
7236
|
+
# resp.traffic_mirror_session.tags #=> Array
|
|
7237
|
+
# resp.traffic_mirror_session.tags[0].key #=> String
|
|
7238
|
+
# resp.traffic_mirror_session.tags[0].value #=> String
|
|
7239
|
+
# resp.client_token #=> String
|
|
7240
|
+
#
|
|
7241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorSession AWS API Documentation
|
|
7242
|
+
#
|
|
7243
|
+
# @overload create_traffic_mirror_session(params = {})
|
|
7244
|
+
# @param [Hash] params ({})
|
|
7245
|
+
def create_traffic_mirror_session(params = {}, options = {})
|
|
7246
|
+
req = build_request(:create_traffic_mirror_session, params)
|
|
7247
|
+
req.send_request(options)
|
|
7248
|
+
end
|
|
7249
|
+
|
|
7250
|
+
# Creates a target for your Traffic Mirror session.
|
|
7251
|
+
#
|
|
7252
|
+
# A Traffic Mirror target is the destination for mirrored traffic. The
|
|
7253
|
+
# Traffic Mirror source and the Traffic Mirror target (monitoring
|
|
7254
|
+
# appliances) can be in the same VPC, or in different VPCs connected via
|
|
7255
|
+
# VPC peering or a transit gateway.
|
|
7256
|
+
#
|
|
7257
|
+
# A Traffic Mirror target can be a network interface, or a Network Load
|
|
7258
|
+
# Balancer.
|
|
7259
|
+
#
|
|
7260
|
+
# To use the target in a Traffic Mirror session, use
|
|
7261
|
+
# CreateTrafficMirrorSession.
|
|
7262
|
+
#
|
|
7263
|
+
# @option params [String] :network_interface_id
|
|
7264
|
+
# The network interface ID that is associated with the target.
|
|
7265
|
+
#
|
|
7266
|
+
# @option params [String] :network_load_balancer_arn
|
|
7267
|
+
# The Amazon Resource Name (ARN) of the Network Load Balancer that is
|
|
7268
|
+
# associated with the target.
|
|
7269
|
+
#
|
|
7270
|
+
# @option params [String] :description
|
|
7271
|
+
# The description of the Traffic Mirror target.
|
|
7272
|
+
#
|
|
7273
|
+
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
|
7274
|
+
# The tags to assign to the Traffic Mirror target.
|
|
7275
|
+
#
|
|
7276
|
+
# @option params [Boolean] :dry_run
|
|
7277
|
+
# Checks whether you have the required permissions for the action,
|
|
7278
|
+
# without actually making the request, and provides an error response.
|
|
7279
|
+
# If you have the required permissions, the error response is
|
|
7280
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
7281
|
+
#
|
|
7282
|
+
# @option params [String] :client_token
|
|
7283
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
|
7284
|
+
# idempotency of the request. For more information, see [How to Ensure
|
|
7285
|
+
# Idempotency][1].
|
|
7286
|
+
#
|
|
7287
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
7288
|
+
# not need to pass this option.**
|
|
7289
|
+
#
|
|
7290
|
+
#
|
|
7291
|
+
#
|
|
7292
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
7293
|
+
#
|
|
7294
|
+
# @return [Types::CreateTrafficMirrorTargetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
7295
|
+
#
|
|
7296
|
+
# * {Types::CreateTrafficMirrorTargetResult#traffic_mirror_target #traffic_mirror_target} => Types::TrafficMirrorTarget
|
|
7297
|
+
# * {Types::CreateTrafficMirrorTargetResult#client_token #client_token} => String
|
|
7298
|
+
#
|
|
7299
|
+
# @example Request syntax with placeholder values
|
|
7300
|
+
#
|
|
7301
|
+
# resp = client.create_traffic_mirror_target({
|
|
7302
|
+
# network_interface_id: "String",
|
|
7303
|
+
# network_load_balancer_arn: "String",
|
|
7304
|
+
# description: "String",
|
|
7305
|
+
# tag_specifications: [
|
|
7306
|
+
# {
|
|
7307
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7308
|
+
# tags: [
|
|
7309
|
+
# {
|
|
7310
|
+
# key: "String",
|
|
7311
|
+
# value: "String",
|
|
7312
|
+
# },
|
|
7313
|
+
# ],
|
|
7314
|
+
# },
|
|
7315
|
+
# ],
|
|
7316
|
+
# dry_run: false,
|
|
7317
|
+
# client_token: "String",
|
|
7318
|
+
# })
|
|
7319
|
+
#
|
|
7320
|
+
# @example Response structure
|
|
7321
|
+
#
|
|
7322
|
+
# resp.traffic_mirror_target.traffic_mirror_target_id #=> String
|
|
7323
|
+
# resp.traffic_mirror_target.network_interface_id #=> String
|
|
7324
|
+
# resp.traffic_mirror_target.network_load_balancer_arn #=> String
|
|
7325
|
+
# resp.traffic_mirror_target.type #=> String, one of "network-interface", "network-load-balancer"
|
|
7326
|
+
# resp.traffic_mirror_target.description #=> String
|
|
7327
|
+
# resp.traffic_mirror_target.owner_id #=> String
|
|
7328
|
+
# resp.traffic_mirror_target.tags #=> Array
|
|
7329
|
+
# resp.traffic_mirror_target.tags[0].key #=> String
|
|
7330
|
+
# resp.traffic_mirror_target.tags[0].value #=> String
|
|
7331
|
+
# resp.client_token #=> String
|
|
7332
|
+
#
|
|
7333
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTrafficMirrorTarget AWS API Documentation
|
|
7334
|
+
#
|
|
7335
|
+
# @overload create_traffic_mirror_target(params = {})
|
|
7336
|
+
# @param [Hash] params ({})
|
|
7337
|
+
def create_traffic_mirror_target(params = {}, options = {})
|
|
7338
|
+
req = build_request(:create_traffic_mirror_target, params)
|
|
7339
|
+
req.send_request(options)
|
|
7340
|
+
end
|
|
7341
|
+
|
|
6896
7342
|
# Creates a transit gateway.
|
|
6897
7343
|
#
|
|
6898
7344
|
# You can use a transit gateway to interconnect your virtual private
|
|
@@ -6950,7 +7396,7 @@ module Aws::EC2
|
|
|
6950
7396
|
# },
|
|
6951
7397
|
# tag_specifications: [
|
|
6952
7398
|
# {
|
|
6953
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7399
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
6954
7400
|
# tags: [
|
|
6955
7401
|
# {
|
|
6956
7402
|
# key: "String",
|
|
@@ -7069,7 +7515,7 @@ module Aws::EC2
|
|
|
7069
7515
|
# transit_gateway_id: "String", # required
|
|
7070
7516
|
# tag_specifications: [
|
|
7071
7517
|
# {
|
|
7072
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7518
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7073
7519
|
# tags: [
|
|
7074
7520
|
# {
|
|
7075
7521
|
# key: "String",
|
|
@@ -7151,7 +7597,7 @@ module Aws::EC2
|
|
|
7151
7597
|
# },
|
|
7152
7598
|
# tag_specifications: [
|
|
7153
7599
|
# {
|
|
7154
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7600
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7155
7601
|
# tags: [
|
|
7156
7602
|
# {
|
|
7157
7603
|
# key: "String",
|
|
@@ -7396,7 +7842,7 @@ module Aws::EC2
|
|
|
7396
7842
|
# dry_run: false,
|
|
7397
7843
|
# tag_specifications: [
|
|
7398
7844
|
# {
|
|
7399
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7845
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
7400
7846
|
# tags: [
|
|
7401
7847
|
# {
|
|
7402
7848
|
# key: "String",
|
|
@@ -7462,8 +7908,8 @@ module Aws::EC2
|
|
|
7462
7908
|
#
|
|
7463
7909
|
#
|
|
7464
7910
|
#
|
|
7465
|
-
# [1]: https://docs.aws.amazon.com/
|
|
7466
|
-
# [2]: https://docs.aws.amazon.com/
|
|
7911
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html
|
|
7912
|
+
# [2]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
|
|
7467
7913
|
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html
|
|
7468
7914
|
#
|
|
7469
7915
|
# @option params [required, String] :cidr_block
|
|
@@ -7580,7 +8026,7 @@ module Aws::EC2
|
|
|
7580
8026
|
#
|
|
7581
8027
|
#
|
|
7582
8028
|
#
|
|
7583
|
-
# [1]: https://docs.aws.amazon.com/
|
|
8029
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
|
|
7584
8030
|
#
|
|
7585
8031
|
# @option params [Boolean] :dry_run
|
|
7586
8032
|
# Checks whether you have the required permissions for the action,
|
|
@@ -7790,7 +8236,7 @@ module Aws::EC2
|
|
|
7790
8236
|
#
|
|
7791
8237
|
#
|
|
7792
8238
|
#
|
|
7793
|
-
# [1]: https://docs.aws.amazon.com/
|
|
8239
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html
|
|
7794
8240
|
#
|
|
7795
8241
|
# @option params [Boolean] :dry_run
|
|
7796
8242
|
# Checks whether you have the required permissions for the action,
|
|
@@ -7882,7 +8328,7 @@ module Aws::EC2
|
|
|
7882
8328
|
#
|
|
7883
8329
|
#
|
|
7884
8330
|
#
|
|
7885
|
-
# [1]: https://docs.aws.amazon.com/
|
|
8331
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations
|
|
7886
8332
|
#
|
|
7887
8333
|
# @option params [Boolean] :dry_run
|
|
7888
8334
|
# Checks whether you have the required permissions for the action,
|
|
@@ -7965,8 +8411,8 @@ module Aws::EC2
|
|
|
7965
8411
|
end
|
|
7966
8412
|
|
|
7967
8413
|
# Creates a VPN connection between an existing virtual private gateway
|
|
7968
|
-
# and a VPN customer gateway. The supported connection types
|
|
7969
|
-
# `ipsec.1
|
|
8414
|
+
# and a VPN customer gateway. The supported connection types is
|
|
8415
|
+
# `ipsec.1`.
|
|
7970
8416
|
#
|
|
7971
8417
|
# The response includes information that you need to give to your
|
|
7972
8418
|
# network administrator to configure your customer gateway.
|
|
@@ -7993,7 +8439,7 @@ module Aws::EC2
|
|
|
7993
8439
|
# The ID of the customer gateway.
|
|
7994
8440
|
#
|
|
7995
8441
|
# @option params [required, String] :type
|
|
7996
|
-
# The type of VPN connection (`ipsec.1`
|
|
8442
|
+
# The type of VPN connection (`ipsec.1`).
|
|
7997
8443
|
#
|
|
7998
8444
|
# @option params [String] :vpn_gateway_id
|
|
7999
8445
|
# The ID of the virtual private gateway. If you specify a virtual
|
|
@@ -9351,10 +9797,13 @@ module Aws::EC2
|
|
|
9351
9797
|
req.send_request(options)
|
|
9352
9798
|
end
|
|
9353
9799
|
|
|
9354
|
-
# Deletes the specified
|
|
9800
|
+
# Deletes the specified Traffic Mirror filter.
|
|
9355
9801
|
#
|
|
9356
|
-
#
|
|
9357
|
-
#
|
|
9802
|
+
# You cannot delete a Traffic Mirror filter that is in use by a Traffic
|
|
9803
|
+
# Mirror session.
|
|
9804
|
+
#
|
|
9805
|
+
# @option params [required, String] :traffic_mirror_filter_id
|
|
9806
|
+
# The ID of the Traffic Mirror filter.
|
|
9358
9807
|
#
|
|
9359
9808
|
# @option params [Boolean] :dry_run
|
|
9360
9809
|
# Checks whether you have the required permissions for the action,
|
|
@@ -9362,28 +9811,171 @@ module Aws::EC2
|
|
|
9362
9811
|
# If you have the required permissions, the error response is
|
|
9363
9812
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
9364
9813
|
#
|
|
9365
|
-
# @return [Types::
|
|
9814
|
+
# @return [Types::DeleteTrafficMirrorFilterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9366
9815
|
#
|
|
9367
|
-
# * {Types::
|
|
9816
|
+
# * {Types::DeleteTrafficMirrorFilterResult#traffic_mirror_filter_id #traffic_mirror_filter_id} => String
|
|
9368
9817
|
#
|
|
9369
9818
|
# @example Request syntax with placeholder values
|
|
9370
9819
|
#
|
|
9371
|
-
# resp = client.
|
|
9372
|
-
#
|
|
9820
|
+
# resp = client.delete_traffic_mirror_filter({
|
|
9821
|
+
# traffic_mirror_filter_id: "String", # required
|
|
9373
9822
|
# dry_run: false,
|
|
9374
9823
|
# })
|
|
9375
9824
|
#
|
|
9376
9825
|
# @example Response structure
|
|
9377
9826
|
#
|
|
9378
|
-
# resp.
|
|
9379
|
-
#
|
|
9380
|
-
#
|
|
9381
|
-
#
|
|
9382
|
-
#
|
|
9383
|
-
#
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9827
|
+
# resp.traffic_mirror_filter_id #=> String
|
|
9828
|
+
#
|
|
9829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorFilter AWS API Documentation
|
|
9830
|
+
#
|
|
9831
|
+
# @overload delete_traffic_mirror_filter(params = {})
|
|
9832
|
+
# @param [Hash] params ({})
|
|
9833
|
+
def delete_traffic_mirror_filter(params = {}, options = {})
|
|
9834
|
+
req = build_request(:delete_traffic_mirror_filter, params)
|
|
9835
|
+
req.send_request(options)
|
|
9836
|
+
end
|
|
9837
|
+
|
|
9838
|
+
# Deletes the specified Traffic Mirror rule.
|
|
9839
|
+
#
|
|
9840
|
+
# @option params [required, String] :traffic_mirror_filter_rule_id
|
|
9841
|
+
# The ID of the Traffic Mirror rule.
|
|
9842
|
+
#
|
|
9843
|
+
# @option params [Boolean] :dry_run
|
|
9844
|
+
# Checks whether you have the required permissions for the action,
|
|
9845
|
+
# without actually making the request, and provides an error response.
|
|
9846
|
+
# If you have the required permissions, the error response is
|
|
9847
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
9848
|
+
#
|
|
9849
|
+
# @return [Types::DeleteTrafficMirrorFilterRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9850
|
+
#
|
|
9851
|
+
# * {Types::DeleteTrafficMirrorFilterRuleResult#traffic_mirror_filter_rule_id #traffic_mirror_filter_rule_id} => String
|
|
9852
|
+
#
|
|
9853
|
+
# @example Request syntax with placeholder values
|
|
9854
|
+
#
|
|
9855
|
+
# resp = client.delete_traffic_mirror_filter_rule({
|
|
9856
|
+
# traffic_mirror_filter_rule_id: "String", # required
|
|
9857
|
+
# dry_run: false,
|
|
9858
|
+
# })
|
|
9859
|
+
#
|
|
9860
|
+
# @example Response structure
|
|
9861
|
+
#
|
|
9862
|
+
# resp.traffic_mirror_filter_rule_id #=> String
|
|
9863
|
+
#
|
|
9864
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorFilterRule AWS API Documentation
|
|
9865
|
+
#
|
|
9866
|
+
# @overload delete_traffic_mirror_filter_rule(params = {})
|
|
9867
|
+
# @param [Hash] params ({})
|
|
9868
|
+
def delete_traffic_mirror_filter_rule(params = {}, options = {})
|
|
9869
|
+
req = build_request(:delete_traffic_mirror_filter_rule, params)
|
|
9870
|
+
req.send_request(options)
|
|
9871
|
+
end
|
|
9872
|
+
|
|
9873
|
+
# Deletes the specified Traffic Mirror session.
|
|
9874
|
+
#
|
|
9875
|
+
# @option params [required, String] :traffic_mirror_session_id
|
|
9876
|
+
# The ID of the Traffic Mirror session.
|
|
9877
|
+
#
|
|
9878
|
+
# @option params [Boolean] :dry_run
|
|
9879
|
+
# Checks whether you have the required permissions for the action,
|
|
9880
|
+
# without actually making the request, and provides an error response.
|
|
9881
|
+
# If you have the required permissions, the error response is
|
|
9882
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
9883
|
+
#
|
|
9884
|
+
# @return [Types::DeleteTrafficMirrorSessionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9885
|
+
#
|
|
9886
|
+
# * {Types::DeleteTrafficMirrorSessionResult#traffic_mirror_session_id #traffic_mirror_session_id} => String
|
|
9887
|
+
#
|
|
9888
|
+
# @example Request syntax with placeholder values
|
|
9889
|
+
#
|
|
9890
|
+
# resp = client.delete_traffic_mirror_session({
|
|
9891
|
+
# traffic_mirror_session_id: "String", # required
|
|
9892
|
+
# dry_run: false,
|
|
9893
|
+
# })
|
|
9894
|
+
#
|
|
9895
|
+
# @example Response structure
|
|
9896
|
+
#
|
|
9897
|
+
# resp.traffic_mirror_session_id #=> String
|
|
9898
|
+
#
|
|
9899
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorSession AWS API Documentation
|
|
9900
|
+
#
|
|
9901
|
+
# @overload delete_traffic_mirror_session(params = {})
|
|
9902
|
+
# @param [Hash] params ({})
|
|
9903
|
+
def delete_traffic_mirror_session(params = {}, options = {})
|
|
9904
|
+
req = build_request(:delete_traffic_mirror_session, params)
|
|
9905
|
+
req.send_request(options)
|
|
9906
|
+
end
|
|
9907
|
+
|
|
9908
|
+
# Deletes the specified Traffic Mirror target.
|
|
9909
|
+
#
|
|
9910
|
+
# You cannot delete a Traffic Mirror target that is in use by a Traffic
|
|
9911
|
+
# Mirror session.
|
|
9912
|
+
#
|
|
9913
|
+
# @option params [required, String] :traffic_mirror_target_id
|
|
9914
|
+
# The ID of the Traffic Mirror target.
|
|
9915
|
+
#
|
|
9916
|
+
# @option params [Boolean] :dry_run
|
|
9917
|
+
# Checks whether you have the required permissions for the action,
|
|
9918
|
+
# without actually making the request, and provides an error response.
|
|
9919
|
+
# If you have the required permissions, the error response is
|
|
9920
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
9921
|
+
#
|
|
9922
|
+
# @return [Types::DeleteTrafficMirrorTargetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9923
|
+
#
|
|
9924
|
+
# * {Types::DeleteTrafficMirrorTargetResult#traffic_mirror_target_id #traffic_mirror_target_id} => String
|
|
9925
|
+
#
|
|
9926
|
+
# @example Request syntax with placeholder values
|
|
9927
|
+
#
|
|
9928
|
+
# resp = client.delete_traffic_mirror_target({
|
|
9929
|
+
# traffic_mirror_target_id: "String", # required
|
|
9930
|
+
# dry_run: false,
|
|
9931
|
+
# })
|
|
9932
|
+
#
|
|
9933
|
+
# @example Response structure
|
|
9934
|
+
#
|
|
9935
|
+
# resp.traffic_mirror_target_id #=> String
|
|
9936
|
+
#
|
|
9937
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTrafficMirrorTarget AWS API Documentation
|
|
9938
|
+
#
|
|
9939
|
+
# @overload delete_traffic_mirror_target(params = {})
|
|
9940
|
+
# @param [Hash] params ({})
|
|
9941
|
+
def delete_traffic_mirror_target(params = {}, options = {})
|
|
9942
|
+
req = build_request(:delete_traffic_mirror_target, params)
|
|
9943
|
+
req.send_request(options)
|
|
9944
|
+
end
|
|
9945
|
+
|
|
9946
|
+
# Deletes the specified transit gateway.
|
|
9947
|
+
#
|
|
9948
|
+
# @option params [required, String] :transit_gateway_id
|
|
9949
|
+
# The ID of the transit gateway.
|
|
9950
|
+
#
|
|
9951
|
+
# @option params [Boolean] :dry_run
|
|
9952
|
+
# Checks whether you have the required permissions for the action,
|
|
9953
|
+
# without actually making the request, and provides an error response.
|
|
9954
|
+
# If you have the required permissions, the error response is
|
|
9955
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
9956
|
+
#
|
|
9957
|
+
# @return [Types::DeleteTransitGatewayResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9958
|
+
#
|
|
9959
|
+
# * {Types::DeleteTransitGatewayResult#transit_gateway #transit_gateway} => Types::TransitGateway
|
|
9960
|
+
#
|
|
9961
|
+
# @example Request syntax with placeholder values
|
|
9962
|
+
#
|
|
9963
|
+
# resp = client.delete_transit_gateway({
|
|
9964
|
+
# transit_gateway_id: "String", # required
|
|
9965
|
+
# dry_run: false,
|
|
9966
|
+
# })
|
|
9967
|
+
#
|
|
9968
|
+
# @example Response structure
|
|
9969
|
+
#
|
|
9970
|
+
# resp.transit_gateway.transit_gateway_id #=> String
|
|
9971
|
+
# resp.transit_gateway.transit_gateway_arn #=> String
|
|
9972
|
+
# resp.transit_gateway.state #=> String, one of "pending", "available", "modifying", "deleting", "deleted"
|
|
9973
|
+
# resp.transit_gateway.owner_id #=> String
|
|
9974
|
+
# resp.transit_gateway.description #=> String
|
|
9975
|
+
# resp.transit_gateway.creation_time #=> Time
|
|
9976
|
+
# resp.transit_gateway.options.amazon_side_asn #=> Integer
|
|
9977
|
+
# resp.transit_gateway.options.auto_accept_shared_attachments #=> String, one of "enable", "disable"
|
|
9978
|
+
# resp.transit_gateway.options.default_route_table_association #=> String, one of "enable", "disable"
|
|
9387
9979
|
# resp.transit_gateway.options.association_default_route_table_id #=> String
|
|
9388
9980
|
# resp.transit_gateway.options.default_route_table_propagation #=> String, one of "enable", "disable"
|
|
9389
9981
|
# resp.transit_gateway.options.propagation_default_route_table_id #=> String
|
|
@@ -11343,7 +11935,7 @@ module Aws::EC2
|
|
|
11343
11935
|
#
|
|
11344
11936
|
#
|
|
11345
11937
|
#
|
|
11346
|
-
# [1]: https://docs.aws.amazon.com/
|
|
11938
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
|
|
11347
11939
|
#
|
|
11348
11940
|
# @option params [Array<String>] :dhcp_options_ids
|
|
11349
11941
|
# The IDs of one or more DHCP options sets.
|
|
@@ -14524,7 +15116,7 @@ module Aws::EC2
|
|
|
14524
15116
|
# resp.launch_template_versions[0].launch_template_data.instance_initiated_shutdown_behavior #=> String, one of "stop", "terminate"
|
|
14525
15117
|
# resp.launch_template_versions[0].launch_template_data.user_data #=> String
|
|
14526
15118
|
# resp.launch_template_versions[0].launch_template_data.tag_specifications #=> Array
|
|
14527
|
-
# resp.launch_template_versions[0].launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
15119
|
+
# resp.launch_template_versions[0].launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
14528
15120
|
# resp.launch_template_versions[0].launch_template_data.tag_specifications[0].tags #=> Array
|
|
14529
15121
|
# resp.launch_template_versions[0].launch_template_data.tag_specifications[0].tags[0].key #=> String
|
|
14530
15122
|
# resp.launch_template_versions[0].launch_template_data.tag_specifications[0].tags[0].value #=> String
|
|
@@ -14890,7 +15482,7 @@ module Aws::EC2
|
|
|
14890
15482
|
#
|
|
14891
15483
|
#
|
|
14892
15484
|
#
|
|
14893
|
-
# [1]: https://docs.aws.amazon.com/
|
|
15485
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html
|
|
14894
15486
|
#
|
|
14895
15487
|
# @option params [Array<Types::Filter>] :filters
|
|
14896
15488
|
# One or more filters.
|
|
@@ -16480,7 +17072,7 @@ module Aws::EC2
|
|
|
16480
17072
|
#
|
|
16481
17073
|
#
|
|
16482
17074
|
#
|
|
16483
|
-
# [1]: https://docs.aws.amazon.com/
|
|
17075
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
16484
17076
|
#
|
|
16485
17077
|
# @option params [Array<Types::Filter>] :filters
|
|
16486
17078
|
# One or more filters.
|
|
@@ -18015,7 +18607,7 @@ module Aws::EC2
|
|
|
18015
18607
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].user_data #=> String
|
|
18016
18608
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].weighted_capacity #=> Float
|
|
18017
18609
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications #=> Array
|
|
18018
|
-
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
18610
|
+
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
18019
18611
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications[0].tags #=> Array
|
|
18020
18612
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications[0].tags[0].key #=> String
|
|
18021
18613
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].tag_specifications[0].tags[0].value #=> String
|
|
@@ -18616,7 +19208,7 @@ module Aws::EC2
|
|
|
18616
19208
|
#
|
|
18617
19209
|
#
|
|
18618
19210
|
#
|
|
18619
|
-
# [1]: https://docs.aws.amazon.com/
|
|
19211
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html
|
|
18620
19212
|
#
|
|
18621
19213
|
# @option params [Array<Types::Filter>] :filters
|
|
18622
19214
|
# One or more filters.
|
|
@@ -18695,92 +19287,390 @@ module Aws::EC2
|
|
|
18695
19287
|
#
|
|
18696
19288
|
# @example Example: To describe the subnets for a VPC
|
|
18697
19289
|
#
|
|
18698
|
-
# # This example describes the subnets for the specified VPC.
|
|
19290
|
+
# # This example describes the subnets for the specified VPC.
|
|
19291
|
+
#
|
|
19292
|
+
# resp = client.describe_subnets({
|
|
19293
|
+
# filters: [
|
|
19294
|
+
# {
|
|
19295
|
+
# name: "vpc-id",
|
|
19296
|
+
# values: [
|
|
19297
|
+
# "vpc-a01106c2",
|
|
19298
|
+
# ],
|
|
19299
|
+
# },
|
|
19300
|
+
# ],
|
|
19301
|
+
# })
|
|
19302
|
+
#
|
|
19303
|
+
# resp.to_h outputs the following:
|
|
19304
|
+
# {
|
|
19305
|
+
# subnets: [
|
|
19306
|
+
# {
|
|
19307
|
+
# availability_zone: "us-east-1c",
|
|
19308
|
+
# available_ip_address_count: 251,
|
|
19309
|
+
# cidr_block: "10.0.1.0/24",
|
|
19310
|
+
# default_for_az: false,
|
|
19311
|
+
# map_public_ip_on_launch: false,
|
|
19312
|
+
# state: "available",
|
|
19313
|
+
# subnet_id: "subnet-9d4a7b6c",
|
|
19314
|
+
# vpc_id: "vpc-a01106c2",
|
|
19315
|
+
# },
|
|
19316
|
+
# ],
|
|
19317
|
+
# }
|
|
19318
|
+
#
|
|
19319
|
+
# @example Request syntax with placeholder values
|
|
19320
|
+
#
|
|
19321
|
+
# resp = client.describe_subnets({
|
|
19322
|
+
# filters: [
|
|
19323
|
+
# {
|
|
19324
|
+
# name: "String",
|
|
19325
|
+
# values: ["String"],
|
|
19326
|
+
# },
|
|
19327
|
+
# ],
|
|
19328
|
+
# subnet_ids: ["String"],
|
|
19329
|
+
# dry_run: false,
|
|
19330
|
+
# next_token: "String",
|
|
19331
|
+
# max_results: 1,
|
|
19332
|
+
# })
|
|
19333
|
+
#
|
|
19334
|
+
# @example Response structure
|
|
19335
|
+
#
|
|
19336
|
+
# resp.subnets #=> Array
|
|
19337
|
+
# resp.subnets[0].availability_zone #=> String
|
|
19338
|
+
# resp.subnets[0].availability_zone_id #=> String
|
|
19339
|
+
# resp.subnets[0].available_ip_address_count #=> Integer
|
|
19340
|
+
# resp.subnets[0].cidr_block #=> String
|
|
19341
|
+
# resp.subnets[0].default_for_az #=> Boolean
|
|
19342
|
+
# resp.subnets[0].map_public_ip_on_launch #=> Boolean
|
|
19343
|
+
# resp.subnets[0].state #=> String, one of "pending", "available"
|
|
19344
|
+
# resp.subnets[0].subnet_id #=> String
|
|
19345
|
+
# resp.subnets[0].vpc_id #=> String
|
|
19346
|
+
# resp.subnets[0].owner_id #=> String
|
|
19347
|
+
# resp.subnets[0].assign_ipv_6_address_on_creation #=> Boolean
|
|
19348
|
+
# resp.subnets[0].ipv_6_cidr_block_association_set #=> Array
|
|
19349
|
+
# resp.subnets[0].ipv_6_cidr_block_association_set[0].association_id #=> String
|
|
19350
|
+
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block #=> String
|
|
19351
|
+
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block_state.state #=> String, one of "associating", "associated", "disassociating", "disassociated", "failing", "failed"
|
|
19352
|
+
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block_state.status_message #=> String
|
|
19353
|
+
# resp.subnets[0].tags #=> Array
|
|
19354
|
+
# resp.subnets[0].tags[0].key #=> String
|
|
19355
|
+
# resp.subnets[0].tags[0].value #=> String
|
|
19356
|
+
# resp.subnets[0].subnet_arn #=> String
|
|
19357
|
+
# resp.next_token #=> String
|
|
19358
|
+
#
|
|
19359
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets AWS API Documentation
|
|
19360
|
+
#
|
|
19361
|
+
# @overload describe_subnets(params = {})
|
|
19362
|
+
# @param [Hash] params ({})
|
|
19363
|
+
def describe_subnets(params = {}, options = {})
|
|
19364
|
+
req = build_request(:describe_subnets, params)
|
|
19365
|
+
req.send_request(options)
|
|
19366
|
+
end
|
|
19367
|
+
|
|
19368
|
+
# Describes the specified tags for your EC2 resources.
|
|
19369
|
+
#
|
|
19370
|
+
# For more information about tags, see [Tagging Your Resources][1] in
|
|
19371
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
19372
|
+
#
|
|
19373
|
+
#
|
|
19374
|
+
#
|
|
19375
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
|
|
19376
|
+
#
|
|
19377
|
+
# @option params [Boolean] :dry_run
|
|
19378
|
+
# Checks whether you have the required permissions for the action,
|
|
19379
|
+
# without actually making the request, and provides an error response.
|
|
19380
|
+
# If you have the required permissions, the error response is
|
|
19381
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
19382
|
+
#
|
|
19383
|
+
# @option params [Array<Types::Filter>] :filters
|
|
19384
|
+
# The filters.
|
|
19385
|
+
#
|
|
19386
|
+
# * `key` - The tag key.
|
|
19387
|
+
#
|
|
19388
|
+
# * `resource-id` - The ID of the resource.
|
|
19389
|
+
#
|
|
19390
|
+
# * `resource-type` - The resource type (`customer-gateway` \|
|
|
19391
|
+
# `dedicated-host` \| `dhcp-options` \| `elastic-ip` \| `fleet` \|
|
|
19392
|
+
# `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
|
|
19393
|
+
# `internet-gateway` \| `launch-template` \| `natgateway` \|
|
|
19394
|
+
# `network-acl` \| `network-interface` \| `reserved-instances` \|
|
|
19395
|
+
# `route-table` \| `security-group` \| `snapshot` \|
|
|
19396
|
+
# `spot-instances-request` \| `subnet` \| `volume` \| `vpc` \|
|
|
19397
|
+
# `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
|
|
19398
|
+
#
|
|
19399
|
+
# * `tag`\:<key> - The key/value combination of the tag. For
|
|
19400
|
+
# example, specify "tag:Owner" for the filter name and "TeamA" for
|
|
19401
|
+
# the filter value to find resources with the tag "Owner=TeamA".
|
|
19402
|
+
#
|
|
19403
|
+
# * `value` - The tag value.
|
|
19404
|
+
#
|
|
19405
|
+
# @option params [Integer] :max_results
|
|
19406
|
+
# The maximum number of results to return in a single call. This value
|
|
19407
|
+
# can be between 5 and 1000. To retrieve the remaining results, make
|
|
19408
|
+
# another call with the returned `NextToken` value.
|
|
19409
|
+
#
|
|
19410
|
+
# @option params [String] :next_token
|
|
19411
|
+
# The token to retrieve the next page of results.
|
|
19412
|
+
#
|
|
19413
|
+
# @return [Types::DescribeTagsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
19414
|
+
#
|
|
19415
|
+
# * {Types::DescribeTagsResult#next_token #next_token} => String
|
|
19416
|
+
# * {Types::DescribeTagsResult#tags #tags} => Array<Types::TagDescription>
|
|
19417
|
+
#
|
|
19418
|
+
#
|
|
19419
|
+
# @example Example: To describe the tags for a single resource
|
|
19420
|
+
#
|
|
19421
|
+
# # This example describes the tags for the specified instance.
|
|
19422
|
+
#
|
|
19423
|
+
# resp = client.describe_tags({
|
|
19424
|
+
# filters: [
|
|
19425
|
+
# {
|
|
19426
|
+
# name: "resource-id",
|
|
19427
|
+
# values: [
|
|
19428
|
+
# "i-1234567890abcdef8",
|
|
19429
|
+
# ],
|
|
19430
|
+
# },
|
|
19431
|
+
# ],
|
|
19432
|
+
# })
|
|
19433
|
+
#
|
|
19434
|
+
# resp.to_h outputs the following:
|
|
19435
|
+
# {
|
|
19436
|
+
# tags: [
|
|
19437
|
+
# {
|
|
19438
|
+
# key: "Stack",
|
|
19439
|
+
# resource_id: "i-1234567890abcdef8",
|
|
19440
|
+
# resource_type: "instance",
|
|
19441
|
+
# value: "test",
|
|
19442
|
+
# },
|
|
19443
|
+
# {
|
|
19444
|
+
# key: "Name",
|
|
19445
|
+
# resource_id: "i-1234567890abcdef8",
|
|
19446
|
+
# resource_type: "instance",
|
|
19447
|
+
# value: "Beta Server",
|
|
19448
|
+
# },
|
|
19449
|
+
# ],
|
|
19450
|
+
# }
|
|
19451
|
+
#
|
|
19452
|
+
# @example Request syntax with placeholder values
|
|
19453
|
+
#
|
|
19454
|
+
# resp = client.describe_tags({
|
|
19455
|
+
# dry_run: false,
|
|
19456
|
+
# filters: [
|
|
19457
|
+
# {
|
|
19458
|
+
# name: "String",
|
|
19459
|
+
# values: ["String"],
|
|
19460
|
+
# },
|
|
19461
|
+
# ],
|
|
19462
|
+
# max_results: 1,
|
|
19463
|
+
# next_token: "String",
|
|
19464
|
+
# })
|
|
19465
|
+
#
|
|
19466
|
+
# @example Response structure
|
|
19467
|
+
#
|
|
19468
|
+
# resp.next_token #=> String
|
|
19469
|
+
# resp.tags #=> Array
|
|
19470
|
+
# resp.tags[0].key #=> String
|
|
19471
|
+
# resp.tags[0].resource_id #=> String
|
|
19472
|
+
# resp.tags[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
19473
|
+
# resp.tags[0].value #=> String
|
|
19474
|
+
#
|
|
19475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags AWS API Documentation
|
|
19476
|
+
#
|
|
19477
|
+
# @overload describe_tags(params = {})
|
|
19478
|
+
# @param [Hash] params ({})
|
|
19479
|
+
def describe_tags(params = {}, options = {})
|
|
19480
|
+
req = build_request(:describe_tags, params)
|
|
19481
|
+
req.send_request(options)
|
|
19482
|
+
end
|
|
19483
|
+
|
|
19484
|
+
# Describes one or more Traffic Mirror filters.
|
|
19485
|
+
#
|
|
19486
|
+
# @option params [Array<String>] :traffic_mirror_filter_ids
|
|
19487
|
+
# The ID of the Traffic Mirror filter.
|
|
19488
|
+
#
|
|
19489
|
+
# @option params [Boolean] :dry_run
|
|
19490
|
+
# Checks whether you have the required permissions for the action,
|
|
19491
|
+
# without actually making the request, and provides an error response.
|
|
19492
|
+
# If you have the required permissions, the error response is
|
|
19493
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
19494
|
+
#
|
|
19495
|
+
# @option params [Array<Types::Filter>] :filters
|
|
19496
|
+
# One or more filters. The possible values are:
|
|
19497
|
+
#
|
|
19498
|
+
# * `description`\: The Traffic Mirror filter description.
|
|
19499
|
+
#
|
|
19500
|
+
# * `traffic-mirror-filter-id`\: The ID of the Traffic Mirror filter.
|
|
19501
|
+
#
|
|
19502
|
+
# @option params [Integer] :max_results
|
|
19503
|
+
# The maximum number of results to return with a single call. To
|
|
19504
|
+
# retrieve the remaining results, make another call with the returned
|
|
19505
|
+
# `nextToken` value.
|
|
19506
|
+
#
|
|
19507
|
+
# @option params [String] :next_token
|
|
19508
|
+
# The token for the next page of results.
|
|
19509
|
+
#
|
|
19510
|
+
# @return [Types::DescribeTrafficMirrorFiltersResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
19511
|
+
#
|
|
19512
|
+
# * {Types::DescribeTrafficMirrorFiltersResult#traffic_mirror_filters #traffic_mirror_filters} => Array<Types::TrafficMirrorFilter>
|
|
19513
|
+
# * {Types::DescribeTrafficMirrorFiltersResult#next_token #next_token} => String
|
|
19514
|
+
#
|
|
19515
|
+
# @example Request syntax with placeholder values
|
|
19516
|
+
#
|
|
19517
|
+
# resp = client.describe_traffic_mirror_filters({
|
|
19518
|
+
# traffic_mirror_filter_ids: ["String"],
|
|
19519
|
+
# dry_run: false,
|
|
19520
|
+
# filters: [
|
|
19521
|
+
# {
|
|
19522
|
+
# name: "String",
|
|
19523
|
+
# values: ["String"],
|
|
19524
|
+
# },
|
|
19525
|
+
# ],
|
|
19526
|
+
# max_results: 1,
|
|
19527
|
+
# next_token: "NextToken",
|
|
19528
|
+
# })
|
|
19529
|
+
#
|
|
19530
|
+
# @example Response structure
|
|
19531
|
+
#
|
|
19532
|
+
# resp.traffic_mirror_filters #=> Array
|
|
19533
|
+
# resp.traffic_mirror_filters[0].traffic_mirror_filter_id #=> String
|
|
19534
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules #=> Array
|
|
19535
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
19536
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
19537
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
19538
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].rule_number #=> Integer
|
|
19539
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
19540
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].protocol #=> Integer
|
|
19541
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
19542
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
19543
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
19544
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
19545
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].destination_cidr_block #=> String
|
|
19546
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].source_cidr_block #=> String
|
|
19547
|
+
# resp.traffic_mirror_filters[0].ingress_filter_rules[0].description #=> String
|
|
19548
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules #=> Array
|
|
19549
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
19550
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
19551
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
19552
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].rule_number #=> Integer
|
|
19553
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
19554
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].protocol #=> Integer
|
|
19555
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
19556
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
19557
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
19558
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
19559
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].destination_cidr_block #=> String
|
|
19560
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].source_cidr_block #=> String
|
|
19561
|
+
# resp.traffic_mirror_filters[0].egress_filter_rules[0].description #=> String
|
|
19562
|
+
# resp.traffic_mirror_filters[0].network_services #=> Array
|
|
19563
|
+
# resp.traffic_mirror_filters[0].network_services[0] #=> String, one of "amazon-dns"
|
|
19564
|
+
# resp.traffic_mirror_filters[0].description #=> String
|
|
19565
|
+
# resp.traffic_mirror_filters[0].tags #=> Array
|
|
19566
|
+
# resp.traffic_mirror_filters[0].tags[0].key #=> String
|
|
19567
|
+
# resp.traffic_mirror_filters[0].tags[0].value #=> String
|
|
19568
|
+
# resp.next_token #=> String
|
|
19569
|
+
#
|
|
19570
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorFilters AWS API Documentation
|
|
19571
|
+
#
|
|
19572
|
+
# @overload describe_traffic_mirror_filters(params = {})
|
|
19573
|
+
# @param [Hash] params ({})
|
|
19574
|
+
def describe_traffic_mirror_filters(params = {}, options = {})
|
|
19575
|
+
req = build_request(:describe_traffic_mirror_filters, params)
|
|
19576
|
+
req.send_request(options)
|
|
19577
|
+
end
|
|
19578
|
+
|
|
19579
|
+
# Describes one or more Traffic Mirror sessions. By default, all Traffic
|
|
19580
|
+
# Mirror sessions are described. Alternatively, you can filter the
|
|
19581
|
+
# results.
|
|
19582
|
+
#
|
|
19583
|
+
# @option params [Array<String>] :traffic_mirror_session_ids
|
|
19584
|
+
# The ID of the Traffic Mirror session.
|
|
19585
|
+
#
|
|
19586
|
+
# @option params [Boolean] :dry_run
|
|
19587
|
+
# Checks whether you have the required permissions for the action,
|
|
19588
|
+
# without actually making the request, and provides an error response.
|
|
19589
|
+
# If you have the required permissions, the error response is
|
|
19590
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
19591
|
+
#
|
|
19592
|
+
# @option params [Array<Types::Filter>] :filters
|
|
19593
|
+
# One or more filters. The possible values are:
|
|
19594
|
+
#
|
|
19595
|
+
# * `description`\: The Traffic Mirror session description.
|
|
19596
|
+
#
|
|
19597
|
+
# * `network-interface-id`\: The ID of the Traffic Mirror session
|
|
19598
|
+
# network interface.
|
|
19599
|
+
#
|
|
19600
|
+
# * `owner-id`\: The ID of the account that owns the Traffic Mirror
|
|
19601
|
+
# session.
|
|
19602
|
+
#
|
|
19603
|
+
# * `packet-length`\: The assigned number of packets to mirror.
|
|
19604
|
+
#
|
|
19605
|
+
# * `session-number`\: The assigned session number.
|
|
19606
|
+
#
|
|
19607
|
+
# * `traffic-mirror-filter-id`\: The ID of the Traffic Mirror filter.
|
|
19608
|
+
#
|
|
19609
|
+
# * `traffic-mirror-session-id`\: The ID of the Traffic Mirror session.
|
|
19610
|
+
#
|
|
19611
|
+
# * `traffic-mirror-target-id`\: The ID of the Traffic Mirror target.
|
|
19612
|
+
#
|
|
19613
|
+
# * `virtual-network-id`\: The virtual network ID of the Traffic Mirror
|
|
19614
|
+
# session.
|
|
19615
|
+
#
|
|
19616
|
+
# @option params [Integer] :max_results
|
|
19617
|
+
# The maximum number of results to return with a single call. To
|
|
19618
|
+
# retrieve the remaining results, make another call with the returned
|
|
19619
|
+
# `nextToken` value.
|
|
19620
|
+
#
|
|
19621
|
+
# @option params [String] :next_token
|
|
19622
|
+
# The token for the next page of results.
|
|
18699
19623
|
#
|
|
18700
|
-
#
|
|
18701
|
-
# filters: [
|
|
18702
|
-
# {
|
|
18703
|
-
# name: "vpc-id",
|
|
18704
|
-
# values: [
|
|
18705
|
-
# "vpc-a01106c2",
|
|
18706
|
-
# ],
|
|
18707
|
-
# },
|
|
18708
|
-
# ],
|
|
18709
|
-
# })
|
|
19624
|
+
# @return [Types::DescribeTrafficMirrorSessionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
18710
19625
|
#
|
|
18711
|
-
#
|
|
18712
|
-
# {
|
|
18713
|
-
# subnets: [
|
|
18714
|
-
# {
|
|
18715
|
-
# availability_zone: "us-east-1c",
|
|
18716
|
-
# available_ip_address_count: 251,
|
|
18717
|
-
# cidr_block: "10.0.1.0/24",
|
|
18718
|
-
# default_for_az: false,
|
|
18719
|
-
# map_public_ip_on_launch: false,
|
|
18720
|
-
# state: "available",
|
|
18721
|
-
# subnet_id: "subnet-9d4a7b6c",
|
|
18722
|
-
# vpc_id: "vpc-a01106c2",
|
|
18723
|
-
# },
|
|
18724
|
-
# ],
|
|
18725
|
-
# }
|
|
19626
|
+
# * {Types::DescribeTrafficMirrorSessionsResult#traffic_mirror_sessions #traffic_mirror_sessions} => Array<Types::TrafficMirrorSession>
|
|
19627
|
+
# * {Types::DescribeTrafficMirrorSessionsResult#next_token #next_token} => String
|
|
18726
19628
|
#
|
|
18727
19629
|
# @example Request syntax with placeholder values
|
|
18728
19630
|
#
|
|
18729
|
-
# resp = client.
|
|
19631
|
+
# resp = client.describe_traffic_mirror_sessions({
|
|
19632
|
+
# traffic_mirror_session_ids: ["String"],
|
|
19633
|
+
# dry_run: false,
|
|
18730
19634
|
# filters: [
|
|
18731
19635
|
# {
|
|
18732
19636
|
# name: "String",
|
|
18733
19637
|
# values: ["String"],
|
|
18734
19638
|
# },
|
|
18735
19639
|
# ],
|
|
18736
|
-
# subnet_ids: ["String"],
|
|
18737
|
-
# dry_run: false,
|
|
18738
|
-
# next_token: "String",
|
|
18739
19640
|
# max_results: 1,
|
|
19641
|
+
# next_token: "NextToken",
|
|
18740
19642
|
# })
|
|
18741
19643
|
#
|
|
18742
19644
|
# @example Response structure
|
|
18743
19645
|
#
|
|
18744
|
-
# resp.
|
|
18745
|
-
# resp.
|
|
18746
|
-
# resp.
|
|
18747
|
-
# resp.
|
|
18748
|
-
# resp.
|
|
18749
|
-
# resp.
|
|
18750
|
-
# resp.
|
|
18751
|
-
# resp.
|
|
18752
|
-
# resp.
|
|
18753
|
-
# resp.
|
|
18754
|
-
# resp.
|
|
18755
|
-
# resp.
|
|
18756
|
-
# resp.
|
|
18757
|
-
# resp.subnets[0].ipv_6_cidr_block_association_set[0].association_id #=> String
|
|
18758
|
-
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block #=> String
|
|
18759
|
-
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block_state.state #=> String, one of "associating", "associated", "disassociating", "disassociated", "failing", "failed"
|
|
18760
|
-
# resp.subnets[0].ipv_6_cidr_block_association_set[0].ipv_6_cidr_block_state.status_message #=> String
|
|
18761
|
-
# resp.subnets[0].tags #=> Array
|
|
18762
|
-
# resp.subnets[0].tags[0].key #=> String
|
|
18763
|
-
# resp.subnets[0].tags[0].value #=> String
|
|
18764
|
-
# resp.subnets[0].subnet_arn #=> String
|
|
19646
|
+
# resp.traffic_mirror_sessions #=> Array
|
|
19647
|
+
# resp.traffic_mirror_sessions[0].traffic_mirror_session_id #=> String
|
|
19648
|
+
# resp.traffic_mirror_sessions[0].traffic_mirror_target_id #=> String
|
|
19649
|
+
# resp.traffic_mirror_sessions[0].traffic_mirror_filter_id #=> String
|
|
19650
|
+
# resp.traffic_mirror_sessions[0].network_interface_id #=> String
|
|
19651
|
+
# resp.traffic_mirror_sessions[0].owner_id #=> String
|
|
19652
|
+
# resp.traffic_mirror_sessions[0].packet_length #=> Integer
|
|
19653
|
+
# resp.traffic_mirror_sessions[0].session_number #=> Integer
|
|
19654
|
+
# resp.traffic_mirror_sessions[0].virtual_network_id #=> Integer
|
|
19655
|
+
# resp.traffic_mirror_sessions[0].description #=> String
|
|
19656
|
+
# resp.traffic_mirror_sessions[0].tags #=> Array
|
|
19657
|
+
# resp.traffic_mirror_sessions[0].tags[0].key #=> String
|
|
19658
|
+
# resp.traffic_mirror_sessions[0].tags[0].value #=> String
|
|
18765
19659
|
# resp.next_token #=> String
|
|
18766
19660
|
#
|
|
18767
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/
|
|
19661
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorSessions AWS API Documentation
|
|
18768
19662
|
#
|
|
18769
|
-
# @overload
|
|
19663
|
+
# @overload describe_traffic_mirror_sessions(params = {})
|
|
18770
19664
|
# @param [Hash] params ({})
|
|
18771
|
-
def
|
|
18772
|
-
req = build_request(:
|
|
19665
|
+
def describe_traffic_mirror_sessions(params = {}, options = {})
|
|
19666
|
+
req = build_request(:describe_traffic_mirror_sessions, params)
|
|
18773
19667
|
req.send_request(options)
|
|
18774
19668
|
end
|
|
18775
19669
|
|
|
18776
|
-
#
|
|
18777
|
-
#
|
|
18778
|
-
# For more information about tags, see [Tagging Your Resources][1] in
|
|
18779
|
-
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
18780
|
-
#
|
|
18781
|
-
#
|
|
19670
|
+
# Information about one or more Traffic Mirror targets.
|
|
18782
19671
|
#
|
|
18783
|
-
# [
|
|
19672
|
+
# @option params [Array<String>] :traffic_mirror_target_ids
|
|
19673
|
+
# The ID of the Traffic Mirror targets.
|
|
18784
19674
|
#
|
|
18785
19675
|
# @option params [Boolean] :dry_run
|
|
18786
19676
|
# Checks whether you have the required permissions for the action,
|
|
@@ -18789,77 +19679,38 @@ module Aws::EC2
|
|
|
18789
19679
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
18790
19680
|
#
|
|
18791
19681
|
# @option params [Array<Types::Filter>] :filters
|
|
18792
|
-
#
|
|
19682
|
+
# One or more filters. The possible values are:
|
|
18793
19683
|
#
|
|
18794
|
-
# * `
|
|
19684
|
+
# * `description`\: The Traffic Mirror target description.
|
|
18795
19685
|
#
|
|
18796
|
-
# * `
|
|
19686
|
+
# * `network-interface-id`\: The ID of the Traffic Mirror session
|
|
19687
|
+
# network interface.
|
|
18797
19688
|
#
|
|
18798
|
-
# * `
|
|
18799
|
-
#
|
|
18800
|
-
# `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
|
|
18801
|
-
# `internet-gateway` \| `launch-template` \| `natgateway` \|
|
|
18802
|
-
# `network-acl` \| `network-interface` \| `reserved-instances` \|
|
|
18803
|
-
# `route-table` \| `security-group` \| `snapshot` \|
|
|
18804
|
-
# `spot-instances-request` \| `subnet` \| `volume` \| `vpc` \|
|
|
18805
|
-
# `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
|
|
19689
|
+
# * `network-load-balancer-arn`\: The Amazon Resource Name (ARN) of the
|
|
19690
|
+
# Network Load Balancer that is associated with the session.
|
|
18806
19691
|
#
|
|
18807
|
-
# * `
|
|
18808
|
-
#
|
|
18809
|
-
# the filter value to find resources with the tag "Owner=TeamA".
|
|
19692
|
+
# * `owner-id`\: The ID of the account that owns the Traffic Mirror
|
|
19693
|
+
# session.
|
|
18810
19694
|
#
|
|
18811
|
-
# * `
|
|
19695
|
+
# * `traffic-mirror-target-id`\: The ID of the Traffic Mirror target.
|
|
18812
19696
|
#
|
|
18813
19697
|
# @option params [Integer] :max_results
|
|
18814
|
-
# The maximum number of results to return
|
|
18815
|
-
#
|
|
18816
|
-
#
|
|
19698
|
+
# The maximum number of results to return with a single call. To
|
|
19699
|
+
# retrieve the remaining results, make another call with the returned
|
|
19700
|
+
# `nextToken` value.
|
|
18817
19701
|
#
|
|
18818
19702
|
# @option params [String] :next_token
|
|
18819
|
-
# The token
|
|
18820
|
-
#
|
|
18821
|
-
# @return [Types::DescribeTagsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
18822
|
-
#
|
|
18823
|
-
# * {Types::DescribeTagsResult#next_token #next_token} => String
|
|
18824
|
-
# * {Types::DescribeTagsResult#tags #tags} => Array<Types::TagDescription>
|
|
18825
|
-
#
|
|
18826
|
-
#
|
|
18827
|
-
# @example Example: To describe the tags for a single resource
|
|
18828
|
-
#
|
|
18829
|
-
# # This example describes the tags for the specified instance.
|
|
19703
|
+
# The token for the next page of results.
|
|
18830
19704
|
#
|
|
18831
|
-
#
|
|
18832
|
-
# filters: [
|
|
18833
|
-
# {
|
|
18834
|
-
# name: "resource-id",
|
|
18835
|
-
# values: [
|
|
18836
|
-
# "i-1234567890abcdef8",
|
|
18837
|
-
# ],
|
|
18838
|
-
# },
|
|
18839
|
-
# ],
|
|
18840
|
-
# })
|
|
19705
|
+
# @return [Types::DescribeTrafficMirrorTargetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
18841
19706
|
#
|
|
18842
|
-
#
|
|
18843
|
-
# {
|
|
18844
|
-
# tags: [
|
|
18845
|
-
# {
|
|
18846
|
-
# key: "Stack",
|
|
18847
|
-
# resource_id: "i-1234567890abcdef8",
|
|
18848
|
-
# resource_type: "instance",
|
|
18849
|
-
# value: "test",
|
|
18850
|
-
# },
|
|
18851
|
-
# {
|
|
18852
|
-
# key: "Name",
|
|
18853
|
-
# resource_id: "i-1234567890abcdef8",
|
|
18854
|
-
# resource_type: "instance",
|
|
18855
|
-
# value: "Beta Server",
|
|
18856
|
-
# },
|
|
18857
|
-
# ],
|
|
18858
|
-
# }
|
|
19707
|
+
# * {Types::DescribeTrafficMirrorTargetsResult#traffic_mirror_targets #traffic_mirror_targets} => Array<Types::TrafficMirrorTarget>
|
|
19708
|
+
# * {Types::DescribeTrafficMirrorTargetsResult#next_token #next_token} => String
|
|
18859
19709
|
#
|
|
18860
19710
|
# @example Request syntax with placeholder values
|
|
18861
19711
|
#
|
|
18862
|
-
# resp = client.
|
|
19712
|
+
# resp = client.describe_traffic_mirror_targets({
|
|
19713
|
+
# traffic_mirror_target_ids: ["String"],
|
|
18863
19714
|
# dry_run: false,
|
|
18864
19715
|
# filters: [
|
|
18865
19716
|
# {
|
|
@@ -18868,24 +19719,29 @@ module Aws::EC2
|
|
|
18868
19719
|
# },
|
|
18869
19720
|
# ],
|
|
18870
19721
|
# max_results: 1,
|
|
18871
|
-
# next_token: "
|
|
19722
|
+
# next_token: "NextToken",
|
|
18872
19723
|
# })
|
|
18873
19724
|
#
|
|
18874
19725
|
# @example Response structure
|
|
18875
19726
|
#
|
|
19727
|
+
# resp.traffic_mirror_targets #=> Array
|
|
19728
|
+
# resp.traffic_mirror_targets[0].traffic_mirror_target_id #=> String
|
|
19729
|
+
# resp.traffic_mirror_targets[0].network_interface_id #=> String
|
|
19730
|
+
# resp.traffic_mirror_targets[0].network_load_balancer_arn #=> String
|
|
19731
|
+
# resp.traffic_mirror_targets[0].type #=> String, one of "network-interface", "network-load-balancer"
|
|
19732
|
+
# resp.traffic_mirror_targets[0].description #=> String
|
|
19733
|
+
# resp.traffic_mirror_targets[0].owner_id #=> String
|
|
19734
|
+
# resp.traffic_mirror_targets[0].tags #=> Array
|
|
19735
|
+
# resp.traffic_mirror_targets[0].tags[0].key #=> String
|
|
19736
|
+
# resp.traffic_mirror_targets[0].tags[0].value #=> String
|
|
18876
19737
|
# resp.next_token #=> String
|
|
18877
|
-
# resp.tags #=> Array
|
|
18878
|
-
# resp.tags[0].key #=> String
|
|
18879
|
-
# resp.tags[0].resource_id #=> String
|
|
18880
|
-
# resp.tags[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
18881
|
-
# resp.tags[0].value #=> String
|
|
18882
19738
|
#
|
|
18883
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/
|
|
19739
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTrafficMirrorTargets AWS API Documentation
|
|
18884
19740
|
#
|
|
18885
|
-
# @overload
|
|
19741
|
+
# @overload describe_traffic_mirror_targets(params = {})
|
|
18886
19742
|
# @param [Hash] params ({})
|
|
18887
|
-
def
|
|
18888
|
-
req = build_request(:
|
|
19743
|
+
def describe_traffic_mirror_targets(params = {}, options = {})
|
|
19744
|
+
req = build_request(:describe_traffic_mirror_targets, params)
|
|
18889
19745
|
req.send_request(options)
|
|
18890
19746
|
end
|
|
18891
19747
|
|
|
@@ -21707,7 +22563,7 @@ module Aws::EC2
|
|
|
21707
22563
|
#
|
|
21708
22564
|
#
|
|
21709
22565
|
#
|
|
21710
|
-
# [1]: https://docs.aws.amazon.com/
|
|
22566
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
21711
22567
|
#
|
|
21712
22568
|
# @option params [required, String] :association_id
|
|
21713
22569
|
# The association ID representing the current association between the
|
|
@@ -22683,7 +23539,7 @@ module Aws::EC2
|
|
|
22683
23539
|
# resp.launch_template_data.instance_initiated_shutdown_behavior #=> String, one of "stop", "terminate"
|
|
22684
23540
|
# resp.launch_template_data.user_data #=> String
|
|
22685
23541
|
# resp.launch_template_data.tag_specifications #=> Array
|
|
22686
|
-
# resp.launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
23542
|
+
# resp.launch_template_data.tag_specifications[0].resource_type #=> String, one of "client-vpn-endpoint", "customer-gateway", "dedicated-host", "dhcp-options", "elastic-ip", "fleet", "fpga-image", "host-reservation", "image", "instance", "internet-gateway", "launch-template", "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", "security-group", "snapshot", "spot-instances-request", "subnet", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-route-table", "volume", "vpc", "vpc-peering-connection", "vpn-connection", "vpn-gateway"
|
|
22687
23543
|
# resp.launch_template_data.tag_specifications[0].tags #=> Array
|
|
22688
23544
|
# resp.launch_template_data.tag_specifications[0].tags[0].key #=> String
|
|
22689
23545
|
# resp.launch_template_data.tag_specifications[0].tags[0].value #=> String
|
|
@@ -23196,23 +24052,16 @@ module Aws::EC2
|
|
|
23196
24052
|
# The license type to be used for the Amazon Machine Image (AMI) after
|
|
23197
24053
|
# importing.
|
|
23198
24054
|
#
|
|
23199
|
-
#
|
|
23200
|
-
#
|
|
24055
|
+
# By default, we detect the source-system operating system (OS) and
|
|
24056
|
+
# apply the appropriate license. Specify `AWS` to replace the
|
|
24057
|
+
# source-system license with an AWS license, if appropriate. Specify
|
|
24058
|
+
# `BYOL` to retain the source-system license, if appropriate.
|
|
24059
|
+
#
|
|
24060
|
+
# To use `BYOL`, you must have existing licenses with rights to use
|
|
24061
|
+
# these licenses in a third party cloud, such as AWS. For more
|
|
23201
24062
|
# information, see [Prerequisites][1] in the VM Import/Export User
|
|
23202
24063
|
# Guide.
|
|
23203
24064
|
#
|
|
23204
|
-
# Valid values include:
|
|
23205
|
-
#
|
|
23206
|
-
# * `Auto` - Detects the source-system operating system (OS) and applies
|
|
23207
|
-
# the appropriate license.
|
|
23208
|
-
#
|
|
23209
|
-
# * `AWS` - Replaces the source-system license with an AWS license, if
|
|
23210
|
-
# appropriate.
|
|
23211
|
-
#
|
|
23212
|
-
# * `BYOL` - Retains the source-system license, if appropriate.
|
|
23213
|
-
#
|
|
23214
|
-
# Default value: `Auto`
|
|
23215
|
-
#
|
|
23216
24065
|
#
|
|
23217
24066
|
#
|
|
23218
24067
|
# [1]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image
|
|
@@ -25386,6 +26235,290 @@ module Aws::EC2
|
|
|
25386
26235
|
req.send_request(options)
|
|
25387
26236
|
end
|
|
25388
26237
|
|
|
26238
|
+
# Allows or restricts mirroring network services.
|
|
26239
|
+
#
|
|
26240
|
+
# By default, Amazon DNS network services are not eligible for Traffic
|
|
26241
|
+
# Mirror. Use `AddNetworkServices` to add network services to a Traffic
|
|
26242
|
+
# Mirror filter. When a network service is added to the Traffic Mirror
|
|
26243
|
+
# filter, all traffic related to that network service will be mirrored.
|
|
26244
|
+
# When you no longer want to mirror network services, use
|
|
26245
|
+
# `RemoveNetworkServices` to remove the network services from the
|
|
26246
|
+
# Traffic Mirror filter.
|
|
26247
|
+
#
|
|
26248
|
+
# FFor information about filter rule properties, see [Network
|
|
26249
|
+
# Services][1] in the <i>Traffic Mirroring User Guide </i>.
|
|
26250
|
+
#
|
|
26251
|
+
#
|
|
26252
|
+
#
|
|
26253
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/mirroring/traffic-mirroring-considerations.html#traffic-mirroring-network-services
|
|
26254
|
+
#
|
|
26255
|
+
# @option params [required, String] :traffic_mirror_filter_id
|
|
26256
|
+
# The ID of the Traffic Mirror filter.
|
|
26257
|
+
#
|
|
26258
|
+
# @option params [Array<String>] :add_network_services
|
|
26259
|
+
# The network service, for example Amazon DNS, that you want to mirror.
|
|
26260
|
+
#
|
|
26261
|
+
# @option params [Array<String>] :remove_network_services
|
|
26262
|
+
# The network service, for example Amazon DNS, that you no longer want
|
|
26263
|
+
# to mirror.
|
|
26264
|
+
#
|
|
26265
|
+
# @option params [Boolean] :dry_run
|
|
26266
|
+
# Checks whether you have the required permissions for the action,
|
|
26267
|
+
# without actually making the request, and provides an error response.
|
|
26268
|
+
# If you have the required permissions, the error response is
|
|
26269
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
26270
|
+
#
|
|
26271
|
+
# @return [Types::ModifyTrafficMirrorFilterNetworkServicesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
26272
|
+
#
|
|
26273
|
+
# * {Types::ModifyTrafficMirrorFilterNetworkServicesResult#traffic_mirror_filter #traffic_mirror_filter} => Types::TrafficMirrorFilter
|
|
26274
|
+
#
|
|
26275
|
+
# @example Request syntax with placeholder values
|
|
26276
|
+
#
|
|
26277
|
+
# resp = client.modify_traffic_mirror_filter_network_services({
|
|
26278
|
+
# traffic_mirror_filter_id: "String", # required
|
|
26279
|
+
# add_network_services: ["amazon-dns"], # accepts amazon-dns
|
|
26280
|
+
# remove_network_services: ["amazon-dns"], # accepts amazon-dns
|
|
26281
|
+
# dry_run: false,
|
|
26282
|
+
# })
|
|
26283
|
+
#
|
|
26284
|
+
# @example Response structure
|
|
26285
|
+
#
|
|
26286
|
+
# resp.traffic_mirror_filter.traffic_mirror_filter_id #=> String
|
|
26287
|
+
# resp.traffic_mirror_filter.ingress_filter_rules #=> Array
|
|
26288
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
26289
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
26290
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
26291
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].rule_number #=> Integer
|
|
26292
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
26293
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].protocol #=> Integer
|
|
26294
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
26295
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
26296
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
26297
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
26298
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].destination_cidr_block #=> String
|
|
26299
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].source_cidr_block #=> String
|
|
26300
|
+
# resp.traffic_mirror_filter.ingress_filter_rules[0].description #=> String
|
|
26301
|
+
# resp.traffic_mirror_filter.egress_filter_rules #=> Array
|
|
26302
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_mirror_filter_rule_id #=> String
|
|
26303
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_mirror_filter_id #=> String
|
|
26304
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].traffic_direction #=> String, one of "ingress", "egress"
|
|
26305
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].rule_number #=> Integer
|
|
26306
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].rule_action #=> String, one of "accept", "reject"
|
|
26307
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].protocol #=> Integer
|
|
26308
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_port_range.from_port #=> Integer
|
|
26309
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_port_range.to_port #=> Integer
|
|
26310
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_port_range.from_port #=> Integer
|
|
26311
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_port_range.to_port #=> Integer
|
|
26312
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].destination_cidr_block #=> String
|
|
26313
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].source_cidr_block #=> String
|
|
26314
|
+
# resp.traffic_mirror_filter.egress_filter_rules[0].description #=> String
|
|
26315
|
+
# resp.traffic_mirror_filter.network_services #=> Array
|
|
26316
|
+
# resp.traffic_mirror_filter.network_services[0] #=> String, one of "amazon-dns"
|
|
26317
|
+
# resp.traffic_mirror_filter.description #=> String
|
|
26318
|
+
# resp.traffic_mirror_filter.tags #=> Array
|
|
26319
|
+
# resp.traffic_mirror_filter.tags[0].key #=> String
|
|
26320
|
+
# resp.traffic_mirror_filter.tags[0].value #=> String
|
|
26321
|
+
#
|
|
26322
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorFilterNetworkServices AWS API Documentation
|
|
26323
|
+
#
|
|
26324
|
+
# @overload modify_traffic_mirror_filter_network_services(params = {})
|
|
26325
|
+
# @param [Hash] params ({})
|
|
26326
|
+
def modify_traffic_mirror_filter_network_services(params = {}, options = {})
|
|
26327
|
+
req = build_request(:modify_traffic_mirror_filter_network_services, params)
|
|
26328
|
+
req.send_request(options)
|
|
26329
|
+
end
|
|
26330
|
+
|
|
26331
|
+
# Modifies the specified Traffic Mirror rule.
|
|
26332
|
+
#
|
|
26333
|
+
# `DestinationCidrBlock` and `SourceCidrBlock` must both be an IPv4
|
|
26334
|
+
# range or an IPv6 range.
|
|
26335
|
+
#
|
|
26336
|
+
# @option params [required, String] :traffic_mirror_filter_rule_id
|
|
26337
|
+
# The ID of the Traffic Mirror rule.
|
|
26338
|
+
#
|
|
26339
|
+
# @option params [String] :traffic_direction
|
|
26340
|
+
# The type of traffic (`ingress` \| `egress`) to assign to the rule.
|
|
26341
|
+
#
|
|
26342
|
+
# @option params [Integer] :rule_number
|
|
26343
|
+
# The number of the Traffic Mirror rule. This number must be unique for
|
|
26344
|
+
# each Traffic Mirror rule in a given direction. The rules are processed
|
|
26345
|
+
# in ascending order by rule number.
|
|
26346
|
+
#
|
|
26347
|
+
# @option params [String] :rule_action
|
|
26348
|
+
# The action to assign to the rule.
|
|
26349
|
+
#
|
|
26350
|
+
# @option params [Types::TrafficMirrorPortRangeRequest] :destination_port_range
|
|
26351
|
+
# The destination ports that are associated with the Traffic Mirror
|
|
26352
|
+
# rule.
|
|
26353
|
+
#
|
|
26354
|
+
# @option params [Types::TrafficMirrorPortRangeRequest] :source_port_range
|
|
26355
|
+
# The port range to assign to the Traffic Mirror rule.
|
|
26356
|
+
#
|
|
26357
|
+
# @option params [Integer] :protocol
|
|
26358
|
+
# The protocol, for example TCP, to assign to the Traffic Mirror rule.
|
|
26359
|
+
#
|
|
26360
|
+
# @option params [String] :destination_cidr_block
|
|
26361
|
+
# The destination CIDR block to assign to the Traffic Mirror rule.
|
|
26362
|
+
#
|
|
26363
|
+
# @option params [String] :source_cidr_block
|
|
26364
|
+
# The source CIDR block to assign to the Traffic Mirror rule.
|
|
26365
|
+
#
|
|
26366
|
+
# @option params [String] :description
|
|
26367
|
+
# The description to assign to the Traffic Mirror rule.
|
|
26368
|
+
#
|
|
26369
|
+
# @option params [Array<String>] :remove_fields
|
|
26370
|
+
# The properties that you want to remove from the Traffic Mirror filter
|
|
26371
|
+
# rule.
|
|
26372
|
+
#
|
|
26373
|
+
# When you remove a property from a Traffic Mirror filter rule, the
|
|
26374
|
+
# property is set to the default.
|
|
26375
|
+
#
|
|
26376
|
+
# @option params [Boolean] :dry_run
|
|
26377
|
+
# Checks whether you have the required permissions for the action,
|
|
26378
|
+
# without actually making the request, and provides an error response.
|
|
26379
|
+
# If you have the required permissions, the error response is
|
|
26380
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
26381
|
+
#
|
|
26382
|
+
# @return [Types::ModifyTrafficMirrorFilterRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
26383
|
+
#
|
|
26384
|
+
# * {Types::ModifyTrafficMirrorFilterRuleResult#traffic_mirror_filter_rule #traffic_mirror_filter_rule} => Types::TrafficMirrorFilterRule
|
|
26385
|
+
#
|
|
26386
|
+
# @example Request syntax with placeholder values
|
|
26387
|
+
#
|
|
26388
|
+
# resp = client.modify_traffic_mirror_filter_rule({
|
|
26389
|
+
# traffic_mirror_filter_rule_id: "String", # required
|
|
26390
|
+
# traffic_direction: "ingress", # accepts ingress, egress
|
|
26391
|
+
# rule_number: 1,
|
|
26392
|
+
# rule_action: "accept", # accepts accept, reject
|
|
26393
|
+
# destination_port_range: {
|
|
26394
|
+
# from_port: 1,
|
|
26395
|
+
# to_port: 1,
|
|
26396
|
+
# },
|
|
26397
|
+
# source_port_range: {
|
|
26398
|
+
# from_port: 1,
|
|
26399
|
+
# to_port: 1,
|
|
26400
|
+
# },
|
|
26401
|
+
# protocol: 1,
|
|
26402
|
+
# destination_cidr_block: "String",
|
|
26403
|
+
# source_cidr_block: "String",
|
|
26404
|
+
# description: "String",
|
|
26405
|
+
# remove_fields: ["destination-port-range"], # accepts destination-port-range, source-port-range, protocol, description
|
|
26406
|
+
# dry_run: false,
|
|
26407
|
+
# })
|
|
26408
|
+
#
|
|
26409
|
+
# @example Response structure
|
|
26410
|
+
#
|
|
26411
|
+
# resp.traffic_mirror_filter_rule.traffic_mirror_filter_rule_id #=> String
|
|
26412
|
+
# resp.traffic_mirror_filter_rule.traffic_mirror_filter_id #=> String
|
|
26413
|
+
# resp.traffic_mirror_filter_rule.traffic_direction #=> String, one of "ingress", "egress"
|
|
26414
|
+
# resp.traffic_mirror_filter_rule.rule_number #=> Integer
|
|
26415
|
+
# resp.traffic_mirror_filter_rule.rule_action #=> String, one of "accept", "reject"
|
|
26416
|
+
# resp.traffic_mirror_filter_rule.protocol #=> Integer
|
|
26417
|
+
# resp.traffic_mirror_filter_rule.destination_port_range.from_port #=> Integer
|
|
26418
|
+
# resp.traffic_mirror_filter_rule.destination_port_range.to_port #=> Integer
|
|
26419
|
+
# resp.traffic_mirror_filter_rule.source_port_range.from_port #=> Integer
|
|
26420
|
+
# resp.traffic_mirror_filter_rule.source_port_range.to_port #=> Integer
|
|
26421
|
+
# resp.traffic_mirror_filter_rule.destination_cidr_block #=> String
|
|
26422
|
+
# resp.traffic_mirror_filter_rule.source_cidr_block #=> String
|
|
26423
|
+
# resp.traffic_mirror_filter_rule.description #=> String
|
|
26424
|
+
#
|
|
26425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorFilterRule AWS API Documentation
|
|
26426
|
+
#
|
|
26427
|
+
# @overload modify_traffic_mirror_filter_rule(params = {})
|
|
26428
|
+
# @param [Hash] params ({})
|
|
26429
|
+
def modify_traffic_mirror_filter_rule(params = {}, options = {})
|
|
26430
|
+
req = build_request(:modify_traffic_mirror_filter_rule, params)
|
|
26431
|
+
req.send_request(options)
|
|
26432
|
+
end
|
|
26433
|
+
|
|
26434
|
+
# Modifies a Traffic Mirror session.
|
|
26435
|
+
#
|
|
26436
|
+
# @option params [required, String] :traffic_mirror_session_id
|
|
26437
|
+
# The ID of the Traffic Mirror session.
|
|
26438
|
+
#
|
|
26439
|
+
# @option params [String] :traffic_mirror_target_id
|
|
26440
|
+
# The Traffic Mirror target. The target must be in the same VPC as the
|
|
26441
|
+
# source, or have a VPC peering connection with the source.
|
|
26442
|
+
#
|
|
26443
|
+
# @option params [String] :traffic_mirror_filter_id
|
|
26444
|
+
# The ID of the Traffic Mirror filter.
|
|
26445
|
+
#
|
|
26446
|
+
# @option params [Integer] :packet_length
|
|
26447
|
+
# The number of bytes in each packet to mirror. These are bytes after
|
|
26448
|
+
# the VXLAN header. To mirror a subset, set this to the length (in
|
|
26449
|
+
# bytes) to mirror. For example, if you set this value to 100, then the
|
|
26450
|
+
# first 100 bytes that meet the filter criteria are copied to the
|
|
26451
|
+
# target. Do not specify this parameter when you want to mirror the
|
|
26452
|
+
# entire packet.
|
|
26453
|
+
#
|
|
26454
|
+
# @option params [Integer] :session_number
|
|
26455
|
+
# The session number determines the order in which sessions are
|
|
26456
|
+
# evaluated when an interface is used by multiple sessions. The first
|
|
26457
|
+
# session with a matching filter is the one that mirrors the packets.
|
|
26458
|
+
#
|
|
26459
|
+
# Valid values are 1-32766.
|
|
26460
|
+
#
|
|
26461
|
+
# @option params [Integer] :virtual_network_id
|
|
26462
|
+
# The virtual network ID of the Traffic Mirror session.
|
|
26463
|
+
#
|
|
26464
|
+
# @option params [String] :description
|
|
26465
|
+
# The description to assign to the Traffic Mirror session.
|
|
26466
|
+
#
|
|
26467
|
+
# @option params [Array<String>] :remove_fields
|
|
26468
|
+
# The properties that you want to remove from the Traffic Mirror
|
|
26469
|
+
# session.
|
|
26470
|
+
#
|
|
26471
|
+
# When you remove a property from a Traffic Mirror session, the property
|
|
26472
|
+
# is set to the default.
|
|
26473
|
+
#
|
|
26474
|
+
# @option params [Boolean] :dry_run
|
|
26475
|
+
# Checks whether you have the required permissions for the action,
|
|
26476
|
+
# without actually making the request, and provides an error response.
|
|
26477
|
+
# If you have the required permissions, the error response is
|
|
26478
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
26479
|
+
#
|
|
26480
|
+
# @return [Types::ModifyTrafficMirrorSessionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
26481
|
+
#
|
|
26482
|
+
# * {Types::ModifyTrafficMirrorSessionResult#traffic_mirror_session #traffic_mirror_session} => Types::TrafficMirrorSession
|
|
26483
|
+
#
|
|
26484
|
+
# @example Request syntax with placeholder values
|
|
26485
|
+
#
|
|
26486
|
+
# resp = client.modify_traffic_mirror_session({
|
|
26487
|
+
# traffic_mirror_session_id: "String", # required
|
|
26488
|
+
# traffic_mirror_target_id: "String",
|
|
26489
|
+
# traffic_mirror_filter_id: "String",
|
|
26490
|
+
# packet_length: 1,
|
|
26491
|
+
# session_number: 1,
|
|
26492
|
+
# virtual_network_id: 1,
|
|
26493
|
+
# description: "String",
|
|
26494
|
+
# remove_fields: ["packet-length"], # accepts packet-length, description, virtual-network-id
|
|
26495
|
+
# dry_run: false,
|
|
26496
|
+
# })
|
|
26497
|
+
#
|
|
26498
|
+
# @example Response structure
|
|
26499
|
+
#
|
|
26500
|
+
# resp.traffic_mirror_session.traffic_mirror_session_id #=> String
|
|
26501
|
+
# resp.traffic_mirror_session.traffic_mirror_target_id #=> String
|
|
26502
|
+
# resp.traffic_mirror_session.traffic_mirror_filter_id #=> String
|
|
26503
|
+
# resp.traffic_mirror_session.network_interface_id #=> String
|
|
26504
|
+
# resp.traffic_mirror_session.owner_id #=> String
|
|
26505
|
+
# resp.traffic_mirror_session.packet_length #=> Integer
|
|
26506
|
+
# resp.traffic_mirror_session.session_number #=> Integer
|
|
26507
|
+
# resp.traffic_mirror_session.virtual_network_id #=> Integer
|
|
26508
|
+
# resp.traffic_mirror_session.description #=> String
|
|
26509
|
+
# resp.traffic_mirror_session.tags #=> Array
|
|
26510
|
+
# resp.traffic_mirror_session.tags[0].key #=> String
|
|
26511
|
+
# resp.traffic_mirror_session.tags[0].value #=> String
|
|
26512
|
+
#
|
|
26513
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTrafficMirrorSession AWS API Documentation
|
|
26514
|
+
#
|
|
26515
|
+
# @overload modify_traffic_mirror_session(params = {})
|
|
26516
|
+
# @param [Hash] params ({})
|
|
26517
|
+
def modify_traffic_mirror_session(params = {}, options = {})
|
|
26518
|
+
req = build_request(:modify_traffic_mirror_session, params)
|
|
26519
|
+
req.send_request(options)
|
|
26520
|
+
end
|
|
26521
|
+
|
|
25389
26522
|
# Modifies the specified VPC attachment.
|
|
25390
26523
|
#
|
|
25391
26524
|
# @option params [required, String] :transit_gateway_attachment_id
|
|
@@ -25714,7 +26847,7 @@ module Aws::EC2
|
|
|
25714
26847
|
#
|
|
25715
26848
|
#
|
|
25716
26849
|
#
|
|
25717
|
-
# [1]: https://docs.aws.amazon.com/
|
|
26850
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
|
|
25718
26851
|
#
|
|
25719
26852
|
# @option params [Boolean] :dry_run
|
|
25720
26853
|
# Checks whether you have the required permissions for the action,
|
|
@@ -25906,7 +27039,7 @@ module Aws::EC2
|
|
|
25906
27039
|
#
|
|
25907
27040
|
#
|
|
25908
27041
|
#
|
|
25909
|
-
# [1]: https://docs.aws.amazon.com/
|
|
27042
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html
|
|
25910
27043
|
#
|
|
25911
27044
|
# @option params [Boolean] :dry_run
|
|
25912
27045
|
# Checks whether you have the required permissions for the action,
|
|
@@ -27171,7 +28304,7 @@ module Aws::EC2
|
|
|
27171
28304
|
#
|
|
27172
28305
|
#
|
|
27173
28306
|
#
|
|
27174
|
-
# [1]: https://docs.aws.amazon.com/
|
|
28307
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html
|
|
27175
28308
|
#
|
|
27176
28309
|
# @option params [required, String] :association_id
|
|
27177
28310
|
# The ID of the current association between the original network ACL and
|
|
@@ -27231,7 +28364,7 @@ module Aws::EC2
|
|
|
27231
28364
|
#
|
|
27232
28365
|
#
|
|
27233
28366
|
#
|
|
27234
|
-
# [1]: https://docs.aws.amazon.com/
|
|
28367
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html
|
|
27235
28368
|
#
|
|
27236
28369
|
# @option params [String] :cidr_block
|
|
27237
28370
|
# The IPv4 network range to allow or deny, in CIDR notation (for example
|
|
@@ -27341,7 +28474,7 @@ module Aws::EC2
|
|
|
27341
28474
|
#
|
|
27342
28475
|
#
|
|
27343
28476
|
#
|
|
27344
|
-
# [1]: https://docs.aws.amazon.com/
|
|
28477
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
27345
28478
|
#
|
|
27346
28479
|
# @option params [String] :destination_cidr_block
|
|
27347
28480
|
# The IPv4 CIDR address block used for the destination match. The value
|
|
@@ -27435,7 +28568,7 @@ module Aws::EC2
|
|
|
27435
28568
|
#
|
|
27436
28569
|
#
|
|
27437
28570
|
#
|
|
27438
|
-
# [1]: https://docs.aws.amazon.com/
|
|
28571
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
|
|
27439
28572
|
#
|
|
27440
28573
|
# @option params [required, String] :association_id
|
|
27441
28574
|
# The association ID.
|
|
@@ -27910,7 +29043,7 @@ module Aws::EC2
|
|
|
27910
29043
|
# weighted_capacity: 1.0,
|
|
27911
29044
|
# tag_specifications: [
|
|
27912
29045
|
# {
|
|
27913
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
29046
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
27914
29047
|
# tags: [
|
|
27915
29048
|
# {
|
|
27916
29049
|
# key: "String",
|
|
@@ -29149,8 +30282,8 @@ module Aws::EC2
|
|
|
29149
30282
|
# @option params [String] :subnet_id
|
|
29150
30283
|
# \[EC2-VPC\] The ID of the subnet to launch the instance into.
|
|
29151
30284
|
#
|
|
29152
|
-
#
|
|
29153
|
-
# the
|
|
30285
|
+
# If you specify a network interface, you must specify any subnets as
|
|
30286
|
+
# part of the network interface.
|
|
29154
30287
|
#
|
|
29155
30288
|
# @option params [String] :user_data
|
|
29156
30289
|
# The user data to make available to the instance. For more information,
|
|
@@ -29221,8 +30354,8 @@ module Aws::EC2
|
|
|
29221
30354
|
#
|
|
29222
30355
|
# @option params [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
|
29223
30356
|
# The network interfaces to associate with the instance. If you specify
|
|
29224
|
-
# a network interface, you must specify any security groups
|
|
29225
|
-
# the network interface.
|
|
30357
|
+
# a network interface, you must specify any security groups and subnets
|
|
30358
|
+
# as part of the network interface.
|
|
29226
30359
|
#
|
|
29227
30360
|
# @option params [String] :private_ip_address
|
|
29228
30361
|
# \[EC2-VPC\] The primary IPv4 address. You must specify a value from
|
|
@@ -29465,7 +30598,7 @@ module Aws::EC2
|
|
|
29465
30598
|
# ],
|
|
29466
30599
|
# tag_specifications: [
|
|
29467
30600
|
# {
|
|
29468
|
-
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
30601
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, launch-template, natgateway, network-acl, network-interface, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
|
|
29469
30602
|
# tags: [
|
|
29470
30603
|
# {
|
|
29471
30604
|
# key: "String",
|
|
@@ -30730,7 +31863,7 @@ module Aws::EC2
|
|
|
30730
31863
|
params: params,
|
|
30731
31864
|
config: config)
|
|
30732
31865
|
context[:gem_name] = 'aws-sdk-ec2'
|
|
30733
|
-
context[:gem_version] = '1.
|
|
31866
|
+
context[:gem_version] = '1.96.0'
|
|
30734
31867
|
Seahorse::Client::Request.new(handlers, context)
|
|
30735
31868
|
end
|
|
30736
31869
|
|