aws-sdk-shield 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-shield.rb +1 -1
- data/lib/aws-sdk-shield/client.rb +18 -6
- data/lib/aws-sdk-shield/client_api.rb +3 -1
- data/lib/aws-sdk-shield/types.rb +19 -4
- 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: ae8cf92961d66a5b4b4da569e483b6177dd5b788
|
4
|
+
data.tar.gz: 4bf304db669b830ddfe5ebb827351955dab0af47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0f77fa8bc952e235c3f615cc142b8122fc1a42d9f9177f7863138cb9d127578fbefcb2325ef2f91643cc215a62535af4b954f05e0f6e88dd9b8402758d1f26
|
7
|
+
data.tar.gz: ac445a7af200a33a997a5a272f58899014afe8d5d351f6624bcfc1878c47a0055a364f452fe942c4b1a8d4111c0dd170a82b2ee1137215dc66d1d2d7047f777a
|
data/lib/aws-sdk-shield.rb
CHANGED
@@ -321,7 +321,8 @@ module Aws::Shield
|
|
321
321
|
|
322
322
|
# Enables AWS Shield Advanced for a specific AWS resource. The resource
|
323
323
|
# can be an Amazon CloudFront distribution, Elastic Load Balancing load
|
324
|
-
# balancer, Elastic IP Address, or
|
324
|
+
# balancer, AWS Global Accelerator accelerator, Elastic IP Address, or
|
325
|
+
# an Amazon Route 53 hosted zone.
|
325
326
|
#
|
326
327
|
# You can add protection to only a single resource with each
|
327
328
|
# CreateProtection request. If you want to add protection to multiple
|
@@ -351,9 +352,12 @@ module Aws::Shield
|
|
351
352
|
# `arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
|
352
353
|
# `
|
353
354
|
#
|
354
|
-
# * For AWS CloudFront distribution:
|
355
|
+
# * For an AWS CloudFront distribution:
|
355
356
|
# `arn:aws:cloudfront::account-id:distribution/distribution-id `
|
356
357
|
#
|
358
|
+
# * For an AWS Global Accelerator accelerator:
|
359
|
+
# `arn:aws:globalaccelerator::account-id:accelerator/accelerator-id `
|
360
|
+
#
|
357
361
|
# * For Amazon Route 53: `arn:aws:route53:::hostedzone/hosted-zone-id `
|
358
362
|
#
|
359
363
|
# * For an Elastic IP address:
|
@@ -562,9 +566,16 @@ module Aws::Shield
|
|
562
566
|
|
563
567
|
# Lists the details of a Protection object.
|
564
568
|
#
|
565
|
-
# @option params [
|
569
|
+
# @option params [String] :protection_id
|
566
570
|
# The unique identifier (ID) for the Protection object that is
|
567
|
-
# described.
|
571
|
+
# described. When submitting the `DescribeProtection` request you must
|
572
|
+
# provide either the `ResourceArn` or the `ProtectionID`, but not both.
|
573
|
+
#
|
574
|
+
# @option params [String] :resource_arn
|
575
|
+
# The ARN (Amazon Resource Name) of the AWS resource for the Protection
|
576
|
+
# object that is described. When submitting the `DescribeProtection`
|
577
|
+
# request you must provide either the `ResourceArn` or the
|
578
|
+
# `ProtectionID`, but not both.
|
568
579
|
#
|
569
580
|
# @return [Types::DescribeProtectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
570
581
|
#
|
@@ -573,7 +584,8 @@ module Aws::Shield
|
|
573
584
|
# @example Request syntax with placeholder values
|
574
585
|
#
|
575
586
|
# resp = client.describe_protection({
|
576
|
-
# protection_id: "ProtectionId",
|
587
|
+
# protection_id: "ProtectionId",
|
588
|
+
# resource_arn: "ResourceArn",
|
577
589
|
# })
|
578
590
|
#
|
579
591
|
# @example Response structure
|
@@ -893,7 +905,7 @@ module Aws::Shield
|
|
893
905
|
params: params,
|
894
906
|
config: config)
|
895
907
|
context[:gem_name] = 'aws-sdk-shield'
|
896
|
-
context[:gem_version] = '1.
|
908
|
+
context[:gem_version] = '1.10.0'
|
897
909
|
Seahorse::Client::Request.new(handlers, context)
|
898
910
|
end
|
899
911
|
|
@@ -197,7 +197,8 @@ module Aws::Shield
|
|
197
197
|
DescribeEmergencyContactSettingsResponse.add_member(:emergency_contact_list, Shapes::ShapeRef.new(shape: EmergencyContactList, location_name: "EmergencyContactList"))
|
198
198
|
DescribeEmergencyContactSettingsResponse.struct_class = Types::DescribeEmergencyContactSettingsResponse
|
199
199
|
|
200
|
-
DescribeProtectionRequest.add_member(:protection_id, Shapes::ShapeRef.new(shape: ProtectionId,
|
200
|
+
DescribeProtectionRequest.add_member(:protection_id, Shapes::ShapeRef.new(shape: ProtectionId, location_name: "ProtectionId"))
|
201
|
+
DescribeProtectionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
201
202
|
DescribeProtectionRequest.struct_class = Types::DescribeProtectionRequest
|
202
203
|
|
203
204
|
DescribeProtectionResponse.add_member(:protection, Shapes::ShapeRef.new(shape: Protection, location_name: "Protection"))
|
@@ -449,6 +450,7 @@ module Aws::Shield
|
|
449
450
|
o.input = Shapes::ShapeRef.new(shape: DescribeProtectionRequest)
|
450
451
|
o.output = Shapes::ShapeRef.new(shape: DescribeProtectionResponse)
|
451
452
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
452
454
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
453
455
|
end)
|
454
456
|
|
data/lib/aws-sdk-shield/types.rb
CHANGED
@@ -291,9 +291,13 @@ module Aws::Shield
|
|
291
291
|
# `arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
|
292
292
|
# `
|
293
293
|
#
|
294
|
-
# * For AWS CloudFront distribution:
|
294
|
+
# * For an AWS CloudFront distribution:
|
295
295
|
# `arn:aws:cloudfront::account-id:distribution/distribution-id `
|
296
296
|
#
|
297
|
+
# * For an AWS Global Accelerator accelerator:
|
298
|
+
# `arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
|
299
|
+
# `
|
300
|
+
#
|
297
301
|
# * For Amazon Route 53: `arn:aws:route53:::hostedzone/hosted-zone-id
|
298
302
|
# `
|
299
303
|
#
|
@@ -437,18 +441,29 @@ module Aws::Shield
|
|
437
441
|
# data as a hash:
|
438
442
|
#
|
439
443
|
# {
|
440
|
-
# protection_id: "ProtectionId",
|
444
|
+
# protection_id: "ProtectionId",
|
445
|
+
# resource_arn: "ResourceArn",
|
441
446
|
# }
|
442
447
|
#
|
443
448
|
# @!attribute [rw] protection_id
|
444
449
|
# The unique identifier (ID) for the Protection object that is
|
445
|
-
# described.
|
450
|
+
# described. When submitting the `DescribeProtection` request you must
|
451
|
+
# provide either the `ResourceArn` or the `ProtectionID`, but not
|
452
|
+
# both.
|
453
|
+
# @return [String]
|
454
|
+
#
|
455
|
+
# @!attribute [rw] resource_arn
|
456
|
+
# The ARN (Amazon Resource Name) of the AWS resource for the
|
457
|
+
# Protection object that is described. When submitting the
|
458
|
+
# `DescribeProtection` request you must provide either the
|
459
|
+
# `ResourceArn` or the `ProtectionID`, but not both.
|
446
460
|
# @return [String]
|
447
461
|
#
|
448
462
|
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtectionRequest AWS API Documentation
|
449
463
|
#
|
450
464
|
class DescribeProtectionRequest < Struct.new(
|
451
|
-
:protection_id
|
465
|
+
:protection_id,
|
466
|
+
:resource_arn)
|
452
467
|
include Aws::Structure
|
453
468
|
end
|
454
469
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-shield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|