aws-sdk-securityhub 1.95.0 → 1.97.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.
@@ -32,7 +32,7 @@ module Aws::SecurityHub
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://securityhub-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -96,6 +96,20 @@ module Aws::SecurityHub
96
96
  end
97
97
  end
98
98
 
99
+ class BatchGetConfigurationPolicyAssociations
100
+ def self.build(context)
101
+ unless context.config.regional_endpoint
102
+ endpoint = context.config.endpoint.to_s
103
+ end
104
+ Aws::SecurityHub::EndpointParameters.new(
105
+ region: context.config.region,
106
+ use_dual_stack: context.config.use_dualstack_endpoint,
107
+ use_fips: context.config.use_fips_endpoint,
108
+ endpoint: endpoint,
109
+ )
110
+ end
111
+ end
112
+
99
113
  class BatchGetSecurityControls
100
114
  def self.build(context)
101
115
  unless context.config.regional_endpoint
@@ -208,6 +222,20 @@ module Aws::SecurityHub
208
222
  end
209
223
  end
210
224
 
225
+ class CreateConfigurationPolicy
226
+ def self.build(context)
227
+ unless context.config.regional_endpoint
228
+ endpoint = context.config.endpoint.to_s
229
+ end
230
+ Aws::SecurityHub::EndpointParameters.new(
231
+ region: context.config.region,
232
+ use_dual_stack: context.config.use_dualstack_endpoint,
233
+ use_fips: context.config.use_fips_endpoint,
234
+ endpoint: endpoint,
235
+ )
236
+ end
237
+ end
238
+
211
239
  class CreateFindingAggregator
212
240
  def self.build(context)
213
241
  unless context.config.regional_endpoint
@@ -278,6 +306,20 @@ module Aws::SecurityHub
278
306
  end
279
307
  end
280
308
 
309
+ class DeleteConfigurationPolicy
310
+ def self.build(context)
311
+ unless context.config.regional_endpoint
312
+ endpoint = context.config.endpoint.to_s
313
+ end
314
+ Aws::SecurityHub::EndpointParameters.new(
315
+ region: context.config.region,
316
+ use_dual_stack: context.config.use_dualstack_endpoint,
317
+ use_fips: context.config.use_fips_endpoint,
318
+ endpoint: endpoint,
319
+ )
320
+ end
321
+ end
322
+
281
323
  class DeleteFindingAggregator
282
324
  def self.build(context)
283
325
  unless context.config.regional_endpoint
@@ -558,6 +600,34 @@ module Aws::SecurityHub
558
600
  end
559
601
  end
560
602
 
603
+ class GetConfigurationPolicy
604
+ def self.build(context)
605
+ unless context.config.regional_endpoint
606
+ endpoint = context.config.endpoint.to_s
607
+ end
608
+ Aws::SecurityHub::EndpointParameters.new(
609
+ region: context.config.region,
610
+ use_dual_stack: context.config.use_dualstack_endpoint,
611
+ use_fips: context.config.use_fips_endpoint,
612
+ endpoint: endpoint,
613
+ )
614
+ end
615
+ end
616
+
617
+ class GetConfigurationPolicyAssociation
618
+ def self.build(context)
619
+ unless context.config.regional_endpoint
620
+ endpoint = context.config.endpoint.to_s
621
+ end
622
+ Aws::SecurityHub::EndpointParameters.new(
623
+ region: context.config.region,
624
+ use_dual_stack: context.config.use_dualstack_endpoint,
625
+ use_fips: context.config.use_fips_endpoint,
626
+ endpoint: endpoint,
627
+ )
628
+ end
629
+ end
630
+
561
631
  class GetEnabledStandards
562
632
  def self.build(context)
563
633
  unless context.config.regional_endpoint
@@ -684,6 +754,20 @@ module Aws::SecurityHub
684
754
  end
685
755
  end
686
756
 
757
+ class GetSecurityControlDefinition
758
+ def self.build(context)
759
+ unless context.config.regional_endpoint
760
+ endpoint = context.config.endpoint.to_s
761
+ end
762
+ Aws::SecurityHub::EndpointParameters.new(
763
+ region: context.config.region,
764
+ use_dual_stack: context.config.use_dualstack_endpoint,
765
+ use_fips: context.config.use_fips_endpoint,
766
+ endpoint: endpoint,
767
+ )
768
+ end
769
+ end
770
+
687
771
  class InviteMembers
688
772
  def self.build(context)
689
773
  unless context.config.regional_endpoint
@@ -712,6 +796,34 @@ module Aws::SecurityHub
712
796
  end
713
797
  end
714
798
 
799
+ class ListConfigurationPolicies
800
+ def self.build(context)
801
+ unless context.config.regional_endpoint
802
+ endpoint = context.config.endpoint.to_s
803
+ end
804
+ Aws::SecurityHub::EndpointParameters.new(
805
+ region: context.config.region,
806
+ use_dual_stack: context.config.use_dualstack_endpoint,
807
+ use_fips: context.config.use_fips_endpoint,
808
+ endpoint: endpoint,
809
+ )
810
+ end
811
+ end
812
+
813
+ class ListConfigurationPolicyAssociations
814
+ def self.build(context)
815
+ unless context.config.regional_endpoint
816
+ endpoint = context.config.endpoint.to_s
817
+ end
818
+ Aws::SecurityHub::EndpointParameters.new(
819
+ region: context.config.region,
820
+ use_dual_stack: context.config.use_dualstack_endpoint,
821
+ use_fips: context.config.use_fips_endpoint,
822
+ endpoint: endpoint,
823
+ )
824
+ end
825
+ end
826
+
715
827
  class ListEnabledProductsForImport
716
828
  def self.build(context)
717
829
  unless context.config.regional_endpoint
@@ -824,6 +936,34 @@ module Aws::SecurityHub
824
936
  end
825
937
  end
826
938
 
939
+ class StartConfigurationPolicyAssociation
940
+ def self.build(context)
941
+ unless context.config.regional_endpoint
942
+ endpoint = context.config.endpoint.to_s
943
+ end
944
+ Aws::SecurityHub::EndpointParameters.new(
945
+ region: context.config.region,
946
+ use_dual_stack: context.config.use_dualstack_endpoint,
947
+ use_fips: context.config.use_fips_endpoint,
948
+ endpoint: endpoint,
949
+ )
950
+ end
951
+ end
952
+
953
+ class StartConfigurationPolicyDisassociation
954
+ def self.build(context)
955
+ unless context.config.regional_endpoint
956
+ endpoint = context.config.endpoint.to_s
957
+ end
958
+ Aws::SecurityHub::EndpointParameters.new(
959
+ region: context.config.region,
960
+ use_dual_stack: context.config.use_dualstack_endpoint,
961
+ use_fips: context.config.use_fips_endpoint,
962
+ endpoint: endpoint,
963
+ )
964
+ end
965
+ end
966
+
827
967
  class TagResource
828
968
  def self.build(context)
829
969
  unless context.config.regional_endpoint
@@ -866,6 +1006,20 @@ module Aws::SecurityHub
866
1006
  end
867
1007
  end
868
1008
 
1009
+ class UpdateConfigurationPolicy
1010
+ def self.build(context)
1011
+ unless context.config.regional_endpoint
1012
+ endpoint = context.config.endpoint.to_s
1013
+ end
1014
+ Aws::SecurityHub::EndpointParameters.new(
1015
+ region: context.config.region,
1016
+ use_dual_stack: context.config.use_dualstack_endpoint,
1017
+ use_fips: context.config.use_fips_endpoint,
1018
+ endpoint: endpoint,
1019
+ )
1020
+ end
1021
+ end
1022
+
869
1023
  class UpdateFindingAggregator
870
1024
  def self.build(context)
871
1025
  unless context.config.regional_endpoint
@@ -922,6 +1076,20 @@ module Aws::SecurityHub
922
1076
  end
923
1077
  end
924
1078
 
1079
+ class UpdateSecurityControl
1080
+ def self.build(context)
1081
+ unless context.config.regional_endpoint
1082
+ endpoint = context.config.endpoint.to_s
1083
+ end
1084
+ Aws::SecurityHub::EndpointParameters.new(
1085
+ region: context.config.region,
1086
+ use_dual_stack: context.config.use_dualstack_endpoint,
1087
+ use_fips: context.config.use_fips_endpoint,
1088
+ endpoint: endpoint,
1089
+ )
1090
+ end
1091
+ end
1092
+
925
1093
  class UpdateSecurityHubConfiguration
926
1094
  def self.build(context)
927
1095
  unless context.config.regional_endpoint
@@ -33,6 +33,7 @@ module Aws::SecurityHub
33
33
  # * {InvalidInputException}
34
34
  # * {LimitExceededException}
35
35
  # * {ResourceConflictException}
36
+ # * {ResourceInUseException}
36
37
  # * {ResourceNotFoundException}
37
38
  #
38
39
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -161,6 +162,26 @@ module Aws::SecurityHub
161
162
  end
162
163
  end
163
164
 
165
+ class ResourceInUseException < ServiceError
166
+
167
+ # @param [Seahorse::Client::RequestContext] context
168
+ # @param [String] message
169
+ # @param [Aws::SecurityHub::Types::ResourceInUseException] data
170
+ def initialize(context, message, data = Aws::EmptyStructure.new)
171
+ super(context, message, data)
172
+ end
173
+
174
+ # @return [String]
175
+ def message
176
+ @message || @data[:message]
177
+ end
178
+
179
+ # @return [String]
180
+ def code
181
+ @code || @data[:code]
182
+ end
183
+ end
184
+
164
185
  class ResourceNotFoundException < ServiceError
165
186
 
166
187
  # @param [Seahorse::Client::RequestContext] context
@@ -68,6 +68,8 @@ module Aws::SecurityHub
68
68
  Aws::SecurityHub::Endpoints::BatchEnableStandards.build(context)
69
69
  when :batch_get_automation_rules
70
70
  Aws::SecurityHub::Endpoints::BatchGetAutomationRules.build(context)
71
+ when :batch_get_configuration_policy_associations
72
+ Aws::SecurityHub::Endpoints::BatchGetConfigurationPolicyAssociations.build(context)
71
73
  when :batch_get_security_controls
72
74
  Aws::SecurityHub::Endpoints::BatchGetSecurityControls.build(context)
73
75
  when :batch_get_standards_control_associations
@@ -84,6 +86,8 @@ module Aws::SecurityHub
84
86
  Aws::SecurityHub::Endpoints::CreateActionTarget.build(context)
85
87
  when :create_automation_rule
86
88
  Aws::SecurityHub::Endpoints::CreateAutomationRule.build(context)
89
+ when :create_configuration_policy
90
+ Aws::SecurityHub::Endpoints::CreateConfigurationPolicy.build(context)
87
91
  when :create_finding_aggregator
88
92
  Aws::SecurityHub::Endpoints::CreateFindingAggregator.build(context)
89
93
  when :create_insight
@@ -94,6 +98,8 @@ module Aws::SecurityHub
94
98
  Aws::SecurityHub::Endpoints::DeclineInvitations.build(context)
95
99
  when :delete_action_target
96
100
  Aws::SecurityHub::Endpoints::DeleteActionTarget.build(context)
101
+ when :delete_configuration_policy
102
+ Aws::SecurityHub::Endpoints::DeleteConfigurationPolicy.build(context)
97
103
  when :delete_finding_aggregator
98
104
  Aws::SecurityHub::Endpoints::DeleteFindingAggregator.build(context)
99
105
  when :delete_insight
@@ -134,6 +140,10 @@ module Aws::SecurityHub
134
140
  Aws::SecurityHub::Endpoints::EnableSecurityHub.build(context)
135
141
  when :get_administrator_account
136
142
  Aws::SecurityHub::Endpoints::GetAdministratorAccount.build(context)
143
+ when :get_configuration_policy
144
+ Aws::SecurityHub::Endpoints::GetConfigurationPolicy.build(context)
145
+ when :get_configuration_policy_association
146
+ Aws::SecurityHub::Endpoints::GetConfigurationPolicyAssociation.build(context)
137
147
  when :get_enabled_standards
138
148
  Aws::SecurityHub::Endpoints::GetEnabledStandards.build(context)
139
149
  when :get_finding_aggregator
@@ -152,10 +162,16 @@ module Aws::SecurityHub
152
162
  Aws::SecurityHub::Endpoints::GetMasterAccount.build(context)
153
163
  when :get_members
154
164
  Aws::SecurityHub::Endpoints::GetMembers.build(context)
165
+ when :get_security_control_definition
166
+ Aws::SecurityHub::Endpoints::GetSecurityControlDefinition.build(context)
155
167
  when :invite_members
156
168
  Aws::SecurityHub::Endpoints::InviteMembers.build(context)
157
169
  when :list_automation_rules
158
170
  Aws::SecurityHub::Endpoints::ListAutomationRules.build(context)
171
+ when :list_configuration_policies
172
+ Aws::SecurityHub::Endpoints::ListConfigurationPolicies.build(context)
173
+ when :list_configuration_policy_associations
174
+ Aws::SecurityHub::Endpoints::ListConfigurationPolicyAssociations.build(context)
159
175
  when :list_enabled_products_for_import
160
176
  Aws::SecurityHub::Endpoints::ListEnabledProductsForImport.build(context)
161
177
  when :list_finding_aggregators
@@ -172,12 +188,18 @@ module Aws::SecurityHub
172
188
  Aws::SecurityHub::Endpoints::ListStandardsControlAssociations.build(context)
173
189
  when :list_tags_for_resource
174
190
  Aws::SecurityHub::Endpoints::ListTagsForResource.build(context)
191
+ when :start_configuration_policy_association
192
+ Aws::SecurityHub::Endpoints::StartConfigurationPolicyAssociation.build(context)
193
+ when :start_configuration_policy_disassociation
194
+ Aws::SecurityHub::Endpoints::StartConfigurationPolicyDisassociation.build(context)
175
195
  when :tag_resource
176
196
  Aws::SecurityHub::Endpoints::TagResource.build(context)
177
197
  when :untag_resource
178
198
  Aws::SecurityHub::Endpoints::UntagResource.build(context)
179
199
  when :update_action_target
180
200
  Aws::SecurityHub::Endpoints::UpdateActionTarget.build(context)
201
+ when :update_configuration_policy
202
+ Aws::SecurityHub::Endpoints::UpdateConfigurationPolicy.build(context)
181
203
  when :update_finding_aggregator
182
204
  Aws::SecurityHub::Endpoints::UpdateFindingAggregator.build(context)
183
205
  when :update_findings
@@ -186,6 +208,8 @@ module Aws::SecurityHub
186
208
  Aws::SecurityHub::Endpoints::UpdateInsight.build(context)
187
209
  when :update_organization_configuration
188
210
  Aws::SecurityHub::Endpoints::UpdateOrganizationConfiguration.build(context)
211
+ when :update_security_control
212
+ Aws::SecurityHub::Endpoints::UpdateSecurityControl.build(context)
189
213
  when :update_security_hub_configuration
190
214
  Aws::SecurityHub::Endpoints::UpdateSecurityHubConfiguration.build(context)
191
215
  when :update_standards_control