aws-sdk-docdbelastic 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-docdbelastic/client.rb +388 -84
- data/lib/aws-sdk-docdbelastic/client_api.rb +95 -0
- data/lib/aws-sdk-docdbelastic/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-docdbelastic/endpoints.rb +42 -0
- data/lib/aws-sdk-docdbelastic/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-docdbelastic/types.rb +396 -118
- data/lib/aws-sdk-docdbelastic.rb +2 -2
- data/sig/client.rbs +44 -1
- data/sig/types.rbs +59 -4
- metadata +2 -2
@@ -16,6 +16,7 @@ module Aws::DocDBElastic
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
17
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
18
18
|
Auth = Shapes::StringShape.new(name: 'Auth')
|
19
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
20
|
Cluster = Shapes::StructureShape.new(name: 'Cluster')
|
20
21
|
ClusterInList = Shapes::StructureShape.new(name: 'ClusterInList')
|
21
22
|
ClusterList = Shapes::ListShape.new(name: 'ClusterList')
|
@@ -23,6 +24,9 @@ module Aws::DocDBElastic
|
|
23
24
|
ClusterSnapshotInList = Shapes::StructureShape.new(name: 'ClusterSnapshotInList')
|
24
25
|
ClusterSnapshotList = Shapes::ListShape.new(name: 'ClusterSnapshotList')
|
25
26
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
27
|
+
CopyClusterSnapshotInput = Shapes::StructureShape.new(name: 'CopyClusterSnapshotInput')
|
28
|
+
CopyClusterSnapshotInputTargetSnapshotNameString = Shapes::StringShape.new(name: 'CopyClusterSnapshotInputTargetSnapshotNameString')
|
29
|
+
CopyClusterSnapshotOutput = Shapes::StructureShape.new(name: 'CopyClusterSnapshotOutput')
|
26
30
|
CreateClusterInput = Shapes::StructureShape.new(name: 'CreateClusterInput')
|
27
31
|
CreateClusterOutput = Shapes::StructureShape.new(name: 'CreateClusterOutput')
|
28
32
|
CreateClusterSnapshotInput = Shapes::StructureShape.new(name: 'CreateClusterSnapshotInput')
|
@@ -52,7 +56,14 @@ module Aws::DocDBElastic
|
|
52
56
|
RestoreClusterFromSnapshotInput = Shapes::StructureShape.new(name: 'RestoreClusterFromSnapshotInput')
|
53
57
|
RestoreClusterFromSnapshotOutput = Shapes::StructureShape.new(name: 'RestoreClusterFromSnapshotOutput')
|
54
58
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
59
|
+
Shard = Shapes::StructureShape.new(name: 'Shard')
|
60
|
+
ShardList = Shapes::ListShape.new(name: 'ShardList')
|
61
|
+
SnapshotType = Shapes::StringShape.new(name: 'SnapshotType')
|
62
|
+
StartClusterInput = Shapes::StructureShape.new(name: 'StartClusterInput')
|
63
|
+
StartClusterOutput = Shapes::StructureShape.new(name: 'StartClusterOutput')
|
55
64
|
Status = Shapes::StringShape.new(name: 'Status')
|
65
|
+
StopClusterInput = Shapes::StructureShape.new(name: 'StopClusterInput')
|
66
|
+
StopClusterOutput = Shapes::StructureShape.new(name: 'StopClusterOutput')
|
56
67
|
String = Shapes::StringShape.new(name: 'String')
|
57
68
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
58
69
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
@@ -76,14 +87,18 @@ module Aws::DocDBElastic
|
|
76
87
|
|
77
88
|
Cluster.add_member(:admin_user_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "adminUserName"))
|
78
89
|
Cluster.add_member(:auth_type, Shapes::ShapeRef.new(shape: Auth, required: true, location_name: "authType"))
|
90
|
+
Cluster.add_member(:backup_retention_period, Shapes::ShapeRef.new(shape: Integer, location_name: "backupRetentionPeriod"))
|
79
91
|
Cluster.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clusterArn"))
|
80
92
|
Cluster.add_member(:cluster_endpoint, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clusterEndpoint"))
|
81
93
|
Cluster.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clusterName"))
|
82
94
|
Cluster.add_member(:create_time, Shapes::ShapeRef.new(shape: String, required: true, location_name: "createTime"))
|
83
95
|
Cluster.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "kmsKeyId"))
|
96
|
+
Cluster.add_member(:preferred_backup_window, Shapes::ShapeRef.new(shape: String, location_name: "preferredBackupWindow"))
|
84
97
|
Cluster.add_member(:preferred_maintenance_window, Shapes::ShapeRef.new(shape: String, required: true, location_name: "preferredMaintenanceWindow"))
|
85
98
|
Cluster.add_member(:shard_capacity, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "shardCapacity"))
|
86
99
|
Cluster.add_member(:shard_count, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "shardCount"))
|
100
|
+
Cluster.add_member(:shard_instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "shardInstanceCount"))
|
101
|
+
Cluster.add_member(:shards, Shapes::ShapeRef.new(shape: ShardList, location_name: "shards"))
|
87
102
|
Cluster.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
|
88
103
|
Cluster.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnetIds"))
|
89
104
|
Cluster.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "vpcSecurityGroupIds"))
|
@@ -103,6 +118,7 @@ module Aws::DocDBElastic
|
|
103
118
|
ClusterSnapshot.add_member(:snapshot_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotArn"))
|
104
119
|
ClusterSnapshot.add_member(:snapshot_creation_time, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotCreationTime"))
|
105
120
|
ClusterSnapshot.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotName"))
|
121
|
+
ClusterSnapshot.add_member(:snapshot_type, Shapes::ShapeRef.new(shape: SnapshotType, location_name: "snapshotType"))
|
106
122
|
ClusterSnapshot.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
|
107
123
|
ClusterSnapshot.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnetIds"))
|
108
124
|
ClusterSnapshot.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "vpcSecurityGroupIds"))
|
@@ -122,15 +138,28 @@ module Aws::DocDBElastic
|
|
122
138
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
123
139
|
ConflictException.struct_class = Types::ConflictException
|
124
140
|
|
141
|
+
CopyClusterSnapshotInput.add_member(:copy_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "copyTags"))
|
142
|
+
CopyClusterSnapshotInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
143
|
+
CopyClusterSnapshotInput.add_member(:snapshot_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "snapshotArn"))
|
144
|
+
CopyClusterSnapshotInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
145
|
+
CopyClusterSnapshotInput.add_member(:target_snapshot_name, Shapes::ShapeRef.new(shape: CopyClusterSnapshotInputTargetSnapshotNameString, required: true, location_name: "targetSnapshotName"))
|
146
|
+
CopyClusterSnapshotInput.struct_class = Types::CopyClusterSnapshotInput
|
147
|
+
|
148
|
+
CopyClusterSnapshotOutput.add_member(:snapshot, Shapes::ShapeRef.new(shape: ClusterSnapshot, required: true, location_name: "snapshot"))
|
149
|
+
CopyClusterSnapshotOutput.struct_class = Types::CopyClusterSnapshotOutput
|
150
|
+
|
125
151
|
CreateClusterInput.add_member(:admin_user_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "adminUserName"))
|
126
152
|
CreateClusterInput.add_member(:admin_user_password, Shapes::ShapeRef.new(shape: Password, required: true, location_name: "adminUserPassword"))
|
127
153
|
CreateClusterInput.add_member(:auth_type, Shapes::ShapeRef.new(shape: Auth, required: true, location_name: "authType"))
|
154
|
+
CreateClusterInput.add_member(:backup_retention_period, Shapes::ShapeRef.new(shape: Integer, location_name: "backupRetentionPeriod"))
|
128
155
|
CreateClusterInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
129
156
|
CreateClusterInput.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clusterName"))
|
130
157
|
CreateClusterInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
158
|
+
CreateClusterInput.add_member(:preferred_backup_window, Shapes::ShapeRef.new(shape: String, location_name: "preferredBackupWindow"))
|
131
159
|
CreateClusterInput.add_member(:preferred_maintenance_window, Shapes::ShapeRef.new(shape: String, location_name: "preferredMaintenanceWindow"))
|
132
160
|
CreateClusterInput.add_member(:shard_capacity, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "shardCapacity"))
|
133
161
|
CreateClusterInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "shardCount"))
|
162
|
+
CreateClusterInput.add_member(:shard_instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "shardInstanceCount"))
|
134
163
|
CreateClusterInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "subnetIds"))
|
135
164
|
CreateClusterInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
136
165
|
CreateClusterInput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "vpcSecurityGroupIds"))
|
@@ -177,6 +206,7 @@ module Aws::DocDBElastic
|
|
177
206
|
ListClusterSnapshotsInput.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "clusterArn"))
|
178
207
|
ListClusterSnapshotsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListClusterSnapshotsInputMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
179
208
|
ListClusterSnapshotsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
209
|
+
ListClusterSnapshotsInput.add_member(:snapshot_type, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "snapshotType"))
|
180
210
|
ListClusterSnapshotsInput.struct_class = Types::ListClusterSnapshotsInput
|
181
211
|
|
182
212
|
ListClusterSnapshotsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
@@ -204,6 +234,8 @@ module Aws::DocDBElastic
|
|
204
234
|
|
205
235
|
RestoreClusterFromSnapshotInput.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clusterName"))
|
206
236
|
RestoreClusterFromSnapshotInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
237
|
+
RestoreClusterFromSnapshotInput.add_member(:shard_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "shardCapacity"))
|
238
|
+
RestoreClusterFromSnapshotInput.add_member(:shard_instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "shardInstanceCount"))
|
207
239
|
RestoreClusterFromSnapshotInput.add_member(:snapshot_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "snapshotArn"))
|
208
240
|
RestoreClusterFromSnapshotInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "subnetIds"))
|
209
241
|
RestoreClusterFromSnapshotInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
@@ -216,6 +248,25 @@ module Aws::DocDBElastic
|
|
216
248
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
217
249
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
218
250
|
|
251
|
+
Shard.add_member(:create_time, Shapes::ShapeRef.new(shape: String, required: true, location_name: "createTime"))
|
252
|
+
Shard.add_member(:shard_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "shardId"))
|
253
|
+
Shard.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
|
254
|
+
Shard.struct_class = Types::Shard
|
255
|
+
|
256
|
+
ShardList.member = Shapes::ShapeRef.new(shape: Shard)
|
257
|
+
|
258
|
+
StartClusterInput.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "clusterArn"))
|
259
|
+
StartClusterInput.struct_class = Types::StartClusterInput
|
260
|
+
|
261
|
+
StartClusterOutput.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, required: true, location_name: "cluster"))
|
262
|
+
StartClusterOutput.struct_class = Types::StartClusterOutput
|
263
|
+
|
264
|
+
StopClusterInput.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "clusterArn"))
|
265
|
+
StopClusterInput.struct_class = Types::StopClusterInput
|
266
|
+
|
267
|
+
StopClusterOutput.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, required: true, location_name: "cluster"))
|
268
|
+
StopClusterOutput.struct_class = Types::StopClusterOutput
|
269
|
+
|
219
270
|
StringList.member = Shapes::ShapeRef.new(shape: String)
|
220
271
|
|
221
272
|
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
@@ -241,11 +292,14 @@ module Aws::DocDBElastic
|
|
241
292
|
|
242
293
|
UpdateClusterInput.add_member(:admin_user_password, Shapes::ShapeRef.new(shape: Password, location_name: "adminUserPassword"))
|
243
294
|
UpdateClusterInput.add_member(:auth_type, Shapes::ShapeRef.new(shape: Auth, location_name: "authType"))
|
295
|
+
UpdateClusterInput.add_member(:backup_retention_period, Shapes::ShapeRef.new(shape: Integer, location_name: "backupRetentionPeriod"))
|
244
296
|
UpdateClusterInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
245
297
|
UpdateClusterInput.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "clusterArn"))
|
298
|
+
UpdateClusterInput.add_member(:preferred_backup_window, Shapes::ShapeRef.new(shape: String, location_name: "preferredBackupWindow"))
|
246
299
|
UpdateClusterInput.add_member(:preferred_maintenance_window, Shapes::ShapeRef.new(shape: String, location_name: "preferredMaintenanceWindow"))
|
247
300
|
UpdateClusterInput.add_member(:shard_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "shardCapacity"))
|
248
301
|
UpdateClusterInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: Integer, location_name: "shardCount"))
|
302
|
+
UpdateClusterInput.add_member(:shard_instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "shardInstanceCount"))
|
249
303
|
UpdateClusterInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "subnetIds"))
|
250
304
|
UpdateClusterInput.add_member(:vpc_security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "vpcSecurityGroupIds"))
|
251
305
|
UpdateClusterInput.struct_class = Types::UpdateClusterInput
|
@@ -283,6 +337,21 @@ module Aws::DocDBElastic
|
|
283
337
|
"uid" => "docdb-elastic-2022-11-28",
|
284
338
|
}
|
285
339
|
|
340
|
+
api.add_operation(:copy_cluster_snapshot, Seahorse::Model::Operation.new.tap do |o|
|
341
|
+
o.name = "CopyClusterSnapshot"
|
342
|
+
o.http_method = "POST"
|
343
|
+
o.http_request_uri = "/cluster-snapshot/{snapshotArn}/copy"
|
344
|
+
o.input = Shapes::ShapeRef.new(shape: CopyClusterSnapshotInput)
|
345
|
+
o.output = Shapes::ShapeRef.new(shape: CopyClusterSnapshotOutput)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
349
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
350
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
351
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
353
|
+
end)
|
354
|
+
|
286
355
|
api.add_operation(:create_cluster, Seahorse::Model::Operation.new.tap do |o|
|
287
356
|
o.name = "CreateCluster"
|
288
357
|
o.http_method = "POST"
|
@@ -429,6 +498,32 @@ module Aws::DocDBElastic
|
|
429
498
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
430
499
|
end)
|
431
500
|
|
501
|
+
api.add_operation(:start_cluster, Seahorse::Model::Operation.new.tap do |o|
|
502
|
+
o.name = "StartCluster"
|
503
|
+
o.http_method = "POST"
|
504
|
+
o.http_request_uri = "/cluster/{clusterArn}/start"
|
505
|
+
o.input = Shapes::ShapeRef.new(shape: StartClusterInput)
|
506
|
+
o.output = Shapes::ShapeRef.new(shape: StartClusterOutput)
|
507
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
508
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
509
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
510
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
512
|
+
end)
|
513
|
+
|
514
|
+
api.add_operation(:stop_cluster, Seahorse::Model::Operation.new.tap do |o|
|
515
|
+
o.name = "StopCluster"
|
516
|
+
o.http_method = "POST"
|
517
|
+
o.http_request_uri = "/cluster/{clusterArn}/stop"
|
518
|
+
o.input = Shapes::ShapeRef.new(shape: StopClusterInput)
|
519
|
+
o.output = Shapes::ShapeRef.new(shape: StopClusterOutput)
|
520
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
522
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
523
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
524
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
525
|
+
end)
|
526
|
+
|
432
527
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
433
528
|
o.name = "TagResource"
|
434
529
|
o.http_method = "POST"
|
@@ -32,7 +32,7 @@ module Aws::DocDBElastic
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://docdb-elastic-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -12,6 +12,20 @@ module Aws::DocDBElastic
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class CopyClusterSnapshot
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::DocDBElastic::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
class CreateCluster
|
16
30
|
def self.build(context)
|
17
31
|
unless context.config.regional_endpoint
|
@@ -152,6 +166,34 @@ module Aws::DocDBElastic
|
|
152
166
|
end
|
153
167
|
end
|
154
168
|
|
169
|
+
class StartCluster
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::DocDBElastic::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class StopCluster
|
184
|
+
def self.build(context)
|
185
|
+
unless context.config.regional_endpoint
|
186
|
+
endpoint = context.config.endpoint.to_s
|
187
|
+
end
|
188
|
+
Aws::DocDBElastic::EndpointParameters.new(
|
189
|
+
region: context.config.region,
|
190
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
191
|
+
use_fips: context.config.use_fips_endpoint,
|
192
|
+
endpoint: endpoint,
|
193
|
+
)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
155
197
|
class TagResource
|
156
198
|
def self.build(context)
|
157
199
|
unless context.config.regional_endpoint
|
@@ -58,6 +58,8 @@ module Aws::DocDBElastic
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :copy_cluster_snapshot
|
62
|
+
Aws::DocDBElastic::Endpoints::CopyClusterSnapshot.build(context)
|
61
63
|
when :create_cluster
|
62
64
|
Aws::DocDBElastic::Endpoints::CreateCluster.build(context)
|
63
65
|
when :create_cluster_snapshot
|
@@ -78,6 +80,10 @@ module Aws::DocDBElastic
|
|
78
80
|
Aws::DocDBElastic::Endpoints::ListTagsForResource.build(context)
|
79
81
|
when :restore_cluster_from_snapshot
|
80
82
|
Aws::DocDBElastic::Endpoints::RestoreClusterFromSnapshot.build(context)
|
83
|
+
when :start_cluster
|
84
|
+
Aws::DocDBElastic::Endpoints::StartCluster.build(context)
|
85
|
+
when :stop_cluster
|
86
|
+
Aws::DocDBElastic::Endpoints::StopCluster.build(context)
|
81
87
|
when :tag_resource
|
82
88
|
Aws::DocDBElastic::Endpoints::TagResource.build(context)
|
83
89
|
when :untag_resource
|