aws-sdk-redshiftserverless 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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"
@@ -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::RedshiftServerless
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
@@ -0,0 +1,112 @@
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::RedshiftServerless
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ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