aws-sdk-accessanalyzer 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-accessanalyzer.rb +47 -0
- data/lib/aws-sdk-accessanalyzer/client.rb +1038 -0
- data/lib/aws-sdk-accessanalyzer/client_api.rb +639 -0
- data/lib/aws-sdk-accessanalyzer/customizations.rb +0 -0
- data/lib/aws-sdk-accessanalyzer/errors.rb +176 -0
- data/lib/aws-sdk-accessanalyzer/resource.rb +23 -0
- data/lib/aws-sdk-accessanalyzer/types.rb +1356 -0
- metadata +88 -0
@@ -0,0 +1,639 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::AccessAnalyzer
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
15
|
+
ActionList = Shapes::ListShape.new(name: 'ActionList')
|
16
|
+
AnalyzedResource = Shapes::StructureShape.new(name: 'AnalyzedResource')
|
17
|
+
AnalyzedResourceSummary = Shapes::StructureShape.new(name: 'AnalyzedResourceSummary')
|
18
|
+
AnalyzedResourcesList = Shapes::ListShape.new(name: 'AnalyzedResourcesList')
|
19
|
+
AnalyzerArn = Shapes::StringShape.new(name: 'AnalyzerArn')
|
20
|
+
AnalyzerSummary = Shapes::StructureShape.new(name: 'AnalyzerSummary')
|
21
|
+
AnalyzersList = Shapes::ListShape.new(name: 'AnalyzersList')
|
22
|
+
ArchiveRuleSummary = Shapes::StructureShape.new(name: 'ArchiveRuleSummary')
|
23
|
+
ArchiveRulesList = Shapes::ListShape.new(name: 'ArchiveRulesList')
|
24
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
25
|
+
ConditionKeyMap = Shapes::MapShape.new(name: 'ConditionKeyMap')
|
26
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
27
|
+
CreateAnalyzerRequest = Shapes::StructureShape.new(name: 'CreateAnalyzerRequest')
|
28
|
+
CreateAnalyzerResponse = Shapes::StructureShape.new(name: 'CreateAnalyzerResponse')
|
29
|
+
CreateArchiveRuleRequest = Shapes::StructureShape.new(name: 'CreateArchiveRuleRequest')
|
30
|
+
Criterion = Shapes::StructureShape.new(name: 'Criterion')
|
31
|
+
DeleteAnalyzerRequest = Shapes::StructureShape.new(name: 'DeleteAnalyzerRequest')
|
32
|
+
DeleteArchiveRuleRequest = Shapes::StructureShape.new(name: 'DeleteArchiveRuleRequest')
|
33
|
+
FilterCriteriaMap = Shapes::MapShape.new(name: 'FilterCriteriaMap')
|
34
|
+
Finding = Shapes::StructureShape.new(name: 'Finding')
|
35
|
+
FindingId = Shapes::StringShape.new(name: 'FindingId')
|
36
|
+
FindingIdList = Shapes::ListShape.new(name: 'FindingIdList')
|
37
|
+
FindingStatus = Shapes::StringShape.new(name: 'FindingStatus')
|
38
|
+
FindingStatusUpdate = Shapes::StringShape.new(name: 'FindingStatusUpdate')
|
39
|
+
FindingSummary = Shapes::StructureShape.new(name: 'FindingSummary')
|
40
|
+
FindingsList = Shapes::ListShape.new(name: 'FindingsList')
|
41
|
+
GetAnalyzedResourceRequest = Shapes::StructureShape.new(name: 'GetAnalyzedResourceRequest')
|
42
|
+
GetAnalyzedResourceResponse = Shapes::StructureShape.new(name: 'GetAnalyzedResourceResponse')
|
43
|
+
GetAnalyzerRequest = Shapes::StructureShape.new(name: 'GetAnalyzerRequest')
|
44
|
+
GetAnalyzerResponse = Shapes::StructureShape.new(name: 'GetAnalyzerResponse')
|
45
|
+
GetArchiveRuleRequest = Shapes::StructureShape.new(name: 'GetArchiveRuleRequest')
|
46
|
+
GetArchiveRuleResponse = Shapes::StructureShape.new(name: 'GetArchiveRuleResponse')
|
47
|
+
GetFindingRequest = Shapes::StructureShape.new(name: 'GetFindingRequest')
|
48
|
+
GetFindingResponse = Shapes::StructureShape.new(name: 'GetFindingResponse')
|
49
|
+
InlineArchiveRule = Shapes::StructureShape.new(name: 'InlineArchiveRule')
|
50
|
+
InlineArchiveRulesList = Shapes::ListShape.new(name: 'InlineArchiveRulesList')
|
51
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
52
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
53
|
+
ListAnalyzedResourcesRequest = Shapes::StructureShape.new(name: 'ListAnalyzedResourcesRequest')
|
54
|
+
ListAnalyzedResourcesResponse = Shapes::StructureShape.new(name: 'ListAnalyzedResourcesResponse')
|
55
|
+
ListAnalyzersRequest = Shapes::StructureShape.new(name: 'ListAnalyzersRequest')
|
56
|
+
ListAnalyzersResponse = Shapes::StructureShape.new(name: 'ListAnalyzersResponse')
|
57
|
+
ListArchiveRulesRequest = Shapes::StructureShape.new(name: 'ListArchiveRulesRequest')
|
58
|
+
ListArchiveRulesResponse = Shapes::StructureShape.new(name: 'ListArchiveRulesResponse')
|
59
|
+
ListFindingsRequest = Shapes::StructureShape.new(name: 'ListFindingsRequest')
|
60
|
+
ListFindingsResponse = Shapes::StructureShape.new(name: 'ListFindingsResponse')
|
61
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
62
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
63
|
+
Name = Shapes::StringShape.new(name: 'Name')
|
64
|
+
OrderBy = Shapes::StringShape.new(name: 'OrderBy')
|
65
|
+
PrincipalMap = Shapes::MapShape.new(name: 'PrincipalMap')
|
66
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
67
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
68
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
69
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
70
|
+
SharedViaList = Shapes::ListShape.new(name: 'SharedViaList')
|
71
|
+
SortCriteria = Shapes::StructureShape.new(name: 'SortCriteria')
|
72
|
+
StartResourceScanRequest = Shapes::StructureShape.new(name: 'StartResourceScanRequest')
|
73
|
+
String = Shapes::StringShape.new(name: 'String')
|
74
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
75
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
76
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
77
|
+
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
78
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
79
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
80
|
+
Token = Shapes::StringShape.new(name: 'Token')
|
81
|
+
Type = Shapes::StringShape.new(name: 'Type')
|
82
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
83
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
84
|
+
UpdateArchiveRuleRequest = Shapes::StructureShape.new(name: 'UpdateArchiveRuleRequest')
|
85
|
+
UpdateFindingsRequest = Shapes::StructureShape.new(name: 'UpdateFindingsRequest')
|
86
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
87
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
88
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
89
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
90
|
+
ValueList = Shapes::ListShape.new(name: 'ValueList')
|
91
|
+
|
92
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
93
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
94
|
+
|
95
|
+
ActionList.member = Shapes::ShapeRef.new(shape: String)
|
96
|
+
|
97
|
+
AnalyzedResource.add_member(:actions, Shapes::ShapeRef.new(shape: ActionList, location_name: "actions"))
|
98
|
+
AnalyzedResource.add_member(:analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "analyzedAt"))
|
99
|
+
AnalyzedResource.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
100
|
+
AnalyzedResource.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
101
|
+
AnalyzedResource.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "isPublic"))
|
102
|
+
AnalyzedResource.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
103
|
+
AnalyzedResource.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
104
|
+
AnalyzedResource.add_member(:shared_via, Shapes::ShapeRef.new(shape: SharedViaList, location_name: "sharedVia"))
|
105
|
+
AnalyzedResource.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, location_name: "status"))
|
106
|
+
AnalyzedResource.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
107
|
+
AnalyzedResource.struct_class = Types::AnalyzedResource
|
108
|
+
|
109
|
+
AnalyzedResourceSummary.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
110
|
+
AnalyzedResourceSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
111
|
+
AnalyzedResourceSummary.struct_class = Types::AnalyzedResourceSummary
|
112
|
+
|
113
|
+
AnalyzedResourcesList.member = Shapes::ShapeRef.new(shape: AnalyzedResourceSummary)
|
114
|
+
|
115
|
+
AnalyzerSummary.add_member(:arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "arn"))
|
116
|
+
AnalyzerSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
117
|
+
AnalyzerSummary.add_member(:last_resource_analyzed, Shapes::ShapeRef.new(shape: String, location_name: "lastResourceAnalyzed"))
|
118
|
+
AnalyzerSummary.add_member(:last_resource_analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastResourceAnalyzedAt"))
|
119
|
+
AnalyzerSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
|
120
|
+
AnalyzerSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
121
|
+
AnalyzerSummary.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "type"))
|
122
|
+
AnalyzerSummary.struct_class = Types::AnalyzerSummary
|
123
|
+
|
124
|
+
AnalyzersList.member = Shapes::ShapeRef.new(shape: AnalyzerSummary)
|
125
|
+
|
126
|
+
ArchiveRuleSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
127
|
+
ArchiveRuleSummary.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, required: true, location_name: "filter"))
|
128
|
+
ArchiveRuleSummary.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "ruleName"))
|
129
|
+
ArchiveRuleSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
130
|
+
ArchiveRuleSummary.struct_class = Types::ArchiveRuleSummary
|
131
|
+
|
132
|
+
ArchiveRulesList.member = Shapes::ShapeRef.new(shape: ArchiveRuleSummary)
|
133
|
+
|
134
|
+
ConditionKeyMap.key = Shapes::ShapeRef.new(shape: String)
|
135
|
+
ConditionKeyMap.value = Shapes::ShapeRef.new(shape: String)
|
136
|
+
|
137
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
138
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
139
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
140
|
+
ConflictException.struct_class = Types::ConflictException
|
141
|
+
|
142
|
+
CreateAnalyzerRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "analyzerName"))
|
143
|
+
CreateAnalyzerRequest.add_member(:archive_rules, Shapes::ShapeRef.new(shape: InlineArchiveRulesList, location_name: "archiveRules"))
|
144
|
+
CreateAnalyzerRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
145
|
+
CreateAnalyzerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
146
|
+
CreateAnalyzerRequest.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location_name: "type"))
|
147
|
+
CreateAnalyzerRequest.struct_class = Types::CreateAnalyzerRequest
|
148
|
+
|
149
|
+
CreateAnalyzerResponse.add_member(:arn, Shapes::ShapeRef.new(shape: AnalyzerArn, location_name: "arn"))
|
150
|
+
CreateAnalyzerResponse.struct_class = Types::CreateAnalyzerResponse
|
151
|
+
|
152
|
+
CreateArchiveRuleRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
153
|
+
CreateArchiveRuleRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
154
|
+
CreateArchiveRuleRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, required: true, location_name: "filter"))
|
155
|
+
CreateArchiveRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "ruleName"))
|
156
|
+
CreateArchiveRuleRequest.struct_class = Types::CreateArchiveRuleRequest
|
157
|
+
|
158
|
+
Criterion.add_member(:contains, Shapes::ShapeRef.new(shape: ValueList, location_name: "contains"))
|
159
|
+
Criterion.add_member(:eq, Shapes::ShapeRef.new(shape: ValueList, location_name: "eq"))
|
160
|
+
Criterion.add_member(:exists, Shapes::ShapeRef.new(shape: Boolean, location_name: "exists"))
|
161
|
+
Criterion.add_member(:neq, Shapes::ShapeRef.new(shape: ValueList, location_name: "neq"))
|
162
|
+
Criterion.struct_class = Types::Criterion
|
163
|
+
|
164
|
+
DeleteAnalyzerRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
165
|
+
DeleteAnalyzerRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
166
|
+
DeleteAnalyzerRequest.struct_class = Types::DeleteAnalyzerRequest
|
167
|
+
|
168
|
+
DeleteArchiveRuleRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
169
|
+
DeleteArchiveRuleRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
170
|
+
DeleteArchiveRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "ruleName"))
|
171
|
+
DeleteArchiveRuleRequest.struct_class = Types::DeleteArchiveRuleRequest
|
172
|
+
|
173
|
+
FilterCriteriaMap.key = Shapes::ShapeRef.new(shape: String)
|
174
|
+
FilterCriteriaMap.value = Shapes::ShapeRef.new(shape: Criterion)
|
175
|
+
|
176
|
+
Finding.add_member(:action, Shapes::ShapeRef.new(shape: ActionList, location_name: "action"))
|
177
|
+
Finding.add_member(:analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "analyzedAt"))
|
178
|
+
Finding.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionKeyMap, required: true, location_name: "condition"))
|
179
|
+
Finding.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
180
|
+
Finding.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
181
|
+
Finding.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location_name: "id"))
|
182
|
+
Finding.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
|
183
|
+
Finding.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalMap, location_name: "principal"))
|
184
|
+
Finding.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
185
|
+
Finding.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
186
|
+
Finding.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
|
187
|
+
Finding.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
188
|
+
Finding.struct_class = Types::Finding
|
189
|
+
|
190
|
+
FindingIdList.member = Shapes::ShapeRef.new(shape: FindingId)
|
191
|
+
|
192
|
+
FindingSummary.add_member(:action, Shapes::ShapeRef.new(shape: ActionList, location_name: "action"))
|
193
|
+
FindingSummary.add_member(:analyzed_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "analyzedAt"))
|
194
|
+
FindingSummary.add_member(:condition, Shapes::ShapeRef.new(shape: ConditionKeyMap, required: true, location_name: "condition"))
|
195
|
+
FindingSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
196
|
+
FindingSummary.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "error"))
|
197
|
+
FindingSummary.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location_name: "id"))
|
198
|
+
FindingSummary.add_member(:is_public, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPublic"))
|
199
|
+
FindingSummary.add_member(:principal, Shapes::ShapeRef.new(shape: PrincipalMap, location_name: "principal"))
|
200
|
+
FindingSummary.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
201
|
+
FindingSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
202
|
+
FindingSummary.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatus, required: true, location_name: "status"))
|
203
|
+
FindingSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
204
|
+
FindingSummary.struct_class = Types::FindingSummary
|
205
|
+
|
206
|
+
FindingsList.member = Shapes::ShapeRef.new(shape: FindingSummary)
|
207
|
+
|
208
|
+
GetAnalyzedResourceRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location: "querystring", location_name: "analyzerArn"))
|
209
|
+
GetAnalyzedResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "querystring", location_name: "resourceArn"))
|
210
|
+
GetAnalyzedResourceRequest.struct_class = Types::GetAnalyzedResourceRequest
|
211
|
+
|
212
|
+
GetAnalyzedResourceResponse.add_member(:resource, Shapes::ShapeRef.new(shape: AnalyzedResource, location_name: "resource"))
|
213
|
+
GetAnalyzedResourceResponse.struct_class = Types::GetAnalyzedResourceResponse
|
214
|
+
|
215
|
+
GetAnalyzerRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
216
|
+
GetAnalyzerRequest.struct_class = Types::GetAnalyzerRequest
|
217
|
+
|
218
|
+
GetAnalyzerResponse.add_member(:analyzer, Shapes::ShapeRef.new(shape: AnalyzerSummary, required: true, location_name: "analyzer"))
|
219
|
+
GetAnalyzerResponse.struct_class = Types::GetAnalyzerResponse
|
220
|
+
|
221
|
+
GetArchiveRuleRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
222
|
+
GetArchiveRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "ruleName"))
|
223
|
+
GetArchiveRuleRequest.struct_class = Types::GetArchiveRuleRequest
|
224
|
+
|
225
|
+
GetArchiveRuleResponse.add_member(:archive_rule, Shapes::ShapeRef.new(shape: ArchiveRuleSummary, required: true, location_name: "archiveRule"))
|
226
|
+
GetArchiveRuleResponse.struct_class = Types::GetArchiveRuleResponse
|
227
|
+
|
228
|
+
GetFindingRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location: "querystring", location_name: "analyzerArn"))
|
229
|
+
GetFindingRequest.add_member(:id, Shapes::ShapeRef.new(shape: FindingId, required: true, location: "uri", location_name: "id"))
|
230
|
+
GetFindingRequest.struct_class = Types::GetFindingRequest
|
231
|
+
|
232
|
+
GetFindingResponse.add_member(:finding, Shapes::ShapeRef.new(shape: Finding, location_name: "finding"))
|
233
|
+
GetFindingResponse.struct_class = Types::GetFindingResponse
|
234
|
+
|
235
|
+
InlineArchiveRule.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, required: true, location_name: "filter"))
|
236
|
+
InlineArchiveRule.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "ruleName"))
|
237
|
+
InlineArchiveRule.struct_class = Types::InlineArchiveRule
|
238
|
+
|
239
|
+
InlineArchiveRulesList.member = Shapes::ShapeRef.new(shape: InlineArchiveRule)
|
240
|
+
|
241
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
242
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
243
|
+
InternalServerException.struct_class = Types::InternalServerException
|
244
|
+
|
245
|
+
ListAnalyzedResourcesRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "analyzerArn"))
|
246
|
+
ListAnalyzedResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
|
247
|
+
ListAnalyzedResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
248
|
+
ListAnalyzedResourcesRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
|
249
|
+
ListAnalyzedResourcesRequest.struct_class = Types::ListAnalyzedResourcesRequest
|
250
|
+
|
251
|
+
ListAnalyzedResourcesResponse.add_member(:analyzed_resources, Shapes::ShapeRef.new(shape: AnalyzedResourcesList, required: true, location_name: "analyzedResources"))
|
252
|
+
ListAnalyzedResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
253
|
+
ListAnalyzedResourcesResponse.struct_class = Types::ListAnalyzedResourcesResponse
|
254
|
+
|
255
|
+
ListAnalyzersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "maxResults"))
|
256
|
+
ListAnalyzersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "nextToken"))
|
257
|
+
ListAnalyzersRequest.add_member(:type, Shapes::ShapeRef.new(shape: Type, location: "querystring", location_name: "type"))
|
258
|
+
ListAnalyzersRequest.struct_class = Types::ListAnalyzersRequest
|
259
|
+
|
260
|
+
ListAnalyzersResponse.add_member(:analyzers, Shapes::ShapeRef.new(shape: AnalyzersList, required: true, location_name: "analyzers"))
|
261
|
+
ListAnalyzersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
262
|
+
ListAnalyzersResponse.struct_class = Types::ListAnalyzersResponse
|
263
|
+
|
264
|
+
ListArchiveRulesRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
265
|
+
ListArchiveRulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location: "querystring", location_name: "maxResults"))
|
266
|
+
ListArchiveRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "nextToken"))
|
267
|
+
ListArchiveRulesRequest.struct_class = Types::ListArchiveRulesRequest
|
268
|
+
|
269
|
+
ListArchiveRulesResponse.add_member(:archive_rules, Shapes::ShapeRef.new(shape: ArchiveRulesList, required: true, location_name: "archiveRules"))
|
270
|
+
ListArchiveRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
271
|
+
ListArchiveRulesResponse.struct_class = Types::ListArchiveRulesResponse
|
272
|
+
|
273
|
+
ListFindingsRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "analyzerArn"))
|
274
|
+
ListFindingsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, location_name: "filter"))
|
275
|
+
ListFindingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
|
276
|
+
ListFindingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
277
|
+
ListFindingsRequest.add_member(:sort, Shapes::ShapeRef.new(shape: SortCriteria, location_name: "sort"))
|
278
|
+
ListFindingsRequest.struct_class = Types::ListFindingsRequest
|
279
|
+
|
280
|
+
ListFindingsResponse.add_member(:findings, Shapes::ShapeRef.new(shape: FindingsList, required: true, location_name: "findings"))
|
281
|
+
ListFindingsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "nextToken"))
|
282
|
+
ListFindingsResponse.struct_class = Types::ListFindingsResponse
|
283
|
+
|
284
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
285
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
286
|
+
|
287
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
288
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
289
|
+
|
290
|
+
PrincipalMap.key = Shapes::ShapeRef.new(shape: String)
|
291
|
+
PrincipalMap.value = Shapes::ShapeRef.new(shape: String)
|
292
|
+
|
293
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
294
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
295
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
296
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
297
|
+
|
298
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
299
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
300
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
301
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
302
|
+
|
303
|
+
SharedViaList.member = Shapes::ShapeRef.new(shape: String)
|
304
|
+
|
305
|
+
SortCriteria.add_member(:attribute_name, Shapes::ShapeRef.new(shape: String, location_name: "attributeName"))
|
306
|
+
SortCriteria.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
|
307
|
+
SortCriteria.struct_class = Types::SortCriteria
|
308
|
+
|
309
|
+
StartResourceScanRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "analyzerArn"))
|
310
|
+
StartResourceScanRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
311
|
+
StartResourceScanRequest.struct_class = Types::StartResourceScanRequest
|
312
|
+
|
313
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: String)
|
314
|
+
|
315
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
316
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
|
317
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
318
|
+
|
319
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
320
|
+
|
321
|
+
TagsMap.key = Shapes::ShapeRef.new(shape: String)
|
322
|
+
TagsMap.value = Shapes::ShapeRef.new(shape: String)
|
323
|
+
|
324
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
325
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
326
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
327
|
+
|
328
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
329
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
330
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
331
|
+
|
332
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
333
|
+
|
334
|
+
UpdateArchiveRuleRequest.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "analyzerName"))
|
335
|
+
UpdateArchiveRuleRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
336
|
+
UpdateArchiveRuleRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FilterCriteriaMap, required: true, location_name: "filter"))
|
337
|
+
UpdateArchiveRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "ruleName"))
|
338
|
+
UpdateArchiveRuleRequest.struct_class = Types::UpdateArchiveRuleRequest
|
339
|
+
|
340
|
+
UpdateFindingsRequest.add_member(:analyzer_arn, Shapes::ShapeRef.new(shape: AnalyzerArn, required: true, location_name: "analyzerArn"))
|
341
|
+
UpdateFindingsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
342
|
+
UpdateFindingsRequest.add_member(:ids, Shapes::ShapeRef.new(shape: FindingIdList, location_name: "ids"))
|
343
|
+
UpdateFindingsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "resourceArn"))
|
344
|
+
UpdateFindingsRequest.add_member(:status, Shapes::ShapeRef.new(shape: FindingStatusUpdate, required: true, location_name: "status"))
|
345
|
+
UpdateFindingsRequest.struct_class = Types::UpdateFindingsRequest
|
346
|
+
|
347
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
348
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
349
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
350
|
+
ValidationException.struct_class = Types::ValidationException
|
351
|
+
|
352
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
353
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
354
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
355
|
+
|
356
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
357
|
+
|
358
|
+
ValueList.member = Shapes::ShapeRef.new(shape: String)
|
359
|
+
|
360
|
+
|
361
|
+
# @api private
|
362
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
363
|
+
|
364
|
+
api.version = "2019-11-01"
|
365
|
+
|
366
|
+
api.metadata = {
|
367
|
+
"apiVersion" => "2019-11-01",
|
368
|
+
"endpointPrefix" => "access-analyzer",
|
369
|
+
"jsonVersion" => "1.1",
|
370
|
+
"protocol" => "rest-json",
|
371
|
+
"serviceFullName" => "Access Analyzer",
|
372
|
+
"serviceId" => "AccessAnalyzer",
|
373
|
+
"signatureVersion" => "v4",
|
374
|
+
"signingName" => "access-analyzer",
|
375
|
+
"uid" => "accessanalyzer-2019-11-01",
|
376
|
+
}
|
377
|
+
|
378
|
+
api.add_operation(:create_analyzer, Seahorse::Model::Operation.new.tap do |o|
|
379
|
+
o.name = "CreateAnalyzer"
|
380
|
+
o.http_method = "PUT"
|
381
|
+
o.http_request_uri = "/analyzer"
|
382
|
+
o.input = Shapes::ShapeRef.new(shape: CreateAnalyzerRequest)
|
383
|
+
o.output = Shapes::ShapeRef.new(shape: CreateAnalyzerResponse)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
387
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
388
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
389
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
390
|
+
end)
|
391
|
+
|
392
|
+
api.add_operation(:create_archive_rule, Seahorse::Model::Operation.new.tap do |o|
|
393
|
+
o.name = "CreateArchiveRule"
|
394
|
+
o.http_method = "PUT"
|
395
|
+
o.http_request_uri = "/analyzer/{analyzerName}/archive-rule"
|
396
|
+
o.input = Shapes::ShapeRef.new(shape: CreateArchiveRuleRequest)
|
397
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
398
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
399
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
401
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
402
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
405
|
+
end)
|
406
|
+
|
407
|
+
api.add_operation(:delete_analyzer, Seahorse::Model::Operation.new.tap do |o|
|
408
|
+
o.name = "DeleteAnalyzer"
|
409
|
+
o.http_method = "DELETE"
|
410
|
+
o.http_request_uri = "/analyzer/{analyzerName}"
|
411
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAnalyzerRequest)
|
412
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
415
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
416
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
417
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
418
|
+
end)
|
419
|
+
|
420
|
+
api.add_operation(:delete_archive_rule, Seahorse::Model::Operation.new.tap do |o|
|
421
|
+
o.name = "DeleteArchiveRule"
|
422
|
+
o.http_method = "DELETE"
|
423
|
+
o.http_request_uri = "/analyzer/{analyzerName}/archive-rule/{ruleName}"
|
424
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteArchiveRuleRequest)
|
425
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
431
|
+
end)
|
432
|
+
|
433
|
+
api.add_operation(:get_analyzed_resource, Seahorse::Model::Operation.new.tap do |o|
|
434
|
+
o.name = "GetAnalyzedResource"
|
435
|
+
o.http_method = "GET"
|
436
|
+
o.http_request_uri = "/analyzed-resource"
|
437
|
+
o.input = Shapes::ShapeRef.new(shape: GetAnalyzedResourceRequest)
|
438
|
+
o.output = Shapes::ShapeRef.new(shape: GetAnalyzedResourceResponse)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
444
|
+
end)
|
445
|
+
|
446
|
+
api.add_operation(:get_analyzer, Seahorse::Model::Operation.new.tap do |o|
|
447
|
+
o.name = "GetAnalyzer"
|
448
|
+
o.http_method = "GET"
|
449
|
+
o.http_request_uri = "/analyzer/{analyzerName}"
|
450
|
+
o.input = Shapes::ShapeRef.new(shape: GetAnalyzerRequest)
|
451
|
+
o.output = Shapes::ShapeRef.new(shape: GetAnalyzerResponse)
|
452
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
454
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
455
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
457
|
+
end)
|
458
|
+
|
459
|
+
api.add_operation(:get_archive_rule, Seahorse::Model::Operation.new.tap do |o|
|
460
|
+
o.name = "GetArchiveRule"
|
461
|
+
o.http_method = "GET"
|
462
|
+
o.http_request_uri = "/analyzer/{analyzerName}/archive-rule/{ruleName}"
|
463
|
+
o.input = Shapes::ShapeRef.new(shape: GetArchiveRuleRequest)
|
464
|
+
o.output = Shapes::ShapeRef.new(shape: GetArchiveRuleResponse)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
470
|
+
end)
|
471
|
+
|
472
|
+
api.add_operation(:get_finding, Seahorse::Model::Operation.new.tap do |o|
|
473
|
+
o.name = "GetFinding"
|
474
|
+
o.http_method = "GET"
|
475
|
+
o.http_request_uri = "/finding/{id}"
|
476
|
+
o.input = Shapes::ShapeRef.new(shape: GetFindingRequest)
|
477
|
+
o.output = Shapes::ShapeRef.new(shape: GetFindingResponse)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
480
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
481
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
483
|
+
end)
|
484
|
+
|
485
|
+
api.add_operation(:list_analyzed_resources, Seahorse::Model::Operation.new.tap do |o|
|
486
|
+
o.name = "ListAnalyzedResources"
|
487
|
+
o.http_method = "POST"
|
488
|
+
o.http_request_uri = "/analyzed-resource"
|
489
|
+
o.input = Shapes::ShapeRef.new(shape: ListAnalyzedResourcesRequest)
|
490
|
+
o.output = Shapes::ShapeRef.new(shape: ListAnalyzedResourcesResponse)
|
491
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
492
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
493
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
494
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
495
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
496
|
+
o[:pager] = Aws::Pager.new(
|
497
|
+
limit_key: "max_results",
|
498
|
+
tokens: {
|
499
|
+
"next_token" => "next_token"
|
500
|
+
}
|
501
|
+
)
|
502
|
+
end)
|
503
|
+
|
504
|
+
api.add_operation(:list_analyzers, Seahorse::Model::Operation.new.tap do |o|
|
505
|
+
o.name = "ListAnalyzers"
|
506
|
+
o.http_method = "GET"
|
507
|
+
o.http_request_uri = "/analyzer"
|
508
|
+
o.input = Shapes::ShapeRef.new(shape: ListAnalyzersRequest)
|
509
|
+
o.output = Shapes::ShapeRef.new(shape: ListAnalyzersResponse)
|
510
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
513
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
514
|
+
o[:pager] = Aws::Pager.new(
|
515
|
+
limit_key: "max_results",
|
516
|
+
tokens: {
|
517
|
+
"next_token" => "next_token"
|
518
|
+
}
|
519
|
+
)
|
520
|
+
end)
|
521
|
+
|
522
|
+
api.add_operation(:list_archive_rules, Seahorse::Model::Operation.new.tap do |o|
|
523
|
+
o.name = "ListArchiveRules"
|
524
|
+
o.http_method = "GET"
|
525
|
+
o.http_request_uri = "/analyzer/{analyzerName}/archive-rule"
|
526
|
+
o.input = Shapes::ShapeRef.new(shape: ListArchiveRulesRequest)
|
527
|
+
o.output = Shapes::ShapeRef.new(shape: ListArchiveRulesResponse)
|
528
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
529
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
530
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
531
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
532
|
+
o[:pager] = Aws::Pager.new(
|
533
|
+
limit_key: "max_results",
|
534
|
+
tokens: {
|
535
|
+
"next_token" => "next_token"
|
536
|
+
}
|
537
|
+
)
|
538
|
+
end)
|
539
|
+
|
540
|
+
api.add_operation(:list_findings, Seahorse::Model::Operation.new.tap do |o|
|
541
|
+
o.name = "ListFindings"
|
542
|
+
o.http_method = "POST"
|
543
|
+
o.http_request_uri = "/finding"
|
544
|
+
o.input = Shapes::ShapeRef.new(shape: ListFindingsRequest)
|
545
|
+
o.output = Shapes::ShapeRef.new(shape: ListFindingsResponse)
|
546
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
547
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
548
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
549
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
550
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
551
|
+
o[:pager] = Aws::Pager.new(
|
552
|
+
limit_key: "max_results",
|
553
|
+
tokens: {
|
554
|
+
"next_token" => "next_token"
|
555
|
+
}
|
556
|
+
)
|
557
|
+
end)
|
558
|
+
|
559
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
560
|
+
o.name = "ListTagsForResource"
|
561
|
+
o.http_method = "GET"
|
562
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
563
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
564
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
565
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
566
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
567
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
569
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
570
|
+
end)
|
571
|
+
|
572
|
+
api.add_operation(:start_resource_scan, Seahorse::Model::Operation.new.tap do |o|
|
573
|
+
o.name = "StartResourceScan"
|
574
|
+
o.http_method = "POST"
|
575
|
+
o.http_request_uri = "/resource/scan"
|
576
|
+
o.input = Shapes::ShapeRef.new(shape: StartResourceScanRequest)
|
577
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
578
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
579
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
580
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
581
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
582
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
583
|
+
end)
|
584
|
+
|
585
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
586
|
+
o.name = "TagResource"
|
587
|
+
o.http_method = "POST"
|
588
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
589
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
590
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
592
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
593
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
594
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
595
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
596
|
+
end)
|
597
|
+
|
598
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
599
|
+
o.name = "UntagResource"
|
600
|
+
o.http_method = "DELETE"
|
601
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
602
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
603
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
604
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
605
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
606
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
607
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
608
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
609
|
+
end)
|
610
|
+
|
611
|
+
api.add_operation(:update_archive_rule, Seahorse::Model::Operation.new.tap do |o|
|
612
|
+
o.name = "UpdateArchiveRule"
|
613
|
+
o.http_method = "PUT"
|
614
|
+
o.http_request_uri = "/analyzer/{analyzerName}/archive-rule/{ruleName}"
|
615
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateArchiveRuleRequest)
|
616
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
617
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
618
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
619
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
620
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
621
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
622
|
+
end)
|
623
|
+
|
624
|
+
api.add_operation(:update_findings, Seahorse::Model::Operation.new.tap do |o|
|
625
|
+
o.name = "UpdateFindings"
|
626
|
+
o.http_method = "PUT"
|
627
|
+
o.http_request_uri = "/finding"
|
628
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateFindingsRequest)
|
629
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
633
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
634
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
635
|
+
end)
|
636
|
+
end
|
637
|
+
|
638
|
+
end
|
639
|
+
end
|