aws-sdk-inspector 1.1.0 → 1.2.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 +28 -13
- data/lib/aws-sdk-inspector/client_api.rb +9 -0
- data/lib/aws-sdk-inspector/types.rb +39 -6
- 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: effd41d894acad88f4fc57f1fc9b937c7a5a805e
|
4
|
+
data.tar.gz: cee01a530cec63f97d196b742e33c1b0eb1b8538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb065d2ca3e9cf991f8b7c2c4e06bd03395ba2024035f716e5093bfba10ce7b01f55996d60d1e3caa95841aa2d00adb264c369fd879d5677508eb50e35853e36
|
7
|
+
data.tar.gz: cf33328e41ff7798d0f450a371b574101387f017fd22d5851052185562de87efaff9f568cf2f1a7a2c65e2c0baf78d116b2b43e4abdd78968f15163cb946bfe7
|
data/lib/aws-sdk-inspector.rb
CHANGED
@@ -220,14 +220,18 @@ module Aws::Inspector
|
|
220
220
|
end
|
221
221
|
|
222
222
|
# Creates a new assessment target using the ARN of the resource group
|
223
|
-
# that is generated by CreateResourceGroup.
|
223
|
+
# that is generated by CreateResourceGroup. If the [service-linked
|
224
|
+
# role][1] isn’t already registered, also creates and registers a
|
225
|
+
# service-linked role to grant Amazon Inspector access to AWS Services
|
226
|
+
# needed to perform security assessments. You can create up to 50
|
224
227
|
# assessment targets per AWS account. You can run up to 500 concurrent
|
225
228
|
# agents per AWS account. For more information, see [ Amazon Inspector
|
226
|
-
# Assessment Targets][
|
229
|
+
# Assessment Targets][2].
|
227
230
|
#
|
228
231
|
#
|
229
232
|
#
|
230
|
-
# [1]:
|
233
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html
|
234
|
+
# [2]: http://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html
|
231
235
|
#
|
232
236
|
# @option params [required, String] :assessment_target_name
|
233
237
|
# The user-defined name that identifies the assessment target that you
|
@@ -278,7 +282,14 @@ module Aws::Inspector
|
|
278
282
|
end
|
279
283
|
|
280
284
|
# Creates an assessment template for the assessment target that is
|
281
|
-
# specified by the ARN of the assessment target.
|
285
|
+
# specified by the ARN of the assessment target. If the [service-linked
|
286
|
+
# role][1] isn’t already registered, also creates and registers a
|
287
|
+
# service-linked role to grant Amazon Inspector access to AWS Services
|
288
|
+
# needed to perform security assessments.
|
289
|
+
#
|
290
|
+
#
|
291
|
+
#
|
292
|
+
# [1]: https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html
|
282
293
|
#
|
283
294
|
# @option params [required, String] :assessment_target_arn
|
284
295
|
# The ARN that specifies the assessment target for which you want to
|
@@ -1534,7 +1545,7 @@ module Aws::Inspector
|
|
1534
1545
|
# resp = client.list_assessment_run_agents({
|
1535
1546
|
# assessment_run_arn: "Arn", # required
|
1536
1547
|
# filter: {
|
1537
|
-
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY
|
1548
|
+
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY, UNKNOWN
|
1538
1549
|
# agent_health_codes: ["IDLE"], # required, accepts IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, UNKNOWN
|
1539
1550
|
# },
|
1540
1551
|
# next_token: "PaginationToken",
|
@@ -1546,7 +1557,7 @@ module Aws::Inspector
|
|
1546
1557
|
# resp.assessment_run_agents #=> Array
|
1547
1558
|
# resp.assessment_run_agents[0].agent_id #=> String
|
1548
1559
|
# resp.assessment_run_agents[0].assessment_run_arn #=> String
|
1549
|
-
# resp.assessment_run_agents[0].agent_health #=> String, one of "HEALTHY", "UNHEALTHY"
|
1560
|
+
# resp.assessment_run_agents[0].agent_health #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
1550
1561
|
# resp.assessment_run_agents[0].agent_health_code #=> String, one of "IDLE", "RUNNING", "SHUTDOWN", "UNHEALTHY", "THROTTLED", "UNKNOWN"
|
1551
1562
|
# resp.assessment_run_agents[0].agent_health_details #=> String
|
1552
1563
|
# resp.assessment_run_agents[0].auto_scaling_group #=> String
|
@@ -2166,8 +2177,14 @@ module Aws::Inspector
|
|
2166
2177
|
# @example Response structure
|
2167
2178
|
#
|
2168
2179
|
# resp.agent_previews #=> Array
|
2180
|
+
# resp.agent_previews[0].hostname #=> String
|
2169
2181
|
# resp.agent_previews[0].agent_id #=> String
|
2170
2182
|
# resp.agent_previews[0].auto_scaling_group #=> String
|
2183
|
+
# resp.agent_previews[0].agent_health #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
2184
|
+
# resp.agent_previews[0].agent_version #=> String
|
2185
|
+
# resp.agent_previews[0].operating_system #=> String
|
2186
|
+
# resp.agent_previews[0].kernel_version #=> String
|
2187
|
+
# resp.agent_previews[0].ipv4_address #=> String
|
2171
2188
|
# resp.next_token #=> String
|
2172
2189
|
#
|
2173
2190
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/PreviewAgents AWS API Documentation
|
@@ -2179,14 +2196,12 @@ module Aws::Inspector
|
|
2179
2196
|
req.send_request(options)
|
2180
2197
|
end
|
2181
2198
|
|
2182
|
-
# Registers the IAM role that Amazon Inspector
|
2183
|
-
#
|
2184
|
-
# PreviewAgents action.
|
2199
|
+
# Registers the IAM role that grants Amazon Inspector access to AWS
|
2200
|
+
# Services needed to perform security assessments.
|
2185
2201
|
#
|
2186
2202
|
# @option params [required, String] :role_arn
|
2187
|
-
# The ARN of the IAM role that Amazon Inspector
|
2188
|
-
#
|
2189
|
-
# action.
|
2203
|
+
# The ARN of the IAM role that grants Amazon Inspector access to AWS
|
2204
|
+
# Services needed to perform security assessments.
|
2190
2205
|
#
|
2191
2206
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2192
2207
|
#
|
@@ -2559,7 +2574,7 @@ module Aws::Inspector
|
|
2559
2574
|
params: params,
|
2560
2575
|
config: config)
|
2561
2576
|
context[:gem_name] = 'aws-sdk-inspector'
|
2562
|
-
context[:gem_version] = '1.
|
2577
|
+
context[:gem_version] = '1.2.0'
|
2563
2578
|
Seahorse::Client::Request.new(handlers, context)
|
2564
2579
|
end
|
2565
2580
|
|
@@ -27,6 +27,7 @@ module Aws::Inspector
|
|
27
27
|
AgentIdList = Shapes::ListShape.new(name: 'AgentIdList')
|
28
28
|
AgentPreview = Shapes::StructureShape.new(name: 'AgentPreview')
|
29
29
|
AgentPreviewList = Shapes::ListShape.new(name: 'AgentPreviewList')
|
30
|
+
AgentVersion = Shapes::StringShape.new(name: 'AgentVersion')
|
30
31
|
AgentsAlreadyRunningAssessmentException = Shapes::StructureShape.new(name: 'AgentsAlreadyRunningAssessmentException')
|
31
32
|
AmiId = Shapes::StringShape.new(name: 'AmiId')
|
32
33
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
@@ -117,6 +118,7 @@ module Aws::Inspector
|
|
117
118
|
IocConfidence = Shapes::IntegerShape.new(name: 'IocConfidence')
|
118
119
|
Ipv4Address = Shapes::StringShape.new(name: 'Ipv4Address')
|
119
120
|
Ipv4AddressList = Shapes::ListShape.new(name: 'Ipv4AddressList')
|
121
|
+
KernelVersion = Shapes::StringShape.new(name: 'KernelVersion')
|
120
122
|
LimitExceededErrorCode = Shapes::StringShape.new(name: 'LimitExceededErrorCode')
|
121
123
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
122
124
|
ListAssessmentRunAgentsRequest = Shapes::StructureShape.new(name: 'ListAssessmentRunAgentsRequest')
|
@@ -148,6 +150,7 @@ module Aws::Inspector
|
|
148
150
|
NoSuchEntityException = Shapes::StructureShape.new(name: 'NoSuchEntityException')
|
149
151
|
NumericSeverity = Shapes::FloatShape.new(name: 'NumericSeverity')
|
150
152
|
NumericVersion = Shapes::IntegerShape.new(name: 'NumericVersion')
|
153
|
+
OperatingSystem = Shapes::StringShape.new(name: 'OperatingSystem')
|
151
154
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
152
155
|
PreviewAgentsMaxResults = Shapes::IntegerShape.new(name: 'PreviewAgentsMaxResults')
|
153
156
|
PreviewAgentsRequest = Shapes::StructureShape.new(name: 'PreviewAgentsRequest')
|
@@ -221,8 +224,14 @@ module Aws::Inspector
|
|
221
224
|
|
222
225
|
AgentIdList.member = Shapes::ShapeRef.new(shape: AgentId)
|
223
226
|
|
227
|
+
AgentPreview.add_member(:hostname, Shapes::ShapeRef.new(shape: Hostname, location_name: "hostname"))
|
224
228
|
AgentPreview.add_member(:agent_id, Shapes::ShapeRef.new(shape: AgentId, required: true, location_name: "agentId"))
|
225
229
|
AgentPreview.add_member(:auto_scaling_group, Shapes::ShapeRef.new(shape: AutoScalingGroup, location_name: "autoScalingGroup"))
|
230
|
+
AgentPreview.add_member(:agent_health, Shapes::ShapeRef.new(shape: AgentHealth, location_name: "agentHealth"))
|
231
|
+
AgentPreview.add_member(:agent_version, Shapes::ShapeRef.new(shape: AgentVersion, location_name: "agentVersion"))
|
232
|
+
AgentPreview.add_member(:operating_system, Shapes::ShapeRef.new(shape: OperatingSystem, location_name: "operatingSystem"))
|
233
|
+
AgentPreview.add_member(:kernel_version, Shapes::ShapeRef.new(shape: KernelVersion, location_name: "kernelVersion"))
|
234
|
+
AgentPreview.add_member(:ipv4_address, Shapes::ShapeRef.new(shape: Ipv4Address, location_name: "ipv4Address"))
|
226
235
|
AgentPreview.struct_class = Types::AgentPreview
|
227
236
|
|
228
237
|
AgentPreviewList.member = Shapes::ShapeRef.new(shape: AgentPreview)
|
@@ -79,7 +79,7 @@ module Aws::Inspector
|
|
79
79
|
# data as a hash:
|
80
80
|
#
|
81
81
|
# {
|
82
|
-
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY
|
82
|
+
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY, UNKNOWN
|
83
83
|
# agent_health_codes: ["IDLE"], # required, accepts IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, UNKNOWN
|
84
84
|
# }
|
85
85
|
#
|
@@ -104,6 +104,11 @@ module Aws::Inspector
|
|
104
104
|
|
105
105
|
# Used as a response element in the PreviewAgents action.
|
106
106
|
#
|
107
|
+
# @!attribute [rw] hostname
|
108
|
+
# The hostname of the EC2 instance on which the Amazon Inspector Agent
|
109
|
+
# is installed.
|
110
|
+
# @return [String]
|
111
|
+
#
|
107
112
|
# @!attribute [rw] agent_id
|
108
113
|
# The ID of the EC2 instance where the agent is installed.
|
109
114
|
# @return [String]
|
@@ -113,11 +118,40 @@ module Aws::Inspector
|
|
113
118
|
# installed.
|
114
119
|
# @return [String]
|
115
120
|
#
|
121
|
+
# @!attribute [rw] agent_health
|
122
|
+
# The health status of the Amazon Inspector Agent.
|
123
|
+
# @return [String]
|
124
|
+
#
|
125
|
+
# @!attribute [rw] agent_version
|
126
|
+
# The version of the Amazon Inspector Agent.
|
127
|
+
# @return [String]
|
128
|
+
#
|
129
|
+
# @!attribute [rw] operating_system
|
130
|
+
# The operating system running on the EC2 instance on which the Amazon
|
131
|
+
# Inspector Agent is installed.
|
132
|
+
# @return [String]
|
133
|
+
#
|
134
|
+
# @!attribute [rw] kernel_version
|
135
|
+
# The kernel version of the operating system running on the EC2
|
136
|
+
# instance on which the Amazon Inspector Agent is installed.
|
137
|
+
# @return [String]
|
138
|
+
#
|
139
|
+
# @!attribute [rw] ipv4_address
|
140
|
+
# The IP address of the EC2 instance on which the Amazon Inspector
|
141
|
+
# Agent is installed.
|
142
|
+
# @return [String]
|
143
|
+
#
|
116
144
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AgentPreview AWS API Documentation
|
117
145
|
#
|
118
146
|
class AgentPreview < Struct.new(
|
147
|
+
:hostname,
|
119
148
|
:agent_id,
|
120
|
-
:auto_scaling_group
|
149
|
+
:auto_scaling_group,
|
150
|
+
:agent_health,
|
151
|
+
:agent_version,
|
152
|
+
:operating_system,
|
153
|
+
:kernel_version,
|
154
|
+
:ipv4_address)
|
121
155
|
include Aws::Structure
|
122
156
|
end
|
123
157
|
|
@@ -1444,7 +1478,7 @@ module Aws::Inspector
|
|
1444
1478
|
# {
|
1445
1479
|
# assessment_run_arn: "Arn", # required
|
1446
1480
|
# filter: {
|
1447
|
-
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY
|
1481
|
+
# agent_healths: ["HEALTHY"], # required, accepts HEALTHY, UNHEALTHY, UNKNOWN
|
1448
1482
|
# agent_health_codes: ["IDLE"], # required, accepts IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, UNKNOWN
|
1449
1483
|
# },
|
1450
1484
|
# next_token: "PaginationToken",
|
@@ -2030,9 +2064,8 @@ module Aws::Inspector
|
|
2030
2064
|
# }
|
2031
2065
|
#
|
2032
2066
|
# @!attribute [rw] role_arn
|
2033
|
-
# The ARN of the IAM role that Amazon Inspector
|
2034
|
-
#
|
2035
|
-
# PreviewAgents action.
|
2067
|
+
# The ARN of the IAM role that grants Amazon Inspector access to AWS
|
2068
|
+
# Services needed to perform security assessments.
|
2036
2069
|
# @return [String]
|
2037
2070
|
#
|
2038
2071
|
# @see http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRoleRequest AWS API Documentation
|
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.2.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: 2017-
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|