aws-sdk-redshiftserverless 1.4.0 → 1.5.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-redshiftserverless/client.rb +262 -16
- data/lib/aws-sdk-redshiftserverless/client_api.rb +107 -0
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50d07776b2f579001fe49afbf6ad289a171347bcc8eff99b32dc509db17e5a85
|
4
|
+
data.tar.gz: bd0285a86fd3f9b65573894577f97860bbdd7bf8606fb6a8c932765c9e9c67be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9822c25e8b7d2d6a91222e7264b9e9660b58d19554d6f68984f95d4623bce6fc0b1715b4d454840deabec166ab788d22d4a506bab43ae7d6a8518ed9217377a
|
7
|
+
data.tar.gz: a42a70031d97969fd9c73fa8839acb718231970140d4b02d62c9d677200822c99ae3483cde38388cbb2c9635730ea9500a9382850fb5bd826c298e51dc9054d2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.5.0 (2022-12-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add Table Level Restore operations for Amazon Redshift Serverless. Add multi-port support for Amazon Redshift Serverless endpoints. Add Tagging support to Snapshots and Recovery Points in Amazon Redshift Serverless.
|
8
|
+
|
4
9
|
1.4.0 (2022-10-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -395,6 +395,13 @@ module Aws::RedshiftServerless
|
|
395
395
|
# @option params [required, String] :snapshot_name
|
396
396
|
# The name of the snapshot.
|
397
397
|
#
|
398
|
+
# @option params [Array<Types::Tag>] :tags
|
399
|
+
# An array of [Tag objects][1] to associate with the created snapshot.
|
400
|
+
#
|
401
|
+
#
|
402
|
+
#
|
403
|
+
# [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_Tag.html
|
404
|
+
#
|
398
405
|
# @return [Types::ConvertRecoveryPointToSnapshotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
399
406
|
#
|
400
407
|
# * {Types::ConvertRecoveryPointToSnapshotResponse#snapshot #snapshot} => Types::Snapshot
|
@@ -405,6 +412,12 @@ module Aws::RedshiftServerless
|
|
405
412
|
# recovery_point_id: "String", # required
|
406
413
|
# retention_period: 1,
|
407
414
|
# snapshot_name: "String", # required
|
415
|
+
# tags: [
|
416
|
+
# {
|
417
|
+
# key: "TagKey", # required
|
418
|
+
# value: "TagValue", # required
|
419
|
+
# },
|
420
|
+
# ],
|
408
421
|
# })
|
409
422
|
#
|
410
423
|
# @example Response structure
|
@@ -604,6 +617,13 @@ module Aws::RedshiftServerless
|
|
604
617
|
# @option params [required, String] :snapshot_name
|
605
618
|
# The name of the snapshot.
|
606
619
|
#
|
620
|
+
# @option params [Array<Types::Tag>] :tags
|
621
|
+
# An array of [Tag objects][1] to associate with the snapshot.
|
622
|
+
#
|
623
|
+
#
|
624
|
+
#
|
625
|
+
# [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_Tag.html
|
626
|
+
#
|
607
627
|
# @return [Types::CreateSnapshotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
608
628
|
#
|
609
629
|
# * {Types::CreateSnapshotResponse#snapshot #snapshot} => Types::Snapshot
|
@@ -614,6 +634,12 @@ module Aws::RedshiftServerless
|
|
614
634
|
# namespace_name: "String", # required
|
615
635
|
# retention_period: 1,
|
616
636
|
# snapshot_name: "String", # required
|
637
|
+
# tags: [
|
638
|
+
# {
|
639
|
+
# key: "TagKey", # required
|
640
|
+
# value: "TagValue", # required
|
641
|
+
# },
|
642
|
+
# ],
|
617
643
|
# })
|
618
644
|
#
|
619
645
|
# @example Response structure
|
@@ -728,6 +754,10 @@ module Aws::RedshiftServerless
|
|
728
754
|
# @option params [required, String] :namespace_name
|
729
755
|
# The name of the namespace to associate with the workgroup.
|
730
756
|
#
|
757
|
+
# @option params [Integer] :port
|
758
|
+
# The custom port to use when connecting to a workgroup. Valid port
|
759
|
+
# ranges are 5431-5455 and 8191-8215. The default is 5439.
|
760
|
+
#
|
731
761
|
# @option params [Boolean] :publicly_accessible
|
732
762
|
# A value that specifies whether the workgroup can be accessed from a
|
733
763
|
# public network.
|
@@ -760,6 +790,7 @@ module Aws::RedshiftServerless
|
|
760
790
|
# ],
|
761
791
|
# enhanced_vpc_routing: false,
|
762
792
|
# namespace_name: "NamespaceName", # required
|
793
|
+
# port: 1,
|
763
794
|
# publicly_accessible: false,
|
764
795
|
# security_group_ids: ["SecurityGroupId"],
|
765
796
|
# subnet_ids: ["SubnetId"],
|
@@ -791,6 +822,7 @@ module Aws::RedshiftServerless
|
|
791
822
|
# resp.workgroup.endpoint.vpc_endpoints[0].vpc_id #=> String
|
792
823
|
# resp.workgroup.enhanced_vpc_routing #=> Boolean
|
793
824
|
# resp.workgroup.namespace_name #=> String
|
825
|
+
# resp.workgroup.port #=> Integer
|
794
826
|
# resp.workgroup.publicly_accessible #=> Boolean
|
795
827
|
# resp.workgroup.security_group_ids #=> Array
|
796
828
|
# resp.workgroup.security_group_ids[0] #=> String
|
@@ -1046,6 +1078,7 @@ module Aws::RedshiftServerless
|
|
1046
1078
|
# resp.workgroup.endpoint.vpc_endpoints[0].vpc_id #=> String
|
1047
1079
|
# resp.workgroup.enhanced_vpc_routing #=> Boolean
|
1048
1080
|
# resp.workgroup.namespace_name #=> String
|
1081
|
+
# resp.workgroup.port #=> Integer
|
1049
1082
|
# resp.workgroup.publicly_accessible #=> Boolean
|
1050
1083
|
# resp.workgroup.security_group_ids #=> Array
|
1051
1084
|
# resp.workgroup.security_group_ids[0] #=> String
|
@@ -1072,7 +1105,7 @@ module Aws::RedshiftServerless
|
|
1072
1105
|
# optionally specify a duration between 900 seconds (15 minutes) and
|
1073
1106
|
# 3600 seconds (60 minutes).
|
1074
1107
|
#
|
1075
|
-
# <p>
|
1108
|
+
# <p>The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources.</p> <p>If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p>
|
1076
1109
|
#
|
1077
1110
|
# @option params [String] :db_name
|
1078
1111
|
# The name of the database to get temporary authorization to log on to.
|
@@ -1081,8 +1114,8 @@ module Aws::RedshiftServerless
|
|
1081
1114
|
#
|
1082
1115
|
# * Must be 1 to 64 alphanumeric characters or hyphens.
|
1083
1116
|
#
|
1084
|
-
# * Must contain only lowercase letters, numbers,
|
1085
|
-
# period (dot), at symbol (@), or hyphen.
|
1117
|
+
# * Must contain only uppercase or lowercase letters, numbers,
|
1118
|
+
# underscore, plus sign, period (dot), at symbol (@), or hyphen.
|
1086
1119
|
#
|
1087
1120
|
# * The first character must be a letter.
|
1088
1121
|
#
|
@@ -1236,6 +1269,7 @@ module Aws::RedshiftServerless
|
|
1236
1269
|
#
|
1237
1270
|
# @example Response structure
|
1238
1271
|
#
|
1272
|
+
# resp.recovery_point.namespace_arn #=> String
|
1239
1273
|
# resp.recovery_point.namespace_name #=> String
|
1240
1274
|
# resp.recovery_point.recovery_point_create_time #=> Time
|
1241
1275
|
# resp.recovery_point.recovery_point_id #=> String
|
@@ -1338,6 +1372,48 @@ module Aws::RedshiftServerless
|
|
1338
1372
|
req.send_request(options)
|
1339
1373
|
end
|
1340
1374
|
|
1375
|
+
# Returns information about a `TableRestoreStatus` object.
|
1376
|
+
#
|
1377
|
+
# @option params [required, String] :table_restore_request_id
|
1378
|
+
# The ID of the `RestoreTableFromSnapshot` request to return status for.
|
1379
|
+
#
|
1380
|
+
# @return [Types::GetTableRestoreStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1381
|
+
#
|
1382
|
+
# * {Types::GetTableRestoreStatusResponse#table_restore_status #table_restore_status} => Types::TableRestoreStatus
|
1383
|
+
#
|
1384
|
+
# @example Request syntax with placeholder values
|
1385
|
+
#
|
1386
|
+
# resp = client.get_table_restore_status({
|
1387
|
+
# table_restore_request_id: "String", # required
|
1388
|
+
# })
|
1389
|
+
#
|
1390
|
+
# @example Response structure
|
1391
|
+
#
|
1392
|
+
# resp.table_restore_status.message #=> String
|
1393
|
+
# resp.table_restore_status.namespace_name #=> String
|
1394
|
+
# resp.table_restore_status.new_table_name #=> String
|
1395
|
+
# resp.table_restore_status.progress_in_mega_bytes #=> Integer
|
1396
|
+
# resp.table_restore_status.request_time #=> Time
|
1397
|
+
# resp.table_restore_status.snapshot_name #=> String
|
1398
|
+
# resp.table_restore_status.source_database_name #=> String
|
1399
|
+
# resp.table_restore_status.source_schema_name #=> String
|
1400
|
+
# resp.table_restore_status.source_table_name #=> String
|
1401
|
+
# resp.table_restore_status.status #=> String
|
1402
|
+
# resp.table_restore_status.table_restore_request_id #=> String
|
1403
|
+
# resp.table_restore_status.target_database_name #=> String
|
1404
|
+
# resp.table_restore_status.target_schema_name #=> String
|
1405
|
+
# resp.table_restore_status.total_data_in_mega_bytes #=> Integer
|
1406
|
+
# resp.table_restore_status.workgroup_name #=> String
|
1407
|
+
#
|
1408
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetTableRestoreStatus AWS API Documentation
|
1409
|
+
#
|
1410
|
+
# @overload get_table_restore_status(params = {})
|
1411
|
+
# @param [Hash] params ({})
|
1412
|
+
def get_table_restore_status(params = {}, options = {})
|
1413
|
+
req = build_request(:get_table_restore_status, params)
|
1414
|
+
req.send_request(options)
|
1415
|
+
end
|
1416
|
+
|
1341
1417
|
# Returns information about a usage limit.
|
1342
1418
|
#
|
1343
1419
|
# @option params [required, String] :usage_limit_id
|
@@ -1406,6 +1482,7 @@ module Aws::RedshiftServerless
|
|
1406
1482
|
# resp.workgroup.endpoint.vpc_endpoints[0].vpc_id #=> String
|
1407
1483
|
# resp.workgroup.enhanced_vpc_routing #=> Boolean
|
1408
1484
|
# resp.workgroup.namespace_name #=> String
|
1485
|
+
# resp.workgroup.port #=> Integer
|
1409
1486
|
# resp.workgroup.publicly_accessible #=> Boolean
|
1410
1487
|
# resp.workgroup.security_group_ids #=> Array
|
1411
1488
|
# resp.workgroup.security_group_ids[0] #=> String
|
@@ -1429,11 +1506,11 @@ module Aws::RedshiftServerless
|
|
1429
1506
|
#
|
1430
1507
|
# @option params [Integer] :max_results
|
1431
1508
|
# An optional parameter that specifies the maximum number of results to
|
1432
|
-
# return. You can use `nextToken` to
|
1509
|
+
# return. You can use `nextToken` to display the next page of results.
|
1433
1510
|
#
|
1434
1511
|
# @option params [String] :next_token
|
1435
1512
|
# If your initial `ListEndpointAccess` operation returns a `nextToken`,
|
1436
|
-
# you can include the returned `nextToken` in
|
1513
|
+
# you can include the returned `nextToken` in following
|
1437
1514
|
# `ListEndpointAccess` operations, which returns results in the next
|
1438
1515
|
# page.
|
1439
1516
|
#
|
@@ -1497,11 +1574,11 @@ module Aws::RedshiftServerless
|
|
1497
1574
|
#
|
1498
1575
|
# @option params [Integer] :max_results
|
1499
1576
|
# An optional parameter that specifies the maximum number of results to
|
1500
|
-
# return. You can use `nextToken` to
|
1577
|
+
# return. You can use `nextToken` to display the next page of results.
|
1501
1578
|
#
|
1502
1579
|
# @option params [String] :next_token
|
1503
1580
|
# If your initial `ListNamespaces` operation returns a `nextToken`, you
|
1504
|
-
# can include the returned `nextToken` in
|
1581
|
+
# can include the returned `nextToken` in following `ListNamespaces`
|
1505
1582
|
# operations, which returns results in the next page.
|
1506
1583
|
#
|
1507
1584
|
# @return [Types::ListNamespacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1552,14 +1629,18 @@ module Aws::RedshiftServerless
|
|
1552
1629
|
#
|
1553
1630
|
# @option params [Integer] :max_results
|
1554
1631
|
# An optional parameter that specifies the maximum number of results to
|
1555
|
-
# return. You can use `nextToken` to
|
1632
|
+
# return. You can use `nextToken` to display the next page of results.
|
1633
|
+
#
|
1634
|
+
# @option params [String] :namespace_arn
|
1635
|
+
# The Amazon Resource Name (ARN) of the namespace from which to list
|
1636
|
+
# recovery points.
|
1556
1637
|
#
|
1557
1638
|
# @option params [String] :namespace_name
|
1558
1639
|
# The name of the namespace to list recovery points for.
|
1559
1640
|
#
|
1560
1641
|
# @option params [String] :next_token
|
1561
1642
|
# If your initial `ListRecoveryPoints` operation returns a `nextToken`,
|
1562
|
-
# you can include the returned `nextToken` in
|
1643
|
+
# you can include the returned `nextToken` in following
|
1563
1644
|
# `ListRecoveryPoints` operations, which returns results in the next
|
1564
1645
|
# page.
|
1565
1646
|
#
|
@@ -1578,6 +1659,7 @@ module Aws::RedshiftServerless
|
|
1578
1659
|
# resp = client.list_recovery_points({
|
1579
1660
|
# end_time: Time.now,
|
1580
1661
|
# max_results: 1,
|
1662
|
+
# namespace_arn: "String",
|
1581
1663
|
# namespace_name: "NamespaceName",
|
1582
1664
|
# next_token: "String",
|
1583
1665
|
# start_time: Time.now,
|
@@ -1587,6 +1669,7 @@ module Aws::RedshiftServerless
|
|
1587
1669
|
#
|
1588
1670
|
# resp.next_token #=> String
|
1589
1671
|
# resp.recovery_points #=> Array
|
1672
|
+
# resp.recovery_points[0].namespace_arn #=> String
|
1590
1673
|
# resp.recovery_points[0].namespace_name #=> String
|
1591
1674
|
# resp.recovery_points[0].recovery_point_create_time #=> Time
|
1592
1675
|
# resp.recovery_points[0].recovery_point_id #=> String
|
@@ -1609,7 +1692,7 @@ module Aws::RedshiftServerless
|
|
1609
1692
|
#
|
1610
1693
|
# @option params [Integer] :max_results
|
1611
1694
|
# An optional parameter that specifies the maximum number of results to
|
1612
|
-
# return. You can use `nextToken` to
|
1695
|
+
# return. You can use `nextToken` to display the next page of results.
|
1613
1696
|
#
|
1614
1697
|
# @option params [String] :namespace_arn
|
1615
1698
|
# The Amazon Resource Name (ARN) of the namespace from which to list all
|
@@ -1684,6 +1767,71 @@ module Aws::RedshiftServerless
|
|
1684
1767
|
req.send_request(options)
|
1685
1768
|
end
|
1686
1769
|
|
1770
|
+
# Returns information about an array of `TableRestoreStatus` objects.
|
1771
|
+
#
|
1772
|
+
# @option params [Integer] :max_results
|
1773
|
+
# An optional parameter that specifies the maximum number of results to
|
1774
|
+
# return. You can use nextToken to display the next page of results.
|
1775
|
+
#
|
1776
|
+
# @option params [String] :namespace_name
|
1777
|
+
# The namespace from which to list all of the statuses of
|
1778
|
+
# `RestoreTableFromSnapshot` operations .
|
1779
|
+
#
|
1780
|
+
# @option params [String] :next_token
|
1781
|
+
# If your initial `ListTableRestoreStatus` operation returns a
|
1782
|
+
# nextToken, you can include the returned `nextToken` in following
|
1783
|
+
# `ListTableRestoreStatus` operations. This will return results on the
|
1784
|
+
# next page.
|
1785
|
+
#
|
1786
|
+
# @option params [String] :workgroup_name
|
1787
|
+
# The workgroup from which to list all of the statuses of
|
1788
|
+
# `RestoreTableFromSnapshot` operations.
|
1789
|
+
#
|
1790
|
+
# @return [Types::ListTableRestoreStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1791
|
+
#
|
1792
|
+
# * {Types::ListTableRestoreStatusResponse#next_token #next_token} => String
|
1793
|
+
# * {Types::ListTableRestoreStatusResponse#table_restore_statuses #table_restore_statuses} => Array<Types::TableRestoreStatus>
|
1794
|
+
#
|
1795
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1796
|
+
#
|
1797
|
+
# @example Request syntax with placeholder values
|
1798
|
+
#
|
1799
|
+
# resp = client.list_table_restore_status({
|
1800
|
+
# max_results: 1,
|
1801
|
+
# namespace_name: "String",
|
1802
|
+
# next_token: "PaginationToken",
|
1803
|
+
# workgroup_name: "String",
|
1804
|
+
# })
|
1805
|
+
#
|
1806
|
+
# @example Response structure
|
1807
|
+
#
|
1808
|
+
# resp.next_token #=> String
|
1809
|
+
# resp.table_restore_statuses #=> Array
|
1810
|
+
# resp.table_restore_statuses[0].message #=> String
|
1811
|
+
# resp.table_restore_statuses[0].namespace_name #=> String
|
1812
|
+
# resp.table_restore_statuses[0].new_table_name #=> String
|
1813
|
+
# resp.table_restore_statuses[0].progress_in_mega_bytes #=> Integer
|
1814
|
+
# resp.table_restore_statuses[0].request_time #=> Time
|
1815
|
+
# resp.table_restore_statuses[0].snapshot_name #=> String
|
1816
|
+
# resp.table_restore_statuses[0].source_database_name #=> String
|
1817
|
+
# resp.table_restore_statuses[0].source_schema_name #=> String
|
1818
|
+
# resp.table_restore_statuses[0].source_table_name #=> String
|
1819
|
+
# resp.table_restore_statuses[0].status #=> String
|
1820
|
+
# resp.table_restore_statuses[0].table_restore_request_id #=> String
|
1821
|
+
# resp.table_restore_statuses[0].target_database_name #=> String
|
1822
|
+
# resp.table_restore_statuses[0].target_schema_name #=> String
|
1823
|
+
# resp.table_restore_statuses[0].total_data_in_mega_bytes #=> Integer
|
1824
|
+
# resp.table_restore_statuses[0].workgroup_name #=> String
|
1825
|
+
#
|
1826
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListTableRestoreStatus AWS API Documentation
|
1827
|
+
#
|
1828
|
+
# @overload list_table_restore_status(params = {})
|
1829
|
+
# @param [Hash] params ({})
|
1830
|
+
def list_table_restore_status(params = {}, options = {})
|
1831
|
+
req = build_request(:list_table_restore_status, params)
|
1832
|
+
req.send_request(options)
|
1833
|
+
end
|
1834
|
+
|
1687
1835
|
# Lists the tags assigned to a resource.
|
1688
1836
|
#
|
1689
1837
|
# @option params [required, String] :resource_arn
|
@@ -1723,7 +1871,7 @@ module Aws::RedshiftServerless
|
|
1723
1871
|
#
|
1724
1872
|
# @option params [String] :next_token
|
1725
1873
|
# If your initial `ListUsageLimits` operation returns a `nextToken`, you
|
1726
|
-
# can include the returned `nextToken` in
|
1874
|
+
# can include the returned `nextToken` in following `ListUsageLimits`
|
1727
1875
|
# operations, which returns results in the next page.
|
1728
1876
|
#
|
1729
1877
|
# @option params [String] :resource_arn
|
@@ -1774,11 +1922,11 @@ module Aws::RedshiftServerless
|
|
1774
1922
|
#
|
1775
1923
|
# @option params [Integer] :max_results
|
1776
1924
|
# An optional parameter that specifies the maximum number of results to
|
1777
|
-
# return. You can use `nextToken` to
|
1925
|
+
# return. You can use `nextToken` to display the next page of results.
|
1778
1926
|
#
|
1779
1927
|
# @option params [String] :next_token
|
1780
1928
|
# If your initial ListWorkgroups operation returns a `nextToken`, you
|
1781
|
-
# can include the returned `nextToken` in
|
1929
|
+
# can include the returned `nextToken` in following ListNamespaces
|
1782
1930
|
# operations, which returns results in the next page.
|
1783
1931
|
#
|
1784
1932
|
# @return [Types::ListWorkgroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -1816,6 +1964,7 @@ module Aws::RedshiftServerless
|
|
1816
1964
|
# resp.workgroups[0].endpoint.vpc_endpoints[0].vpc_id #=> String
|
1817
1965
|
# resp.workgroups[0].enhanced_vpc_routing #=> Boolean
|
1818
1966
|
# resp.workgroups[0].namespace_name #=> String
|
1967
|
+
# resp.workgroups[0].port #=> Integer
|
1819
1968
|
# resp.workgroups[0].publicly_accessible #=> Boolean
|
1820
1969
|
# resp.workgroups[0].security_group_ids #=> Array
|
1821
1970
|
# resp.workgroups[0].security_group_ids[0] #=> String
|
@@ -1937,9 +2086,15 @@ module Aws::RedshiftServerless
|
|
1937
2086
|
#
|
1938
2087
|
# @option params [String] :snapshot_arn
|
1939
2088
|
# The Amazon Resource Name (ARN) of the snapshot to restore from.
|
2089
|
+
# Required if restoring from Amazon Redshift Serverless to a provisioned
|
2090
|
+
# cluster. Must not be specified at the same time as `snapshotName`.
|
2091
|
+
#
|
2092
|
+
# The format of the ARN is
|
2093
|
+
# arn:aws:redshift:<region>\:<account\_id>\:snapshot:<cluster\_identifier>/<snapshot\_identifier>.
|
1940
2094
|
#
|
1941
2095
|
# @option params [String] :snapshot_name
|
1942
|
-
# The name of the snapshot to restore from.
|
2096
|
+
# The name of the snapshot to restore from. Must not be specified at the
|
2097
|
+
# same time as `snapshotArn`.
|
1943
2098
|
#
|
1944
2099
|
# @option params [required, String] :workgroup_name
|
1945
2100
|
# The name of the workgroup used to restore the snapshot.
|
@@ -1987,6 +2142,88 @@ module Aws::RedshiftServerless
|
|
1987
2142
|
req.send_request(options)
|
1988
2143
|
end
|
1989
2144
|
|
2145
|
+
# Restores a table from a snapshot to your Amazon Redshift Serverless
|
2146
|
+
# instance.
|
2147
|
+
#
|
2148
|
+
# @option params [Boolean] :activate_case_sensitive_identifier
|
2149
|
+
# Indicates whether name identifiers for database, schema, and table are
|
2150
|
+
# case sensitive. If true, the names are case sensitive. If false, the
|
2151
|
+
# names are not case sensitive. The default is false.
|
2152
|
+
#
|
2153
|
+
# @option params [required, String] :namespace_name
|
2154
|
+
# The namespace of the snapshot to restore from.
|
2155
|
+
#
|
2156
|
+
# @option params [required, String] :new_table_name
|
2157
|
+
# The name of the table to create from the restore operation.
|
2158
|
+
#
|
2159
|
+
# @option params [required, String] :snapshot_name
|
2160
|
+
# The name of the snapshot to restore the table from.
|
2161
|
+
#
|
2162
|
+
# @option params [required, String] :source_database_name
|
2163
|
+
# The name of the source database that contains the table being
|
2164
|
+
# restored.
|
2165
|
+
#
|
2166
|
+
# @option params [String] :source_schema_name
|
2167
|
+
# The name of the source schema that contains the table being restored.
|
2168
|
+
#
|
2169
|
+
# @option params [required, String] :source_table_name
|
2170
|
+
# The name of the source table being restored.
|
2171
|
+
#
|
2172
|
+
# @option params [String] :target_database_name
|
2173
|
+
# The name of the database to restore the table to.
|
2174
|
+
#
|
2175
|
+
# @option params [String] :target_schema_name
|
2176
|
+
# The name of the schema to restore the table to.
|
2177
|
+
#
|
2178
|
+
# @option params [required, String] :workgroup_name
|
2179
|
+
# The workgroup to restore the table to.
|
2180
|
+
#
|
2181
|
+
# @return [Types::RestoreTableFromSnapshotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2182
|
+
#
|
2183
|
+
# * {Types::RestoreTableFromSnapshotResponse#table_restore_status #table_restore_status} => Types::TableRestoreStatus
|
2184
|
+
#
|
2185
|
+
# @example Request syntax with placeholder values
|
2186
|
+
#
|
2187
|
+
# resp = client.restore_table_from_snapshot({
|
2188
|
+
# activate_case_sensitive_identifier: false,
|
2189
|
+
# namespace_name: "String", # required
|
2190
|
+
# new_table_name: "String", # required
|
2191
|
+
# snapshot_name: "String", # required
|
2192
|
+
# source_database_name: "String", # required
|
2193
|
+
# source_schema_name: "String",
|
2194
|
+
# source_table_name: "String", # required
|
2195
|
+
# target_database_name: "String",
|
2196
|
+
# target_schema_name: "String",
|
2197
|
+
# workgroup_name: "String", # required
|
2198
|
+
# })
|
2199
|
+
#
|
2200
|
+
# @example Response structure
|
2201
|
+
#
|
2202
|
+
# resp.table_restore_status.message #=> String
|
2203
|
+
# resp.table_restore_status.namespace_name #=> String
|
2204
|
+
# resp.table_restore_status.new_table_name #=> String
|
2205
|
+
# resp.table_restore_status.progress_in_mega_bytes #=> Integer
|
2206
|
+
# resp.table_restore_status.request_time #=> Time
|
2207
|
+
# resp.table_restore_status.snapshot_name #=> String
|
2208
|
+
# resp.table_restore_status.source_database_name #=> String
|
2209
|
+
# resp.table_restore_status.source_schema_name #=> String
|
2210
|
+
# resp.table_restore_status.source_table_name #=> String
|
2211
|
+
# resp.table_restore_status.status #=> String
|
2212
|
+
# resp.table_restore_status.table_restore_request_id #=> String
|
2213
|
+
# resp.table_restore_status.target_database_name #=> String
|
2214
|
+
# resp.table_restore_status.target_schema_name #=> String
|
2215
|
+
# resp.table_restore_status.total_data_in_mega_bytes #=> Integer
|
2216
|
+
# resp.table_restore_status.workgroup_name #=> String
|
2217
|
+
#
|
2218
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreTableFromSnapshot AWS API Documentation
|
2219
|
+
#
|
2220
|
+
# @overload restore_table_from_snapshot(params = {})
|
2221
|
+
# @param [Hash] params ({})
|
2222
|
+
def restore_table_from_snapshot(params = {}, options = {})
|
2223
|
+
req = build_request(:restore_table_from_snapshot, params)
|
2224
|
+
req.send_request(options)
|
2225
|
+
end
|
2226
|
+
|
1990
2227
|
# Assigns one or more tags to a resource.
|
1991
2228
|
#
|
1992
2229
|
# @option params [required, String] :resource_arn
|
@@ -2221,7 +2458,10 @@ module Aws::RedshiftServerless
|
|
2221
2458
|
# the usage type or period of a usage limit.
|
2222
2459
|
#
|
2223
2460
|
# @option params [Integer] :amount
|
2224
|
-
# The new limit amount.
|
2461
|
+
# The new limit amount. If time-based, this amount is in Redshift
|
2462
|
+
# Processing Units (RPU) consumed per hour. If data-based, this amount
|
2463
|
+
# is in terabytes (TB) of data transferred between Regions in
|
2464
|
+
# cross-account sharing. The value must be a positive number.
|
2225
2465
|
#
|
2226
2466
|
# @option params [String] :breach_action
|
2227
2467
|
# The new action that Amazon Redshift Serverless takes when the limit is
|
@@ -2277,6 +2517,10 @@ module Aws::RedshiftServerless
|
|
2277
2517
|
# cloud (VPC) routing, which forces Amazon Redshift Serverless to route
|
2278
2518
|
# traffic through your VPC.
|
2279
2519
|
#
|
2520
|
+
# @option params [Integer] :port
|
2521
|
+
# The custom port to use when connecting to a workgroup. Valid port
|
2522
|
+
# ranges are 5431-5455 and 8191-8215. The default is 5439.
|
2523
|
+
#
|
2280
2524
|
# @option params [Boolean] :publicly_accessible
|
2281
2525
|
# A value that specifies whether the workgroup can be accessible from a
|
2282
2526
|
# public network.
|
@@ -2305,6 +2549,7 @@ module Aws::RedshiftServerless
|
|
2305
2549
|
# },
|
2306
2550
|
# ],
|
2307
2551
|
# enhanced_vpc_routing: false,
|
2552
|
+
# port: 1,
|
2308
2553
|
# publicly_accessible: false,
|
2309
2554
|
# security_group_ids: ["SecurityGroupId"],
|
2310
2555
|
# subnet_ids: ["SubnetId"],
|
@@ -2330,6 +2575,7 @@ module Aws::RedshiftServerless
|
|
2330
2575
|
# resp.workgroup.endpoint.vpc_endpoints[0].vpc_id #=> String
|
2331
2576
|
# resp.workgroup.enhanced_vpc_routing #=> Boolean
|
2332
2577
|
# resp.workgroup.namespace_name #=> String
|
2578
|
+
# resp.workgroup.port #=> Integer
|
2333
2579
|
# resp.workgroup.publicly_accessible #=> Boolean
|
2334
2580
|
# resp.workgroup.security_group_ids #=> Array
|
2335
2581
|
# resp.workgroup.security_group_ids[0] #=> String
|
@@ -2362,7 +2608,7 @@ module Aws::RedshiftServerless
|
|
2362
2608
|
params: params,
|
2363
2609
|
config: config)
|
2364
2610
|
context[:gem_name] = 'aws-sdk-redshiftserverless'
|
2365
|
-
context[:gem_version] = '1.
|
2611
|
+
context[:gem_version] = '1.5.0'
|
2366
2612
|
Seahorse::Client::Request.new(handlers, context)
|
2367
2613
|
end
|
2368
2614
|
|