aws-sdk-securityhub 1.69.0 → 1.71.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securityhub/client.rb +24 -7
- data/lib/aws-sdk-securityhub/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-securityhub/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-securityhub/endpoints.rb +799 -0
- data/lib/aws-sdk-securityhub/plugins/endpoints.rb +180 -0
- data/lib/aws-sdk-securityhub/types.rb +8 -8
- data/lib/aws-sdk-securityhub.rb +5 -1
- metadata +8 -4
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Aws::SecurityHub
|
|
12
|
+
module Plugins
|
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
|
14
|
+
option(
|
|
15
|
+
:endpoint_provider,
|
|
16
|
+
doc_type: 'Aws::SecurityHub::EndpointProvider',
|
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
|
19
|
+
'where `parameters` is a Struct similar to '\
|
|
20
|
+
'`Aws::SecurityHub::EndpointParameters`'
|
|
21
|
+
) do |cfg|
|
|
22
|
+
Aws::SecurityHub::EndpointProvider.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# @api private
|
|
26
|
+
class Handler < Seahorse::Client::Handler
|
|
27
|
+
def call(context)
|
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
|
29
|
+
unless context[:discovered_endpoint]
|
|
30
|
+
params = parameters_for_operation(context)
|
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
|
32
|
+
|
|
33
|
+
context.http_request.endpoint = endpoint.url
|
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
context[:endpoint_params] = params
|
|
38
|
+
context[:auth_scheme] =
|
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
|
40
|
+
|
|
41
|
+
@handler.call(context)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
private
|
|
45
|
+
|
|
46
|
+
def apply_endpoint_headers(context, headers)
|
|
47
|
+
headers.each do |key, values|
|
|
48
|
+
value = values
|
|
49
|
+
.compact
|
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
|
51
|
+
.join(',')
|
|
52
|
+
|
|
53
|
+
context.http_request.headers[key] = value
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def parameters_for_operation(context)
|
|
58
|
+
case context.operation_name
|
|
59
|
+
when :accept_administrator_invitation
|
|
60
|
+
Aws::SecurityHub::Endpoints::AcceptAdministratorInvitation.build(context)
|
|
61
|
+
when :accept_invitation
|
|
62
|
+
Aws::SecurityHub::Endpoints::AcceptInvitation.build(context)
|
|
63
|
+
when :batch_disable_standards
|
|
64
|
+
Aws::SecurityHub::Endpoints::BatchDisableStandards.build(context)
|
|
65
|
+
when :batch_enable_standards
|
|
66
|
+
Aws::SecurityHub::Endpoints::BatchEnableStandards.build(context)
|
|
67
|
+
when :batch_import_findings
|
|
68
|
+
Aws::SecurityHub::Endpoints::BatchImportFindings.build(context)
|
|
69
|
+
when :batch_update_findings
|
|
70
|
+
Aws::SecurityHub::Endpoints::BatchUpdateFindings.build(context)
|
|
71
|
+
when :create_action_target
|
|
72
|
+
Aws::SecurityHub::Endpoints::CreateActionTarget.build(context)
|
|
73
|
+
when :create_finding_aggregator
|
|
74
|
+
Aws::SecurityHub::Endpoints::CreateFindingAggregator.build(context)
|
|
75
|
+
when :create_insight
|
|
76
|
+
Aws::SecurityHub::Endpoints::CreateInsight.build(context)
|
|
77
|
+
when :create_members
|
|
78
|
+
Aws::SecurityHub::Endpoints::CreateMembers.build(context)
|
|
79
|
+
when :decline_invitations
|
|
80
|
+
Aws::SecurityHub::Endpoints::DeclineInvitations.build(context)
|
|
81
|
+
when :delete_action_target
|
|
82
|
+
Aws::SecurityHub::Endpoints::DeleteActionTarget.build(context)
|
|
83
|
+
when :delete_finding_aggregator
|
|
84
|
+
Aws::SecurityHub::Endpoints::DeleteFindingAggregator.build(context)
|
|
85
|
+
when :delete_insight
|
|
86
|
+
Aws::SecurityHub::Endpoints::DeleteInsight.build(context)
|
|
87
|
+
when :delete_invitations
|
|
88
|
+
Aws::SecurityHub::Endpoints::DeleteInvitations.build(context)
|
|
89
|
+
when :delete_members
|
|
90
|
+
Aws::SecurityHub::Endpoints::DeleteMembers.build(context)
|
|
91
|
+
when :describe_action_targets
|
|
92
|
+
Aws::SecurityHub::Endpoints::DescribeActionTargets.build(context)
|
|
93
|
+
when :describe_hub
|
|
94
|
+
Aws::SecurityHub::Endpoints::DescribeHub.build(context)
|
|
95
|
+
when :describe_organization_configuration
|
|
96
|
+
Aws::SecurityHub::Endpoints::DescribeOrganizationConfiguration.build(context)
|
|
97
|
+
when :describe_products
|
|
98
|
+
Aws::SecurityHub::Endpoints::DescribeProducts.build(context)
|
|
99
|
+
when :describe_standards
|
|
100
|
+
Aws::SecurityHub::Endpoints::DescribeStandards.build(context)
|
|
101
|
+
when :describe_standards_controls
|
|
102
|
+
Aws::SecurityHub::Endpoints::DescribeStandardsControls.build(context)
|
|
103
|
+
when :disable_import_findings_for_product
|
|
104
|
+
Aws::SecurityHub::Endpoints::DisableImportFindingsForProduct.build(context)
|
|
105
|
+
when :disable_organization_admin_account
|
|
106
|
+
Aws::SecurityHub::Endpoints::DisableOrganizationAdminAccount.build(context)
|
|
107
|
+
when :disable_security_hub
|
|
108
|
+
Aws::SecurityHub::Endpoints::DisableSecurityHub.build(context)
|
|
109
|
+
when :disassociate_from_administrator_account
|
|
110
|
+
Aws::SecurityHub::Endpoints::DisassociateFromAdministratorAccount.build(context)
|
|
111
|
+
when :disassociate_from_master_account
|
|
112
|
+
Aws::SecurityHub::Endpoints::DisassociateFromMasterAccount.build(context)
|
|
113
|
+
when :disassociate_members
|
|
114
|
+
Aws::SecurityHub::Endpoints::DisassociateMembers.build(context)
|
|
115
|
+
when :enable_import_findings_for_product
|
|
116
|
+
Aws::SecurityHub::Endpoints::EnableImportFindingsForProduct.build(context)
|
|
117
|
+
when :enable_organization_admin_account
|
|
118
|
+
Aws::SecurityHub::Endpoints::EnableOrganizationAdminAccount.build(context)
|
|
119
|
+
when :enable_security_hub
|
|
120
|
+
Aws::SecurityHub::Endpoints::EnableSecurityHub.build(context)
|
|
121
|
+
when :get_administrator_account
|
|
122
|
+
Aws::SecurityHub::Endpoints::GetAdministratorAccount.build(context)
|
|
123
|
+
when :get_enabled_standards
|
|
124
|
+
Aws::SecurityHub::Endpoints::GetEnabledStandards.build(context)
|
|
125
|
+
when :get_finding_aggregator
|
|
126
|
+
Aws::SecurityHub::Endpoints::GetFindingAggregator.build(context)
|
|
127
|
+
when :get_findings
|
|
128
|
+
Aws::SecurityHub::Endpoints::GetFindings.build(context)
|
|
129
|
+
when :get_insight_results
|
|
130
|
+
Aws::SecurityHub::Endpoints::GetInsightResults.build(context)
|
|
131
|
+
when :get_insights
|
|
132
|
+
Aws::SecurityHub::Endpoints::GetInsights.build(context)
|
|
133
|
+
when :get_invitations_count
|
|
134
|
+
Aws::SecurityHub::Endpoints::GetInvitationsCount.build(context)
|
|
135
|
+
when :get_master_account
|
|
136
|
+
Aws::SecurityHub::Endpoints::GetMasterAccount.build(context)
|
|
137
|
+
when :get_members
|
|
138
|
+
Aws::SecurityHub::Endpoints::GetMembers.build(context)
|
|
139
|
+
when :invite_members
|
|
140
|
+
Aws::SecurityHub::Endpoints::InviteMembers.build(context)
|
|
141
|
+
when :list_enabled_products_for_import
|
|
142
|
+
Aws::SecurityHub::Endpoints::ListEnabledProductsForImport.build(context)
|
|
143
|
+
when :list_finding_aggregators
|
|
144
|
+
Aws::SecurityHub::Endpoints::ListFindingAggregators.build(context)
|
|
145
|
+
when :list_invitations
|
|
146
|
+
Aws::SecurityHub::Endpoints::ListInvitations.build(context)
|
|
147
|
+
when :list_members
|
|
148
|
+
Aws::SecurityHub::Endpoints::ListMembers.build(context)
|
|
149
|
+
when :list_organization_admin_accounts
|
|
150
|
+
Aws::SecurityHub::Endpoints::ListOrganizationAdminAccounts.build(context)
|
|
151
|
+
when :list_tags_for_resource
|
|
152
|
+
Aws::SecurityHub::Endpoints::ListTagsForResource.build(context)
|
|
153
|
+
when :tag_resource
|
|
154
|
+
Aws::SecurityHub::Endpoints::TagResource.build(context)
|
|
155
|
+
when :untag_resource
|
|
156
|
+
Aws::SecurityHub::Endpoints::UntagResource.build(context)
|
|
157
|
+
when :update_action_target
|
|
158
|
+
Aws::SecurityHub::Endpoints::UpdateActionTarget.build(context)
|
|
159
|
+
when :update_finding_aggregator
|
|
160
|
+
Aws::SecurityHub::Endpoints::UpdateFindingAggregator.build(context)
|
|
161
|
+
when :update_findings
|
|
162
|
+
Aws::SecurityHub::Endpoints::UpdateFindings.build(context)
|
|
163
|
+
when :update_insight
|
|
164
|
+
Aws::SecurityHub::Endpoints::UpdateInsight.build(context)
|
|
165
|
+
when :update_organization_configuration
|
|
166
|
+
Aws::SecurityHub::Endpoints::UpdateOrganizationConfiguration.build(context)
|
|
167
|
+
when :update_security_hub_configuration
|
|
168
|
+
Aws::SecurityHub::Endpoints::UpdateSecurityHubConfiguration.build(context)
|
|
169
|
+
when :update_standards_control
|
|
170
|
+
Aws::SecurityHub::Endpoints::UpdateStandardsControl.build(context)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def add_handlers(handlers, _config)
|
|
176
|
+
handlers.add(Handler, step: :build, priority: 75)
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
@@ -2375,8 +2375,8 @@ module Aws::SecurityHub
|
|
|
2375
2375
|
include Aws::Structure
|
|
2376
2376
|
end
|
|
2377
2377
|
|
|
2378
|
-
# An array of `CopyAction` objects, which contains
|
|
2379
|
-
# copy operation.
|
|
2378
|
+
# An array of `CopyAction` objects, each of which contains details of
|
|
2379
|
+
# the copy operation.
|
|
2380
2380
|
#
|
|
2381
2381
|
# @note When making an API call, you may pass AwsBackupBackupPlanRuleCopyActionsDetails
|
|
2382
2382
|
# data as a hash:
|
|
@@ -2483,8 +2483,8 @@ module Aws::SecurityHub
|
|
|
2483
2483
|
# @return [Integer]
|
|
2484
2484
|
#
|
|
2485
2485
|
# @!attribute [rw] copy_actions
|
|
2486
|
-
# An array of `CopyAction` objects, which contains
|
|
2487
|
-
# copy operation.
|
|
2486
|
+
# An array of `CopyAction` objects, each of which contains details of
|
|
2487
|
+
# the copy operation.
|
|
2488
2488
|
# @return [Array<Types::AwsBackupBackupPlanRuleCopyActionsDetails>]
|
|
2489
2489
|
#
|
|
2490
2490
|
# @!attribute [rw] lifecycle
|
|
@@ -31044,11 +31044,11 @@ module Aws::SecurityHub
|
|
|
31044
31044
|
#
|
|
31045
31045
|
# @!attribute [rw] regions
|
|
31046
31046
|
# If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED`, then this
|
|
31047
|
-
# is a
|
|
31047
|
+
# is a space-separated list of Regions that do not aggregate findings
|
|
31048
31048
|
# to the aggregation Region.
|
|
31049
31049
|
#
|
|
31050
31050
|
# If `RegionLinkingMode` is `SPECIFIED_REGIONS`, then this is a
|
|
31051
|
-
#
|
|
31051
|
+
# space-separated list of Regions that do aggregate findings to the
|
|
31052
31052
|
# aggregation Region.
|
|
31053
31053
|
# @return [Array<String>]
|
|
31054
31054
|
#
|
|
@@ -44683,11 +44683,11 @@ module Aws::SecurityHub
|
|
|
44683
44683
|
#
|
|
44684
44684
|
# @!attribute [rw] regions
|
|
44685
44685
|
# If `RegionLinkingMode` is `ALL_REGIONS_EXCEPT_SPECIFIED`, then this
|
|
44686
|
-
# is a
|
|
44686
|
+
# is a space-separated list of Regions that do not aggregate findings
|
|
44687
44687
|
# to the aggregation Region.
|
|
44688
44688
|
#
|
|
44689
44689
|
# If `RegionLinkingMode` is `SPECIFIED_REGIONS`, then this is a
|
|
44690
|
-
#
|
|
44690
|
+
# space-separated list of Regions that do aggregate findings to the
|
|
44691
44691
|
# aggregation Region.
|
|
44692
44692
|
# @return [Array<String>]
|
|
44693
44693
|
#
|
data/lib/aws-sdk-securityhub.rb
CHANGED
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
|
13
13
|
|
|
14
14
|
require_relative 'aws-sdk-securityhub/types'
|
|
15
15
|
require_relative 'aws-sdk-securityhub/client_api'
|
|
16
|
+
require_relative 'aws-sdk-securityhub/plugins/endpoints.rb'
|
|
16
17
|
require_relative 'aws-sdk-securityhub/client'
|
|
17
18
|
require_relative 'aws-sdk-securityhub/errors'
|
|
18
19
|
require_relative 'aws-sdk-securityhub/resource'
|
|
20
|
+
require_relative 'aws-sdk-securityhub/endpoint_parameters'
|
|
21
|
+
require_relative 'aws-sdk-securityhub/endpoint_provider'
|
|
22
|
+
require_relative 'aws-sdk-securityhub/endpoints'
|
|
19
23
|
require_relative 'aws-sdk-securityhub/customizations'
|
|
20
24
|
|
|
21
25
|
# This module provides support for AWS SecurityHub. This module is available in the
|
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-securityhub/customizations'
|
|
|
48
52
|
# @!group service
|
|
49
53
|
module Aws::SecurityHub
|
|
50
54
|
|
|
51
|
-
GEM_VERSION = '1.
|
|
55
|
+
GEM_VERSION = '1.71.0'
|
|
52
56
|
|
|
53
57
|
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.
|
|
4
|
+
version: 1.71.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: 2022-
|
|
11
|
+
date: 2022-11-11 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.
|
|
22
|
+
version: 3.165.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.
|
|
32
|
+
version: 3.165.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -59,7 +59,11 @@ files:
|
|
|
59
59
|
- lib/aws-sdk-securityhub/client.rb
|
|
60
60
|
- lib/aws-sdk-securityhub/client_api.rb
|
|
61
61
|
- lib/aws-sdk-securityhub/customizations.rb
|
|
62
|
+
- lib/aws-sdk-securityhub/endpoint_parameters.rb
|
|
63
|
+
- lib/aws-sdk-securityhub/endpoint_provider.rb
|
|
64
|
+
- lib/aws-sdk-securityhub/endpoints.rb
|
|
62
65
|
- lib/aws-sdk-securityhub/errors.rb
|
|
66
|
+
- lib/aws-sdk-securityhub/plugins/endpoints.rb
|
|
63
67
|
- lib/aws-sdk-securityhub/resource.rb
|
|
64
68
|
- lib/aws-sdk-securityhub/types.rb
|
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|