aws-sdk-macie2 1.40.0 → 1.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-macie2/client.rb +1126 -129
- data/lib/aws-sdk-macie2/client_api.rb +727 -5
- data/lib/aws-sdk-macie2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-macie2/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-macie2/endpoints.rb +1122 -0
- data/lib/aws-sdk-macie2/errors.rb +16 -0
- data/lib/aws-sdk-macie2/plugins/endpoints.rb +226 -0
- data/lib/aws-sdk-macie2/types.rb +1661 -1554
- data/lib/aws-sdk-macie2/waiters.rb +121 -0
- data/lib/aws-sdk-macie2.rb +6 -1
- metadata +9 -4
@@ -33,6 +33,7 @@ module Aws::Macie2
|
|
33
33
|
# * {ResourceNotFoundException}
|
34
34
|
# * {ServiceQuotaExceededException}
|
35
35
|
# * {ThrottlingException}
|
36
|
+
# * {UnprocessableEntityException}
|
36
37
|
# * {ValidationException}
|
37
38
|
#
|
38
39
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -131,6 +132,21 @@ module Aws::Macie2
|
|
131
132
|
end
|
132
133
|
end
|
133
134
|
|
135
|
+
class UnprocessableEntityException < ServiceError
|
136
|
+
|
137
|
+
# @param [Seahorse::Client::RequestContext] context
|
138
|
+
# @param [String] message
|
139
|
+
# @param [Aws::Macie2::Types::UnprocessableEntityException] data
|
140
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
141
|
+
super(context, message, data)
|
142
|
+
end
|
143
|
+
|
144
|
+
# @return [String]
|
145
|
+
def message
|
146
|
+
@message || @data[:message]
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
134
150
|
class ValidationException < ServiceError
|
135
151
|
|
136
152
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -0,0 +1,226 @@
|
|
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::Macie2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::Macie2::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::Macie2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::Macie2::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_invitation
|
60
|
+
Aws::Macie2::Endpoints::AcceptInvitation.build(context)
|
61
|
+
when :batch_get_custom_data_identifiers
|
62
|
+
Aws::Macie2::Endpoints::BatchGetCustomDataIdentifiers.build(context)
|
63
|
+
when :create_allow_list
|
64
|
+
Aws::Macie2::Endpoints::CreateAllowList.build(context)
|
65
|
+
when :create_classification_job
|
66
|
+
Aws::Macie2::Endpoints::CreateClassificationJob.build(context)
|
67
|
+
when :create_custom_data_identifier
|
68
|
+
Aws::Macie2::Endpoints::CreateCustomDataIdentifier.build(context)
|
69
|
+
when :create_findings_filter
|
70
|
+
Aws::Macie2::Endpoints::CreateFindingsFilter.build(context)
|
71
|
+
when :create_invitations
|
72
|
+
Aws::Macie2::Endpoints::CreateInvitations.build(context)
|
73
|
+
when :create_member
|
74
|
+
Aws::Macie2::Endpoints::CreateMember.build(context)
|
75
|
+
when :create_sample_findings
|
76
|
+
Aws::Macie2::Endpoints::CreateSampleFindings.build(context)
|
77
|
+
when :decline_invitations
|
78
|
+
Aws::Macie2::Endpoints::DeclineInvitations.build(context)
|
79
|
+
when :delete_allow_list
|
80
|
+
Aws::Macie2::Endpoints::DeleteAllowList.build(context)
|
81
|
+
when :delete_custom_data_identifier
|
82
|
+
Aws::Macie2::Endpoints::DeleteCustomDataIdentifier.build(context)
|
83
|
+
when :delete_findings_filter
|
84
|
+
Aws::Macie2::Endpoints::DeleteFindingsFilter.build(context)
|
85
|
+
when :delete_invitations
|
86
|
+
Aws::Macie2::Endpoints::DeleteInvitations.build(context)
|
87
|
+
when :delete_member
|
88
|
+
Aws::Macie2::Endpoints::DeleteMember.build(context)
|
89
|
+
when :describe_buckets
|
90
|
+
Aws::Macie2::Endpoints::DescribeBuckets.build(context)
|
91
|
+
when :describe_classification_job
|
92
|
+
Aws::Macie2::Endpoints::DescribeClassificationJob.build(context)
|
93
|
+
when :describe_organization_configuration
|
94
|
+
Aws::Macie2::Endpoints::DescribeOrganizationConfiguration.build(context)
|
95
|
+
when :disable_macie
|
96
|
+
Aws::Macie2::Endpoints::DisableMacie.build(context)
|
97
|
+
when :disable_organization_admin_account
|
98
|
+
Aws::Macie2::Endpoints::DisableOrganizationAdminAccount.build(context)
|
99
|
+
when :disassociate_from_administrator_account
|
100
|
+
Aws::Macie2::Endpoints::DisassociateFromAdministratorAccount.build(context)
|
101
|
+
when :disassociate_from_master_account
|
102
|
+
Aws::Macie2::Endpoints::DisassociateFromMasterAccount.build(context)
|
103
|
+
when :disassociate_member
|
104
|
+
Aws::Macie2::Endpoints::DisassociateMember.build(context)
|
105
|
+
when :enable_macie
|
106
|
+
Aws::Macie2::Endpoints::EnableMacie.build(context)
|
107
|
+
when :enable_organization_admin_account
|
108
|
+
Aws::Macie2::Endpoints::EnableOrganizationAdminAccount.build(context)
|
109
|
+
when :get_administrator_account
|
110
|
+
Aws::Macie2::Endpoints::GetAdministratorAccount.build(context)
|
111
|
+
when :get_allow_list
|
112
|
+
Aws::Macie2::Endpoints::GetAllowList.build(context)
|
113
|
+
when :get_automated_discovery_configuration
|
114
|
+
Aws::Macie2::Endpoints::GetAutomatedDiscoveryConfiguration.build(context)
|
115
|
+
when :get_bucket_statistics
|
116
|
+
Aws::Macie2::Endpoints::GetBucketStatistics.build(context)
|
117
|
+
when :get_classification_export_configuration
|
118
|
+
Aws::Macie2::Endpoints::GetClassificationExportConfiguration.build(context)
|
119
|
+
when :get_classification_scope
|
120
|
+
Aws::Macie2::Endpoints::GetClassificationScope.build(context)
|
121
|
+
when :get_custom_data_identifier
|
122
|
+
Aws::Macie2::Endpoints::GetCustomDataIdentifier.build(context)
|
123
|
+
when :get_finding_statistics
|
124
|
+
Aws::Macie2::Endpoints::GetFindingStatistics.build(context)
|
125
|
+
when :get_findings
|
126
|
+
Aws::Macie2::Endpoints::GetFindings.build(context)
|
127
|
+
when :get_findings_filter
|
128
|
+
Aws::Macie2::Endpoints::GetFindingsFilter.build(context)
|
129
|
+
when :get_findings_publication_configuration
|
130
|
+
Aws::Macie2::Endpoints::GetFindingsPublicationConfiguration.build(context)
|
131
|
+
when :get_invitations_count
|
132
|
+
Aws::Macie2::Endpoints::GetInvitationsCount.build(context)
|
133
|
+
when :get_macie_session
|
134
|
+
Aws::Macie2::Endpoints::GetMacieSession.build(context)
|
135
|
+
when :get_master_account
|
136
|
+
Aws::Macie2::Endpoints::GetMasterAccount.build(context)
|
137
|
+
when :get_member
|
138
|
+
Aws::Macie2::Endpoints::GetMember.build(context)
|
139
|
+
when :get_resource_profile
|
140
|
+
Aws::Macie2::Endpoints::GetResourceProfile.build(context)
|
141
|
+
when :get_reveal_configuration
|
142
|
+
Aws::Macie2::Endpoints::GetRevealConfiguration.build(context)
|
143
|
+
when :get_sensitive_data_occurrences
|
144
|
+
Aws::Macie2::Endpoints::GetSensitiveDataOccurrences.build(context)
|
145
|
+
when :get_sensitive_data_occurrences_availability
|
146
|
+
Aws::Macie2::Endpoints::GetSensitiveDataOccurrencesAvailability.build(context)
|
147
|
+
when :get_sensitivity_inspection_template
|
148
|
+
Aws::Macie2::Endpoints::GetSensitivityInspectionTemplate.build(context)
|
149
|
+
when :get_usage_statistics
|
150
|
+
Aws::Macie2::Endpoints::GetUsageStatistics.build(context)
|
151
|
+
when :get_usage_totals
|
152
|
+
Aws::Macie2::Endpoints::GetUsageTotals.build(context)
|
153
|
+
when :list_allow_lists
|
154
|
+
Aws::Macie2::Endpoints::ListAllowLists.build(context)
|
155
|
+
when :list_classification_jobs
|
156
|
+
Aws::Macie2::Endpoints::ListClassificationJobs.build(context)
|
157
|
+
when :list_classification_scopes
|
158
|
+
Aws::Macie2::Endpoints::ListClassificationScopes.build(context)
|
159
|
+
when :list_custom_data_identifiers
|
160
|
+
Aws::Macie2::Endpoints::ListCustomDataIdentifiers.build(context)
|
161
|
+
when :list_findings
|
162
|
+
Aws::Macie2::Endpoints::ListFindings.build(context)
|
163
|
+
when :list_findings_filters
|
164
|
+
Aws::Macie2::Endpoints::ListFindingsFilters.build(context)
|
165
|
+
when :list_invitations
|
166
|
+
Aws::Macie2::Endpoints::ListInvitations.build(context)
|
167
|
+
when :list_managed_data_identifiers
|
168
|
+
Aws::Macie2::Endpoints::ListManagedDataIdentifiers.build(context)
|
169
|
+
when :list_members
|
170
|
+
Aws::Macie2::Endpoints::ListMembers.build(context)
|
171
|
+
when :list_organization_admin_accounts
|
172
|
+
Aws::Macie2::Endpoints::ListOrganizationAdminAccounts.build(context)
|
173
|
+
when :list_resource_profile_artifacts
|
174
|
+
Aws::Macie2::Endpoints::ListResourceProfileArtifacts.build(context)
|
175
|
+
when :list_resource_profile_detections
|
176
|
+
Aws::Macie2::Endpoints::ListResourceProfileDetections.build(context)
|
177
|
+
when :list_sensitivity_inspection_templates
|
178
|
+
Aws::Macie2::Endpoints::ListSensitivityInspectionTemplates.build(context)
|
179
|
+
when :list_tags_for_resource
|
180
|
+
Aws::Macie2::Endpoints::ListTagsForResource.build(context)
|
181
|
+
when :put_classification_export_configuration
|
182
|
+
Aws::Macie2::Endpoints::PutClassificationExportConfiguration.build(context)
|
183
|
+
when :put_findings_publication_configuration
|
184
|
+
Aws::Macie2::Endpoints::PutFindingsPublicationConfiguration.build(context)
|
185
|
+
when :search_resources
|
186
|
+
Aws::Macie2::Endpoints::SearchResources.build(context)
|
187
|
+
when :tag_resource
|
188
|
+
Aws::Macie2::Endpoints::TagResource.build(context)
|
189
|
+
when :test_custom_data_identifier
|
190
|
+
Aws::Macie2::Endpoints::TestCustomDataIdentifier.build(context)
|
191
|
+
when :untag_resource
|
192
|
+
Aws::Macie2::Endpoints::UntagResource.build(context)
|
193
|
+
when :update_allow_list
|
194
|
+
Aws::Macie2::Endpoints::UpdateAllowList.build(context)
|
195
|
+
when :update_automated_discovery_configuration
|
196
|
+
Aws::Macie2::Endpoints::UpdateAutomatedDiscoveryConfiguration.build(context)
|
197
|
+
when :update_classification_job
|
198
|
+
Aws::Macie2::Endpoints::UpdateClassificationJob.build(context)
|
199
|
+
when :update_classification_scope
|
200
|
+
Aws::Macie2::Endpoints::UpdateClassificationScope.build(context)
|
201
|
+
when :update_findings_filter
|
202
|
+
Aws::Macie2::Endpoints::UpdateFindingsFilter.build(context)
|
203
|
+
when :update_macie_session
|
204
|
+
Aws::Macie2::Endpoints::UpdateMacieSession.build(context)
|
205
|
+
when :update_member_session
|
206
|
+
Aws::Macie2::Endpoints::UpdateMemberSession.build(context)
|
207
|
+
when :update_organization_configuration
|
208
|
+
Aws::Macie2::Endpoints::UpdateOrganizationConfiguration.build(context)
|
209
|
+
when :update_resource_profile
|
210
|
+
Aws::Macie2::Endpoints::UpdateResourceProfile.build(context)
|
211
|
+
when :update_resource_profile_detections
|
212
|
+
Aws::Macie2::Endpoints::UpdateResourceProfileDetections.build(context)
|
213
|
+
when :update_reveal_configuration
|
214
|
+
Aws::Macie2::Endpoints::UpdateRevealConfiguration.build(context)
|
215
|
+
when :update_sensitivity_inspection_template
|
216
|
+
Aws::Macie2::Endpoints::UpdateSensitivityInspectionTemplate.build(context)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
def add_handlers(handlers, _config)
|
222
|
+
handlers.add(Handler, step: :build, priority: 75)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|