aws-sdk-inspector 1.4.0 → 1.5.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/lib/aws-sdk-inspector.rb +1 -1
- data/lib/aws-sdk-inspector/client.rb +205 -1
- data/lib/aws-sdk-inspector/client_api.rb +142 -0
- data/lib/aws-sdk-inspector/types.rb +301 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eefbe3fc4c6ff7bdd44235b01ceb4202e0268bde
|
4
|
+
data.tar.gz: 98a4910249956cb69b6e39b5628b7a514469a6a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33176e3c02477bf4fe50b4e8bfa278bd772904d29985397b67fa8e7c088e2dc62c6ffe0f773e6ed69f6541140124fff00946eac54ba47787bb3bb0deff37a612
|
7
|
+
data.tar.gz: 9bfaaf28563e87e24ebf14f86c65a31962f32c04203dd8fa18ef984b6ca22c263981a6ee1818dd77fc4ad156bf559069cbcf81b8a47d85d29dded0a68ac50834
|
data/lib/aws-sdk-inspector.rb
CHANGED
@@ -115,6 +115,14 @@ module Aws::Inspector
|
|
115
115
|
# Used when loading credentials from the shared credentials file
|
116
116
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
117
|
#
|
118
|
+
# @option options [Float] :retry_base_delay (0.3)
|
119
|
+
# The base delay in seconds used by the default backoff function.
|
120
|
+
#
|
121
|
+
# @option options [Symbol] :retry_jitter (:none)
|
122
|
+
# A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
|
123
|
+
#
|
124
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
125
|
+
#
|
118
126
|
# @option options [Integer] :retry_limit (3)
|
119
127
|
# The maximum number of times to retry failed requests. Only
|
120
128
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
@@ -122,6 +130,9 @@ module Aws::Inspector
|
|
122
130
|
# checksum errors, networking errors, timeout errors and auth
|
123
131
|
# errors from expired credentials.
|
124
132
|
#
|
133
|
+
# @option options [Integer] :retry_max_delay (0)
|
134
|
+
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
|
135
|
+
#
|
125
136
|
# @option options [String] :secret_access_key
|
126
137
|
#
|
127
138
|
# @option options [String] :session_token
|
@@ -372,6 +383,38 @@ module Aws::Inspector
|
|
372
383
|
req.send_request(options)
|
373
384
|
end
|
374
385
|
|
386
|
+
# Starts the generation of an exclusions preview for the specified
|
387
|
+
# assessment template. The exclusions preview lists the potential
|
388
|
+
# exclusions (ExclusionPreview) that Inspector can detect before it runs
|
389
|
+
# the assessment.
|
390
|
+
#
|
391
|
+
# @option params [required, String] :assessment_template_arn
|
392
|
+
# The ARN that specifies the assessment template for which you want to
|
393
|
+
# create an exclusions preview.
|
394
|
+
#
|
395
|
+
# @return [Types::CreateExclusionsPreviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
396
|
+
#
|
397
|
+
# * {Types::CreateExclusionsPreviewResponse#preview_token #preview_token} => String
|
398
|
+
#
|
399
|
+
# @example Request syntax with placeholder values
|
400
|
+
#
|
401
|
+
# resp = client.create_exclusions_preview({
|
402
|
+
# assessment_template_arn: "Arn", # required
|
403
|
+
# })
|
404
|
+
#
|
405
|
+
# @example Response structure
|
406
|
+
#
|
407
|
+
# resp.preview_token #=> String
|
408
|
+
#
|
409
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateExclusionsPreview AWS API Documentation
|
410
|
+
#
|
411
|
+
# @overload create_exclusions_preview(params = {})
|
412
|
+
# @param [Hash] params ({})
|
413
|
+
def create_exclusions_preview(params = {}, options = {})
|
414
|
+
req = build_request(:create_exclusions_preview, params)
|
415
|
+
req.send_request(options)
|
416
|
+
end
|
417
|
+
|
375
418
|
# Creates a resource group using the specified set of tags (key and
|
376
419
|
# value pairs) that are used to select the EC2 instances to be included
|
377
420
|
# in an Amazon Inspector assessment target. The created resource group
|
@@ -850,6 +893,54 @@ module Aws::Inspector
|
|
850
893
|
req.send_request(options)
|
851
894
|
end
|
852
895
|
|
896
|
+
# Describes the exclusions that are specified by the exclusions' ARNs.
|
897
|
+
#
|
898
|
+
# @option params [required, Array<String>] :exclusion_arns
|
899
|
+
# The list of ARNs that specify the exclusions that you want to
|
900
|
+
# describe.
|
901
|
+
#
|
902
|
+
# @option params [String] :locale
|
903
|
+
# The locale into which you want to translate the exclusion's title,
|
904
|
+
# description, and recommendation.
|
905
|
+
#
|
906
|
+
# @return [Types::DescribeExclusionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
907
|
+
#
|
908
|
+
# * {Types::DescribeExclusionsResponse#exclusions #exclusions} => Hash<String,Types::Exclusion>
|
909
|
+
# * {Types::DescribeExclusionsResponse#failed_items #failed_items} => Hash<String,Types::FailedItemDetails>
|
910
|
+
#
|
911
|
+
# @example Request syntax with placeholder values
|
912
|
+
#
|
913
|
+
# resp = client.describe_exclusions({
|
914
|
+
# exclusion_arns: ["Arn"], # required
|
915
|
+
# locale: "EN_US", # accepts EN_US
|
916
|
+
# })
|
917
|
+
#
|
918
|
+
# @example Response structure
|
919
|
+
#
|
920
|
+
# resp.exclusions #=> Hash
|
921
|
+
# resp.exclusions["Arn"].arn #=> String
|
922
|
+
# resp.exclusions["Arn"].title #=> String
|
923
|
+
# resp.exclusions["Arn"].description #=> String
|
924
|
+
# resp.exclusions["Arn"].recommendation #=> String
|
925
|
+
# resp.exclusions["Arn"].scopes #=> Array
|
926
|
+
# resp.exclusions["Arn"].scopes[0].key #=> String, one of "INSTANCE_ID", "RULES_PACKAGE_ARN"
|
927
|
+
# resp.exclusions["Arn"].scopes[0].value #=> String
|
928
|
+
# resp.exclusions["Arn"].attributes #=> Array
|
929
|
+
# resp.exclusions["Arn"].attributes[0].key #=> String
|
930
|
+
# resp.exclusions["Arn"].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
931
|
+
# resp.failed_items #=> Hash
|
932
|
+
# resp.failed_items["Arn"].failure_code #=> String, one of "INVALID_ARN", "DUPLICATE_ARN", "ITEM_DOES_NOT_EXIST", "ACCESS_DENIED", "LIMIT_EXCEEDED", "INTERNAL_ERROR"
|
933
|
+
# resp.failed_items["Arn"].retryable #=> Boolean
|
934
|
+
#
|
935
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeExclusions AWS API Documentation
|
936
|
+
#
|
937
|
+
# @overload describe_exclusions(params = {})
|
938
|
+
# @param [Hash] params ({})
|
939
|
+
def describe_exclusions(params = {}, options = {})
|
940
|
+
req = build_request(:describe_exclusions, params)
|
941
|
+
req.send_request(options)
|
942
|
+
end
|
943
|
+
|
853
944
|
# Describes the findings that are specified by the ARNs of the findings.
|
854
945
|
#
|
855
946
|
# @option params [required, Array<String>] :finding_arns
|
@@ -1148,6 +1239,73 @@ module Aws::Inspector
|
|
1148
1239
|
req.send_request(options)
|
1149
1240
|
end
|
1150
1241
|
|
1242
|
+
# Retrieves the exclusions preview (a list of ExclusionPreview objects)
|
1243
|
+
# specified by the preview token. You can obtain the preview token by
|
1244
|
+
# running the CreateExclusionsPreview API.
|
1245
|
+
#
|
1246
|
+
# @option params [required, String] :assessment_template_arn
|
1247
|
+
# The ARN that specifies the assessment template for which the
|
1248
|
+
# exclusions preview was requested.
|
1249
|
+
#
|
1250
|
+
# @option params [required, String] :preview_token
|
1251
|
+
# The unique identifier associated of the exclusions preview.
|
1252
|
+
#
|
1253
|
+
# @option params [String] :next_token
|
1254
|
+
# You can use this parameter when paginating results. Set the value of
|
1255
|
+
# this parameter to null on your first call to the
|
1256
|
+
# GetExclusionsPreviewRequest action. Subsequent calls to the action
|
1257
|
+
# fill nextToken in the request with the value of nextToken from the
|
1258
|
+
# previous response to continue listing data.
|
1259
|
+
#
|
1260
|
+
# @option params [Integer] :max_results
|
1261
|
+
# You can use this parameter to indicate the maximum number of items you
|
1262
|
+
# want in the response. The default value is 100. The maximum value is
|
1263
|
+
# 500.
|
1264
|
+
#
|
1265
|
+
# @option params [String] :locale
|
1266
|
+
# The locale into which you want to translate the exclusion's title,
|
1267
|
+
# description, and recommendation.
|
1268
|
+
#
|
1269
|
+
# @return [Types::GetExclusionsPreviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1270
|
+
#
|
1271
|
+
# * {Types::GetExclusionsPreviewResponse#preview_status #preview_status} => String
|
1272
|
+
# * {Types::GetExclusionsPreviewResponse#exclusion_previews #exclusion_previews} => Array<Types::ExclusionPreview>
|
1273
|
+
# * {Types::GetExclusionsPreviewResponse#next_token #next_token} => String
|
1274
|
+
#
|
1275
|
+
# @example Request syntax with placeholder values
|
1276
|
+
#
|
1277
|
+
# resp = client.get_exclusions_preview({
|
1278
|
+
# assessment_template_arn: "Arn", # required
|
1279
|
+
# preview_token: "UUID", # required
|
1280
|
+
# next_token: "PaginationToken",
|
1281
|
+
# max_results: 1,
|
1282
|
+
# locale: "EN_US", # accepts EN_US
|
1283
|
+
# })
|
1284
|
+
#
|
1285
|
+
# @example Response structure
|
1286
|
+
#
|
1287
|
+
# resp.preview_status #=> String, one of "WORK_IN_PROGRESS", "COMPLETED"
|
1288
|
+
# resp.exclusion_previews #=> Array
|
1289
|
+
# resp.exclusion_previews[0].title #=> String
|
1290
|
+
# resp.exclusion_previews[0].description #=> String
|
1291
|
+
# resp.exclusion_previews[0].recommendation #=> String
|
1292
|
+
# resp.exclusion_previews[0].scopes #=> Array
|
1293
|
+
# resp.exclusion_previews[0].scopes[0].key #=> String, one of "INSTANCE_ID", "RULES_PACKAGE_ARN"
|
1294
|
+
# resp.exclusion_previews[0].scopes[0].value #=> String
|
1295
|
+
# resp.exclusion_previews[0].attributes #=> Array
|
1296
|
+
# resp.exclusion_previews[0].attributes[0].key #=> String
|
1297
|
+
# resp.exclusion_previews[0].attributes[0].value #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
1298
|
+
# resp.next_token #=> String
|
1299
|
+
#
|
1300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetExclusionsPreview AWS API Documentation
|
1301
|
+
#
|
1302
|
+
# @overload get_exclusions_preview(params = {})
|
1303
|
+
# @param [Hash] params ({})
|
1304
|
+
def get_exclusions_preview(params = {}, options = {})
|
1305
|
+
req = build_request(:get_exclusions_preview, params)
|
1306
|
+
req.send_request(options)
|
1307
|
+
end
|
1308
|
+
|
1151
1309
|
# Information about the data that is collected for the specified
|
1152
1310
|
# assessment run.
|
1153
1311
|
#
|
@@ -1916,6 +2074,52 @@ module Aws::Inspector
|
|
1916
2074
|
req.send_request(options)
|
1917
2075
|
end
|
1918
2076
|
|
2077
|
+
# List exclusions that are generated by the assessment run.
|
2078
|
+
#
|
2079
|
+
# @option params [required, String] :assessment_run_arn
|
2080
|
+
# The ARN of the assessment run that generated the exclusions that you
|
2081
|
+
# want to list.
|
2082
|
+
#
|
2083
|
+
# @option params [String] :next_token
|
2084
|
+
# You can use this parameter when paginating results. Set the value of
|
2085
|
+
# this parameter to null on your first call to the ListExclusionsRequest
|
2086
|
+
# action. Subsequent calls to the action fill nextToken in the request
|
2087
|
+
# with the value of nextToken from the previous response to continue
|
2088
|
+
# listing data.
|
2089
|
+
#
|
2090
|
+
# @option params [Integer] :max_results
|
2091
|
+
# You can use this parameter to indicate the maximum number of items you
|
2092
|
+
# want in the response. The default value is 100. The maximum value is
|
2093
|
+
# 500.
|
2094
|
+
#
|
2095
|
+
# @return [Types::ListExclusionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2096
|
+
#
|
2097
|
+
# * {Types::ListExclusionsResponse#exclusion_arns #exclusion_arns} => Array<String>
|
2098
|
+
# * {Types::ListExclusionsResponse#next_token #next_token} => String
|
2099
|
+
#
|
2100
|
+
# @example Request syntax with placeholder values
|
2101
|
+
#
|
2102
|
+
# resp = client.list_exclusions({
|
2103
|
+
# assessment_run_arn: "Arn", # required
|
2104
|
+
# next_token: "PaginationToken",
|
2105
|
+
# max_results: 1,
|
2106
|
+
# })
|
2107
|
+
#
|
2108
|
+
# @example Response structure
|
2109
|
+
#
|
2110
|
+
# resp.exclusion_arns #=> Array
|
2111
|
+
# resp.exclusion_arns[0] #=> String
|
2112
|
+
# resp.next_token #=> String
|
2113
|
+
#
|
2114
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListExclusions AWS API Documentation
|
2115
|
+
#
|
2116
|
+
# @overload list_exclusions(params = {})
|
2117
|
+
# @param [Hash] params ({})
|
2118
|
+
def list_exclusions(params = {}, options = {})
|
2119
|
+
req = build_request(:list_exclusions, params)
|
2120
|
+
req.send_request(options)
|
2121
|
+
end
|
2122
|
+
|
1919
2123
|
# Lists findings that are generated by the assessment runs that are
|
1920
2124
|
# specified by the ARNs of the assessment runs.
|
1921
2125
|
#
|
@@ -2577,7 +2781,7 @@ module Aws::Inspector
|
|
2577
2781
|
params: params,
|
2578
2782
|
config: config)
|
2579
2783
|
context[:gem_name] = 'aws-sdk-inspector'
|
2580
|
-
context[:gem_version] = '1.
|
2784
|
+
context[:gem_version] = '1.5.0'
|
2581
2785
|
Seahorse::Client::Request.new(handlers, context)
|
2582
2786
|
end
|
2583
2787
|
|
@@ -68,11 +68,14 @@ module Aws::Inspector
|
|
68
68
|
AutoScalingGroup = Shapes::StringShape.new(name: 'AutoScalingGroup')
|
69
69
|
AutoScalingGroupList = Shapes::ListShape.new(name: 'AutoScalingGroupList')
|
70
70
|
BatchDescribeArnList = Shapes::ListShape.new(name: 'BatchDescribeArnList')
|
71
|
+
BatchDescribeExclusionsArnList = Shapes::ListShape.new(name: 'BatchDescribeExclusionsArnList')
|
71
72
|
Bool = Shapes::BooleanShape.new(name: 'Bool')
|
72
73
|
CreateAssessmentTargetRequest = Shapes::StructureShape.new(name: 'CreateAssessmentTargetRequest')
|
73
74
|
CreateAssessmentTargetResponse = Shapes::StructureShape.new(name: 'CreateAssessmentTargetResponse')
|
74
75
|
CreateAssessmentTemplateRequest = Shapes::StructureShape.new(name: 'CreateAssessmentTemplateRequest')
|
75
76
|
CreateAssessmentTemplateResponse = Shapes::StructureShape.new(name: 'CreateAssessmentTemplateResponse')
|
77
|
+
CreateExclusionsPreviewRequest = Shapes::StructureShape.new(name: 'CreateExclusionsPreviewRequest')
|
78
|
+
CreateExclusionsPreviewResponse = Shapes::StructureShape.new(name: 'CreateExclusionsPreviewResponse')
|
76
79
|
CreateResourceGroupRequest = Shapes::StructureShape.new(name: 'CreateResourceGroupRequest')
|
77
80
|
CreateResourceGroupResponse = Shapes::StructureShape.new(name: 'CreateResourceGroupResponse')
|
78
81
|
DeleteAssessmentRunRequest = Shapes::StructureShape.new(name: 'DeleteAssessmentRunRequest')
|
@@ -85,6 +88,8 @@ module Aws::Inspector
|
|
85
88
|
DescribeAssessmentTemplatesRequest = Shapes::StructureShape.new(name: 'DescribeAssessmentTemplatesRequest')
|
86
89
|
DescribeAssessmentTemplatesResponse = Shapes::StructureShape.new(name: 'DescribeAssessmentTemplatesResponse')
|
87
90
|
DescribeCrossAccountAccessRoleResponse = Shapes::StructureShape.new(name: 'DescribeCrossAccountAccessRoleResponse')
|
91
|
+
DescribeExclusionsRequest = Shapes::StructureShape.new(name: 'DescribeExclusionsRequest')
|
92
|
+
DescribeExclusionsResponse = Shapes::StructureShape.new(name: 'DescribeExclusionsResponse')
|
88
93
|
DescribeFindingsRequest = Shapes::StructureShape.new(name: 'DescribeFindingsRequest')
|
89
94
|
DescribeFindingsResponse = Shapes::StructureShape.new(name: 'DescribeFindingsResponse')
|
90
95
|
DescribeResourceGroupsRequest = Shapes::StructureShape.new(name: 'DescribeResourceGroupsRequest')
|
@@ -95,6 +100,10 @@ module Aws::Inspector
|
|
95
100
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
96
101
|
EventSubscription = Shapes::StructureShape.new(name: 'EventSubscription')
|
97
102
|
EventSubscriptionList = Shapes::ListShape.new(name: 'EventSubscriptionList')
|
103
|
+
Exclusion = Shapes::StructureShape.new(name: 'Exclusion')
|
104
|
+
ExclusionMap = Shapes::MapShape.new(name: 'ExclusionMap')
|
105
|
+
ExclusionPreview = Shapes::StructureShape.new(name: 'ExclusionPreview')
|
106
|
+
ExclusionPreviewList = Shapes::ListShape.new(name: 'ExclusionPreviewList')
|
98
107
|
FailedItemDetails = Shapes::StructureShape.new(name: 'FailedItemDetails')
|
99
108
|
FailedItemErrorCode = Shapes::StringShape.new(name: 'FailedItemErrorCode')
|
100
109
|
FailedItems = Shapes::MapShape.new(name: 'FailedItems')
|
@@ -106,6 +115,8 @@ module Aws::Inspector
|
|
106
115
|
FindingList = Shapes::ListShape.new(name: 'FindingList')
|
107
116
|
GetAssessmentReportRequest = Shapes::StructureShape.new(name: 'GetAssessmentReportRequest')
|
108
117
|
GetAssessmentReportResponse = Shapes::StructureShape.new(name: 'GetAssessmentReportResponse')
|
118
|
+
GetExclusionsPreviewRequest = Shapes::StructureShape.new(name: 'GetExclusionsPreviewRequest')
|
119
|
+
GetExclusionsPreviewResponse = Shapes::StructureShape.new(name: 'GetExclusionsPreviewResponse')
|
109
120
|
GetTelemetryMetadataRequest = Shapes::StructureShape.new(name: 'GetTelemetryMetadataRequest')
|
110
121
|
GetTelemetryMetadataResponse = Shapes::StructureShape.new(name: 'GetTelemetryMetadataResponse')
|
111
122
|
Hostname = Shapes::StringShape.new(name: 'Hostname')
|
@@ -133,6 +144,8 @@ module Aws::Inspector
|
|
133
144
|
ListEventSubscriptionsMaxResults = Shapes::IntegerShape.new(name: 'ListEventSubscriptionsMaxResults')
|
134
145
|
ListEventSubscriptionsRequest = Shapes::StructureShape.new(name: 'ListEventSubscriptionsRequest')
|
135
146
|
ListEventSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListEventSubscriptionsResponse')
|
147
|
+
ListExclusionsRequest = Shapes::StructureShape.new(name: 'ListExclusionsRequest')
|
148
|
+
ListExclusionsResponse = Shapes::StructureShape.new(name: 'ListExclusionsResponse')
|
136
149
|
ListFindingsRequest = Shapes::StructureShape.new(name: 'ListFindingsRequest')
|
137
150
|
ListFindingsResponse = Shapes::StructureShape.new(name: 'ListFindingsResponse')
|
138
151
|
ListMaxResults = Shapes::IntegerShape.new(name: 'ListMaxResults')
|
@@ -156,6 +169,8 @@ module Aws::Inspector
|
|
156
169
|
PreviewAgentsMaxResults = Shapes::IntegerShape.new(name: 'PreviewAgentsMaxResults')
|
157
170
|
PreviewAgentsRequest = Shapes::StructureShape.new(name: 'PreviewAgentsRequest')
|
158
171
|
PreviewAgentsResponse = Shapes::StructureShape.new(name: 'PreviewAgentsResponse')
|
172
|
+
PreviewGenerationInProgressException = Shapes::StructureShape.new(name: 'PreviewGenerationInProgressException')
|
173
|
+
PreviewStatus = Shapes::StringShape.new(name: 'PreviewStatus')
|
159
174
|
ProviderName = Shapes::StringShape.new(name: 'ProviderName')
|
160
175
|
RegisterCrossAccountAccessRoleRequest = Shapes::StructureShape.new(name: 'RegisterCrossAccountAccessRoleRequest')
|
161
176
|
RemoveAttributesFromFindingsRequest = Shapes::StructureShape.new(name: 'RemoveAttributesFromFindingsRequest')
|
@@ -172,6 +187,10 @@ module Aws::Inspector
|
|
172
187
|
RulesPackage = Shapes::StructureShape.new(name: 'RulesPackage')
|
173
188
|
RulesPackageList = Shapes::ListShape.new(name: 'RulesPackageList')
|
174
189
|
RulesPackageName = Shapes::StringShape.new(name: 'RulesPackageName')
|
190
|
+
Scope = Shapes::StructureShape.new(name: 'Scope')
|
191
|
+
ScopeList = Shapes::ListShape.new(name: 'ScopeList')
|
192
|
+
ScopeType = Shapes::StringShape.new(name: 'ScopeType')
|
193
|
+
ScopeValue = Shapes::StringShape.new(name: 'ScopeValue')
|
175
194
|
ServiceName = Shapes::StringShape.new(name: 'ServiceName')
|
176
195
|
SetTagsForResourceRequest = Shapes::StructureShape.new(name: 'SetTagsForResourceRequest')
|
177
196
|
Severity = Shapes::StringShape.new(name: 'Severity')
|
@@ -192,6 +211,7 @@ module Aws::Inspector
|
|
192
211
|
Text = Shapes::StringShape.new(name: 'Text')
|
193
212
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
194
213
|
TimestampRange = Shapes::StructureShape.new(name: 'TimestampRange')
|
214
|
+
UUID = Shapes::StringShape.new(name: 'UUID')
|
195
215
|
UnsubscribeFromEventRequest = Shapes::StructureShape.new(name: 'UnsubscribeFromEventRequest')
|
196
216
|
UnsupportedFeatureException = Shapes::StructureShape.new(name: 'UnsupportedFeatureException')
|
197
217
|
UpdateAssessmentTargetRequest = Shapes::StructureShape.new(name: 'UpdateAssessmentTargetRequest')
|
@@ -351,6 +371,8 @@ module Aws::Inspector
|
|
351
371
|
|
352
372
|
BatchDescribeArnList.member = Shapes::ShapeRef.new(shape: Arn)
|
353
373
|
|
374
|
+
BatchDescribeExclusionsArnList.member = Shapes::ShapeRef.new(shape: Arn)
|
375
|
+
|
354
376
|
CreateAssessmentTargetRequest.add_member(:assessment_target_name, Shapes::ShapeRef.new(shape: AssessmentTargetName, required: true, location_name: "assessmentTargetName"))
|
355
377
|
CreateAssessmentTargetRequest.add_member(:resource_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceGroupArn"))
|
356
378
|
CreateAssessmentTargetRequest.struct_class = Types::CreateAssessmentTargetRequest
|
@@ -368,6 +390,12 @@ module Aws::Inspector
|
|
368
390
|
CreateAssessmentTemplateResponse.add_member(:assessment_template_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentTemplateArn"))
|
369
391
|
CreateAssessmentTemplateResponse.struct_class = Types::CreateAssessmentTemplateResponse
|
370
392
|
|
393
|
+
CreateExclusionsPreviewRequest.add_member(:assessment_template_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentTemplateArn"))
|
394
|
+
CreateExclusionsPreviewRequest.struct_class = Types::CreateExclusionsPreviewRequest
|
395
|
+
|
396
|
+
CreateExclusionsPreviewResponse.add_member(:preview_token, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "previewToken"))
|
397
|
+
CreateExclusionsPreviewResponse.struct_class = Types::CreateExclusionsPreviewResponse
|
398
|
+
|
371
399
|
CreateResourceGroupRequest.add_member(:resource_group_tags, Shapes::ShapeRef.new(shape: ResourceGroupTags, required: true, location_name: "resourceGroupTags"))
|
372
400
|
CreateResourceGroupRequest.struct_class = Types::CreateResourceGroupRequest
|
373
401
|
|
@@ -409,6 +437,14 @@ module Aws::Inspector
|
|
409
437
|
DescribeCrossAccountAccessRoleResponse.add_member(:registered_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "registeredAt"))
|
410
438
|
DescribeCrossAccountAccessRoleResponse.struct_class = Types::DescribeCrossAccountAccessRoleResponse
|
411
439
|
|
440
|
+
DescribeExclusionsRequest.add_member(:exclusion_arns, Shapes::ShapeRef.new(shape: BatchDescribeExclusionsArnList, required: true, location_name: "exclusionArns"))
|
441
|
+
DescribeExclusionsRequest.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
|
442
|
+
DescribeExclusionsRequest.struct_class = Types::DescribeExclusionsRequest
|
443
|
+
|
444
|
+
DescribeExclusionsResponse.add_member(:exclusions, Shapes::ShapeRef.new(shape: ExclusionMap, required: true, location_name: "exclusions"))
|
445
|
+
DescribeExclusionsResponse.add_member(:failed_items, Shapes::ShapeRef.new(shape: FailedItems, required: true, location_name: "failedItems"))
|
446
|
+
DescribeExclusionsResponse.struct_class = Types::DescribeExclusionsResponse
|
447
|
+
|
412
448
|
DescribeFindingsRequest.add_member(:finding_arns, Shapes::ShapeRef.new(shape: BatchDescribeArnList, required: true, location_name: "findingArns"))
|
413
449
|
DescribeFindingsRequest.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
|
414
450
|
DescribeFindingsRequest.struct_class = Types::DescribeFindingsRequest
|
@@ -442,6 +478,26 @@ module Aws::Inspector
|
|
442
478
|
|
443
479
|
EventSubscriptionList.member = Shapes::ShapeRef.new(shape: EventSubscription)
|
444
480
|
|
481
|
+
Exclusion.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
482
|
+
Exclusion.add_member(:title, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "title"))
|
483
|
+
Exclusion.add_member(:description, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "description"))
|
484
|
+
Exclusion.add_member(:recommendation, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "recommendation"))
|
485
|
+
Exclusion.add_member(:scopes, Shapes::ShapeRef.new(shape: ScopeList, required: true, location_name: "scopes"))
|
486
|
+
Exclusion.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, location_name: "attributes"))
|
487
|
+
Exclusion.struct_class = Types::Exclusion
|
488
|
+
|
489
|
+
ExclusionMap.key = Shapes::ShapeRef.new(shape: Arn)
|
490
|
+
ExclusionMap.value = Shapes::ShapeRef.new(shape: Exclusion)
|
491
|
+
|
492
|
+
ExclusionPreview.add_member(:title, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "title"))
|
493
|
+
ExclusionPreview.add_member(:description, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "description"))
|
494
|
+
ExclusionPreview.add_member(:recommendation, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "recommendation"))
|
495
|
+
ExclusionPreview.add_member(:scopes, Shapes::ShapeRef.new(shape: ScopeList, required: true, location_name: "scopes"))
|
496
|
+
ExclusionPreview.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeList, location_name: "attributes"))
|
497
|
+
ExclusionPreview.struct_class = Types::ExclusionPreview
|
498
|
+
|
499
|
+
ExclusionPreviewList.member = Shapes::ShapeRef.new(shape: ExclusionPreview)
|
500
|
+
|
445
501
|
FailedItemDetails.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailedItemErrorCode, required: true, location_name: "failureCode"))
|
446
502
|
FailedItemDetails.add_member(:retryable, Shapes::ShapeRef.new(shape: Bool, required: true, location_name: "retryable"))
|
447
503
|
FailedItemDetails.struct_class = Types::FailedItemDetails
|
@@ -492,6 +548,18 @@ module Aws::Inspector
|
|
492
548
|
GetAssessmentReportResponse.add_member(:url, Shapes::ShapeRef.new(shape: Url, location_name: "url"))
|
493
549
|
GetAssessmentReportResponse.struct_class = Types::GetAssessmentReportResponse
|
494
550
|
|
551
|
+
GetExclusionsPreviewRequest.add_member(:assessment_template_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentTemplateArn"))
|
552
|
+
GetExclusionsPreviewRequest.add_member(:preview_token, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "previewToken"))
|
553
|
+
GetExclusionsPreviewRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
554
|
+
GetExclusionsPreviewRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMaxResults, location_name: "maxResults"))
|
555
|
+
GetExclusionsPreviewRequest.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
|
556
|
+
GetExclusionsPreviewRequest.struct_class = Types::GetExclusionsPreviewRequest
|
557
|
+
|
558
|
+
GetExclusionsPreviewResponse.add_member(:preview_status, Shapes::ShapeRef.new(shape: PreviewStatus, required: true, location_name: "previewStatus"))
|
559
|
+
GetExclusionsPreviewResponse.add_member(:exclusion_previews, Shapes::ShapeRef.new(shape: ExclusionPreviewList, location_name: "exclusionPreviews"))
|
560
|
+
GetExclusionsPreviewResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
561
|
+
GetExclusionsPreviewResponse.struct_class = Types::GetExclusionsPreviewResponse
|
562
|
+
|
495
563
|
GetTelemetryMetadataRequest.add_member(:assessment_run_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentRunArn"))
|
496
564
|
GetTelemetryMetadataRequest.struct_class = Types::GetTelemetryMetadataRequest
|
497
565
|
|
@@ -553,6 +621,15 @@ module Aws::Inspector
|
|
553
621
|
ListEventSubscriptionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
554
622
|
ListEventSubscriptionsResponse.struct_class = Types::ListEventSubscriptionsResponse
|
555
623
|
|
624
|
+
ListExclusionsRequest.add_member(:assessment_run_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentRunArn"))
|
625
|
+
ListExclusionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
626
|
+
ListExclusionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMaxResults, location_name: "maxResults"))
|
627
|
+
ListExclusionsRequest.struct_class = Types::ListExclusionsRequest
|
628
|
+
|
629
|
+
ListExclusionsResponse.add_member(:exclusion_arns, Shapes::ShapeRef.new(shape: ListReturnedArnList, required: true, location_name: "exclusionArns"))
|
630
|
+
ListExclusionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
631
|
+
ListExclusionsResponse.struct_class = Types::ListExclusionsResponse
|
632
|
+
|
556
633
|
ListFindingsRequest.add_member(:assessment_run_arns, Shapes::ShapeRef.new(shape: ListParentArnList, location_name: "assessmentRunArns"))
|
557
634
|
ListFindingsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FindingFilter, location_name: "filter"))
|
558
635
|
ListFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
@@ -624,6 +701,12 @@ module Aws::Inspector
|
|
624
701
|
|
625
702
|
RulesPackageList.member = Shapes::ShapeRef.new(shape: RulesPackage)
|
626
703
|
|
704
|
+
Scope.add_member(:key, Shapes::ShapeRef.new(shape: ScopeType, location_name: "key"))
|
705
|
+
Scope.add_member(:value, Shapes::ShapeRef.new(shape: ScopeValue, location_name: "value"))
|
706
|
+
Scope.struct_class = Types::Scope
|
707
|
+
|
708
|
+
ScopeList.member = Shapes::ShapeRef.new(shape: Scope)
|
709
|
+
|
627
710
|
SetTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
628
711
|
SetTagsForResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
629
712
|
SetTagsForResourceRequest.struct_class = Types::SetTagsForResourceRequest
|
@@ -738,6 +821,19 @@ module Aws::Inspector
|
|
738
821
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
739
822
|
end)
|
740
823
|
|
824
|
+
api.add_operation(:create_exclusions_preview, Seahorse::Model::Operation.new.tap do |o|
|
825
|
+
o.name = "CreateExclusionsPreview"
|
826
|
+
o.http_method = "POST"
|
827
|
+
o.http_request_uri = "/"
|
828
|
+
o.input = Shapes::ShapeRef.new(shape: CreateExclusionsPreviewRequest)
|
829
|
+
o.output = Shapes::ShapeRef.new(shape: CreateExclusionsPreviewResponse)
|
830
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
831
|
+
o.errors << Shapes::ShapeRef.new(shape: PreviewGenerationInProgressException)
|
832
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
833
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
834
|
+
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
835
|
+
end)
|
836
|
+
|
741
837
|
api.add_operation(:create_resource_group, Seahorse::Model::Operation.new.tap do |o|
|
742
838
|
o.name = "CreateResourceGroup"
|
743
839
|
o.http_method = "POST"
|
@@ -828,6 +924,16 @@ module Aws::Inspector
|
|
828
924
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
829
925
|
end)
|
830
926
|
|
927
|
+
api.add_operation(:describe_exclusions, Seahorse::Model::Operation.new.tap do |o|
|
928
|
+
o.name = "DescribeExclusions"
|
929
|
+
o.http_method = "POST"
|
930
|
+
o.http_request_uri = "/"
|
931
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeExclusionsRequest)
|
932
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeExclusionsResponse)
|
933
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
934
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
935
|
+
end)
|
936
|
+
|
831
937
|
api.add_operation(:describe_findings, Seahorse::Model::Operation.new.tap do |o|
|
832
938
|
o.name = "DescribeFindings"
|
833
939
|
o.http_method = "POST"
|
@@ -872,6 +978,24 @@ module Aws::Inspector
|
|
872
978
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
|
873
979
|
end)
|
874
980
|
|
981
|
+
api.add_operation(:get_exclusions_preview, Seahorse::Model::Operation.new.tap do |o|
|
982
|
+
o.name = "GetExclusionsPreview"
|
983
|
+
o.http_method = "POST"
|
984
|
+
o.http_request_uri = "/"
|
985
|
+
o.input = Shapes::ShapeRef.new(shape: GetExclusionsPreviewRequest)
|
986
|
+
o.output = Shapes::ShapeRef.new(shape: GetExclusionsPreviewResponse)
|
987
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
988
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
989
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
990
|
+
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
991
|
+
o[:pager] = Aws::Pager.new(
|
992
|
+
limit_key: "max_results",
|
993
|
+
tokens: {
|
994
|
+
"next_token" => "next_token"
|
995
|
+
}
|
996
|
+
)
|
997
|
+
end)
|
998
|
+
|
875
999
|
api.add_operation(:get_telemetry_metadata, Seahorse::Model::Operation.new.tap do |o|
|
876
1000
|
o.name = "GetTelemetryMetadata"
|
877
1001
|
o.http_method = "POST"
|
@@ -973,6 +1097,24 @@ module Aws::Inspector
|
|
973
1097
|
)
|
974
1098
|
end)
|
975
1099
|
|
1100
|
+
api.add_operation(:list_exclusions, Seahorse::Model::Operation.new.tap do |o|
|
1101
|
+
o.name = "ListExclusions"
|
1102
|
+
o.http_method = "POST"
|
1103
|
+
o.http_request_uri = "/"
|
1104
|
+
o.input = Shapes::ShapeRef.new(shape: ListExclusionsRequest)
|
1105
|
+
o.output = Shapes::ShapeRef.new(shape: ListExclusionsResponse)
|
1106
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1107
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1108
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1109
|
+
o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
|
1110
|
+
o[:pager] = Aws::Pager.new(
|
1111
|
+
limit_key: "max_results",
|
1112
|
+
tokens: {
|
1113
|
+
"next_token" => "next_token"
|
1114
|
+
}
|
1115
|
+
)
|
1116
|
+
end)
|
1117
|
+
|
976
1118
|
api.add_operation(:list_findings, Seahorse::Model::Operation.new.tap do |o|
|
977
1119
|
o.name = "ListFindings"
|
978
1120
|
o.http_method = "POST"
|
@@ -513,7 +513,7 @@ module Aws::Inspector
|
|
513
513
|
# @return [String]
|
514
514
|
#
|
515
515
|
# @!attribute [rw] duration_in_seconds
|
516
|
-
# The duration in seconds specified for this assessment
|
516
|
+
# The duration in seconds specified for this assessment template. The
|
517
517
|
# default value is 3600 seconds (one hour). The maximum value is 86400
|
518
518
|
# seconds (one day).
|
519
519
|
# @return [Integer]
|
@@ -530,7 +530,7 @@ module Aws::Inspector
|
|
530
530
|
# @!attribute [rw] last_assessment_run_arn
|
531
531
|
# The Amazon Resource Name (ARN) of the most recent assessment run
|
532
532
|
# associated with this assessment template. This value exists only
|
533
|
-
# when the value of assessmentRunCount is
|
533
|
+
# when the value of assessmentRunCount is greaterpa than zero.
|
534
534
|
# @return [String]
|
535
535
|
#
|
536
536
|
# @!attribute [rw] assessment_run_count
|
@@ -775,6 +775,38 @@ module Aws::Inspector
|
|
775
775
|
include Aws::Structure
|
776
776
|
end
|
777
777
|
|
778
|
+
# @note When making an API call, you may pass CreateExclusionsPreviewRequest
|
779
|
+
# data as a hash:
|
780
|
+
#
|
781
|
+
# {
|
782
|
+
# assessment_template_arn: "Arn", # required
|
783
|
+
# }
|
784
|
+
#
|
785
|
+
# @!attribute [rw] assessment_template_arn
|
786
|
+
# The ARN that specifies the assessment template for which you want to
|
787
|
+
# create an exclusions preview.
|
788
|
+
# @return [String]
|
789
|
+
#
|
790
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateExclusionsPreviewRequest AWS API Documentation
|
791
|
+
#
|
792
|
+
class CreateExclusionsPreviewRequest < Struct.new(
|
793
|
+
:assessment_template_arn)
|
794
|
+
include Aws::Structure
|
795
|
+
end
|
796
|
+
|
797
|
+
# @!attribute [rw] preview_token
|
798
|
+
# Specifies the unique identifier of the requested exclusions preview.
|
799
|
+
# You can use the unique identifier to retrieve the exclusions preview
|
800
|
+
# when running the GetExclusionsPreview API.
|
801
|
+
# @return [String]
|
802
|
+
#
|
803
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateExclusionsPreviewResponse AWS API Documentation
|
804
|
+
#
|
805
|
+
class CreateExclusionsPreviewResponse < Struct.new(
|
806
|
+
:preview_token)
|
807
|
+
include Aws::Structure
|
808
|
+
end
|
809
|
+
|
778
810
|
# @note When making an API call, you may pass CreateResourceGroupRequest
|
779
811
|
# data as a hash:
|
780
812
|
#
|
@@ -998,6 +1030,49 @@ module Aws::Inspector
|
|
998
1030
|
include Aws::Structure
|
999
1031
|
end
|
1000
1032
|
|
1033
|
+
# @note When making an API call, you may pass DescribeExclusionsRequest
|
1034
|
+
# data as a hash:
|
1035
|
+
#
|
1036
|
+
# {
|
1037
|
+
# exclusion_arns: ["Arn"], # required
|
1038
|
+
# locale: "EN_US", # accepts EN_US
|
1039
|
+
# }
|
1040
|
+
#
|
1041
|
+
# @!attribute [rw] exclusion_arns
|
1042
|
+
# The list of ARNs that specify the exclusions that you want to
|
1043
|
+
# describe.
|
1044
|
+
# @return [Array<String>]
|
1045
|
+
#
|
1046
|
+
# @!attribute [rw] locale
|
1047
|
+
# The locale into which you want to translate the exclusion's title,
|
1048
|
+
# description, and recommendation.
|
1049
|
+
# @return [String]
|
1050
|
+
#
|
1051
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeExclusionsRequest AWS API Documentation
|
1052
|
+
#
|
1053
|
+
class DescribeExclusionsRequest < Struct.new(
|
1054
|
+
:exclusion_arns,
|
1055
|
+
:locale)
|
1056
|
+
include Aws::Structure
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# @!attribute [rw] exclusions
|
1060
|
+
# Information about the exclusions.
|
1061
|
+
# @return [Hash<String,Types::Exclusion>]
|
1062
|
+
#
|
1063
|
+
# @!attribute [rw] failed_items
|
1064
|
+
# Exclusion details that cannot be described. An error code is
|
1065
|
+
# provided for each failed item.
|
1066
|
+
# @return [Hash<String,Types::FailedItemDetails>]
|
1067
|
+
#
|
1068
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeExclusionsResponse AWS API Documentation
|
1069
|
+
#
|
1070
|
+
class DescribeExclusionsResponse < Struct.new(
|
1071
|
+
:exclusions,
|
1072
|
+
:failed_items)
|
1073
|
+
include Aws::Structure
|
1074
|
+
end
|
1075
|
+
|
1001
1076
|
# @note When making an API call, you may pass DescribeFindingsRequest
|
1002
1077
|
# data as a hash:
|
1003
1078
|
#
|
@@ -1164,6 +1239,78 @@ module Aws::Inspector
|
|
1164
1239
|
include Aws::Structure
|
1165
1240
|
end
|
1166
1241
|
|
1242
|
+
# Contains information about what was excluded from an assessment run.
|
1243
|
+
#
|
1244
|
+
# @!attribute [rw] arn
|
1245
|
+
# The ARN that specifies the exclusion.
|
1246
|
+
# @return [String]
|
1247
|
+
#
|
1248
|
+
# @!attribute [rw] title
|
1249
|
+
# The name of the exclusion.
|
1250
|
+
# @return [String]
|
1251
|
+
#
|
1252
|
+
# @!attribute [rw] description
|
1253
|
+
# The description of the exclusion.
|
1254
|
+
# @return [String]
|
1255
|
+
#
|
1256
|
+
# @!attribute [rw] recommendation
|
1257
|
+
# The recommendation for the exclusion.
|
1258
|
+
# @return [String]
|
1259
|
+
#
|
1260
|
+
# @!attribute [rw] scopes
|
1261
|
+
# The AWS resources for which the exclusion pertains.
|
1262
|
+
# @return [Array<Types::Scope>]
|
1263
|
+
#
|
1264
|
+
# @!attribute [rw] attributes
|
1265
|
+
# The system-defined attributes for the exclusion.
|
1266
|
+
# @return [Array<Types::Attribute>]
|
1267
|
+
#
|
1268
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Exclusion AWS API Documentation
|
1269
|
+
#
|
1270
|
+
class Exclusion < Struct.new(
|
1271
|
+
:arn,
|
1272
|
+
:title,
|
1273
|
+
:description,
|
1274
|
+
:recommendation,
|
1275
|
+
:scopes,
|
1276
|
+
:attributes)
|
1277
|
+
include Aws::Structure
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# Contains information about what is excluded from an assessment run
|
1281
|
+
# given the current state of the assessment template.
|
1282
|
+
#
|
1283
|
+
# @!attribute [rw] title
|
1284
|
+
# The name of the exclusion preview.
|
1285
|
+
# @return [String]
|
1286
|
+
#
|
1287
|
+
# @!attribute [rw] description
|
1288
|
+
# The description of the exclusion preview.
|
1289
|
+
# @return [String]
|
1290
|
+
#
|
1291
|
+
# @!attribute [rw] recommendation
|
1292
|
+
# The recommendation for the exclusion preview.
|
1293
|
+
# @return [String]
|
1294
|
+
#
|
1295
|
+
# @!attribute [rw] scopes
|
1296
|
+
# The AWS resources for which the exclusion preview pertains.
|
1297
|
+
# @return [Array<Types::Scope>]
|
1298
|
+
#
|
1299
|
+
# @!attribute [rw] attributes
|
1300
|
+
# The system-defined attributes for the exclusion preview.
|
1301
|
+
# @return [Array<Types::Attribute>]
|
1302
|
+
#
|
1303
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ExclusionPreview AWS API Documentation
|
1304
|
+
#
|
1305
|
+
class ExclusionPreview < Struct.new(
|
1306
|
+
:title,
|
1307
|
+
:description,
|
1308
|
+
:recommendation,
|
1309
|
+
:scopes,
|
1310
|
+
:attributes)
|
1311
|
+
include Aws::Structure
|
1312
|
+
end
|
1313
|
+
|
1167
1314
|
# Includes details about the failed items.
|
1168
1315
|
#
|
1169
1316
|
# @!attribute [rw] failure_code
|
@@ -1432,6 +1579,82 @@ module Aws::Inspector
|
|
1432
1579
|
include Aws::Structure
|
1433
1580
|
end
|
1434
1581
|
|
1582
|
+
# @note When making an API call, you may pass GetExclusionsPreviewRequest
|
1583
|
+
# data as a hash:
|
1584
|
+
#
|
1585
|
+
# {
|
1586
|
+
# assessment_template_arn: "Arn", # required
|
1587
|
+
# preview_token: "UUID", # required
|
1588
|
+
# next_token: "PaginationToken",
|
1589
|
+
# max_results: 1,
|
1590
|
+
# locale: "EN_US", # accepts EN_US
|
1591
|
+
# }
|
1592
|
+
#
|
1593
|
+
# @!attribute [rw] assessment_template_arn
|
1594
|
+
# The ARN that specifies the assessment template for which the
|
1595
|
+
# exclusions preview was requested.
|
1596
|
+
# @return [String]
|
1597
|
+
#
|
1598
|
+
# @!attribute [rw] preview_token
|
1599
|
+
# The unique identifier associated of the exclusions preview.
|
1600
|
+
# @return [String]
|
1601
|
+
#
|
1602
|
+
# @!attribute [rw] next_token
|
1603
|
+
# You can use this parameter when paginating results. Set the value of
|
1604
|
+
# this parameter to null on your first call to the
|
1605
|
+
# GetExclusionsPreviewRequest action. Subsequent calls to the action
|
1606
|
+
# fill nextToken in the request with the value of nextToken from the
|
1607
|
+
# previous response to continue listing data.
|
1608
|
+
# @return [String]
|
1609
|
+
#
|
1610
|
+
# @!attribute [rw] max_results
|
1611
|
+
# You can use this parameter to indicate the maximum number of items
|
1612
|
+
# you want in the response. The default value is 100. The maximum
|
1613
|
+
# value is 500.
|
1614
|
+
# @return [Integer]
|
1615
|
+
#
|
1616
|
+
# @!attribute [rw] locale
|
1617
|
+
# The locale into which you want to translate the exclusion's title,
|
1618
|
+
# description, and recommendation.
|
1619
|
+
# @return [String]
|
1620
|
+
#
|
1621
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetExclusionsPreviewRequest AWS API Documentation
|
1622
|
+
#
|
1623
|
+
class GetExclusionsPreviewRequest < Struct.new(
|
1624
|
+
:assessment_template_arn,
|
1625
|
+
:preview_token,
|
1626
|
+
:next_token,
|
1627
|
+
:max_results,
|
1628
|
+
:locale)
|
1629
|
+
include Aws::Structure
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
# @!attribute [rw] preview_status
|
1633
|
+
# Specifies the status of the request to generate an exclusions
|
1634
|
+
# preview.
|
1635
|
+
# @return [String]
|
1636
|
+
#
|
1637
|
+
# @!attribute [rw] exclusion_previews
|
1638
|
+
# Information about the exclusions included in the preview.
|
1639
|
+
# @return [Array<Types::ExclusionPreview>]
|
1640
|
+
#
|
1641
|
+
# @!attribute [rw] next_token
|
1642
|
+
# When a response is generated, if there is more data to be listed,
|
1643
|
+
# this parameters is present in the response and contains the value to
|
1644
|
+
# use for the nextToken parameter in a subsequent pagination request.
|
1645
|
+
# If there is no more data to be listed, this parameter is set to
|
1646
|
+
# null.
|
1647
|
+
# @return [String]
|
1648
|
+
#
|
1649
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetExclusionsPreviewResponse AWS API Documentation
|
1650
|
+
#
|
1651
|
+
class GetExclusionsPreviewResponse < Struct.new(
|
1652
|
+
:preview_status,
|
1653
|
+
:exclusion_previews,
|
1654
|
+
:next_token)
|
1655
|
+
include Aws::Structure
|
1656
|
+
end
|
1657
|
+
|
1435
1658
|
# @note When making an API call, you may pass GetTelemetryMetadataRequest
|
1436
1659
|
# data as a hash:
|
1437
1660
|
#
|
@@ -1842,6 +2065,63 @@ module Aws::Inspector
|
|
1842
2065
|
include Aws::Structure
|
1843
2066
|
end
|
1844
2067
|
|
2068
|
+
# @note When making an API call, you may pass ListExclusionsRequest
|
2069
|
+
# data as a hash:
|
2070
|
+
#
|
2071
|
+
# {
|
2072
|
+
# assessment_run_arn: "Arn", # required
|
2073
|
+
# next_token: "PaginationToken",
|
2074
|
+
# max_results: 1,
|
2075
|
+
# }
|
2076
|
+
#
|
2077
|
+
# @!attribute [rw] assessment_run_arn
|
2078
|
+
# The ARN of the assessment run that generated the exclusions that you
|
2079
|
+
# want to list.
|
2080
|
+
# @return [String]
|
2081
|
+
#
|
2082
|
+
# @!attribute [rw] next_token
|
2083
|
+
# You can use this parameter when paginating results. Set the value of
|
2084
|
+
# this parameter to null on your first call to the
|
2085
|
+
# ListExclusionsRequest action. Subsequent calls to the action fill
|
2086
|
+
# nextToken in the request with the value of nextToken from the
|
2087
|
+
# previous response to continue listing data.
|
2088
|
+
# @return [String]
|
2089
|
+
#
|
2090
|
+
# @!attribute [rw] max_results
|
2091
|
+
# You can use this parameter to indicate the maximum number of items
|
2092
|
+
# you want in the response. The default value is 100. The maximum
|
2093
|
+
# value is 500.
|
2094
|
+
# @return [Integer]
|
2095
|
+
#
|
2096
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListExclusionsRequest AWS API Documentation
|
2097
|
+
#
|
2098
|
+
class ListExclusionsRequest < Struct.new(
|
2099
|
+
:assessment_run_arn,
|
2100
|
+
:next_token,
|
2101
|
+
:max_results)
|
2102
|
+
include Aws::Structure
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# @!attribute [rw] exclusion_arns
|
2106
|
+
# A list of exclusions' ARNs returned by the action.
|
2107
|
+
# @return [Array<String>]
|
2108
|
+
#
|
2109
|
+
# @!attribute [rw] next_token
|
2110
|
+
# When a response is generated, if there is more data to be listed,
|
2111
|
+
# this parameters is present in the response and contains the value to
|
2112
|
+
# use for the nextToken parameter in a subsequent pagination request.
|
2113
|
+
# If there is no more data to be listed, this parameter is set to
|
2114
|
+
# null.
|
2115
|
+
# @return [String]
|
2116
|
+
#
|
2117
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListExclusionsResponse AWS API Documentation
|
2118
|
+
#
|
2119
|
+
class ListExclusionsResponse < Struct.new(
|
2120
|
+
:exclusion_arns,
|
2121
|
+
:next_token)
|
2122
|
+
include Aws::Structure
|
2123
|
+
end
|
2124
|
+
|
1845
2125
|
# @note When making an API call, you may pass ListFindingsRequest
|
1846
2126
|
# data as a hash:
|
1847
2127
|
#
|
@@ -2215,6 +2495,25 @@ module Aws::Inspector
|
|
2215
2495
|
include Aws::Structure
|
2216
2496
|
end
|
2217
2497
|
|
2498
|
+
# This data type contains key-value pairs that identify various Amazon
|
2499
|
+
# resources.
|
2500
|
+
#
|
2501
|
+
# @!attribute [rw] key
|
2502
|
+
# The type of the scope.
|
2503
|
+
# @return [String]
|
2504
|
+
#
|
2505
|
+
# @!attribute [rw] value
|
2506
|
+
# The resource identifier for the specified scope type.
|
2507
|
+
# @return [String]
|
2508
|
+
#
|
2509
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/Scope AWS API Documentation
|
2510
|
+
#
|
2511
|
+
class Scope < Struct.new(
|
2512
|
+
:key,
|
2513
|
+
:value)
|
2514
|
+
include Aws::Structure
|
2515
|
+
end
|
2516
|
+
|
2218
2517
|
# @note When making an API call, you may pass SetTagsForResourceRequest
|
2219
2518
|
# data as a hash:
|
2220
2519
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-inspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.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: 2018-
|
11
|
+
date: 2018-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|