aws-sdk-fms 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,346 @@
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::FMS
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AWSAccountId = Shapes::StringShape.new(name: 'AWSAccountId')
15
+ AssociateAdminAccountRequest = Shapes::StructureShape.new(name: 'AssociateAdminAccountRequest')
16
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
17
+ ComplianceViolator = Shapes::StructureShape.new(name: 'ComplianceViolator')
18
+ ComplianceViolators = Shapes::ListShape.new(name: 'ComplianceViolators')
19
+ DeleteNotificationChannelRequest = Shapes::StructureShape.new(name: 'DeleteNotificationChannelRequest')
20
+ DeletePolicyRequest = Shapes::StructureShape.new(name: 'DeletePolicyRequest')
21
+ DisassociateAdminAccountRequest = Shapes::StructureShape.new(name: 'DisassociateAdminAccountRequest')
22
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
23
+ EvaluationResult = Shapes::StructureShape.new(name: 'EvaluationResult')
24
+ EvaluationResults = Shapes::ListShape.new(name: 'EvaluationResults')
25
+ GetAdminAccountRequest = Shapes::StructureShape.new(name: 'GetAdminAccountRequest')
26
+ GetAdminAccountResponse = Shapes::StructureShape.new(name: 'GetAdminAccountResponse')
27
+ GetComplianceDetailRequest = Shapes::StructureShape.new(name: 'GetComplianceDetailRequest')
28
+ GetComplianceDetailResponse = Shapes::StructureShape.new(name: 'GetComplianceDetailResponse')
29
+ GetNotificationChannelRequest = Shapes::StructureShape.new(name: 'GetNotificationChannelRequest')
30
+ GetNotificationChannelResponse = Shapes::StructureShape.new(name: 'GetNotificationChannelResponse')
31
+ GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
32
+ GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
33
+ InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
34
+ InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
35
+ InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
36
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
37
+ ListComplianceStatusRequest = Shapes::StructureShape.new(name: 'ListComplianceStatusRequest')
38
+ ListComplianceStatusResponse = Shapes::StructureShape.new(name: 'ListComplianceStatusResponse')
39
+ ListPoliciesRequest = Shapes::StructureShape.new(name: 'ListPoliciesRequest')
40
+ ListPoliciesResponse = Shapes::StructureShape.new(name: 'ListPoliciesResponse')
41
+ ManagedServiceData = Shapes::StringShape.new(name: 'ManagedServiceData')
42
+ PaginationMaxResults = Shapes::IntegerShape.new(name: 'PaginationMaxResults')
43
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
44
+ Policy = Shapes::StructureShape.new(name: 'Policy')
45
+ PolicyComplianceDetail = Shapes::StructureShape.new(name: 'PolicyComplianceDetail')
46
+ PolicyComplianceStatus = Shapes::StructureShape.new(name: 'PolicyComplianceStatus')
47
+ PolicyComplianceStatusList = Shapes::ListShape.new(name: 'PolicyComplianceStatusList')
48
+ PolicyComplianceStatusType = Shapes::StringShape.new(name: 'PolicyComplianceStatusType')
49
+ PolicyId = Shapes::StringShape.new(name: 'PolicyId')
50
+ PolicySummary = Shapes::StructureShape.new(name: 'PolicySummary')
51
+ PolicySummaryList = Shapes::ListShape.new(name: 'PolicySummaryList')
52
+ PolicyUpdateToken = Shapes::StringShape.new(name: 'PolicyUpdateToken')
53
+ PutNotificationChannelRequest = Shapes::StructureShape.new(name: 'PutNotificationChannelRequest')
54
+ PutPolicyRequest = Shapes::StructureShape.new(name: 'PutPolicyRequest')
55
+ PutPolicyResponse = Shapes::StructureShape.new(name: 'PutPolicyResponse')
56
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
57
+ ResourceCount = Shapes::IntegerShape.new(name: 'ResourceCount')
58
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
59
+ ResourceName = Shapes::StringShape.new(name: 'ResourceName')
60
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
61
+ ResourceTag = Shapes::StructureShape.new(name: 'ResourceTag')
62
+ ResourceTags = Shapes::ListShape.new(name: 'ResourceTags')
63
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
64
+ SecurityServicePolicyData = Shapes::StructureShape.new(name: 'SecurityServicePolicyData')
65
+ SecurityServiceType = Shapes::StringShape.new(name: 'SecurityServiceType')
66
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
67
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
68
+ TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
69
+ ViolationReason = Shapes::StringShape.new(name: 'ViolationReason')
70
+
71
+ AssociateAdminAccountRequest.add_member(:admin_account, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "AdminAccount"))
72
+ AssociateAdminAccountRequest.struct_class = Types::AssociateAdminAccountRequest
73
+
74
+ ComplianceViolator.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "ResourceId"))
75
+ ComplianceViolator.add_member(:violation_reason, Shapes::ShapeRef.new(shape: ViolationReason, location_name: "ViolationReason"))
76
+ ComplianceViolator.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
77
+ ComplianceViolator.struct_class = Types::ComplianceViolator
78
+
79
+ ComplianceViolators.member = Shapes::ShapeRef.new(shape: ComplianceViolator)
80
+
81
+ DeleteNotificationChannelRequest.struct_class = Types::DeleteNotificationChannelRequest
82
+
83
+ DeletePolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
84
+ DeletePolicyRequest.struct_class = Types::DeletePolicyRequest
85
+
86
+ DisassociateAdminAccountRequest.struct_class = Types::DisassociateAdminAccountRequest
87
+
88
+ EvaluationResult.add_member(:compliance_status, Shapes::ShapeRef.new(shape: PolicyComplianceStatusType, location_name: "ComplianceStatus"))
89
+ EvaluationResult.add_member(:violator_count, Shapes::ShapeRef.new(shape: ResourceCount, location_name: "ViolatorCount"))
90
+ EvaluationResult.add_member(:evaluation_limit_exceeded, Shapes::ShapeRef.new(shape: Boolean, location_name: "EvaluationLimitExceeded"))
91
+ EvaluationResult.struct_class = Types::EvaluationResult
92
+
93
+ EvaluationResults.member = Shapes::ShapeRef.new(shape: EvaluationResult)
94
+
95
+ GetAdminAccountRequest.struct_class = Types::GetAdminAccountRequest
96
+
97
+ GetAdminAccountResponse.add_member(:admin_account, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "AdminAccount"))
98
+ GetAdminAccountResponse.struct_class = Types::GetAdminAccountResponse
99
+
100
+ GetComplianceDetailRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
101
+ GetComplianceDetailRequest.add_member(:member_account, Shapes::ShapeRef.new(shape: AWSAccountId, required: true, location_name: "MemberAccount"))
102
+ GetComplianceDetailRequest.struct_class = Types::GetComplianceDetailRequest
103
+
104
+ GetComplianceDetailResponse.add_member(:policy_compliance_detail, Shapes::ShapeRef.new(shape: PolicyComplianceDetail, location_name: "PolicyComplianceDetail"))
105
+ GetComplianceDetailResponse.struct_class = Types::GetComplianceDetailResponse
106
+
107
+ GetNotificationChannelRequest.struct_class = Types::GetNotificationChannelRequest
108
+
109
+ GetNotificationChannelResponse.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "SnsTopicArn"))
110
+ GetNotificationChannelResponse.add_member(:sns_role_name, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "SnsRoleName"))
111
+ GetNotificationChannelResponse.struct_class = Types::GetNotificationChannelResponse
112
+
113
+ GetPolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
114
+ GetPolicyRequest.struct_class = Types::GetPolicyRequest
115
+
116
+ GetPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
117
+ GetPolicyResponse.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "PolicyArn"))
118
+ GetPolicyResponse.struct_class = Types::GetPolicyResponse
119
+
120
+ ListComplianceStatusRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
121
+ ListComplianceStatusRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
122
+ ListComplianceStatusRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PaginationMaxResults, location_name: "MaxResults"))
123
+ ListComplianceStatusRequest.struct_class = Types::ListComplianceStatusRequest
124
+
125
+ ListComplianceStatusResponse.add_member(:policy_compliance_status_list, Shapes::ShapeRef.new(shape: PolicyComplianceStatusList, location_name: "PolicyComplianceStatusList"))
126
+ ListComplianceStatusResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
127
+ ListComplianceStatusResponse.struct_class = Types::ListComplianceStatusResponse
128
+
129
+ ListPoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
130
+ ListPoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PaginationMaxResults, location_name: "MaxResults"))
131
+ ListPoliciesRequest.struct_class = Types::ListPoliciesRequest
132
+
133
+ ListPoliciesResponse.add_member(:policy_list, Shapes::ShapeRef.new(shape: PolicySummaryList, location_name: "PolicyList"))
134
+ ListPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
135
+ ListPoliciesResponse.struct_class = Types::ListPoliciesResponse
136
+
137
+ Policy.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
138
+ Policy.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "PolicyName"))
139
+ Policy.add_member(:policy_update_token, Shapes::ShapeRef.new(shape: PolicyUpdateToken, location_name: "PolicyUpdateToken"))
140
+ Policy.add_member(:security_service_policy_data, Shapes::ShapeRef.new(shape: SecurityServicePolicyData, required: true, location_name: "SecurityServicePolicyData"))
141
+ Policy.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
142
+ Policy.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTags, location_name: "ResourceTags"))
143
+ Policy.add_member(:exclude_resource_tags, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "ExcludeResourceTags"))
144
+ Policy.add_member(:remediation_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "RemediationEnabled"))
145
+ Policy.struct_class = Types::Policy
146
+
147
+ PolicyComplianceDetail.add_member(:policy_owner, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "PolicyOwner"))
148
+ PolicyComplianceDetail.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
149
+ PolicyComplianceDetail.add_member(:member_account, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "MemberAccount"))
150
+ PolicyComplianceDetail.add_member(:violators, Shapes::ShapeRef.new(shape: ComplianceViolators, location_name: "Violators"))
151
+ PolicyComplianceDetail.add_member(:evaluation_limit_exceeded, Shapes::ShapeRef.new(shape: Boolean, location_name: "EvaluationLimitExceeded"))
152
+ PolicyComplianceDetail.add_member(:expired_at, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "ExpiredAt"))
153
+ PolicyComplianceDetail.struct_class = Types::PolicyComplianceDetail
154
+
155
+ PolicyComplianceStatus.add_member(:policy_owner, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "PolicyOwner"))
156
+ PolicyComplianceStatus.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
157
+ PolicyComplianceStatus.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "PolicyName"))
158
+ PolicyComplianceStatus.add_member(:member_account, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "MemberAccount"))
159
+ PolicyComplianceStatus.add_member(:evaluation_results, Shapes::ShapeRef.new(shape: EvaluationResults, location_name: "EvaluationResults"))
160
+ PolicyComplianceStatus.add_member(:last_updated, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdated"))
161
+ PolicyComplianceStatus.struct_class = Types::PolicyComplianceStatus
162
+
163
+ PolicyComplianceStatusList.member = Shapes::ShapeRef.new(shape: PolicyComplianceStatus)
164
+
165
+ PolicySummary.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "PolicyArn"))
166
+ PolicySummary.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "PolicyId"))
167
+ PolicySummary.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "PolicyName"))
168
+ PolicySummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
169
+ PolicySummary.add_member(:security_service_type, Shapes::ShapeRef.new(shape: SecurityServiceType, location_name: "SecurityServiceType"))
170
+ PolicySummary.add_member(:remediation_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "RemediationEnabled"))
171
+ PolicySummary.struct_class = Types::PolicySummary
172
+
173
+ PolicySummaryList.member = Shapes::ShapeRef.new(shape: PolicySummary)
174
+
175
+ PutNotificationChannelRequest.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "SnsTopicArn"))
176
+ PutNotificationChannelRequest.add_member(:sns_role_name, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "SnsRoleName"))
177
+ PutNotificationChannelRequest.struct_class = Types::PutNotificationChannelRequest
178
+
179
+ PutPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
180
+ PutPolicyRequest.struct_class = Types::PutPolicyRequest
181
+
182
+ PutPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
183
+ PutPolicyResponse.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "PolicyArn"))
184
+ PutPolicyResponse.struct_class = Types::PutPolicyResponse
185
+
186
+ ResourceTag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
187
+ ResourceTag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
188
+ ResourceTag.struct_class = Types::ResourceTag
189
+
190
+ ResourceTags.member = Shapes::ShapeRef.new(shape: ResourceTag)
191
+
192
+ SecurityServicePolicyData.add_member(:type, Shapes::ShapeRef.new(shape: SecurityServiceType, required: true, location_name: "Type"))
193
+ SecurityServicePolicyData.add_member(:managed_service_data, Shapes::ShapeRef.new(shape: ManagedServiceData, location_name: "ManagedServiceData"))
194
+ SecurityServicePolicyData.struct_class = Types::SecurityServicePolicyData
195
+
196
+
197
+ # @api private
198
+ API = Seahorse::Model::Api.new.tap do |api|
199
+
200
+ api.version = "2018-01-01"
201
+
202
+ api.metadata = {
203
+ "endpointPrefix" => "fms",
204
+ "jsonVersion" => "1.1",
205
+ "protocol" => "json",
206
+ "serviceFullName" => "Firewall Management Service",
207
+ "signatureVersion" => "v4",
208
+ "targetPrefix" => "AWSFMS_20180101",
209
+ }
210
+
211
+ api.add_operation(:associate_admin_account, Seahorse::Model::Operation.new.tap do |o|
212
+ o.name = "AssociateAdminAccount"
213
+ o.http_method = "POST"
214
+ o.http_request_uri = "/"
215
+ o.input = Shapes::ShapeRef.new(shape: AssociateAdminAccountRequest)
216
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
217
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
218
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
219
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
220
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
221
+ end)
222
+
223
+ api.add_operation(:delete_notification_channel, Seahorse::Model::Operation.new.tap do |o|
224
+ o.name = "DeleteNotificationChannel"
225
+ o.http_method = "POST"
226
+ o.http_request_uri = "/"
227
+ o.input = Shapes::ShapeRef.new(shape: DeleteNotificationChannelRequest)
228
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
229
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
230
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
231
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
232
+ end)
233
+
234
+ api.add_operation(:delete_policy, Seahorse::Model::Operation.new.tap do |o|
235
+ o.name = "DeletePolicy"
236
+ o.http_method = "POST"
237
+ o.http_request_uri = "/"
238
+ o.input = Shapes::ShapeRef.new(shape: DeletePolicyRequest)
239
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
240
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
241
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
242
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
243
+ end)
244
+
245
+ api.add_operation(:disassociate_admin_account, Seahorse::Model::Operation.new.tap do |o|
246
+ o.name = "DisassociateAdminAccount"
247
+ o.http_method = "POST"
248
+ o.http_request_uri = "/"
249
+ o.input = Shapes::ShapeRef.new(shape: DisassociateAdminAccountRequest)
250
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
251
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
252
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
253
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
254
+ end)
255
+
256
+ api.add_operation(:get_admin_account, Seahorse::Model::Operation.new.tap do |o|
257
+ o.name = "GetAdminAccount"
258
+ o.http_method = "POST"
259
+ o.http_request_uri = "/"
260
+ o.input = Shapes::ShapeRef.new(shape: GetAdminAccountRequest)
261
+ o.output = Shapes::ShapeRef.new(shape: GetAdminAccountResponse)
262
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
263
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
264
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
265
+ end)
266
+
267
+ api.add_operation(:get_compliance_detail, Seahorse::Model::Operation.new.tap do |o|
268
+ o.name = "GetComplianceDetail"
269
+ o.http_method = "POST"
270
+ o.http_request_uri = "/"
271
+ o.input = Shapes::ShapeRef.new(shape: GetComplianceDetailRequest)
272
+ o.output = Shapes::ShapeRef.new(shape: GetComplianceDetailResponse)
273
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
274
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
275
+ end)
276
+
277
+ api.add_operation(:get_notification_channel, Seahorse::Model::Operation.new.tap do |o|
278
+ o.name = "GetNotificationChannel"
279
+ o.http_method = "POST"
280
+ o.http_request_uri = "/"
281
+ o.input = Shapes::ShapeRef.new(shape: GetNotificationChannelRequest)
282
+ o.output = Shapes::ShapeRef.new(shape: GetNotificationChannelResponse)
283
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
284
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
285
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
286
+ end)
287
+
288
+ api.add_operation(:get_policy, Seahorse::Model::Operation.new.tap do |o|
289
+ o.name = "GetPolicy"
290
+ o.http_method = "POST"
291
+ o.http_request_uri = "/"
292
+ o.input = Shapes::ShapeRef.new(shape: GetPolicyRequest)
293
+ o.output = Shapes::ShapeRef.new(shape: GetPolicyResponse)
294
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
295
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
296
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
297
+ end)
298
+
299
+ api.add_operation(:list_compliance_status, Seahorse::Model::Operation.new.tap do |o|
300
+ o.name = "ListComplianceStatus"
301
+ o.http_method = "POST"
302
+ o.http_request_uri = "/"
303
+ o.input = Shapes::ShapeRef.new(shape: ListComplianceStatusRequest)
304
+ o.output = Shapes::ShapeRef.new(shape: ListComplianceStatusResponse)
305
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
306
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
307
+ end)
308
+
309
+ api.add_operation(:list_policies, Seahorse::Model::Operation.new.tap do |o|
310
+ o.name = "ListPolicies"
311
+ o.http_method = "POST"
312
+ o.http_request_uri = "/"
313
+ o.input = Shapes::ShapeRef.new(shape: ListPoliciesRequest)
314
+ o.output = Shapes::ShapeRef.new(shape: ListPoliciesResponse)
315
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
316
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
317
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
318
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
319
+ end)
320
+
321
+ api.add_operation(:put_notification_channel, Seahorse::Model::Operation.new.tap do |o|
322
+ o.name = "PutNotificationChannel"
323
+ o.http_method = "POST"
324
+ o.http_request_uri = "/"
325
+ o.input = Shapes::ShapeRef.new(shape: PutNotificationChannelRequest)
326
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
327
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
328
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
329
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
330
+ end)
331
+
332
+ api.add_operation(:put_policy, Seahorse::Model::Operation.new.tap do |o|
333
+ o.name = "PutPolicy"
334
+ o.http_method = "POST"
335
+ o.http_request_uri = "/"
336
+ o.input = Shapes::ShapeRef.new(shape: PutPolicyRequest)
337
+ o.output = Shapes::ShapeRef.new(shape: PutPolicyResponse)
338
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
339
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
340
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
341
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
342
+ end)
343
+ end
344
+
345
+ end
346
+ end
File without changes
@@ -0,0 +1,14 @@
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::FMS
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ end
14
+ end
@@ -0,0 +1,23 @@
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::FMS
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end