aws-sdk-detective 1.28.0 → 1.30.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-detective/client.rb +213 -12
- data/lib/aws-sdk-detective/client_api.rb +163 -4
- data/lib/aws-sdk-detective/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-detective/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-detective/endpoints.rb +351 -0
- data/lib/aws-sdk-detective/errors.rb +15 -0
- data/lib/aws-sdk-detective/plugins/endpoints.rb +116 -0
- data/lib/aws-sdk-detective/types.rb +294 -4
- data/lib/aws-sdk-detective.rb +5 -1
- metadata +8 -4
@@ -89,6 +89,89 @@ module Aws::Detective
|
|
89
89
|
include Aws::Structure
|
90
90
|
end
|
91
91
|
|
92
|
+
# @note When making an API call, you may pass BatchGetGraphMemberDatasourcesRequest
|
93
|
+
# data as a hash:
|
94
|
+
#
|
95
|
+
# {
|
96
|
+
# graph_arn: "GraphArn", # required
|
97
|
+
# account_ids: ["AccountId"], # required
|
98
|
+
# }
|
99
|
+
#
|
100
|
+
# @!attribute [rw] graph_arn
|
101
|
+
# The ARN of the behavior graph.
|
102
|
+
# @return [String]
|
103
|
+
#
|
104
|
+
# @!attribute [rw] account_ids
|
105
|
+
# The list of Amazon Web Services accounts to get data source package
|
106
|
+
# information on.
|
107
|
+
# @return [Array<String>]
|
108
|
+
#
|
109
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetGraphMemberDatasourcesRequest AWS API Documentation
|
110
|
+
#
|
111
|
+
class BatchGetGraphMemberDatasourcesRequest < Struct.new(
|
112
|
+
:graph_arn,
|
113
|
+
:account_ids)
|
114
|
+
SENSITIVE = []
|
115
|
+
include Aws::Structure
|
116
|
+
end
|
117
|
+
|
118
|
+
# @!attribute [rw] member_datasources
|
119
|
+
# Details on the status of data source packages for members of the
|
120
|
+
# behavior graph.
|
121
|
+
# @return [Array<Types::MembershipDatasources>]
|
122
|
+
#
|
123
|
+
# @!attribute [rw] unprocessed_accounts
|
124
|
+
# Accounts that data source package information could not be retrieved
|
125
|
+
# for.
|
126
|
+
# @return [Array<Types::UnprocessedAccount>]
|
127
|
+
#
|
128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetGraphMemberDatasourcesResponse AWS API Documentation
|
129
|
+
#
|
130
|
+
class BatchGetGraphMemberDatasourcesResponse < Struct.new(
|
131
|
+
:member_datasources,
|
132
|
+
:unprocessed_accounts)
|
133
|
+
SENSITIVE = []
|
134
|
+
include Aws::Structure
|
135
|
+
end
|
136
|
+
|
137
|
+
# @note When making an API call, you may pass BatchGetMembershipDatasourcesRequest
|
138
|
+
# data as a hash:
|
139
|
+
#
|
140
|
+
# {
|
141
|
+
# graph_arns: ["GraphArn"], # required
|
142
|
+
# }
|
143
|
+
#
|
144
|
+
# @!attribute [rw] graph_arns
|
145
|
+
# The ARN of the behavior graph.
|
146
|
+
# @return [Array<String>]
|
147
|
+
#
|
148
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetMembershipDatasourcesRequest AWS API Documentation
|
149
|
+
#
|
150
|
+
class BatchGetMembershipDatasourcesRequest < Struct.new(
|
151
|
+
:graph_arns)
|
152
|
+
SENSITIVE = []
|
153
|
+
include Aws::Structure
|
154
|
+
end
|
155
|
+
|
156
|
+
# @!attribute [rw] membership_datasources
|
157
|
+
# Details on the data source package history for an member of the
|
158
|
+
# behavior graph.
|
159
|
+
# @return [Array<Types::MembershipDatasources>]
|
160
|
+
#
|
161
|
+
# @!attribute [rw] unprocessed_graphs
|
162
|
+
# Graphs that data source package information could not be retrieved
|
163
|
+
# for.
|
164
|
+
# @return [Array<Types::UnprocessedGraph>]
|
165
|
+
#
|
166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetMembershipDatasourcesResponse AWS API Documentation
|
167
|
+
#
|
168
|
+
class BatchGetMembershipDatasourcesResponse < Struct.new(
|
169
|
+
:membership_datasources,
|
170
|
+
:unprocessed_graphs)
|
171
|
+
SENSITIVE = []
|
172
|
+
include Aws::Structure
|
173
|
+
end
|
174
|
+
|
92
175
|
# The request attempted an invalid action.
|
93
176
|
#
|
94
177
|
# @!attribute [rw] message
|
@@ -215,6 +298,50 @@ module Aws::Detective
|
|
215
298
|
include Aws::Structure
|
216
299
|
end
|
217
300
|
|
301
|
+
# Details about the data source packages ingested by your behavior
|
302
|
+
# graph.
|
303
|
+
#
|
304
|
+
# @!attribute [rw] datasource_package_ingest_state
|
305
|
+
# Details on which data source packages are ingested for a member
|
306
|
+
# account.
|
307
|
+
# @return [String]
|
308
|
+
#
|
309
|
+
# @!attribute [rw] last_ingest_state_change
|
310
|
+
# The date a data source package was enabled for this account
|
311
|
+
# @return [Hash<String,Types::TimestampForCollection>]
|
312
|
+
#
|
313
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DatasourcePackageIngestDetail AWS API Documentation
|
314
|
+
#
|
315
|
+
class DatasourcePackageIngestDetail < Struct.new(
|
316
|
+
:datasource_package_ingest_state,
|
317
|
+
:last_ingest_state_change)
|
318
|
+
SENSITIVE = []
|
319
|
+
include Aws::Structure
|
320
|
+
end
|
321
|
+
|
322
|
+
# Information on the usage of a data source package in the behavior
|
323
|
+
# graph.
|
324
|
+
#
|
325
|
+
# @!attribute [rw] volume_usage_in_bytes
|
326
|
+
# Total volume of data in bytes per day ingested for a given data
|
327
|
+
# source package.
|
328
|
+
# @return [Integer]
|
329
|
+
#
|
330
|
+
# @!attribute [rw] volume_usage_update_time
|
331
|
+
# The data and time when the member account data volume was last
|
332
|
+
# updated. The value is an ISO8601 formatted string. For example,
|
333
|
+
# `2021-08-18T16:35:56.284Z`.
|
334
|
+
# @return [Time]
|
335
|
+
#
|
336
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DatasourcePackageUsageInfo AWS API Documentation
|
337
|
+
#
|
338
|
+
class DatasourcePackageUsageInfo < Struct.new(
|
339
|
+
:volume_usage_in_bytes,
|
340
|
+
:volume_usage_update_time)
|
341
|
+
SENSITIVE = []
|
342
|
+
include Aws::Structure
|
343
|
+
end
|
344
|
+
|
218
345
|
# @note When making an API call, you may pass DeleteGraphRequest
|
219
346
|
# data as a hash:
|
220
347
|
#
|
@@ -445,6 +572,58 @@ module Aws::Detective
|
|
445
572
|
include Aws::Structure
|
446
573
|
end
|
447
574
|
|
575
|
+
# @note When making an API call, you may pass ListDatasourcePackagesRequest
|
576
|
+
# data as a hash:
|
577
|
+
#
|
578
|
+
# {
|
579
|
+
# graph_arn: "GraphArn", # required
|
580
|
+
# next_token: "PaginationToken",
|
581
|
+
# max_results: 1,
|
582
|
+
# }
|
583
|
+
#
|
584
|
+
# @!attribute [rw] graph_arn
|
585
|
+
# The ARN of the behavior graph.
|
586
|
+
# @return [String]
|
587
|
+
#
|
588
|
+
# @!attribute [rw] next_token
|
589
|
+
# For requests to get the next page of results, the pagination token
|
590
|
+
# that was returned with the previous set of results. The initial
|
591
|
+
# request does not include a pagination token.
|
592
|
+
# @return [String]
|
593
|
+
#
|
594
|
+
# @!attribute [rw] max_results
|
595
|
+
# The maximum number of results to return.
|
596
|
+
# @return [Integer]
|
597
|
+
#
|
598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListDatasourcePackagesRequest AWS API Documentation
|
599
|
+
#
|
600
|
+
class ListDatasourcePackagesRequest < Struct.new(
|
601
|
+
:graph_arn,
|
602
|
+
:next_token,
|
603
|
+
:max_results)
|
604
|
+
SENSITIVE = []
|
605
|
+
include Aws::Structure
|
606
|
+
end
|
607
|
+
|
608
|
+
# @!attribute [rw] datasource_packages
|
609
|
+
# Details on the data source packages active in the behavior graph.
|
610
|
+
# @return [Hash<String,Types::DatasourcePackageIngestDetail>]
|
611
|
+
#
|
612
|
+
# @!attribute [rw] next_token
|
613
|
+
# For requests to get the next page of results, the pagination token
|
614
|
+
# that was returned with the previous set of results. The initial
|
615
|
+
# request does not include a pagination token.
|
616
|
+
# @return [String]
|
617
|
+
#
|
618
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListDatasourcePackagesResponse AWS API Documentation
|
619
|
+
#
|
620
|
+
class ListDatasourcePackagesResponse < Struct.new(
|
621
|
+
:datasource_packages,
|
622
|
+
:next_token)
|
623
|
+
SENSITIVE = []
|
624
|
+
include Aws::Structure
|
625
|
+
end
|
626
|
+
|
448
627
|
# @note When making an API call, you may pass ListGraphsRequest
|
449
628
|
# data as a hash:
|
450
629
|
#
|
@@ -634,7 +813,7 @@ module Aws::Detective
|
|
634
813
|
end
|
635
814
|
|
636
815
|
# @!attribute [rw] administrators
|
637
|
-
# The list of
|
816
|
+
# The list of Detective administrator accounts.
|
638
817
|
# @return [Array<Types::Administrator>]
|
639
818
|
#
|
640
819
|
# @!attribute [rw] next_token
|
@@ -816,6 +995,15 @@ module Aws::Detective
|
|
816
995
|
# `INVITATION`.
|
817
996
|
# @return [String]
|
818
997
|
#
|
998
|
+
# @!attribute [rw] volume_usage_by_datasource_package
|
999
|
+
# Details on the volume of usage for each data source package in a
|
1000
|
+
# behavior graph.
|
1001
|
+
# @return [Hash<String,Types::DatasourcePackageUsageInfo>]
|
1002
|
+
#
|
1003
|
+
# @!attribute [rw] datasource_package_ingest_states
|
1004
|
+
# The state of a data source package for the behavior graph.
|
1005
|
+
# @return [Hash<String,String>]
|
1006
|
+
#
|
819
1007
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/MemberDetail AWS API Documentation
|
820
1008
|
#
|
821
1009
|
class MemberDetail < Struct.new(
|
@@ -832,7 +1020,33 @@ module Aws::Detective
|
|
832
1020
|
:volume_usage_updated_time,
|
833
1021
|
:percent_of_graph_utilization,
|
834
1022
|
:percent_of_graph_utilization_updated_time,
|
835
|
-
:invitation_type
|
1023
|
+
:invitation_type,
|
1024
|
+
:volume_usage_by_datasource_package,
|
1025
|
+
:datasource_package_ingest_states)
|
1026
|
+
SENSITIVE = []
|
1027
|
+
include Aws::Structure
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
# Details on data source packages for members of the behavior graph.
|
1031
|
+
#
|
1032
|
+
# @!attribute [rw] account_id
|
1033
|
+
# The account identifier of the Amazon Web Services account.
|
1034
|
+
# @return [String]
|
1035
|
+
#
|
1036
|
+
# @!attribute [rw] graph_arn
|
1037
|
+
# The ARN of the organization behavior graph.
|
1038
|
+
# @return [String]
|
1039
|
+
#
|
1040
|
+
# @!attribute [rw] datasource_package_ingest_history
|
1041
|
+
# Details on when a data source package was added to a behavior graph.
|
1042
|
+
# @return [Hash<String,Hash<String,Types::TimestampForCollection>>]
|
1043
|
+
#
|
1044
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/MembershipDatasources AWS API Documentation
|
1045
|
+
#
|
1046
|
+
class MembershipDatasources < Struct.new(
|
1047
|
+
:account_id,
|
1048
|
+
:graph_arn,
|
1049
|
+
:datasource_package_ingest_history)
|
836
1050
|
SENSITIVE = []
|
837
1051
|
include Aws::Structure
|
838
1052
|
end
|
@@ -888,10 +1102,15 @@ module Aws::Detective
|
|
888
1102
|
# @!attribute [rw] message
|
889
1103
|
# @return [String]
|
890
1104
|
#
|
1105
|
+
# @!attribute [rw] resources
|
1106
|
+
# The type of resource that has exceeded the service quota.
|
1107
|
+
# @return [Array<String>]
|
1108
|
+
#
|
891
1109
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ServiceQuotaExceededException AWS API Documentation
|
892
1110
|
#
|
893
1111
|
class ServiceQuotaExceededException < Struct.new(
|
894
|
-
:message
|
1112
|
+
:message,
|
1113
|
+
:resources)
|
895
1114
|
SENSITIVE = []
|
896
1115
|
include Aws::Structure
|
897
1116
|
end
|
@@ -958,6 +1177,22 @@ module Aws::Detective
|
|
958
1177
|
#
|
959
1178
|
class TagResourceResponse < Aws::EmptyStructure; end
|
960
1179
|
|
1180
|
+
# Details on when data collection began for a source package.
|
1181
|
+
#
|
1182
|
+
# @!attribute [rw] timestamp
|
1183
|
+
# The data and time when data collection began for a source package.
|
1184
|
+
# The value is an ISO8601 formatted string. For example,
|
1185
|
+
# `2021-08-18T16:35:56.284Z`.
|
1186
|
+
# @return [Time]
|
1187
|
+
#
|
1188
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/TimestampForCollection AWS API Documentation
|
1189
|
+
#
|
1190
|
+
class TimestampForCollection < Struct.new(
|
1191
|
+
:timestamp)
|
1192
|
+
SENSITIVE = []
|
1193
|
+
include Aws::Structure
|
1194
|
+
end
|
1195
|
+
|
961
1196
|
# The request cannot be completed because too many other requests are
|
962
1197
|
# occurring at the same time.
|
963
1198
|
#
|
@@ -993,6 +1228,26 @@ module Aws::Detective
|
|
993
1228
|
include Aws::Structure
|
994
1229
|
end
|
995
1230
|
|
1231
|
+
# Behavior graphs that could not be processed in the request.
|
1232
|
+
#
|
1233
|
+
# @!attribute [rw] graph_arn
|
1234
|
+
# The ARN of the organization behavior graph.
|
1235
|
+
# @return [String]
|
1236
|
+
#
|
1237
|
+
# @!attribute [rw] reason
|
1238
|
+
# The reason data source package information could not be processed
|
1239
|
+
# for a behavior graph.
|
1240
|
+
# @return [String]
|
1241
|
+
#
|
1242
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UnprocessedGraph AWS API Documentation
|
1243
|
+
#
|
1244
|
+
class UnprocessedGraph < Struct.new(
|
1245
|
+
:graph_arn,
|
1246
|
+
:reason)
|
1247
|
+
SENSITIVE = []
|
1248
|
+
include Aws::Structure
|
1249
|
+
end
|
1250
|
+
|
996
1251
|
# @note When making an API call, you may pass UntagResourceRequest
|
997
1252
|
# data as a hash:
|
998
1253
|
#
|
@@ -1023,6 +1278,31 @@ module Aws::Detective
|
|
1023
1278
|
#
|
1024
1279
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1025
1280
|
|
1281
|
+
# @note When making an API call, you may pass UpdateDatasourcePackagesRequest
|
1282
|
+
# data as a hash:
|
1283
|
+
#
|
1284
|
+
# {
|
1285
|
+
# graph_arn: "GraphArn", # required
|
1286
|
+
# datasource_packages: ["DETECTIVE_CORE"], # required, accepts DETECTIVE_CORE, EKS_AUDIT
|
1287
|
+
# }
|
1288
|
+
#
|
1289
|
+
# @!attribute [rw] graph_arn
|
1290
|
+
# The ARN of the behavior graph.
|
1291
|
+
# @return [String]
|
1292
|
+
#
|
1293
|
+
# @!attribute [rw] datasource_packages
|
1294
|
+
# The data source package start for the behavior graph.
|
1295
|
+
# @return [Array<String>]
|
1296
|
+
#
|
1297
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/UpdateDatasourcePackagesRequest AWS API Documentation
|
1298
|
+
#
|
1299
|
+
class UpdateDatasourcePackagesRequest < Struct.new(
|
1300
|
+
:graph_arn,
|
1301
|
+
:datasource_packages)
|
1302
|
+
SENSITIVE = []
|
1303
|
+
include Aws::Structure
|
1304
|
+
end
|
1305
|
+
|
1026
1306
|
# @note When making an API call, you may pass UpdateOrganizationConfigurationRequest
|
1027
1307
|
# data as a hash:
|
1028
1308
|
#
|
@@ -1054,10 +1334,20 @@ module Aws::Detective
|
|
1054
1334
|
# @!attribute [rw] message
|
1055
1335
|
# @return [String]
|
1056
1336
|
#
|
1337
|
+
# @!attribute [rw] error_code
|
1338
|
+
# The error code associated with the validation failure.
|
1339
|
+
# @return [String]
|
1340
|
+
#
|
1341
|
+
# @!attribute [rw] error_code_reason
|
1342
|
+
# An explanation of why validation failed.
|
1343
|
+
# @return [String]
|
1344
|
+
#
|
1057
1345
|
# @see http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ValidationException AWS API Documentation
|
1058
1346
|
#
|
1059
1347
|
class ValidationException < Struct.new(
|
1060
|
-
:message
|
1348
|
+
:message,
|
1349
|
+
:error_code,
|
1350
|
+
:error_code_reason)
|
1061
1351
|
SENSITIVE = []
|
1062
1352
|
include Aws::Structure
|
1063
1353
|
end
|
data/lib/aws-sdk-detective.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-detective/types'
|
15
15
|
require_relative 'aws-sdk-detective/client_api'
|
16
|
+
require_relative 'aws-sdk-detective/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-detective/client'
|
17
18
|
require_relative 'aws-sdk-detective/errors'
|
18
19
|
require_relative 'aws-sdk-detective/resource'
|
20
|
+
require_relative 'aws-sdk-detective/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-detective/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-detective/endpoints'
|
19
23
|
require_relative 'aws-sdk-detective/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Detective. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-detective/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::Detective
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.30.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-detective
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.30.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-10-25 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-detective/client.rb
|
60
60
|
- lib/aws-sdk-detective/client_api.rb
|
61
61
|
- lib/aws-sdk-detective/customizations.rb
|
62
|
+
- lib/aws-sdk-detective/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-detective/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-detective/endpoints.rb
|
62
65
|
- lib/aws-sdk-detective/errors.rb
|
66
|
+
- lib/aws-sdk-detective/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-detective/resource.rb
|
64
68
|
- lib/aws-sdk-detective/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|