aws-sdk-securityhub 1.96.0 → 1.98.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -726,6 +796,34 @@ module Aws::SecurityHub
726
796
  end
727
797
  end
728
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
+
729
827
  class ListEnabledProductsForImport
730
828
  def self.build(context)
731
829
  unless context.config.regional_endpoint
@@ -838,6 +936,34 @@ module Aws::SecurityHub
838
936
  end
839
937
  end
840
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
+
841
967
  class TagResource
842
968
  def self.build(context)
843
969
  unless context.config.regional_endpoint
@@ -880,6 +1006,20 @@ module Aws::SecurityHub
880
1006
  end
881
1007
  end
882
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
+
883
1023
  class UpdateFindingAggregator
884
1024
  def self.build(context)
885
1025
  unless context.config.regional_endpoint
@@ -25,16 +25,17 @@ module Aws::SecurityHub
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -68,6 +69,8 @@ module Aws::SecurityHub
68
69
  Aws::SecurityHub::Endpoints::BatchEnableStandards.build(context)
69
70
  when :batch_get_automation_rules
70
71
  Aws::SecurityHub::Endpoints::BatchGetAutomationRules.build(context)
72
+ when :batch_get_configuration_policy_associations
73
+ Aws::SecurityHub::Endpoints::BatchGetConfigurationPolicyAssociations.build(context)
71
74
  when :batch_get_security_controls
72
75
  Aws::SecurityHub::Endpoints::BatchGetSecurityControls.build(context)
73
76
  when :batch_get_standards_control_associations
@@ -84,6 +87,8 @@ module Aws::SecurityHub
84
87
  Aws::SecurityHub::Endpoints::CreateActionTarget.build(context)
85
88
  when :create_automation_rule
86
89
  Aws::SecurityHub::Endpoints::CreateAutomationRule.build(context)
90
+ when :create_configuration_policy
91
+ Aws::SecurityHub::Endpoints::CreateConfigurationPolicy.build(context)
87
92
  when :create_finding_aggregator
88
93
  Aws::SecurityHub::Endpoints::CreateFindingAggregator.build(context)
89
94
  when :create_insight
@@ -94,6 +99,8 @@ module Aws::SecurityHub
94
99
  Aws::SecurityHub::Endpoints::DeclineInvitations.build(context)
95
100
  when :delete_action_target
96
101
  Aws::SecurityHub::Endpoints::DeleteActionTarget.build(context)
102
+ when :delete_configuration_policy
103
+ Aws::SecurityHub::Endpoints::DeleteConfigurationPolicy.build(context)
97
104
  when :delete_finding_aggregator
98
105
  Aws::SecurityHub::Endpoints::DeleteFindingAggregator.build(context)
99
106
  when :delete_insight
@@ -134,6 +141,10 @@ module Aws::SecurityHub
134
141
  Aws::SecurityHub::Endpoints::EnableSecurityHub.build(context)
135
142
  when :get_administrator_account
136
143
  Aws::SecurityHub::Endpoints::GetAdministratorAccount.build(context)
144
+ when :get_configuration_policy
145
+ Aws::SecurityHub::Endpoints::GetConfigurationPolicy.build(context)
146
+ when :get_configuration_policy_association
147
+ Aws::SecurityHub::Endpoints::GetConfigurationPolicyAssociation.build(context)
137
148
  when :get_enabled_standards
138
149
  Aws::SecurityHub::Endpoints::GetEnabledStandards.build(context)
139
150
  when :get_finding_aggregator
@@ -158,6 +169,10 @@ module Aws::SecurityHub
158
169
  Aws::SecurityHub::Endpoints::InviteMembers.build(context)
159
170
  when :list_automation_rules
160
171
  Aws::SecurityHub::Endpoints::ListAutomationRules.build(context)
172
+ when :list_configuration_policies
173
+ Aws::SecurityHub::Endpoints::ListConfigurationPolicies.build(context)
174
+ when :list_configuration_policy_associations
175
+ Aws::SecurityHub::Endpoints::ListConfigurationPolicyAssociations.build(context)
161
176
  when :list_enabled_products_for_import
162
177
  Aws::SecurityHub::Endpoints::ListEnabledProductsForImport.build(context)
163
178
  when :list_finding_aggregators
@@ -174,12 +189,18 @@ module Aws::SecurityHub
174
189
  Aws::SecurityHub::Endpoints::ListStandardsControlAssociations.build(context)
175
190
  when :list_tags_for_resource
176
191
  Aws::SecurityHub::Endpoints::ListTagsForResource.build(context)
192
+ when :start_configuration_policy_association
193
+ Aws::SecurityHub::Endpoints::StartConfigurationPolicyAssociation.build(context)
194
+ when :start_configuration_policy_disassociation
195
+ Aws::SecurityHub::Endpoints::StartConfigurationPolicyDisassociation.build(context)
177
196
  when :tag_resource
178
197
  Aws::SecurityHub::Endpoints::TagResource.build(context)
179
198
  when :untag_resource
180
199
  Aws::SecurityHub::Endpoints::UntagResource.build(context)
181
200
  when :update_action_target
182
201
  Aws::SecurityHub::Endpoints::UpdateActionTarget.build(context)
202
+ when :update_configuration_policy
203
+ Aws::SecurityHub::Endpoints::UpdateConfigurationPolicy.build(context)
183
204
  when :update_finding_aggregator
184
205
  Aws::SecurityHub::Endpoints::UpdateFindingAggregator.build(context)
185
206
  when :update_findings