aws-sdk-shield 1.44.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-shield/client.rb +265 -104
- data/lib/aws-sdk-shield/client_api.rb +85 -2
- data/lib/aws-sdk-shield/types.rb +398 -143
- data/lib/aws-sdk-shield.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a17f1e5e47a5079c695a8b5660a7457ac7f06b124dad2c07c9405560db3c9f1
|
4
|
+
data.tar.gz: 705999c5a88b1daf4fcff6e241ee529362614fb0e6a56b6b4594e5c7c7edb6f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f9c010181341045adc6a602ce7c0cdbb2a5430da84ecdfd59df2a146b0a287b1c61c4370cdb83585ab0faadc6276a633b4b1b5f4a6193a75bdab140aa31f54
|
7
|
+
data.tar.gz: d29cafbf6b6fc6880f17ae2f0ad817ca56e26c2d5a4096492381364bca2f6669a93e784943c54f7f713b8ea8f453bb2444e1060af21d9140bbaa9808584515ac
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.45.0 (2021-12-01)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds API support for Automatic Application Layer DDoS Mitigation for AWS Shield Advanced. Customers can now enable automatic DDoS mitigation in count or block mode for layer 7 protected resources.
|
8
|
+
|
4
9
|
1.44.0 (2021-11-30)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.45.0
|
@@ -359,8 +359,8 @@ module Aws::Shield
|
|
359
359
|
#
|
360
360
|
#
|
361
361
|
#
|
362
|
-
# [1]: https://aws.amazon.com/premiumsupport/business-support/
|
363
|
-
# [2]: https://aws.amazon.com/premiumsupport/enterprise-support/
|
362
|
+
# [1]: https://docs.aws.amazon.com/premiumsupport/business-support/
|
363
|
+
# [2]: https://docs.aws.amazon.com/premiumsupport/enterprise-support/
|
364
364
|
#
|
365
365
|
# @option params [required, String] :log_bucket
|
366
366
|
# The Amazon S3 bucket that contains the logs that you want to share.
|
@@ -393,13 +393,12 @@ module Aws::Shield
|
|
393
393
|
# `RoleArn`.
|
394
394
|
#
|
395
395
|
# Prior to making the `AssociateDRTRole` request, you must attach the
|
396
|
-
#
|
397
|
-
# specify in the request.
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
#
|
402
|
-
# Elements: Principal][2].
|
396
|
+
# `AWSShieldDRTAccessPolicy` managed policy to the role that you'll
|
397
|
+
# specify in the request. You can access this policy in the IAM console
|
398
|
+
# at [AWSShieldDRTAccessPolicy][1]. For more information see [Adding and
|
399
|
+
# removing IAM identity permissions][2]. The role must also trust the
|
400
|
+
# service principal `drt.shield.amazonaws.com`. For more information,
|
401
|
+
# see [IAM JSON policy elements: Principal][3].
|
403
402
|
#
|
404
403
|
# The SRT will have access only to your WAF and Shield resources. By
|
405
404
|
# submitting this request, you authorize the SRT to inspect your WAF and
|
@@ -408,20 +407,21 @@ module Aws::Shield
|
|
408
407
|
# by you.
|
409
408
|
#
|
410
409
|
# You must have the `iam:PassRole` permission to make an
|
411
|
-
# `AssociateDRTRole` request. For more information, see [Granting a
|
412
|
-
#
|
410
|
+
# `AssociateDRTRole` request. For more information, see [Granting a user
|
411
|
+
# permissions to pass a role to an Amazon Web Services service][4].
|
413
412
|
#
|
414
413
|
# To use the services of the SRT and make an `AssociateDRTRole` request,
|
415
|
-
# you must be subscribed to the [Business Support plan][
|
416
|
-
# [Enterprise Support plan][
|
414
|
+
# you must be subscribed to the [Business Support plan][5] or the
|
415
|
+
# [Enterprise Support plan][6].
|
417
416
|
#
|
418
417
|
#
|
419
418
|
#
|
420
419
|
# [1]: https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy
|
421
|
-
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/
|
422
|
-
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/
|
423
|
-
# [4]: https://aws.amazon.com/
|
424
|
-
# [5]: https://aws.amazon.com/premiumsupport/
|
420
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html
|
421
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
|
422
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html
|
423
|
+
# [5]: https://docs.aws.amazon.com/premiumsupport/business-support/
|
424
|
+
# [6]: https://docs.aws.amazon.com/premiumsupport/enterprise-support/
|
425
425
|
#
|
426
426
|
# @option params [required, String] :role_arn
|
427
427
|
# The Amazon Resource Name (ARN) of the role the SRT will use to access
|
@@ -456,9 +456,9 @@ module Aws::Shield
|
|
456
456
|
# Adds health-based detection to the Shield Advanced protection for a
|
457
457
|
# resource. Shield Advanced health-based detection uses the health of
|
458
458
|
# your Amazon Web Services resource to improve responsiveness and
|
459
|
-
# accuracy in attack detection and
|
459
|
+
# accuracy in attack detection and response.
|
460
460
|
#
|
461
|
-
# You define the health check in Route
|
461
|
+
# You define the health check in Route 53 and then associate it with
|
462
462
|
# your Shield Advanced protection. For more information, see [Shield
|
463
463
|
# Advanced Health-Based Detection][1] in the *WAF Developer Guide*.
|
464
464
|
#
|
@@ -552,17 +552,18 @@ module Aws::Shield
|
|
552
552
|
# Enables Shield Advanced for a specific Amazon Web Services resource.
|
553
553
|
# The resource can be an Amazon CloudFront distribution, Elastic Load
|
554
554
|
# Balancing load balancer, Global Accelerator accelerator, Elastic IP
|
555
|
-
# Address, or an Amazon Route
|
555
|
+
# Address, or an Amazon Route 53 hosted zone.
|
556
556
|
#
|
557
557
|
# You can add protection to only a single resource with each
|
558
|
-
# CreateProtection request.
|
559
|
-
# resources at once
|
560
|
-
# [
|
561
|
-
#
|
558
|
+
# `CreateProtection` request. You can add protection to multiple
|
559
|
+
# resources at once through the Shield Advanced console at
|
560
|
+
# [https://console.aws.amazon.com/wafv2/shieldv2#/][1]. For more
|
561
|
+
# information see [Getting Started with Shield Advanced][2] and [Adding
|
562
|
+
# Shield Advanced protection to Amazon Web Services resources][3].
|
562
563
|
#
|
563
564
|
#
|
564
565
|
#
|
565
|
-
# [1]: https://console.aws.amazon.com/
|
566
|
+
# [1]: https://console.aws.amazon.com/wafv2/shieldv2#/
|
566
567
|
# [2]: https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html
|
567
568
|
# [3]: https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html
|
568
569
|
#
|
@@ -588,7 +589,7 @@ module Aws::Shield
|
|
588
589
|
# * For an Global Accelerator accelerator:
|
589
590
|
# `arn:aws:globalaccelerator::account-id:accelerator/accelerator-id `
|
590
591
|
#
|
591
|
-
# * For Amazon Route
|
592
|
+
# * For Amazon Route 53: `arn:aws:route53:::hostedzone/hosted-zone-id `
|
592
593
|
#
|
593
594
|
# * For an Elastic IP address:
|
594
595
|
# `arn:aws:ec2:region:account-id:eip-allocation/allocation-id `
|
@@ -783,7 +784,7 @@ module Aws::Shield
|
|
783
784
|
# Describes the details of a DDoS attack.
|
784
785
|
#
|
785
786
|
# @option params [required, String] :attack_id
|
786
|
-
# The unique identifier (ID) for the attack
|
787
|
+
# The unique identifier (ID) for the attack.
|
787
788
|
#
|
788
789
|
# @return [Types::DescribeAttackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
789
790
|
#
|
@@ -967,6 +968,7 @@ module Aws::Shield
|
|
967
968
|
# resp.protection.health_check_ids #=> Array
|
968
969
|
# resp.protection.health_check_ids[0] #=> String
|
969
970
|
# resp.protection.protection_arn #=> String
|
971
|
+
# resp.protection.application_layer_automatic_response_configuration.status #=> String, one of "ENABLED", "DISABLED"
|
970
972
|
#
|
971
973
|
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection AWS API Documentation
|
972
974
|
#
|
@@ -1046,6 +1048,31 @@ module Aws::Shield
|
|
1046
1048
|
req.send_request(options)
|
1047
1049
|
end
|
1048
1050
|
|
1051
|
+
# Disable the Shield Advanced automatic application layer DDoS
|
1052
|
+
# mitigation feature for the resource. This stops Shield Advanced from
|
1053
|
+
# creating, verifying, and applying WAF rules for attacks that it
|
1054
|
+
# detects for the resource.
|
1055
|
+
#
|
1056
|
+
# @option params [required, String] :resource_arn
|
1057
|
+
# The ARN (Amazon Resource Name) of the resource.
|
1058
|
+
#
|
1059
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1060
|
+
#
|
1061
|
+
# @example Request syntax with placeholder values
|
1062
|
+
#
|
1063
|
+
# resp = client.disable_application_layer_automatic_response({
|
1064
|
+
# resource_arn: "ResourceArn", # required
|
1065
|
+
# })
|
1066
|
+
#
|
1067
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisableApplicationLayerAutomaticResponse AWS API Documentation
|
1068
|
+
#
|
1069
|
+
# @overload disable_application_layer_automatic_response(params = {})
|
1070
|
+
# @param [Hash] params ({})
|
1071
|
+
def disable_application_layer_automatic_response(params = {}, options = {})
|
1072
|
+
req = build_request(:disable_application_layer_automatic_response, params)
|
1073
|
+
req.send_request(options)
|
1074
|
+
end
|
1075
|
+
|
1049
1076
|
# Removes authorization from the Shield Response Team (SRT) to notify
|
1050
1077
|
# contacts about escalations to the SRT and to initiate proactive
|
1051
1078
|
# customer support.
|
@@ -1064,18 +1091,6 @@ module Aws::Shield
|
|
1064
1091
|
# Removes the Shield Response Team's (SRT) access to the specified
|
1065
1092
|
# Amazon S3 bucket containing the logs that you shared previously.
|
1066
1093
|
#
|
1067
|
-
# To make a `DisassociateDRTLogBucket` request, you must be subscribed
|
1068
|
-
# to the [Business Support plan][1] or the [Enterprise Support plan][2].
|
1069
|
-
# However, if you are not subscribed to one of these support plans, but
|
1070
|
-
# had been previously and had granted the SRT access to your account,
|
1071
|
-
# you can submit a `DisassociateDRTLogBucket` request to remove this
|
1072
|
-
# access.
|
1073
|
-
#
|
1074
|
-
#
|
1075
|
-
#
|
1076
|
-
# [1]: https://aws.amazon.com/premiumsupport/business-support/
|
1077
|
-
# [2]: https://aws.amazon.com/premiumsupport/enterprise-support/
|
1078
|
-
#
|
1079
1094
|
# @option params [required, String] :log_bucket
|
1080
1095
|
# The Amazon S3 bucket that contains the logs that you want to share.
|
1081
1096
|
#
|
@@ -1099,17 +1114,6 @@ module Aws::Shield
|
|
1099
1114
|
# Removes the Shield Response Team's (SRT) access to your Amazon Web
|
1100
1115
|
# Services account.
|
1101
1116
|
#
|
1102
|
-
# To make a `DisassociateDRTRole` request, you must be subscribed to the
|
1103
|
-
# [Business Support plan][1] or the [Enterprise Support plan][2].
|
1104
|
-
# However, if you are not subscribed to one of these support plans, but
|
1105
|
-
# had been previously and had granted the SRT access to your account,
|
1106
|
-
# you can submit a `DisassociateDRTRole` request to remove this access.
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
# [1]: https://aws.amazon.com/premiumsupport/business-support/
|
1111
|
-
# [2]: https://aws.amazon.com/premiumsupport/enterprise-support/
|
1112
|
-
#
|
1113
1117
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1114
1118
|
#
|
1115
1119
|
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTRole AWS API Documentation
|
@@ -1124,9 +1128,9 @@ module Aws::Shield
|
|
1124
1128
|
# Removes health-based detection from the Shield Advanced protection for
|
1125
1129
|
# a resource. Shield Advanced health-based detection uses the health of
|
1126
1130
|
# your Amazon Web Services resource to improve responsiveness and
|
1127
|
-
# accuracy in attack detection and
|
1131
|
+
# accuracy in attack detection and response.
|
1128
1132
|
#
|
1129
|
-
# You define the health check in Route
|
1133
|
+
# You define the health check in Route 53 and then associate or
|
1130
1134
|
# disassociate it with your Shield Advanced protection. For more
|
1131
1135
|
# information, see [Shield Advanced Health-Based Detection][1] in the
|
1132
1136
|
# *WAF Developer Guide*.
|
@@ -1161,6 +1165,76 @@ module Aws::Shield
|
|
1161
1165
|
req.send_request(options)
|
1162
1166
|
end
|
1163
1167
|
|
1168
|
+
# Enable the Shield Advanced automatic application layer DDoS mitigation
|
1169
|
+
# for the resource.
|
1170
|
+
#
|
1171
|
+
# <note markdown="1"> This feature is available for Amazon CloudFront distributions only.
|
1172
|
+
#
|
1173
|
+
# </note>
|
1174
|
+
#
|
1175
|
+
# This causes Shield Advanced to create, verify, and apply WAF rules for
|
1176
|
+
# DDoS attacks that it detects for the resource. Shield Advanced applies
|
1177
|
+
# the rules in a Shield rule group inside the web ACL that you've
|
1178
|
+
# associated with the resource. For information about how automatic
|
1179
|
+
# mitigation works and the requirements for using it, see [Shield
|
1180
|
+
# Advanced automatic application layer DDoS mitigation][1].
|
1181
|
+
#
|
1182
|
+
# Don't use this action to make changes to automatic mitigation
|
1183
|
+
# settings when it's already enabled for a resource. Instead, use
|
1184
|
+
# UpdateApplicationLayerAutomaticResponse.
|
1185
|
+
#
|
1186
|
+
# To use this feature, you must associate a web ACL with the protected
|
1187
|
+
# resource. The web ACL must be created using the latest version of WAF
|
1188
|
+
# (v2). You can associate the web ACL through the Shield Advanced
|
1189
|
+
# console at [https://console.aws.amazon.com/wafv2/shieldv2#/][2]. For
|
1190
|
+
# more information, see [Getting Started with Shield Advanced][3].
|
1191
|
+
#
|
1192
|
+
# You can also do this through the WAF console or the WAF API, but you
|
1193
|
+
# must manage Shield Advanced automatic mitigation through Shield
|
1194
|
+
# Advanced. For information about WAF, see [WAF Developer Guide][4].
|
1195
|
+
#
|
1196
|
+
#
|
1197
|
+
#
|
1198
|
+
# [1]: https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html
|
1199
|
+
# [2]: https://console.aws.amazon.com/wafv2/shieldv2#/
|
1200
|
+
# [3]: https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html
|
1201
|
+
# [4]: https://docs.aws.amazon.com/waf/latest/developerguide/
|
1202
|
+
#
|
1203
|
+
# @option params [required, String] :resource_arn
|
1204
|
+
# The ARN (Amazon Resource Name) of the resource.
|
1205
|
+
#
|
1206
|
+
# @option params [required, Types::ResponseAction] :action
|
1207
|
+
# Specifies the action setting that Shield Advanced should use in the
|
1208
|
+
# WAF rules that it creates on behalf of the protected resource in
|
1209
|
+
# response to DDoS attacks. You specify this as part of the
|
1210
|
+
# configuration for the automatic application layer DDoS mitigation
|
1211
|
+
# feature, when you enable or update automatic mitigation. Shield
|
1212
|
+
# Advanced creates the WAF rules in a Shield Advanced-managed rule
|
1213
|
+
# group, inside the web ACL that you have associated with the resource.
|
1214
|
+
#
|
1215
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1216
|
+
#
|
1217
|
+
# @example Request syntax with placeholder values
|
1218
|
+
#
|
1219
|
+
# resp = client.enable_application_layer_automatic_response({
|
1220
|
+
# resource_arn: "ResourceArn", # required
|
1221
|
+
# action: { # required
|
1222
|
+
# block: {
|
1223
|
+
# },
|
1224
|
+
# count: {
|
1225
|
+
# },
|
1226
|
+
# },
|
1227
|
+
# })
|
1228
|
+
#
|
1229
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/EnableApplicationLayerAutomaticResponse AWS API Documentation
|
1230
|
+
#
|
1231
|
+
# @overload enable_application_layer_automatic_response(params = {})
|
1232
|
+
# @param [Hash] params ({})
|
1233
|
+
def enable_application_layer_automatic_response(params = {}, options = {})
|
1234
|
+
req = build_request(:enable_application_layer_automatic_response, params)
|
1235
|
+
req.send_request(options)
|
1236
|
+
end
|
1237
|
+
|
1164
1238
|
# Authorizes the Shield Response Team (SRT) to use email and phone to
|
1165
1239
|
# notify contacts about escalations to the SRT and to initiate proactive
|
1166
1240
|
# customer support.
|
@@ -1199,44 +1273,56 @@ module Aws::Shield
|
|
1199
1273
|
# specified time period.
|
1200
1274
|
#
|
1201
1275
|
# @option params [Array<String>] :resource_arns
|
1202
|
-
# The
|
1203
|
-
#
|
1204
|
-
# included.
|
1276
|
+
# The ARNs (Amazon Resource Names) of the resources that were attacked.
|
1277
|
+
# If you leave this blank, all applicable resources for this account
|
1278
|
+
# will be included.
|
1205
1279
|
#
|
1206
1280
|
# @option params [Types::TimeRange] :start_time
|
1207
1281
|
# The start of the time period for the attacks. This is a `timestamp`
|
1208
|
-
# type. The
|
1209
|
-
#
|
1210
|
-
#
|
1282
|
+
# type. The request syntax listing for this call indicates a `number`
|
1283
|
+
# type, but you can provide the time in any valid [timestamp format][1]
|
1284
|
+
# setting.
|
1211
1285
|
#
|
1212
1286
|
#
|
1213
1287
|
#
|
1214
|
-
# [1]:
|
1288
|
+
# [1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp
|
1215
1289
|
#
|
1216
1290
|
# @option params [Types::TimeRange] :end_time
|
1217
1291
|
# The end of the time period for the attacks. This is a `timestamp`
|
1218
|
-
# type. The
|
1219
|
-
#
|
1220
|
-
#
|
1292
|
+
# type. The request syntax listing for this call indicates a `number`
|
1293
|
+
# type, but you can provide the time in any valid [timestamp format][1]
|
1294
|
+
# setting.
|
1221
1295
|
#
|
1222
1296
|
#
|
1223
1297
|
#
|
1224
|
-
# [1]:
|
1298
|
+
# [1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp
|
1225
1299
|
#
|
1226
1300
|
# @option params [String] :next_token
|
1227
|
-
#
|
1228
|
-
#
|
1301
|
+
# When you request a list of objects from Shield Advanced, if the
|
1302
|
+
# response does not include all of the remaining available objects,
|
1303
|
+
# Shield Advanced includes a `NextToken` value in the response. You can
|
1304
|
+
# retrieve the next batch of objects by requesting the list again and
|
1305
|
+
# providing the token that was returned by the prior call in your
|
1306
|
+
# request.
|
1307
|
+
#
|
1308
|
+
# You can indicate the maximum number of objects that you want Shield
|
1309
|
+
# Advanced to return for a single call with the `MaxResults` setting.
|
1310
|
+
# Shield Advanced will not return more than `MaxResults` objects, but
|
1311
|
+
# may return fewer, even if more objects are still available.
|
1312
|
+
#
|
1313
|
+
# Whenever more objects remain that Shield Advanced has not yet returned
|
1314
|
+
# to you, the response will include a `NextToken` value.
|
1315
|
+
#
|
1316
|
+
# On your first call to a list operation, leave this setting empty.
|
1229
1317
|
#
|
1230
1318
|
# @option params [Integer] :max_results
|
1231
|
-
# The
|
1232
|
-
#
|
1319
|
+
# The greatest number of objects that you want Shield Advanced to return
|
1320
|
+
# to the list request. Shield Advanced might return fewer objects than
|
1321
|
+
# you indicate in this setting, even if more objects are available. If
|
1322
|
+
# there are more objects remaining, Shield Advanced will always also
|
1323
|
+
# return a `NextToken` value in the response.
|
1233
1324
|
#
|
1234
|
-
#
|
1235
|
-
# smaller batches. That is, the number of objects returned could be less
|
1236
|
-
# than `MaxResults`, even if there are still more objects yet to return.
|
1237
|
-
# If there are more objects to return, Shield Advanced returns a value
|
1238
|
-
# in `NextToken` that you can use in your next request, to get the next
|
1239
|
-
# batch of objects.
|
1325
|
+
# The default setting is 20.
|
1240
1326
|
#
|
1241
1327
|
# @return [Types::ListAttacksResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1242
1328
|
#
|
@@ -1284,19 +1370,31 @@ module Aws::Shield
|
|
1284
1370
|
# Retrieves the ProtectionGroup objects for the account.
|
1285
1371
|
#
|
1286
1372
|
# @option params [String] :next_token
|
1287
|
-
#
|
1288
|
-
#
|
1373
|
+
# When you request a list of objects from Shield Advanced, if the
|
1374
|
+
# response does not include all of the remaining available objects,
|
1375
|
+
# Shield Advanced includes a `NextToken` value in the response. You can
|
1376
|
+
# retrieve the next batch of objects by requesting the list again and
|
1377
|
+
# providing the token that was returned by the prior call in your
|
1378
|
+
# request.
|
1379
|
+
#
|
1380
|
+
# You can indicate the maximum number of objects that you want Shield
|
1381
|
+
# Advanced to return for a single call with the `MaxResults` setting.
|
1382
|
+
# Shield Advanced will not return more than `MaxResults` objects, but
|
1383
|
+
# may return fewer, even if more objects are still available.
|
1384
|
+
#
|
1385
|
+
# Whenever more objects remain that Shield Advanced has not yet returned
|
1386
|
+
# to you, the response will include a `NextToken` value.
|
1387
|
+
#
|
1388
|
+
# On your first call to a list operation, leave this setting empty.
|
1289
1389
|
#
|
1290
1390
|
# @option params [Integer] :max_results
|
1291
|
-
# The
|
1292
|
-
#
|
1391
|
+
# The greatest number of objects that you want Shield Advanced to return
|
1392
|
+
# to the list request. Shield Advanced might return fewer objects than
|
1393
|
+
# you indicate in this setting, even if more objects are available. If
|
1394
|
+
# there are more objects remaining, Shield Advanced will always also
|
1395
|
+
# return a `NextToken` value in the response.
|
1293
1396
|
#
|
1294
|
-
#
|
1295
|
-
# smaller batches. That is, the number of objects returned could be less
|
1296
|
-
# than `MaxResults`, even if there are still more objects yet to return.
|
1297
|
-
# If there are more objects to return, Shield Advanced returns a value
|
1298
|
-
# in `NextToken` that you can use in your next request, to get the next
|
1299
|
-
# batch of objects.
|
1397
|
+
# The default setting is 20.
|
1300
1398
|
#
|
1301
1399
|
# @return [Types::ListProtectionGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1302
1400
|
#
|
@@ -1336,19 +1434,31 @@ module Aws::Shield
|
|
1336
1434
|
# Lists all Protection objects for the account.
|
1337
1435
|
#
|
1338
1436
|
# @option params [String] :next_token
|
1339
|
-
#
|
1340
|
-
#
|
1437
|
+
# When you request a list of objects from Shield Advanced, if the
|
1438
|
+
# response does not include all of the remaining available objects,
|
1439
|
+
# Shield Advanced includes a `NextToken` value in the response. You can
|
1440
|
+
# retrieve the next batch of objects by requesting the list again and
|
1441
|
+
# providing the token that was returned by the prior call in your
|
1442
|
+
# request.
|
1443
|
+
#
|
1444
|
+
# You can indicate the maximum number of objects that you want Shield
|
1445
|
+
# Advanced to return for a single call with the `MaxResults` setting.
|
1446
|
+
# Shield Advanced will not return more than `MaxResults` objects, but
|
1447
|
+
# may return fewer, even if more objects are still available.
|
1448
|
+
#
|
1449
|
+
# Whenever more objects remain that Shield Advanced has not yet returned
|
1450
|
+
# to you, the response will include a `NextToken` value.
|
1451
|
+
#
|
1452
|
+
# On your first call to a list operation, leave this setting empty.
|
1341
1453
|
#
|
1342
1454
|
# @option params [Integer] :max_results
|
1343
|
-
# The
|
1344
|
-
#
|
1455
|
+
# The greatest number of objects that you want Shield Advanced to return
|
1456
|
+
# to the list request. Shield Advanced might return fewer objects than
|
1457
|
+
# you indicate in this setting, even if more objects are available. If
|
1458
|
+
# there are more objects remaining, Shield Advanced will always also
|
1459
|
+
# return a `NextToken` value in the response.
|
1345
1460
|
#
|
1346
|
-
#
|
1347
|
-
# smaller batches. That is, the number of objects returned could be less
|
1348
|
-
# than `MaxResults`, even if there are still more objects yet to return.
|
1349
|
-
# If there are more objects to return, Shield Advanced returns a value
|
1350
|
-
# in `NextToken` that you can use in your next request, to get the next
|
1351
|
-
# batch of objects.
|
1461
|
+
# The default setting is 20.
|
1352
1462
|
#
|
1353
1463
|
# @return [Types::ListProtectionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1354
1464
|
#
|
@@ -1373,6 +1483,7 @@ module Aws::Shield
|
|
1373
1483
|
# resp.protections[0].health_check_ids #=> Array
|
1374
1484
|
# resp.protections[0].health_check_ids[0] #=> String
|
1375
1485
|
# resp.protections[0].protection_arn #=> String
|
1486
|
+
# resp.protections[0].application_layer_automatic_response_configuration.status #=> String, one of "ENABLED", "DISABLED"
|
1376
1487
|
# resp.next_token #=> String
|
1377
1488
|
#
|
1378
1489
|
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtections AWS API Documentation
|
@@ -1392,19 +1503,31 @@ module Aws::Shield
|
|
1392
1503
|
# example to update, delete, or describe it.
|
1393
1504
|
#
|
1394
1505
|
# @option params [String] :next_token
|
1395
|
-
#
|
1396
|
-
#
|
1506
|
+
# When you request a list of objects from Shield Advanced, if the
|
1507
|
+
# response does not include all of the remaining available objects,
|
1508
|
+
# Shield Advanced includes a `NextToken` value in the response. You can
|
1509
|
+
# retrieve the next batch of objects by requesting the list again and
|
1510
|
+
# providing the token that was returned by the prior call in your
|
1511
|
+
# request.
|
1512
|
+
#
|
1513
|
+
# You can indicate the maximum number of objects that you want Shield
|
1514
|
+
# Advanced to return for a single call with the `MaxResults` setting.
|
1515
|
+
# Shield Advanced will not return more than `MaxResults` objects, but
|
1516
|
+
# may return fewer, even if more objects are still available.
|
1517
|
+
#
|
1518
|
+
# Whenever more objects remain that Shield Advanced has not yet returned
|
1519
|
+
# to you, the response will include a `NextToken` value.
|
1520
|
+
#
|
1521
|
+
# On your first call to a list operation, leave this setting empty.
|
1397
1522
|
#
|
1398
1523
|
# @option params [Integer] :max_results
|
1399
|
-
# The
|
1400
|
-
#
|
1524
|
+
# The greatest number of objects that you want Shield Advanced to return
|
1525
|
+
# to the list request. Shield Advanced might return fewer objects than
|
1526
|
+
# you indicate in this setting, even if more objects are available. If
|
1527
|
+
# there are more objects remaining, Shield Advanced will always also
|
1528
|
+
# return a `NextToken` value in the response.
|
1401
1529
|
#
|
1402
|
-
#
|
1403
|
-
# smaller batches. That is, the number of objects returned could be less
|
1404
|
-
# than `MaxResults`, even if there are still more objects yet to return.
|
1405
|
-
# If there are more objects to return, Shield Advanced returns a value
|
1406
|
-
# in `NextToken` that you can use in your next request, to get the next
|
1407
|
-
# batch of objects.
|
1530
|
+
# The default setting is 20.
|
1408
1531
|
#
|
1409
1532
|
# @return [Types::ListResourcesInProtectionGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1410
1533
|
#
|
@@ -1526,6 +1649,44 @@ module Aws::Shield
|
|
1526
1649
|
req.send_request(options)
|
1527
1650
|
end
|
1528
1651
|
|
1652
|
+
# Updates an existing Shield Advanced automatic application layer DDoS
|
1653
|
+
# mitigation configuration for the specified resource.
|
1654
|
+
#
|
1655
|
+
# @option params [required, String] :resource_arn
|
1656
|
+
# The ARN (Amazon Resource Name) of the resource.
|
1657
|
+
#
|
1658
|
+
# @option params [required, Types::ResponseAction] :action
|
1659
|
+
# Specifies the action setting that Shield Advanced should use in the
|
1660
|
+
# WAF rules that it creates on behalf of the protected resource in
|
1661
|
+
# response to DDoS attacks. You specify this as part of the
|
1662
|
+
# configuration for the automatic application layer DDoS mitigation
|
1663
|
+
# feature, when you enable or update automatic mitigation. Shield
|
1664
|
+
# Advanced creates the WAF rules in a Shield Advanced-managed rule
|
1665
|
+
# group, inside the web ACL that you have associated with the resource.
|
1666
|
+
#
|
1667
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1668
|
+
#
|
1669
|
+
# @example Request syntax with placeholder values
|
1670
|
+
#
|
1671
|
+
# resp = client.update_application_layer_automatic_response({
|
1672
|
+
# resource_arn: "ResourceArn", # required
|
1673
|
+
# action: { # required
|
1674
|
+
# block: {
|
1675
|
+
# },
|
1676
|
+
# count: {
|
1677
|
+
# },
|
1678
|
+
# },
|
1679
|
+
# })
|
1680
|
+
#
|
1681
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateApplicationLayerAutomaticResponse AWS API Documentation
|
1682
|
+
#
|
1683
|
+
# @overload update_application_layer_automatic_response(params = {})
|
1684
|
+
# @param [Hash] params ({})
|
1685
|
+
def update_application_layer_automatic_response(params = {}, options = {})
|
1686
|
+
req = build_request(:update_application_layer_automatic_response, params)
|
1687
|
+
req.send_request(options)
|
1688
|
+
end
|
1689
|
+
|
1529
1690
|
# Updates the details of the list of email addresses and phone numbers
|
1530
1691
|
# that the Shield Response Team (SRT) can use to contact you if you have
|
1531
1692
|
# proactive engagement enabled, for escalations to the SRT and to
|
@@ -1670,7 +1831,7 @@ module Aws::Shield
|
|
1670
1831
|
params: params,
|
1671
1832
|
config: config)
|
1672
1833
|
context[:gem_name] = 'aws-sdk-shield'
|
1673
|
-
context[:gem_version] = '1.
|
1834
|
+
context[:gem_version] = '1.45.0'
|
1674
1835
|
Seahorse::Client::Request.new(handlers, context)
|
1675
1836
|
end
|
1676
1837
|
|