aws-sdk-redshiftserverless 1.4.0 → 1.6.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshiftserverless/client.rb +262 -16
- data/lib/aws-sdk-redshiftserverless/client_api.rb +107 -0
- data/lib/aws-sdk-redshiftserverless/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-redshiftserverless/endpoints.rb +42 -0
- data/lib/aws-sdk-redshiftserverless/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-redshiftserverless/types.rb +319 -387
- data/lib/aws-sdk-redshiftserverless.rb +1 -1
- metadata +2 -2
@@ -63,6 +63,8 @@ module Aws::RedshiftServerless
|
|
63
63
|
GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
|
64
64
|
GetSnapshotRequest = Shapes::StructureShape.new(name: 'GetSnapshotRequest')
|
65
65
|
GetSnapshotResponse = Shapes::StructureShape.new(name: 'GetSnapshotResponse')
|
66
|
+
GetTableRestoreStatusRequest = Shapes::StructureShape.new(name: 'GetTableRestoreStatusRequest')
|
67
|
+
GetTableRestoreStatusResponse = Shapes::StructureShape.new(name: 'GetTableRestoreStatusResponse')
|
66
68
|
GetUsageLimitRequest = Shapes::StructureShape.new(name: 'GetUsageLimitRequest')
|
67
69
|
GetUsageLimitResponse = Shapes::StructureShape.new(name: 'GetUsageLimitResponse')
|
68
70
|
GetWorkgroupRequest = Shapes::StructureShape.new(name: 'GetWorkgroupRequest')
|
@@ -86,6 +88,9 @@ module Aws::RedshiftServerless
|
|
86
88
|
ListSnapshotsRequest = Shapes::StructureShape.new(name: 'ListSnapshotsRequest')
|
87
89
|
ListSnapshotsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListSnapshotsRequestMaxResultsInteger')
|
88
90
|
ListSnapshotsResponse = Shapes::StructureShape.new(name: 'ListSnapshotsResponse')
|
91
|
+
ListTableRestoreStatusRequest = Shapes::StructureShape.new(name: 'ListTableRestoreStatusRequest')
|
92
|
+
ListTableRestoreStatusRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTableRestoreStatusRequestMaxResultsInteger')
|
93
|
+
ListTableRestoreStatusResponse = Shapes::StructureShape.new(name: 'ListTableRestoreStatusResponse')
|
89
94
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
90
95
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
91
96
|
ListUsageLimitsRequest = Shapes::StructureShape.new(name: 'ListUsageLimitsRequest')
|
@@ -116,6 +121,8 @@ module Aws::RedshiftServerless
|
|
116
121
|
RestoreFromRecoveryPointResponse = Shapes::StructureShape.new(name: 'RestoreFromRecoveryPointResponse')
|
117
122
|
RestoreFromSnapshotRequest = Shapes::StructureShape.new(name: 'RestoreFromSnapshotRequest')
|
118
123
|
RestoreFromSnapshotResponse = Shapes::StructureShape.new(name: 'RestoreFromSnapshotResponse')
|
124
|
+
RestoreTableFromSnapshotRequest = Shapes::StructureShape.new(name: 'RestoreTableFromSnapshotRequest')
|
125
|
+
RestoreTableFromSnapshotResponse = Shapes::StructureShape.new(name: 'RestoreTableFromSnapshotResponse')
|
119
126
|
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
120
127
|
SecurityGroupIdList = Shapes::ListShape.new(name: 'SecurityGroupIdList')
|
121
128
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
@@ -126,6 +133,8 @@ module Aws::RedshiftServerless
|
|
126
133
|
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
127
134
|
SubnetIdList = Shapes::ListShape.new(name: 'SubnetIdList')
|
128
135
|
SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
|
136
|
+
TableRestoreStatus = Shapes::StructureShape.new(name: 'TableRestoreStatus')
|
137
|
+
TableRestoreStatusList = Shapes::ListShape.new(name: 'TableRestoreStatusList')
|
129
138
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
130
139
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
131
140
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
@@ -183,6 +192,7 @@ module Aws::RedshiftServerless
|
|
183
192
|
ConvertRecoveryPointToSnapshotRequest.add_member(:recovery_point_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "recoveryPointId"))
|
184
193
|
ConvertRecoveryPointToSnapshotRequest.add_member(:retention_period, Shapes::ShapeRef.new(shape: Integer, location_name: "retentionPeriod"))
|
185
194
|
ConvertRecoveryPointToSnapshotRequest.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotName"))
|
195
|
+
ConvertRecoveryPointToSnapshotRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
186
196
|
ConvertRecoveryPointToSnapshotRequest.struct_class = Types::ConvertRecoveryPointToSnapshotRequest
|
187
197
|
|
188
198
|
ConvertRecoveryPointToSnapshotResponse.add_member(:snapshot, Shapes::ShapeRef.new(shape: Snapshot, location_name: "snapshot"))
|
@@ -214,6 +224,7 @@ module Aws::RedshiftServerless
|
|
214
224
|
CreateSnapshotRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "namespaceName"))
|
215
225
|
CreateSnapshotRequest.add_member(:retention_period, Shapes::ShapeRef.new(shape: Integer, location_name: "retentionPeriod"))
|
216
226
|
CreateSnapshotRequest.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotName"))
|
227
|
+
CreateSnapshotRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
217
228
|
CreateSnapshotRequest.struct_class = Types::CreateSnapshotRequest
|
218
229
|
|
219
230
|
CreateSnapshotResponse.add_member(:snapshot, Shapes::ShapeRef.new(shape: Snapshot, location_name: "snapshot"))
|
@@ -233,6 +244,7 @@ module Aws::RedshiftServerless
|
|
233
244
|
CreateWorkgroupRequest.add_member(:config_parameters, Shapes::ShapeRef.new(shape: ConfigParameterList, location_name: "configParameters"))
|
234
245
|
CreateWorkgroupRequest.add_member(:enhanced_vpc_routing, Shapes::ShapeRef.new(shape: Boolean, location_name: "enhancedVpcRouting"))
|
235
246
|
CreateWorkgroupRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: NamespaceName, required: true, location_name: "namespaceName"))
|
247
|
+
CreateWorkgroupRequest.add_member(:port, Shapes::ShapeRef.new(shape: Integer, location_name: "port"))
|
236
248
|
CreateWorkgroupRequest.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
|
237
249
|
CreateWorkgroupRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdList, location_name: "securityGroupIds"))
|
238
250
|
CreateWorkgroupRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIdList, location_name: "subnetIds"))
|
@@ -342,6 +354,12 @@ module Aws::RedshiftServerless
|
|
342
354
|
GetSnapshotResponse.add_member(:snapshot, Shapes::ShapeRef.new(shape: Snapshot, location_name: "snapshot"))
|
343
355
|
GetSnapshotResponse.struct_class = Types::GetSnapshotResponse
|
344
356
|
|
357
|
+
GetTableRestoreStatusRequest.add_member(:table_restore_request_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "tableRestoreRequestId"))
|
358
|
+
GetTableRestoreStatusRequest.struct_class = Types::GetTableRestoreStatusRequest
|
359
|
+
|
360
|
+
GetTableRestoreStatusResponse.add_member(:table_restore_status, Shapes::ShapeRef.new(shape: TableRestoreStatus, location_name: "tableRestoreStatus"))
|
361
|
+
GetTableRestoreStatusResponse.struct_class = Types::GetTableRestoreStatusResponse
|
362
|
+
|
345
363
|
GetUsageLimitRequest.add_member(:usage_limit_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "usageLimitId"))
|
346
364
|
GetUsageLimitRequest.struct_class = Types::GetUsageLimitRequest
|
347
365
|
|
@@ -385,6 +403,7 @@ module Aws::RedshiftServerless
|
|
385
403
|
|
386
404
|
ListRecoveryPointsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
387
405
|
ListRecoveryPointsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRecoveryPointsRequestMaxResultsInteger, location_name: "maxResults", metadata: {"box"=>true}))
|
406
|
+
ListRecoveryPointsRequest.add_member(:namespace_arn, Shapes::ShapeRef.new(shape: String, location_name: "namespaceArn"))
|
388
407
|
ListRecoveryPointsRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: NamespaceName, location_name: "namespaceName"))
|
389
408
|
ListRecoveryPointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
390
409
|
ListRecoveryPointsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
|
@@ -407,6 +426,16 @@ module Aws::RedshiftServerless
|
|
407
426
|
ListSnapshotsResponse.add_member(:snapshots, Shapes::ShapeRef.new(shape: SnapshotList, location_name: "snapshots"))
|
408
427
|
ListSnapshotsResponse.struct_class = Types::ListSnapshotsResponse
|
409
428
|
|
429
|
+
ListTableRestoreStatusRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTableRestoreStatusRequestMaxResultsInteger, location_name: "maxResults", metadata: {"box"=>true}))
|
430
|
+
ListTableRestoreStatusRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: String, location_name: "namespaceName"))
|
431
|
+
ListTableRestoreStatusRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
432
|
+
ListTableRestoreStatusRequest.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: String, location_name: "workgroupName"))
|
433
|
+
ListTableRestoreStatusRequest.struct_class = Types::ListTableRestoreStatusRequest
|
434
|
+
|
435
|
+
ListTableRestoreStatusResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
436
|
+
ListTableRestoreStatusResponse.add_member(:table_restore_statuses, Shapes::ShapeRef.new(shape: TableRestoreStatusList, location_name: "tableRestoreStatuses"))
|
437
|
+
ListTableRestoreStatusResponse.struct_class = Types::ListTableRestoreStatusResponse
|
438
|
+
|
410
439
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "resourceArn"))
|
411
440
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
412
441
|
|
@@ -463,6 +492,7 @@ module Aws::RedshiftServerless
|
|
463
492
|
PutResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "resourcePolicy"))
|
464
493
|
PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
|
465
494
|
|
495
|
+
RecoveryPoint.add_member(:namespace_arn, Shapes::ShapeRef.new(shape: String, location_name: "namespaceArn"))
|
466
496
|
RecoveryPoint.add_member(:namespace_name, Shapes::ShapeRef.new(shape: NamespaceName, location_name: "namespaceName"))
|
467
497
|
RecoveryPoint.add_member(:recovery_point_create_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "recoveryPointCreateTime"))
|
468
498
|
RecoveryPoint.add_member(:recovery_point_id, Shapes::ShapeRef.new(shape: String, location_name: "recoveryPointId"))
|
@@ -501,6 +531,21 @@ module Aws::RedshiftServerless
|
|
501
531
|
RestoreFromSnapshotResponse.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, location_name: "snapshotName"))
|
502
532
|
RestoreFromSnapshotResponse.struct_class = Types::RestoreFromSnapshotResponse
|
503
533
|
|
534
|
+
RestoreTableFromSnapshotRequest.add_member(:activate_case_sensitive_identifier, Shapes::ShapeRef.new(shape: Boolean, location_name: "activateCaseSensitiveIdentifier"))
|
535
|
+
RestoreTableFromSnapshotRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "namespaceName"))
|
536
|
+
RestoreTableFromSnapshotRequest.add_member(:new_table_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "newTableName"))
|
537
|
+
RestoreTableFromSnapshotRequest.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "snapshotName"))
|
538
|
+
RestoreTableFromSnapshotRequest.add_member(:source_database_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sourceDatabaseName"))
|
539
|
+
RestoreTableFromSnapshotRequest.add_member(:source_schema_name, Shapes::ShapeRef.new(shape: String, location_name: "sourceSchemaName"))
|
540
|
+
RestoreTableFromSnapshotRequest.add_member(:source_table_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sourceTableName"))
|
541
|
+
RestoreTableFromSnapshotRequest.add_member(:target_database_name, Shapes::ShapeRef.new(shape: String, location_name: "targetDatabaseName"))
|
542
|
+
RestoreTableFromSnapshotRequest.add_member(:target_schema_name, Shapes::ShapeRef.new(shape: String, location_name: "targetSchemaName"))
|
543
|
+
RestoreTableFromSnapshotRequest.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "workgroupName"))
|
544
|
+
RestoreTableFromSnapshotRequest.struct_class = Types::RestoreTableFromSnapshotRequest
|
545
|
+
|
546
|
+
RestoreTableFromSnapshotResponse.add_member(:table_restore_status, Shapes::ShapeRef.new(shape: TableRestoreStatus, location_name: "tableRestoreStatus"))
|
547
|
+
RestoreTableFromSnapshotResponse.struct_class = Types::RestoreTableFromSnapshotResponse
|
548
|
+
|
504
549
|
SecurityGroupIdList.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
505
550
|
|
506
551
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -532,6 +577,25 @@ module Aws::RedshiftServerless
|
|
532
577
|
|
533
578
|
SubnetIdList.member = Shapes::ShapeRef.new(shape: SubnetId)
|
534
579
|
|
580
|
+
TableRestoreStatus.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
581
|
+
TableRestoreStatus.add_member(:namespace_name, Shapes::ShapeRef.new(shape: String, location_name: "namespaceName"))
|
582
|
+
TableRestoreStatus.add_member(:new_table_name, Shapes::ShapeRef.new(shape: String, location_name: "newTableName"))
|
583
|
+
TableRestoreStatus.add_member(:progress_in_mega_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "progressInMegaBytes"))
|
584
|
+
TableRestoreStatus.add_member(:request_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "requestTime"))
|
585
|
+
TableRestoreStatus.add_member(:snapshot_name, Shapes::ShapeRef.new(shape: String, location_name: "snapshotName"))
|
586
|
+
TableRestoreStatus.add_member(:source_database_name, Shapes::ShapeRef.new(shape: String, location_name: "sourceDatabaseName"))
|
587
|
+
TableRestoreStatus.add_member(:source_schema_name, Shapes::ShapeRef.new(shape: String, location_name: "sourceSchemaName"))
|
588
|
+
TableRestoreStatus.add_member(:source_table_name, Shapes::ShapeRef.new(shape: String, location_name: "sourceTableName"))
|
589
|
+
TableRestoreStatus.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
590
|
+
TableRestoreStatus.add_member(:table_restore_request_id, Shapes::ShapeRef.new(shape: String, location_name: "tableRestoreRequestId"))
|
591
|
+
TableRestoreStatus.add_member(:target_database_name, Shapes::ShapeRef.new(shape: String, location_name: "targetDatabaseName"))
|
592
|
+
TableRestoreStatus.add_member(:target_schema_name, Shapes::ShapeRef.new(shape: String, location_name: "targetSchemaName"))
|
593
|
+
TableRestoreStatus.add_member(:total_data_in_mega_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "totalDataInMegaBytes"))
|
594
|
+
TableRestoreStatus.add_member(:workgroup_name, Shapes::ShapeRef.new(shape: String, location_name: "workgroupName"))
|
595
|
+
TableRestoreStatus.struct_class = Types::TableRestoreStatus
|
596
|
+
|
597
|
+
TableRestoreStatusList.member = Shapes::ShapeRef.new(shape: TableRestoreStatus)
|
598
|
+
|
535
599
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
|
536
600
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
|
537
601
|
Tag.struct_class = Types::Tag
|
@@ -597,6 +661,7 @@ module Aws::RedshiftServerless
|
|
597
661
|
UpdateWorkgroupRequest.add_member(:base_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "baseCapacity"))
|
598
662
|
UpdateWorkgroupRequest.add_member(:config_parameters, Shapes::ShapeRef.new(shape: ConfigParameterList, location_name: "configParameters"))
|
599
663
|
UpdateWorkgroupRequest.add_member(:enhanced_vpc_routing, Shapes::ShapeRef.new(shape: Boolean, location_name: "enhancedVpcRouting"))
|
664
|
+
UpdateWorkgroupRequest.add_member(:port, Shapes::ShapeRef.new(shape: Integer, location_name: "port"))
|
600
665
|
UpdateWorkgroupRequest.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
|
601
666
|
UpdateWorkgroupRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdList, location_name: "securityGroupIds"))
|
602
667
|
UpdateWorkgroupRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIdList, location_name: "subnetIds"))
|
@@ -641,6 +706,7 @@ module Aws::RedshiftServerless
|
|
641
706
|
Workgroup.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "endpoint"))
|
642
707
|
Workgroup.add_member(:enhanced_vpc_routing, Shapes::ShapeRef.new(shape: Boolean, location_name: "enhancedVpcRouting"))
|
643
708
|
Workgroup.add_member(:namespace_name, Shapes::ShapeRef.new(shape: String, location_name: "namespaceName"))
|
709
|
+
Workgroup.add_member(:port, Shapes::ShapeRef.new(shape: Integer, location_name: "port"))
|
644
710
|
Workgroup.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: Boolean, location_name: "publiclyAccessible"))
|
645
711
|
Workgroup.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdList, location_name: "securityGroupIds"))
|
646
712
|
Workgroup.add_member(:status, Shapes::ShapeRef.new(shape: WorkgroupStatus, location_name: "status"))
|
@@ -681,6 +747,7 @@ module Aws::RedshiftServerless
|
|
681
747
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
682
748
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
683
749
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
750
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
684
751
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
685
752
|
end)
|
686
753
|
|
@@ -720,6 +787,7 @@ module Aws::RedshiftServerless
|
|
720
787
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
721
788
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
722
789
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
790
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
723
791
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
724
792
|
end)
|
725
793
|
|
@@ -889,6 +957,16 @@ module Aws::RedshiftServerless
|
|
889
957
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
890
958
|
end)
|
891
959
|
|
960
|
+
api.add_operation(:get_table_restore_status, Seahorse::Model::Operation.new.tap do |o|
|
961
|
+
o.name = "GetTableRestoreStatus"
|
962
|
+
o.http_method = "POST"
|
963
|
+
o.http_request_uri = "/"
|
964
|
+
o.input = Shapes::ShapeRef.new(shape: GetTableRestoreStatusRequest)
|
965
|
+
o.output = Shapes::ShapeRef.new(shape: GetTableRestoreStatusResponse)
|
966
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
967
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
968
|
+
end)
|
969
|
+
|
892
970
|
api.add_operation(:get_usage_limit, Seahorse::Model::Operation.new.tap do |o|
|
893
971
|
o.name = "GetUsageLimit"
|
894
972
|
o.http_method = "POST"
|
@@ -979,6 +1057,23 @@ module Aws::RedshiftServerless
|
|
979
1057
|
)
|
980
1058
|
end)
|
981
1059
|
|
1060
|
+
api.add_operation(:list_table_restore_status, Seahorse::Model::Operation.new.tap do |o|
|
1061
|
+
o.name = "ListTableRestoreStatus"
|
1062
|
+
o.http_method = "POST"
|
1063
|
+
o.http_request_uri = "/"
|
1064
|
+
o.input = Shapes::ShapeRef.new(shape: ListTableRestoreStatusRequest)
|
1065
|
+
o.output = Shapes::ShapeRef.new(shape: ListTableRestoreStatusResponse)
|
1066
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationException)
|
1067
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1068
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1069
|
+
o[:pager] = Aws::Pager.new(
|
1070
|
+
limit_key: "max_results",
|
1071
|
+
tokens: {
|
1072
|
+
"next_token" => "next_token"
|
1073
|
+
}
|
1074
|
+
)
|
1075
|
+
end)
|
1076
|
+
|
982
1077
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
983
1078
|
o.name = "ListTagsForResource"
|
984
1079
|
o.http_method = "POST"
|
@@ -1064,6 +1159,18 @@ module Aws::RedshiftServerless
|
|
1064
1159
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1065
1160
|
end)
|
1066
1161
|
|
1162
|
+
api.add_operation(:restore_table_from_snapshot, Seahorse::Model::Operation.new.tap do |o|
|
1163
|
+
o.name = "RestoreTableFromSnapshot"
|
1164
|
+
o.http_method = "POST"
|
1165
|
+
o.http_request_uri = "/"
|
1166
|
+
o.input = Shapes::ShapeRef.new(shape: RestoreTableFromSnapshotRequest)
|
1167
|
+
o.output = Shapes::ShapeRef.new(shape: RestoreTableFromSnapshotResponse)
|
1168
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1169
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1170
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1171
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1172
|
+
end)
|
1173
|
+
|
1067
1174
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1068
1175
|
o.name = "TagResource"
|
1069
1176
|
o.http_method = "POST"
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::RedshiftServerless
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift-serverless-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift-serverless-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift-serverless.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift-serverless.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQi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112
51
|
end
|
@@ -263,6 +263,20 @@ module Aws::RedshiftServerless
|
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
266
|
+
class GetTableRestoreStatus
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::RedshiftServerless::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
266
280
|
class GetUsageLimit
|
267
281
|
def self.build(context)
|
268
282
|
unless context.config.regional_endpoint
|
@@ -347,6 +361,20 @@ module Aws::RedshiftServerless
|
|
347
361
|
end
|
348
362
|
end
|
349
363
|
|
364
|
+
class ListTableRestoreStatus
|
365
|
+
def self.build(context)
|
366
|
+
unless context.config.regional_endpoint
|
367
|
+
endpoint = context.config.endpoint.to_s
|
368
|
+
end
|
369
|
+
Aws::RedshiftServerless::EndpointParameters.new(
|
370
|
+
region: context.config.region,
|
371
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
|
+
use_fips: context.config.use_fips_endpoint,
|
373
|
+
endpoint: endpoint,
|
374
|
+
)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
350
378
|
class ListTagsForResource
|
351
379
|
def self.build(context)
|
352
380
|
unless context.config.regional_endpoint
|
@@ -431,6 +459,20 @@ module Aws::RedshiftServerless
|
|
431
459
|
end
|
432
460
|
end
|
433
461
|
|
462
|
+
class RestoreTableFromSnapshot
|
463
|
+
def self.build(context)
|
464
|
+
unless context.config.regional_endpoint
|
465
|
+
endpoint = context.config.endpoint.to_s
|
466
|
+
end
|
467
|
+
Aws::RedshiftServerless::EndpointParameters.new(
|
468
|
+
region: context.config.region,
|
469
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
470
|
+
use_fips: context.config.use_fips_endpoint,
|
471
|
+
endpoint: endpoint,
|
472
|
+
)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
434
476
|
class TagResource
|
435
477
|
def self.build(context)
|
436
478
|
unless context.config.regional_endpoint
|
@@ -92,6 +92,8 @@ module Aws::RedshiftServerless
|
|
92
92
|
Aws::RedshiftServerless::Endpoints::GetResourcePolicy.build(context)
|
93
93
|
when :get_snapshot
|
94
94
|
Aws::RedshiftServerless::Endpoints::GetSnapshot.build(context)
|
95
|
+
when :get_table_restore_status
|
96
|
+
Aws::RedshiftServerless::Endpoints::GetTableRestoreStatus.build(context)
|
95
97
|
when :get_usage_limit
|
96
98
|
Aws::RedshiftServerless::Endpoints::GetUsageLimit.build(context)
|
97
99
|
when :get_workgroup
|
@@ -104,6 +106,8 @@ module Aws::RedshiftServerless
|
|
104
106
|
Aws::RedshiftServerless::Endpoints::ListRecoveryPoints.build(context)
|
105
107
|
when :list_snapshots
|
106
108
|
Aws::RedshiftServerless::Endpoints::ListSnapshots.build(context)
|
109
|
+
when :list_table_restore_status
|
110
|
+
Aws::RedshiftServerless::Endpoints::ListTableRestoreStatus.build(context)
|
107
111
|
when :list_tags_for_resource
|
108
112
|
Aws::RedshiftServerless::Endpoints::ListTagsForResource.build(context)
|
109
113
|
when :list_usage_limits
|
@@ -116,6 +120,8 @@ module Aws::RedshiftServerless
|
|
116
120
|
Aws::RedshiftServerless::Endpoints::RestoreFromRecoveryPoint.build(context)
|
117
121
|
when :restore_from_snapshot
|
118
122
|
Aws::RedshiftServerless::Endpoints::RestoreFromSnapshot.build(context)
|
123
|
+
when :restore_table_from_snapshot
|
124
|
+
Aws::RedshiftServerless::Endpoints::RestoreTableFromSnapshot.build(context)
|
119
125
|
when :tag_resource
|
120
126
|
Aws::RedshiftServerless::Endpoints::TagResource.build(context)
|
121
127
|
when :untag_resource
|