aws-sdk-securityhub 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3475b6f6ba0539be81aae67ae7a9e860fe0bd16e
4
- data.tar.gz: d2dffd1c48c6613df209f9523ef59ea15dc9999f
3
+ metadata.gz: dc64b52e17dec92d072ddcd78fd4e961ef79aacd
4
+ data.tar.gz: 6210c6154d36f000d6a14933e024961582d1bc00
5
5
  SHA512:
6
- metadata.gz: cb8628a2344d8504e0fbd9951f439151b3ab4ff5b336821a910044ce02694bc09968fb0c2817344edbb3a01cbe408d135adb6a99b33e89349e4fbf0ae9468a51
7
- data.tar.gz: 1637dd8b5137448d8877e06f36473ad4aa0bd0e6c6dbd303ce82766d6f9da11fb56b14a57c6e6190f140873cbc9af81c4165cebc6fc1bd2911301691a47d4376
6
+ metadata.gz: 43befb9fb208db7e30095a11706d98ab9d8ad28659faa259411e18d72d9db27ae8ce72a348c29dc96376bf2b7e0a682e2050437f03d667ad95752da5051fed7b
7
+ data.tar.gz: f14df83ef08ee8a883582af4c2d767311d668e6c02dbe8cfdcb22ebc1a9b4affdd56d4ec778941864d42d5728d7dd053bf973d9a461f1efa257e8ddeefcbf1dd
@@ -3927,7 +3927,7 @@ module Aws::SecurityHub
3927
3927
  params: params,
3928
3928
  config: config)
3929
3929
  context[:gem_name] = 'aws-sdk-securityhub'
3930
- context[:gem_version] = '1.6.0'
3930
+ context[:gem_version] = '1.7.0'
3931
3931
  Seahorse::Client::Request.new(handlers, context)
3932
3932
  end
3933
3933
 
@@ -173,6 +173,10 @@ module Aws::SecurityHub
173
173
 
174
174
  AcceptInvitationResponse.struct_class = Types::AcceptInvitationResponse
175
175
 
176
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
177
+ AccessDeniedException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
178
+ AccessDeniedException.struct_class = Types::AccessDeniedException
179
+
176
180
  AccountDetails.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
177
181
  AccountDetails.add_member(:email, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Email"))
178
182
  AccountDetails.struct_class = Types::AccountDetails
@@ -508,6 +512,18 @@ module Aws::SecurityHub
508
512
  InsightResults.add_member(:result_values, Shapes::ShapeRef.new(shape: InsightResultValueList, required: true, location_name: "ResultValues"))
509
513
  InsightResults.struct_class = Types::InsightResults
510
514
 
515
+ InternalException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
516
+ InternalException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
517
+ InternalException.struct_class = Types::InternalException
518
+
519
+ InvalidAccessException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
520
+ InvalidAccessException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
521
+ InvalidAccessException.struct_class = Types::InvalidAccessException
522
+
523
+ InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
524
+ InvalidInputException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
525
+ InvalidInputException.struct_class = Types::InvalidInputException
526
+
511
527
  Invitation.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
512
528
  Invitation.add_member(:invitation_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "InvitationId"))
513
529
  Invitation.add_member(:invited_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "InvitedAt"))
@@ -532,6 +548,10 @@ module Aws::SecurityHub
532
548
 
533
549
  KeywordFilterList.member = Shapes::ShapeRef.new(shape: KeywordFilter)
534
550
 
551
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
552
+ LimitExceededException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
553
+ LimitExceededException.struct_class = Types::LimitExceededException
554
+
535
555
  ListEnabledProductsForImportRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
536
556
  ListEnabledProductsForImportRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
537
557
  ListEnabledProductsForImportRequest.struct_class = Types::ListEnabledProductsForImportRequest
@@ -642,6 +662,10 @@ module Aws::SecurityHub
642
662
  Resource.add_member(:details, Shapes::ShapeRef.new(shape: ResourceDetails, location_name: "Details"))
643
663
  Resource.struct_class = Types::Resource
644
664
 
665
+ ResourceConflictException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
666
+ ResourceConflictException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
667
+ ResourceConflictException.struct_class = Types::ResourceConflictException
668
+
645
669
  ResourceDetails.add_member(:aws_ec2_instance, Shapes::ShapeRef.new(shape: AwsEc2InstanceDetails, location_name: "AwsEc2Instance"))
646
670
  ResourceDetails.add_member(:aws_s3_bucket, Shapes::ShapeRef.new(shape: AwsS3BucketDetails, location_name: "AwsS3Bucket"))
647
671
  ResourceDetails.add_member(:aws_iam_access_key, Shapes::ShapeRef.new(shape: AwsIamAccessKeyDetails, location_name: "AwsIamAccessKey"))
@@ -651,6 +675,10 @@ module Aws::SecurityHub
651
675
 
652
676
  ResourceList.member = Shapes::ShapeRef.new(shape: Resource)
653
677
 
678
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Message"))
679
+ ResourceNotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Code"))
680
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
681
+
654
682
  Result.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
655
683
  Result.add_member(:processing_result, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ProcessingResult"))
656
684
  Result.struct_class = Types::Result
@@ -10,5 +10,152 @@ module Aws::SecurityHub
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class AccessDeniedException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::SecurityHub::Types::AccessDeniedException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ # @return [String]
28
+ def code
29
+ @code || @data[:code]
30
+ end
31
+
32
+ end
33
+
34
+ class InternalException < ServiceError
35
+
36
+ # @param [Seahorse::Client::RequestContext] context
37
+ # @param [String] message
38
+ # @param [Aws::SecurityHub::Types::InternalException] data
39
+ def initialize(context, message, data = Aws::EmptyStructure.new)
40
+ super(context, message, data)
41
+ end
42
+
43
+ # @return [String]
44
+ def message
45
+ @message || @data[:message]
46
+ end
47
+
48
+ # @return [String]
49
+ def code
50
+ @code || @data[:code]
51
+ end
52
+
53
+ end
54
+
55
+ class InvalidAccessException < ServiceError
56
+
57
+ # @param [Seahorse::Client::RequestContext] context
58
+ # @param [String] message
59
+ # @param [Aws::SecurityHub::Types::InvalidAccessException] data
60
+ def initialize(context, message, data = Aws::EmptyStructure.new)
61
+ super(context, message, data)
62
+ end
63
+
64
+ # @return [String]
65
+ def message
66
+ @message || @data[:message]
67
+ end
68
+
69
+ # @return [String]
70
+ def code
71
+ @code || @data[:code]
72
+ end
73
+
74
+ end
75
+
76
+ class InvalidInputException < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::SecurityHub::Types::InvalidInputException] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+
90
+ # @return [String]
91
+ def code
92
+ @code || @data[:code]
93
+ end
94
+
95
+ end
96
+
97
+ class LimitExceededException < ServiceError
98
+
99
+ # @param [Seahorse::Client::RequestContext] context
100
+ # @param [String] message
101
+ # @param [Aws::SecurityHub::Types::LimitExceededException] data
102
+ def initialize(context, message, data = Aws::EmptyStructure.new)
103
+ super(context, message, data)
104
+ end
105
+
106
+ # @return [String]
107
+ def message
108
+ @message || @data[:message]
109
+ end
110
+
111
+ # @return [String]
112
+ def code
113
+ @code || @data[:code]
114
+ end
115
+
116
+ end
117
+
118
+ class ResourceConflictException < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::SecurityHub::Types::ResourceConflictException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+
127
+ # @return [String]
128
+ def message
129
+ @message || @data[:message]
130
+ end
131
+
132
+ # @return [String]
133
+ def code
134
+ @code || @data[:code]
135
+ end
136
+
137
+ end
138
+
139
+ class ResourceNotFoundException < ServiceError
140
+
141
+ # @param [Seahorse::Client::RequestContext] context
142
+ # @param [String] message
143
+ # @param [Aws::SecurityHub::Types::ResourceNotFoundException] data
144
+ def initialize(context, message, data = Aws::EmptyStructure.new)
145
+ super(context, message, data)
146
+ end
147
+
148
+ # @return [String]
149
+ def message
150
+ @message || @data[:message]
151
+ end
152
+
153
+ # @return [String]
154
+ def code
155
+ @code || @data[:code]
156
+ end
157
+
158
+ end
159
+
13
160
  end
14
161
  end
@@ -38,6 +38,23 @@ module Aws::SecurityHub
38
38
  #
39
39
  class AcceptInvitationResponse < Aws::EmptyStructure; end
40
40
 
41
+ # You do not have permission to to perform the action specified in the
42
+ # request.
43
+ #
44
+ # @!attribute [rw] message
45
+ # @return [String]
46
+ #
47
+ # @!attribute [rw] code
48
+ # @return [String]
49
+ #
50
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AccessDeniedException AWS API Documentation
51
+ #
52
+ class AccessDeniedException < Struct.new(
53
+ :message,
54
+ :code)
55
+ include Aws::Structure
56
+ end
57
+
41
58
  # The details of an AWS account.
42
59
  #
43
60
  # @note When making an API call, you may pass AccountDetails
@@ -3687,6 +3704,56 @@ module Aws::SecurityHub
3687
3704
  include Aws::Structure
3688
3705
  end
3689
3706
 
3707
+ # Internal server error.
3708
+ #
3709
+ # @!attribute [rw] message
3710
+ # @return [String]
3711
+ #
3712
+ # @!attribute [rw] code
3713
+ # @return [String]
3714
+ #
3715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InternalException AWS API Documentation
3716
+ #
3717
+ class InternalException < Struct.new(
3718
+ :message,
3719
+ :code)
3720
+ include Aws::Structure
3721
+ end
3722
+
3723
+ # AWS Security Hub is not enabled for the account used to make this
3724
+ # request.
3725
+ #
3726
+ # @!attribute [rw] message
3727
+ # @return [String]
3728
+ #
3729
+ # @!attribute [rw] code
3730
+ # @return [String]
3731
+ #
3732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InvalidAccessException AWS API Documentation
3733
+ #
3734
+ class InvalidAccessException < Struct.new(
3735
+ :message,
3736
+ :code)
3737
+ include Aws::Structure
3738
+ end
3739
+
3740
+ # The request was rejected because an invalid or out-of-range value was
3741
+ # supplied for an input parameter.
3742
+ #
3743
+ # @!attribute [rw] message
3744
+ # @return [String]
3745
+ #
3746
+ # @!attribute [rw] code
3747
+ # @return [String]
3748
+ #
3749
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InvalidInputException AWS API Documentation
3750
+ #
3751
+ class InvalidInputException < Struct.new(
3752
+ :message,
3753
+ :code)
3754
+ include Aws::Structure
3755
+ end
3756
+
3690
3757
  # The details of an invitation sent to an AWS account by the Security
3691
3758
  # Hub master account.
3692
3759
  #
@@ -3789,6 +3856,24 @@ module Aws::SecurityHub
3789
3856
  include Aws::Structure
3790
3857
  end
3791
3858
 
3859
+ # The request was rejected because it attempted to create resources
3860
+ # beyond the current AWS account limits. The error code describes the
3861
+ # limit exceeded.
3862
+ #
3863
+ # @!attribute [rw] message
3864
+ # @return [String]
3865
+ #
3866
+ # @!attribute [rw] code
3867
+ # @return [String]
3868
+ #
3869
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/LimitExceededException AWS API Documentation
3870
+ #
3871
+ class LimitExceededException < Struct.new(
3872
+ :message,
3873
+ :code)
3874
+ include Aws::Structure
3875
+ end
3876
+
3792
3877
  # @note When making an API call, you may pass ListEnabledProductsForImportRequest
3793
3878
  # data as a hash:
3794
3879
  #
@@ -4436,6 +4521,23 @@ module Aws::SecurityHub
4436
4521
  include Aws::Structure
4437
4522
  end
4438
4523
 
4524
+ # The resource specified in the request conflicts with an existing
4525
+ # resource.
4526
+ #
4527
+ # @!attribute [rw] message
4528
+ # @return [String]
4529
+ #
4530
+ # @!attribute [rw] code
4531
+ # @return [String]
4532
+ #
4533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ResourceConflictException AWS API Documentation
4534
+ #
4535
+ class ResourceConflictException < Struct.new(
4536
+ :message,
4537
+ :code)
4538
+ include Aws::Structure
4539
+ end
4540
+
4439
4541
  # Provides additional details about the resource.
4440
4542
  #
4441
4543
  # @note When making an API call, you may pass ResourceDetails
@@ -4505,6 +4607,23 @@ module Aws::SecurityHub
4505
4607
  include Aws::Structure
4506
4608
  end
4507
4609
 
4610
+ # The request was rejected because the specified resource cannot be
4611
+ # found.
4612
+ #
4613
+ # @!attribute [rw] message
4614
+ # @return [String]
4615
+ #
4616
+ # @!attribute [rw] code
4617
+ # @return [String]
4618
+ #
4619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ResourceNotFoundException AWS API Documentation
4620
+ #
4621
+ class ResourceNotFoundException < Struct.new(
4622
+ :message,
4623
+ :code)
4624
+ include Aws::Structure
4625
+ end
4626
+
4508
4627
  # The account details that could not be processed.
4509
4628
  #
4510
4629
  # @!attribute [rw] account_id
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-securityhub/customizations'
42
42
  # @service
43
43
  module Aws::SecurityHub
44
44
 
45
- GEM_VERSION = '1.6.0'
45
+ GEM_VERSION = '1.7.0'
46
46
 
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-securityhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.52.1
22
+ version: 3.53.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.52.1
32
+ version: 3.53.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement