aws-sdk-ssmsap 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,557 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SsmSap
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AppRegistryArn = Shapes::StringShape.new(name: 'AppRegistryArn')
17
+ Application = Shapes::StructureShape.new(name: 'Application')
18
+ ApplicationCredential = Shapes::StructureShape.new(name: 'ApplicationCredential')
19
+ ApplicationCredentialList = Shapes::ListShape.new(name: 'ApplicationCredentialList')
20
+ ApplicationId = Shapes::StringShape.new(name: 'ApplicationId')
21
+ ApplicationStatus = Shapes::StringShape.new(name: 'ApplicationStatus')
22
+ ApplicationSummary = Shapes::StructureShape.new(name: 'ApplicationSummary')
23
+ ApplicationSummaryList = Shapes::ListShape.new(name: 'ApplicationSummaryList')
24
+ ApplicationType = Shapes::StringShape.new(name: 'ApplicationType')
25
+ Arn = Shapes::StringShape.new(name: 'Arn')
26
+ Component = Shapes::StructureShape.new(name: 'Component')
27
+ ComponentId = Shapes::StringShape.new(name: 'ComponentId')
28
+ ComponentIdList = Shapes::ListShape.new(name: 'ComponentIdList')
29
+ ComponentStatus = Shapes::StringShape.new(name: 'ComponentStatus')
30
+ ComponentSummary = Shapes::StructureShape.new(name: 'ComponentSummary')
31
+ ComponentSummaryList = Shapes::ListShape.new(name: 'ComponentSummaryList')
32
+ ComponentType = Shapes::StringShape.new(name: 'ComponentType')
33
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
34
+ CredentialType = Shapes::StringShape.new(name: 'CredentialType')
35
+ Database = Shapes::StructureShape.new(name: 'Database')
36
+ DatabaseId = Shapes::StringShape.new(name: 'DatabaseId')
37
+ DatabaseIdList = Shapes::ListShape.new(name: 'DatabaseIdList')
38
+ DatabaseName = Shapes::StringShape.new(name: 'DatabaseName')
39
+ DatabaseStatus = Shapes::StringShape.new(name: 'DatabaseStatus')
40
+ DatabaseSummary = Shapes::StructureShape.new(name: 'DatabaseSummary')
41
+ DatabaseSummaryList = Shapes::ListShape.new(name: 'DatabaseSummaryList')
42
+ DatabaseType = Shapes::StringShape.new(name: 'DatabaseType')
43
+ DeleteResourcePermissionInput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionInput')
44
+ DeleteResourcePermissionOutput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionOutput')
45
+ DeregisterApplicationInput = Shapes::StructureShape.new(name: 'DeregisterApplicationInput')
46
+ DeregisterApplicationOutput = Shapes::StructureShape.new(name: 'DeregisterApplicationOutput')
47
+ GetApplicationInput = Shapes::StructureShape.new(name: 'GetApplicationInput')
48
+ GetApplicationOutput = Shapes::StructureShape.new(name: 'GetApplicationOutput')
49
+ GetComponentInput = Shapes::StructureShape.new(name: 'GetComponentInput')
50
+ GetComponentOutput = Shapes::StructureShape.new(name: 'GetComponentOutput')
51
+ GetDatabaseInput = Shapes::StructureShape.new(name: 'GetDatabaseInput')
52
+ GetDatabaseOutput = Shapes::StructureShape.new(name: 'GetDatabaseOutput')
53
+ GetOperationInput = Shapes::StructureShape.new(name: 'GetOperationInput')
54
+ GetOperationOutput = Shapes::StructureShape.new(name: 'GetOperationOutput')
55
+ GetResourcePermissionInput = Shapes::StructureShape.new(name: 'GetResourcePermissionInput')
56
+ GetResourcePermissionOutput = Shapes::StructureShape.new(name: 'GetResourcePermissionOutput')
57
+ Host = Shapes::StructureShape.new(name: 'Host')
58
+ HostList = Shapes::ListShape.new(name: 'HostList')
59
+ HostRole = Shapes::StringShape.new(name: 'HostRole')
60
+ InstanceId = Shapes::StringShape.new(name: 'InstanceId')
61
+ InstanceList = Shapes::ListShape.new(name: 'InstanceList')
62
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
63
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
64
+ ListApplicationsInput = Shapes::StructureShape.new(name: 'ListApplicationsInput')
65
+ ListApplicationsOutput = Shapes::StructureShape.new(name: 'ListApplicationsOutput')
66
+ ListComponentsInput = Shapes::StructureShape.new(name: 'ListComponentsInput')
67
+ ListComponentsOutput = Shapes::StructureShape.new(name: 'ListComponentsOutput')
68
+ ListDatabasesInput = Shapes::StructureShape.new(name: 'ListDatabasesInput')
69
+ ListDatabasesOutput = Shapes::StructureShape.new(name: 'ListDatabasesOutput')
70
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
71
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
72
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
73
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
74
+ Operation = Shapes::StructureShape.new(name: 'Operation')
75
+ OperationId = Shapes::StringShape.new(name: 'OperationId')
76
+ OperationIdList = Shapes::ListShape.new(name: 'OperationIdList')
77
+ OperationProperties = Shapes::MapShape.new(name: 'OperationProperties')
78
+ OperationStatus = Shapes::StringShape.new(name: 'OperationStatus')
79
+ OperationType = Shapes::StringShape.new(name: 'OperationType')
80
+ PermissionActionType = Shapes::StringShape.new(name: 'PermissionActionType')
81
+ PutResourcePermissionInput = Shapes::StructureShape.new(name: 'PutResourcePermissionInput')
82
+ PutResourcePermissionOutput = Shapes::StructureShape.new(name: 'PutResourcePermissionOutput')
83
+ RegisterApplicationInput = Shapes::StructureShape.new(name: 'RegisterApplicationInput')
84
+ RegisterApplicationOutput = Shapes::StructureShape.new(name: 'RegisterApplicationOutput')
85
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
86
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
87
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
88
+ SAPInstanceNumber = Shapes::StringShape.new(name: 'SAPInstanceNumber')
89
+ SID = Shapes::StringShape.new(name: 'SID')
90
+ SecretId = Shapes::StringShape.new(name: 'SecretId')
91
+ SsmSapArn = Shapes::StringShape.new(name: 'SsmSapArn')
92
+ String = Shapes::StringShape.new(name: 'String')
93
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
94
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
95
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
96
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
97
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
98
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
99
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
100
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
101
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
102
+ UpdateApplicationSettingsInput = Shapes::StructureShape.new(name: 'UpdateApplicationSettingsInput')
103
+ UpdateApplicationSettingsOutput = Shapes::StructureShape.new(name: 'UpdateApplicationSettingsOutput')
104
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
105
+
106
+ Application.add_member(:id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "Id"))
107
+ Application.add_member(:type, Shapes::ShapeRef.new(shape: ApplicationType, location_name: "Type"))
108
+ Application.add_member(:arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "Arn"))
109
+ Application.add_member(:app_registry_arn, Shapes::ShapeRef.new(shape: AppRegistryArn, location_name: "AppRegistryArn"))
110
+ Application.add_member(:status, Shapes::ShapeRef.new(shape: ApplicationStatus, location_name: "Status"))
111
+ Application.add_member(:components, Shapes::ShapeRef.new(shape: ComponentIdList, location_name: "Components"))
112
+ Application.add_member(:last_updated, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdated"))
113
+ Application.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
114
+ Application.struct_class = Types::Application
115
+
116
+ ApplicationCredential.add_member(:database_name, Shapes::ShapeRef.new(shape: DatabaseName, required: true, location_name: "DatabaseName"))
117
+ ApplicationCredential.add_member(:credential_type, Shapes::ShapeRef.new(shape: CredentialType, required: true, location_name: "CredentialType"))
118
+ ApplicationCredential.add_member(:secret_id, Shapes::ShapeRef.new(shape: SecretId, required: true, location_name: "SecretId"))
119
+ ApplicationCredential.struct_class = Types::ApplicationCredential
120
+
121
+ ApplicationCredentialList.member = Shapes::ShapeRef.new(shape: ApplicationCredential)
122
+
123
+ ApplicationSummary.add_member(:id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "Id"))
124
+ ApplicationSummary.add_member(:type, Shapes::ShapeRef.new(shape: ApplicationType, location_name: "Type"))
125
+ ApplicationSummary.add_member(:arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "Arn"))
126
+ ApplicationSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
127
+ ApplicationSummary.struct_class = Types::ApplicationSummary
128
+
129
+ ApplicationSummaryList.member = Shapes::ShapeRef.new(shape: ApplicationSummary)
130
+
131
+ Component.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
132
+ Component.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
133
+ Component.add_member(:component_type, Shapes::ShapeRef.new(shape: ComponentType, location_name: "ComponentType"))
134
+ Component.add_member(:status, Shapes::ShapeRef.new(shape: ComponentStatus, location_name: "Status"))
135
+ Component.add_member(:databases, Shapes::ShapeRef.new(shape: DatabaseIdList, location_name: "Databases"))
136
+ Component.add_member(:hosts, Shapes::ShapeRef.new(shape: HostList, location_name: "Hosts"))
137
+ Component.add_member(:primary_host, Shapes::ShapeRef.new(shape: String, location_name: "PrimaryHost"))
138
+ Component.add_member(:last_updated, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdated"))
139
+ Component.struct_class = Types::Component
140
+
141
+ ComponentIdList.member = Shapes::ShapeRef.new(shape: ComponentId)
142
+
143
+ ComponentSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
144
+ ComponentSummary.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
145
+ ComponentSummary.add_member(:component_type, Shapes::ShapeRef.new(shape: ComponentType, location_name: "ComponentType"))
146
+ ComponentSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
147
+ ComponentSummary.struct_class = Types::ComponentSummary
148
+
149
+ ComponentSummaryList.member = Shapes::ShapeRef.new(shape: ComponentSummary)
150
+
151
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
152
+ ConflictException.struct_class = Types::ConflictException
153
+
154
+ Database.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
155
+ Database.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
156
+ Database.add_member(:credentials, Shapes::ShapeRef.new(shape: ApplicationCredentialList, location_name: "Credentials"))
157
+ Database.add_member(:database_id, Shapes::ShapeRef.new(shape: DatabaseId, location_name: "DatabaseId"))
158
+ Database.add_member(:database_name, Shapes::ShapeRef.new(shape: String, location_name: "DatabaseName"))
159
+ Database.add_member(:database_type, Shapes::ShapeRef.new(shape: DatabaseType, location_name: "DatabaseType"))
160
+ Database.add_member(:arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "Arn"))
161
+ Database.add_member(:status, Shapes::ShapeRef.new(shape: DatabaseStatus, location_name: "Status"))
162
+ Database.add_member(:primary_host, Shapes::ShapeRef.new(shape: String, location_name: "PrimaryHost"))
163
+ Database.add_member(:sql_port, Shapes::ShapeRef.new(shape: Integer, location_name: "SQLPort"))
164
+ Database.add_member(:last_updated, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdated"))
165
+ Database.struct_class = Types::Database
166
+
167
+ DatabaseIdList.member = Shapes::ShapeRef.new(shape: DatabaseId)
168
+
169
+ DatabaseSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
170
+ DatabaseSummary.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
171
+ DatabaseSummary.add_member(:database_id, Shapes::ShapeRef.new(shape: DatabaseId, location_name: "DatabaseId"))
172
+ DatabaseSummary.add_member(:database_type, Shapes::ShapeRef.new(shape: DatabaseType, location_name: "DatabaseType"))
173
+ DatabaseSummary.add_member(:arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "Arn"))
174
+ DatabaseSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
175
+ DatabaseSummary.struct_class = Types::DatabaseSummary
176
+
177
+ DatabaseSummaryList.member = Shapes::ShapeRef.new(shape: DatabaseSummary)
178
+
179
+ DeleteResourcePermissionInput.add_member(:action_type, Shapes::ShapeRef.new(shape: PermissionActionType, location_name: "ActionType"))
180
+ DeleteResourcePermissionInput.add_member(:source_resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SourceResourceArn"))
181
+ DeleteResourcePermissionInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
182
+ DeleteResourcePermissionInput.struct_class = Types::DeleteResourcePermissionInput
183
+
184
+ DeleteResourcePermissionOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
185
+ DeleteResourcePermissionOutput.struct_class = Types::DeleteResourcePermissionOutput
186
+
187
+ DeregisterApplicationInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "ApplicationId"))
188
+ DeregisterApplicationInput.struct_class = Types::DeregisterApplicationInput
189
+
190
+ DeregisterApplicationOutput.struct_class = Types::DeregisterApplicationOutput
191
+
192
+ GetApplicationInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
193
+ GetApplicationInput.add_member(:application_arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "ApplicationArn"))
194
+ GetApplicationInput.struct_class = Types::GetApplicationInput
195
+
196
+ GetApplicationOutput.add_member(:application, Shapes::ShapeRef.new(shape: Application, location_name: "Application"))
197
+ GetApplicationOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
198
+ GetApplicationOutput.struct_class = Types::GetApplicationOutput
199
+
200
+ GetComponentInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "ApplicationId"))
201
+ GetComponentInput.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, required: true, location_name: "ComponentId"))
202
+ GetComponentInput.struct_class = Types::GetComponentInput
203
+
204
+ GetComponentOutput.add_member(:component, Shapes::ShapeRef.new(shape: Component, location_name: "Component"))
205
+ GetComponentOutput.struct_class = Types::GetComponentOutput
206
+
207
+ GetDatabaseInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
208
+ GetDatabaseInput.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
209
+ GetDatabaseInput.add_member(:database_id, Shapes::ShapeRef.new(shape: DatabaseId, location_name: "DatabaseId"))
210
+ GetDatabaseInput.add_member(:database_arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "DatabaseArn"))
211
+ GetDatabaseInput.struct_class = Types::GetDatabaseInput
212
+
213
+ GetDatabaseOutput.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
214
+ GetDatabaseOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
215
+ GetDatabaseOutput.struct_class = Types::GetDatabaseOutput
216
+
217
+ GetOperationInput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, required: true, location_name: "OperationId"))
218
+ GetOperationInput.struct_class = Types::GetOperationInput
219
+
220
+ GetOperationOutput.add_member(:operation, Shapes::ShapeRef.new(shape: Operation, location_name: "Operation"))
221
+ GetOperationOutput.struct_class = Types::GetOperationOutput
222
+
223
+ GetResourcePermissionInput.add_member(:action_type, Shapes::ShapeRef.new(shape: PermissionActionType, location_name: "ActionType"))
224
+ GetResourcePermissionInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
225
+ GetResourcePermissionInput.struct_class = Types::GetResourcePermissionInput
226
+
227
+ GetResourcePermissionOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
228
+ GetResourcePermissionOutput.struct_class = Types::GetResourcePermissionOutput
229
+
230
+ Host.add_member(:host_name, Shapes::ShapeRef.new(shape: String, location_name: "HostName"))
231
+ Host.add_member(:host_role, Shapes::ShapeRef.new(shape: HostRole, location_name: "HostRole"))
232
+ Host.add_member(:host_ip, Shapes::ShapeRef.new(shape: String, location_name: "HostIp"))
233
+ Host.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "InstanceId"))
234
+ Host.struct_class = Types::Host
235
+
236
+ HostList.member = Shapes::ShapeRef.new(shape: Host)
237
+
238
+ InstanceList.member = Shapes::ShapeRef.new(shape: InstanceId)
239
+
240
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
241
+ InternalServerException.struct_class = Types::InternalServerException
242
+
243
+ ListApplicationsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
244
+ ListApplicationsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
245
+ ListApplicationsInput.struct_class = Types::ListApplicationsInput
246
+
247
+ ListApplicationsOutput.add_member(:applications, Shapes::ShapeRef.new(shape: ApplicationSummaryList, location_name: "Applications"))
248
+ ListApplicationsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
249
+ ListApplicationsOutput.struct_class = Types::ListApplicationsOutput
250
+
251
+ ListComponentsInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
252
+ ListComponentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
253
+ ListComponentsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
254
+ ListComponentsInput.struct_class = Types::ListComponentsInput
255
+
256
+ ListComponentsOutput.add_member(:components, Shapes::ShapeRef.new(shape: ComponentSummaryList, location_name: "Components"))
257
+ ListComponentsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
258
+ ListComponentsOutput.struct_class = Types::ListComponentsOutput
259
+
260
+ ListDatabasesInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
261
+ ListDatabasesInput.add_member(:component_id, Shapes::ShapeRef.new(shape: ComponentId, location_name: "ComponentId"))
262
+ ListDatabasesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
263
+ ListDatabasesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
264
+ ListDatabasesInput.struct_class = Types::ListDatabasesInput
265
+
266
+ ListDatabasesOutput.add_member(:databases, Shapes::ShapeRef.new(shape: DatabaseSummaryList, location_name: "Databases"))
267
+ ListDatabasesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
268
+ ListDatabasesOutput.struct_class = Types::ListDatabasesOutput
269
+
270
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SsmSapArn, required: true, location: "uri", location_name: "resourceArn"))
271
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
272
+
273
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
274
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
275
+
276
+ Operation.add_member(:id, Shapes::ShapeRef.new(shape: OperationId, location_name: "Id"))
277
+ Operation.add_member(:type, Shapes::ShapeRef.new(shape: OperationType, location_name: "Type"))
278
+ Operation.add_member(:status, Shapes::ShapeRef.new(shape: OperationStatus, location_name: "Status"))
279
+ Operation.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
280
+ Operation.add_member(:properties, Shapes::ShapeRef.new(shape: OperationProperties, location_name: "Properties"))
281
+ Operation.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
282
+ Operation.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "ResourceId"))
283
+ Operation.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ResourceArn"))
284
+ Operation.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
285
+ Operation.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
286
+ Operation.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedTime"))
287
+ Operation.struct_class = Types::Operation
288
+
289
+ OperationIdList.member = Shapes::ShapeRef.new(shape: OperationId)
290
+
291
+ OperationProperties.key = Shapes::ShapeRef.new(shape: String)
292
+ OperationProperties.value = Shapes::ShapeRef.new(shape: String)
293
+
294
+ PutResourcePermissionInput.add_member(:action_type, Shapes::ShapeRef.new(shape: PermissionActionType, required: true, location_name: "ActionType"))
295
+ PutResourcePermissionInput.add_member(:source_resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "SourceResourceArn"))
296
+ PutResourcePermissionInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
297
+ PutResourcePermissionInput.struct_class = Types::PutResourcePermissionInput
298
+
299
+ PutResourcePermissionOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
300
+ PutResourcePermissionOutput.struct_class = Types::PutResourcePermissionOutput
301
+
302
+ RegisterApplicationInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "ApplicationId"))
303
+ RegisterApplicationInput.add_member(:application_type, Shapes::ShapeRef.new(shape: ApplicationType, required: true, location_name: "ApplicationType"))
304
+ RegisterApplicationInput.add_member(:instances, Shapes::ShapeRef.new(shape: InstanceList, required: true, location_name: "Instances"))
305
+ RegisterApplicationInput.add_member(:sap_instance_number, Shapes::ShapeRef.new(shape: SAPInstanceNumber, location_name: "SapInstanceNumber"))
306
+ RegisterApplicationInput.add_member(:sid, Shapes::ShapeRef.new(shape: SID, location_name: "Sid"))
307
+ RegisterApplicationInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
308
+ RegisterApplicationInput.add_member(:credentials, Shapes::ShapeRef.new(shape: ApplicationCredentialList, required: true, location_name: "Credentials"))
309
+ RegisterApplicationInput.struct_class = Types::RegisterApplicationInput
310
+
311
+ RegisterApplicationOutput.add_member(:application, Shapes::ShapeRef.new(shape: Application, location_name: "Application"))
312
+ RegisterApplicationOutput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, location_name: "OperationId"))
313
+ RegisterApplicationOutput.struct_class = Types::RegisterApplicationOutput
314
+
315
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
316
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
317
+
318
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
319
+
320
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
321
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
322
+
323
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SsmSapArn, required: true, location: "uri", location_name: "resourceArn"))
324
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
325
+ TagResourceRequest.struct_class = Types::TagResourceRequest
326
+
327
+ TagResourceResponse.struct_class = Types::TagResourceResponse
328
+
329
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SsmSapArn, required: true, location: "uri", location_name: "resourceArn"))
330
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
331
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
332
+
333
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
334
+
335
+ UpdateApplicationSettingsInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "ApplicationId"))
336
+ UpdateApplicationSettingsInput.add_member(:credentials_to_add_or_update, Shapes::ShapeRef.new(shape: ApplicationCredentialList, location_name: "CredentialsToAddOrUpdate"))
337
+ UpdateApplicationSettingsInput.add_member(:credentials_to_remove, Shapes::ShapeRef.new(shape: ApplicationCredentialList, location_name: "CredentialsToRemove"))
338
+ UpdateApplicationSettingsInput.struct_class = Types::UpdateApplicationSettingsInput
339
+
340
+ UpdateApplicationSettingsOutput.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
341
+ UpdateApplicationSettingsOutput.add_member(:operation_ids, Shapes::ShapeRef.new(shape: OperationIdList, location_name: "OperationIds"))
342
+ UpdateApplicationSettingsOutput.struct_class = Types::UpdateApplicationSettingsOutput
343
+
344
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
345
+ ValidationException.struct_class = Types::ValidationException
346
+
347
+
348
+ # @api private
349
+ API = Seahorse::Model::Api.new.tap do |api|
350
+
351
+ api.version = "2018-05-10"
352
+
353
+ api.metadata = {
354
+ "apiVersion" => "2018-05-10",
355
+ "endpointPrefix" => "ssm-sap",
356
+ "jsonVersion" => "1.1",
357
+ "protocol" => "rest-json",
358
+ "serviceAbbreviation" => "SsmSap",
359
+ "serviceFullName" => "AWS Systems Manager for SAP",
360
+ "serviceId" => "SsmSap",
361
+ "signatureVersion" => "v4",
362
+ "signingName" => "ssm-sap",
363
+ "uid" => "ssmsap-2018-05-10",
364
+ }
365
+
366
+ api.add_operation(:delete_resource_permission, Seahorse::Model::Operation.new.tap do |o|
367
+ o.name = "DeleteResourcePermission"
368
+ o.http_method = "POST"
369
+ o.http_request_uri = "/delete-resource-permission"
370
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePermissionInput)
371
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePermissionOutput)
372
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
373
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
374
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
375
+ end)
376
+
377
+ api.add_operation(:deregister_application, Seahorse::Model::Operation.new.tap do |o|
378
+ o.name = "DeregisterApplication"
379
+ o.http_method = "POST"
380
+ o.http_request_uri = "/deregister-application"
381
+ o.input = Shapes::ShapeRef.new(shape: DeregisterApplicationInput)
382
+ o.output = Shapes::ShapeRef.new(shape: DeregisterApplicationOutput)
383
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
385
+ end)
386
+
387
+ api.add_operation(:get_application, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "GetApplication"
389
+ o.http_method = "POST"
390
+ o.http_request_uri = "/get-application"
391
+ o.input = Shapes::ShapeRef.new(shape: GetApplicationInput)
392
+ o.output = Shapes::ShapeRef.new(shape: GetApplicationOutput)
393
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
394
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
395
+ end)
396
+
397
+ api.add_operation(:get_component, Seahorse::Model::Operation.new.tap do |o|
398
+ o.name = "GetComponent"
399
+ o.http_method = "POST"
400
+ o.http_request_uri = "/get-component"
401
+ o.input = Shapes::ShapeRef.new(shape: GetComponentInput)
402
+ o.output = Shapes::ShapeRef.new(shape: GetComponentOutput)
403
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
404
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
405
+ end)
406
+
407
+ api.add_operation(:get_database, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "GetDatabase"
409
+ o.http_method = "POST"
410
+ o.http_request_uri = "/get-database"
411
+ o.input = Shapes::ShapeRef.new(shape: GetDatabaseInput)
412
+ o.output = Shapes::ShapeRef.new(shape: GetDatabaseOutput)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
+ end)
416
+
417
+ api.add_operation(:get_operation, Seahorse::Model::Operation.new.tap do |o|
418
+ o.name = "GetOperation"
419
+ o.http_method = "POST"
420
+ o.http_request_uri = "/get-operation"
421
+ o.input = Shapes::ShapeRef.new(shape: GetOperationInput)
422
+ o.output = Shapes::ShapeRef.new(shape: GetOperationOutput)
423
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
424
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
425
+ end)
426
+
427
+ api.add_operation(:get_resource_permission, Seahorse::Model::Operation.new.tap do |o|
428
+ o.name = "GetResourcePermission"
429
+ o.http_method = "POST"
430
+ o.http_request_uri = "/get-resource-permission"
431
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePermissionInput)
432
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePermissionOutput)
433
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
434
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
435
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
436
+ end)
437
+
438
+ api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
439
+ o.name = "ListApplications"
440
+ o.http_method = "POST"
441
+ o.http_request_uri = "/list-applications"
442
+ o.input = Shapes::ShapeRef.new(shape: ListApplicationsInput)
443
+ o.output = Shapes::ShapeRef.new(shape: ListApplicationsOutput)
444
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
445
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
446
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
447
+ o[:pager] = Aws::Pager.new(
448
+ limit_key: "max_results",
449
+ tokens: {
450
+ "next_token" => "next_token"
451
+ }
452
+ )
453
+ end)
454
+
455
+ api.add_operation(:list_components, Seahorse::Model::Operation.new.tap do |o|
456
+ o.name = "ListComponents"
457
+ o.http_method = "POST"
458
+ o.http_request_uri = "/list-components"
459
+ o.input = Shapes::ShapeRef.new(shape: ListComponentsInput)
460
+ o.output = Shapes::ShapeRef.new(shape: ListComponentsOutput)
461
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
462
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
463
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
464
+ o[:pager] = Aws::Pager.new(
465
+ limit_key: "max_results",
466
+ tokens: {
467
+ "next_token" => "next_token"
468
+ }
469
+ )
470
+ end)
471
+
472
+ api.add_operation(:list_databases, Seahorse::Model::Operation.new.tap do |o|
473
+ o.name = "ListDatabases"
474
+ o.http_method = "POST"
475
+ o.http_request_uri = "/list-databases"
476
+ o.input = Shapes::ShapeRef.new(shape: ListDatabasesInput)
477
+ o.output = Shapes::ShapeRef.new(shape: ListDatabasesOutput)
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[:pager] = Aws::Pager.new(
482
+ limit_key: "max_results",
483
+ tokens: {
484
+ "next_token" => "next_token"
485
+ }
486
+ )
487
+ end)
488
+
489
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
490
+ o.name = "ListTagsForResource"
491
+ o.http_method = "GET"
492
+ o.http_request_uri = "/tags/{resourceArn}"
493
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
494
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
495
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
496
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
497
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
498
+ end)
499
+
500
+ api.add_operation(:put_resource_permission, Seahorse::Model::Operation.new.tap do |o|
501
+ o.name = "PutResourcePermission"
502
+ o.http_method = "POST"
503
+ o.http_request_uri = "/put-resource-permission"
504
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePermissionInput)
505
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePermissionOutput)
506
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
507
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
508
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
509
+ end)
510
+
511
+ api.add_operation(:register_application, Seahorse::Model::Operation.new.tap do |o|
512
+ o.name = "RegisterApplication"
513
+ o.http_method = "POST"
514
+ o.http_request_uri = "/register-application"
515
+ o.input = Shapes::ShapeRef.new(shape: RegisterApplicationInput)
516
+ o.output = Shapes::ShapeRef.new(shape: RegisterApplicationOutput)
517
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
518
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
519
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
520
+ end)
521
+
522
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
523
+ o.name = "TagResource"
524
+ o.http_method = "POST"
525
+ o.http_request_uri = "/tags/{resourceArn}"
526
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
527
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
528
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
529
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
530
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
531
+ end)
532
+
533
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
534
+ o.name = "UntagResource"
535
+ o.http_method = "DELETE"
536
+ o.http_request_uri = "/tags/{resourceArn}"
537
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
538
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
539
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
540
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
541
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
542
+ end)
543
+
544
+ api.add_operation(:update_application_settings, Seahorse::Model::Operation.new.tap do |o|
545
+ o.name = "UpdateApplicationSettings"
546
+ o.http_method = "POST"
547
+ o.http_request_uri = "/update-application-settings"
548
+ o.input = Shapes::ShapeRef.new(shape: UpdateApplicationSettingsInput)
549
+ o.output = Shapes::ShapeRef.new(shape: UpdateApplicationSettingsOutput)
550
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
551
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
552
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
553
+ end)
554
+ end
555
+
556
+ end
557
+ end
File without changes
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SsmSap
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end