aws-sdk-redshiftserverless 1.21.0 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,12 +61,11 @@ module Aws::RedshiftServerless
61
61
  #
62
62
  # @!attribute [rw] parameter_key
63
63
  # The key of the parameter. The options are `auto_mv`, `datestyle`,
64
- # `enable_case_sensitivity_identifier`,
65
- # `enable_user_activity_logging`, `query_group`, `search_path`, and
66
- # query monitoring metrics that let you define performance boundaries.
67
- # For more information about query monitoring rules and available
68
- # metrics, see [Query monitoring metrics for Amazon Redshift
69
- # Serverless][1].
64
+ # `enable_case_sensitive_identifier`, `enable_user_activity_logging`,
65
+ # `query_group`, `search_path`, and query monitoring metrics that let
66
+ # you define performance boundaries. For more information about query
67
+ # monitoring rules and available metrics, see [Query monitoring
68
+ # metrics for Amazon Redshift Serverless][1].
70
69
  #
71
70
  #
72
71
  #
@@ -198,6 +197,11 @@ module Aws::RedshiftServerless
198
197
  # consecutive hyphens or end with a hyphen.
199
198
  # @return [String]
200
199
  #
200
+ # @!attribute [rw] owner_account
201
+ # The owner Amazon Web Services account for the Amazon Redshift
202
+ # Serverless workgroup.
203
+ # @return [String]
204
+ #
201
205
  # @!attribute [rw] subnet_ids
202
206
  # The unique identifers of subnets from which Amazon Redshift
203
207
  # Serverless chooses one to deploy a VPC endpoint.
@@ -217,6 +221,7 @@ module Aws::RedshiftServerless
217
221
  #
218
222
  class CreateEndpointAccessRequest < Struct.new(
219
223
  :endpoint_name,
224
+ :owner_account,
220
225
  :subnet_ids,
221
226
  :vpc_security_group_ids,
222
227
  :workgroup_name)
@@ -329,6 +334,152 @@ module Aws::RedshiftServerless
329
334
  include Aws::Structure
330
335
  end
331
336
 
337
+ # @!attribute [rw] enabled
338
+ # Indicates whether the schedule is enabled. If false, the scheduled
339
+ # action does not trigger. For more information about `state` of the
340
+ # scheduled action, see [ScheduledAction][1].
341
+ #
342
+ #
343
+ #
344
+ # [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_ScheduledAction.html
345
+ # @return [Boolean]
346
+ #
347
+ # @!attribute [rw] end_time
348
+ # The end time in UTC when the schedule is no longer active. After
349
+ # this time, the scheduled action does not trigger.
350
+ # @return [Time]
351
+ #
352
+ # @!attribute [rw] namespace_name
353
+ # The name of the namespace for which to create a scheduled action.
354
+ # @return [String]
355
+ #
356
+ # @!attribute [rw] role_arn
357
+ # The ARN of the IAM role to assume to run the scheduled action. This
358
+ # IAM role must have permission to run the Amazon Redshift Serverless
359
+ # API operation in the scheduled action. This IAM role must allow the
360
+ # Amazon Redshift scheduler to schedule creating snapshots. (Principal
361
+ # scheduler.redshift.amazonaws.com) to assume permissions on your
362
+ # behalf. For more information about the IAM role to use with the
363
+ # Amazon Redshift scheduler, see [Using Identity-Based Policies for
364
+ # Amazon Redshift][1] in the Amazon Redshift Cluster Management Guide
365
+ #
366
+ #
367
+ #
368
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html
369
+ # @return [String]
370
+ #
371
+ # @!attribute [rw] schedule
372
+ # The schedule for a one-time (at format) or recurring (cron format)
373
+ # scheduled action. Schedule invocations must be separated by at least
374
+ # one hour.
375
+ #
376
+ # Format of at expressions is "`at(yyyy-mm-ddThh:mm:ss)`". For
377
+ # example, "`at(2016-03-04T17:27:00)`".
378
+ #
379
+ # Format of cron expressions is "`cron(Minutes Hours Day-of-month
380
+ # Month Day-of-week Year)`". For example, "`cron(0 10 ? * MON *)`".
381
+ # For more information, see [Cron Expressions][1] in the *Amazon
382
+ # CloudWatch Events User Guide*.
383
+ #
384
+ #
385
+ #
386
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
387
+ # @return [Types::Schedule]
388
+ #
389
+ # @!attribute [rw] scheduled_action_description
390
+ # The description of the scheduled action.
391
+ # @return [String]
392
+ #
393
+ # @!attribute [rw] scheduled_action_name
394
+ # The name of the scheduled action.
395
+ # @return [String]
396
+ #
397
+ # @!attribute [rw] start_time
398
+ # The start time in UTC when the schedule is active. Before this time,
399
+ # the scheduled action does not trigger.
400
+ # @return [Time]
401
+ #
402
+ # @!attribute [rw] target_action
403
+ # A JSON format string of the Amazon Redshift Serverless API operation
404
+ # with input parameters. The following is an example of a target
405
+ # action.
406
+ #
407
+ # `"\{"CreateSnapshot": \{"NamespaceName":
408
+ # "sampleNamespace","SnapshotName": "sampleSnapshot",
409
+ # "retentionPeriod": "1"\}\}"`
410
+ # @return [Types::TargetAction]
411
+ #
412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateScheduledActionRequest AWS API Documentation
413
+ #
414
+ class CreateScheduledActionRequest < Struct.new(
415
+ :enabled,
416
+ :end_time,
417
+ :namespace_name,
418
+ :role_arn,
419
+ :schedule,
420
+ :scheduled_action_description,
421
+ :scheduled_action_name,
422
+ :start_time,
423
+ :target_action)
424
+ SENSITIVE = []
425
+ include Aws::Structure
426
+ end
427
+
428
+ # @!attribute [rw] scheduled_action
429
+ # The returned `ScheduledAction` object that describes the properties
430
+ # of a scheduled action.
431
+ # @return [Types::ScheduledActionResponse]
432
+ #
433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateScheduledActionResponse AWS API Documentation
434
+ #
435
+ class CreateScheduledActionResponse < Struct.new(
436
+ :scheduled_action)
437
+ SENSITIVE = []
438
+ include Aws::Structure
439
+ end
440
+
441
+ # @!attribute [rw] destination_kms_key_id
442
+ # The KMS key to use to encrypt your snapshots in the destination
443
+ # Amazon Web Services Region.
444
+ # @return [String]
445
+ #
446
+ # @!attribute [rw] destination_region
447
+ # The destination Amazon Web Services Region that you want to copy
448
+ # snapshots to.
449
+ # @return [String]
450
+ #
451
+ # @!attribute [rw] namespace_name
452
+ # The name of the namespace to copy snapshots from.
453
+ # @return [String]
454
+ #
455
+ # @!attribute [rw] snapshot_retention_period
456
+ # The retention period of the snapshots that you copy to the
457
+ # destination Amazon Web Services Region.
458
+ # @return [Integer]
459
+ #
460
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateSnapshotCopyConfigurationRequest AWS API Documentation
461
+ #
462
+ class CreateSnapshotCopyConfigurationRequest < Struct.new(
463
+ :destination_kms_key_id,
464
+ :destination_region,
465
+ :namespace_name,
466
+ :snapshot_retention_period)
467
+ SENSITIVE = []
468
+ include Aws::Structure
469
+ end
470
+
471
+ # @!attribute [rw] snapshot_copy_configuration
472
+ # The snapshot copy configuration object that is returned.
473
+ # @return [Types::SnapshotCopyConfiguration]
474
+ #
475
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateSnapshotCopyConfigurationResponse AWS API Documentation
476
+ #
477
+ class CreateSnapshotCopyConfigurationResponse < Struct.new(
478
+ :snapshot_copy_configuration)
479
+ SENSITIVE = []
480
+ include Aws::Structure
481
+ end
482
+
332
483
  # @!attribute [rw] namespace_name
333
484
  # The namespace to create a snapshot for.
334
485
  # @return [String]
@@ -372,6 +523,50 @@ module Aws::RedshiftServerless
372
523
  include Aws::Structure
373
524
  end
374
525
 
526
+ # The parameters that you can use to configure a [scheduled action][1]
527
+ # to create a snapshot. For more information about creating a scheduled
528
+ # action, see [CreateScheduledAction][1].
529
+ #
530
+ #
531
+ #
532
+ # [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html
533
+ #
534
+ # @!attribute [rw] namespace_name
535
+ # The name of the namespace for which you want to configure a
536
+ # scheduled action to create a snapshot.
537
+ # @return [String]
538
+ #
539
+ # @!attribute [rw] retention_period
540
+ # The retention period of the snapshot created by the scheduled
541
+ # action.
542
+ # @return [Integer]
543
+ #
544
+ # @!attribute [rw] snapshot_name_prefix
545
+ # A string prefix that is attached to the name of the snapshot created
546
+ # by the scheduled action. The final name of the snapshot is the
547
+ # string prefix appended by the date and time of when the snapshot was
548
+ # created.
549
+ # @return [String]
550
+ #
551
+ # @!attribute [rw] tags
552
+ # An array of [Tag objects][1] to associate with the snapshot.
553
+ #
554
+ #
555
+ #
556
+ # [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_Tag.html
557
+ # @return [Array<Types::Tag>]
558
+ #
559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateSnapshotScheduleActionParameters AWS API Documentation
560
+ #
561
+ class CreateSnapshotScheduleActionParameters < Struct.new(
562
+ :namespace_name,
563
+ :retention_period,
564
+ :snapshot_name_prefix,
565
+ :tags)
566
+ SENSITIVE = []
567
+ include Aws::Structure
568
+ end
569
+
375
570
  # @!attribute [rw] amount
376
571
  # The limit amount. If time-based, this amount is in Redshift
377
572
  # Processing Units (RPU) consumed per hour. If data-based, this amount
@@ -431,8 +626,8 @@ module Aws::RedshiftServerless
431
626
  # @!attribute [rw] config_parameters
432
627
  # An array of parameters to set for advanced control over a database.
433
628
  # The options are `auto_mv`, `datestyle`,
434
- # `enable_case_sensitivity_identifier`,
435
- # `enable_user_activity_logging`, `query_group`, `search_path`, and
629
+ # `enable_case_sensitive_identifier`, `enable_user_activity_logging`,
630
+ # `query_group`, `search_path`, `require_ssl`, `use_fips_ssl`, and
436
631
  # query monitoring metrics that let you define performance boundaries.
437
632
  # For more information about query monitoring rules and available
438
633
  # metrics, see [ Query monitoring metrics for Amazon Redshift
@@ -610,6 +805,54 @@ module Aws::RedshiftServerless
610
805
  #
611
806
  class DeleteResourcePolicyResponse < Aws::EmptyStructure; end
612
807
 
808
+ # @!attribute [rw] scheduled_action_name
809
+ # The name of the scheduled action to delete.
810
+ # @return [String]
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteScheduledActionRequest AWS API Documentation
813
+ #
814
+ class DeleteScheduledActionRequest < Struct.new(
815
+ :scheduled_action_name)
816
+ SENSITIVE = []
817
+ include Aws::Structure
818
+ end
819
+
820
+ # @!attribute [rw] scheduled_action
821
+ # The deleted scheduled action object.
822
+ # @return [Types::ScheduledActionResponse]
823
+ #
824
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteScheduledActionResponse AWS API Documentation
825
+ #
826
+ class DeleteScheduledActionResponse < Struct.new(
827
+ :scheduled_action)
828
+ SENSITIVE = []
829
+ include Aws::Structure
830
+ end
831
+
832
+ # @!attribute [rw] snapshot_copy_configuration_id
833
+ # The ID of the snapshot copy configuration to delete.
834
+ # @return [String]
835
+ #
836
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteSnapshotCopyConfigurationRequest AWS API Documentation
837
+ #
838
+ class DeleteSnapshotCopyConfigurationRequest < Struct.new(
839
+ :snapshot_copy_configuration_id)
840
+ SENSITIVE = []
841
+ include Aws::Structure
842
+ end
843
+
844
+ # @!attribute [rw] snapshot_copy_configuration
845
+ # The deleted snapshot copy configuration object.
846
+ # @return [Types::SnapshotCopyConfiguration]
847
+ #
848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteSnapshotCopyConfigurationResponse AWS API Documentation
849
+ #
850
+ class DeleteSnapshotCopyConfigurationResponse < Struct.new(
851
+ :snapshot_copy_configuration)
852
+ SENSITIVE = []
853
+ include Aws::Structure
854
+ end
855
+
613
856
  # @!attribute [rw] snapshot_name
614
857
  # The name of the snapshot to be deleted.
615
858
  # @return [String]
@@ -991,6 +1234,30 @@ module Aws::RedshiftServerless
991
1234
  include Aws::Structure
992
1235
  end
993
1236
 
1237
+ # @!attribute [rw] scheduled_action_name
1238
+ # The name of the scheduled action.
1239
+ # @return [String]
1240
+ #
1241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetScheduledActionRequest AWS API Documentation
1242
+ #
1243
+ class GetScheduledActionRequest < Struct.new(
1244
+ :scheduled_action_name)
1245
+ SENSITIVE = []
1246
+ include Aws::Structure
1247
+ end
1248
+
1249
+ # @!attribute [rw] scheduled_action
1250
+ # The returned scheduled action object.
1251
+ # @return [Types::ScheduledActionResponse]
1252
+ #
1253
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetScheduledActionResponse AWS API Documentation
1254
+ #
1255
+ class GetScheduledActionResponse < Struct.new(
1256
+ :scheduled_action)
1257
+ SENSITIVE = []
1258
+ include Aws::Structure
1259
+ end
1260
+
994
1261
  # @!attribute [rw] owner_account
995
1262
  # The owner Amazon Web Services account of a snapshot shared with
996
1263
  # another user.
@@ -1205,6 +1472,11 @@ module Aws::RedshiftServerless
1205
1472
  # page.
1206
1473
  # @return [String]
1207
1474
  #
1475
+ # @!attribute [rw] owner_account
1476
+ # The owner Amazon Web Services account for the Amazon Redshift
1477
+ # Serverless workgroup.
1478
+ # @return [String]
1479
+ #
1208
1480
  # @!attribute [rw] vpc_id
1209
1481
  # The unique identifier of the virtual private cloud with access to
1210
1482
  # Amazon Redshift Serverless.
@@ -1220,6 +1492,7 @@ module Aws::RedshiftServerless
1220
1492
  class ListEndpointAccessRequest < Struct.new(
1221
1493
  :max_results,
1222
1494
  :next_token,
1495
+ :owner_account,
1223
1496
  :vpc_id,
1224
1497
  :workgroup_name)
1225
1498
  SENSITIVE = []
@@ -1350,6 +1623,99 @@ module Aws::RedshiftServerless
1350
1623
  include Aws::Structure
1351
1624
  end
1352
1625
 
1626
+ # @!attribute [rw] max_results
1627
+ # An optional parameter that specifies the maximum number of results
1628
+ # to return. Use `nextToken` to display the next page of results.
1629
+ # @return [Integer]
1630
+ #
1631
+ # @!attribute [rw] namespace_name
1632
+ # The name of namespace associated with the scheduled action to
1633
+ # retrieve.
1634
+ # @return [String]
1635
+ #
1636
+ # @!attribute [rw] next_token
1637
+ # If `nextToken` is returned, there are more results available. The
1638
+ # value of `nextToken` is a unique pagination token for each page.
1639
+ # Make the call again using the returned token to retrieve the next
1640
+ # page.
1641
+ # @return [String]
1642
+ #
1643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListScheduledActionsRequest AWS API Documentation
1644
+ #
1645
+ class ListScheduledActionsRequest < Struct.new(
1646
+ :max_results,
1647
+ :namespace_name,
1648
+ :next_token)
1649
+ SENSITIVE = []
1650
+ include Aws::Structure
1651
+ end
1652
+
1653
+ # @!attribute [rw] next_token
1654
+ # If nextToken is returned, there are more results available. The
1655
+ # value of nextToken is a unique pagination token for each page. Make
1656
+ # the call again using the returned token to retrieve the next page.
1657
+ # @return [String]
1658
+ #
1659
+ # @!attribute [rw] scheduled_actions
1660
+ # All of the returned scheduled action objects.
1661
+ # @return [Array<String>]
1662
+ #
1663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListScheduledActionsResponse AWS API Documentation
1664
+ #
1665
+ class ListScheduledActionsResponse < Struct.new(
1666
+ :next_token,
1667
+ :scheduled_actions)
1668
+ SENSITIVE = []
1669
+ include Aws::Structure
1670
+ end
1671
+
1672
+ # @!attribute [rw] max_results
1673
+ # An optional parameter that specifies the maximum number of results
1674
+ # to return. You can use `nextToken` to display the next page of
1675
+ # results.
1676
+ # @return [Integer]
1677
+ #
1678
+ # @!attribute [rw] namespace_name
1679
+ # The namespace from which to list all snapshot copy configurations.
1680
+ # @return [String]
1681
+ #
1682
+ # @!attribute [rw] next_token
1683
+ # If `nextToken` is returned, there are more results available. The
1684
+ # value of `nextToken` is a unique pagination token for each page.
1685
+ # Make the call again using the returned token to retrieve the next
1686
+ # page.
1687
+ # @return [String]
1688
+ #
1689
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListSnapshotCopyConfigurationsRequest AWS API Documentation
1690
+ #
1691
+ class ListSnapshotCopyConfigurationsRequest < Struct.new(
1692
+ :max_results,
1693
+ :namespace_name,
1694
+ :next_token)
1695
+ SENSITIVE = []
1696
+ include Aws::Structure
1697
+ end
1698
+
1699
+ # @!attribute [rw] next_token
1700
+ # If `nextToken` is returned, there are more results available. The
1701
+ # value of `nextToken` is a unique pagination token for each page.
1702
+ # Make the call again using the returned token to retrieve the next
1703
+ # page.
1704
+ # @return [String]
1705
+ #
1706
+ # @!attribute [rw] snapshot_copy_configurations
1707
+ # All of the returned snapshot copy configurations.
1708
+ # @return [Array<Types::SnapshotCopyConfiguration>]
1709
+ #
1710
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListSnapshotCopyConfigurationsResponse AWS API Documentation
1711
+ #
1712
+ class ListSnapshotCopyConfigurationsResponse < Struct.new(
1713
+ :next_token,
1714
+ :snapshot_copy_configurations)
1715
+ SENSITIVE = []
1716
+ include Aws::Structure
1717
+ end
1718
+
1353
1719
  # @!attribute [rw] end_time
1354
1720
  # The timestamp showing when the snapshot creation finished.
1355
1721
  # @return [Time]
@@ -1561,11 +1927,17 @@ module Aws::RedshiftServerless
1561
1927
  # operations, which returns results in the next page.
1562
1928
  # @return [String]
1563
1929
  #
1930
+ # @!attribute [rw] owner_account
1931
+ # The owner Amazon Web Services account for the Amazon Redshift
1932
+ # Serverless workgroup.
1933
+ # @return [String]
1934
+ #
1564
1935
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListWorkgroupsRequest AWS API Documentation
1565
1936
  #
1566
1937
  class ListWorkgroupsRequest < Struct.new(
1567
1938
  :max_results,
1568
- :next_token)
1939
+ :next_token,
1940
+ :owner_account)
1569
1941
  SENSITIVE = []
1570
1942
  include Aws::Structure
1571
1943
  end
@@ -1938,6 +2310,79 @@ module Aws::RedshiftServerless
1938
2310
  include Aws::Structure
1939
2311
  end
1940
2312
 
2313
+ # @!attribute [rw] activate_case_sensitive_identifier
2314
+ # Indicates whether name identifiers for database, schema, and table
2315
+ # are case sensitive. If true, the names are case sensitive. If false,
2316
+ # the names are not case sensitive. The default is false.
2317
+ # @return [Boolean]
2318
+ #
2319
+ # @!attribute [rw] namespace_name
2320
+ # Namespace of the recovery point to restore from.
2321
+ # @return [String]
2322
+ #
2323
+ # @!attribute [rw] new_table_name
2324
+ # The name of the table to create from the restore operation.
2325
+ # @return [String]
2326
+ #
2327
+ # @!attribute [rw] recovery_point_id
2328
+ # The ID of the recovery point to restore the table from.
2329
+ # @return [String]
2330
+ #
2331
+ # @!attribute [rw] source_database_name
2332
+ # The name of the source database that contains the table being
2333
+ # restored.
2334
+ # @return [String]
2335
+ #
2336
+ # @!attribute [rw] source_schema_name
2337
+ # The name of the source schema that contains the table being
2338
+ # restored.
2339
+ # @return [String]
2340
+ #
2341
+ # @!attribute [rw] source_table_name
2342
+ # The name of the source table being restored.
2343
+ # @return [String]
2344
+ #
2345
+ # @!attribute [rw] target_database_name
2346
+ # The name of the database to restore the table to.
2347
+ # @return [String]
2348
+ #
2349
+ # @!attribute [rw] target_schema_name
2350
+ # The name of the schema to restore the table to.
2351
+ # @return [String]
2352
+ #
2353
+ # @!attribute [rw] workgroup_name
2354
+ # The workgroup to restore the table to.
2355
+ # @return [String]
2356
+ #
2357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreTableFromRecoveryPointRequest AWS API Documentation
2358
+ #
2359
+ class RestoreTableFromRecoveryPointRequest < Struct.new(
2360
+ :activate_case_sensitive_identifier,
2361
+ :namespace_name,
2362
+ :new_table_name,
2363
+ :recovery_point_id,
2364
+ :source_database_name,
2365
+ :source_schema_name,
2366
+ :source_table_name,
2367
+ :target_database_name,
2368
+ :target_schema_name,
2369
+ :workgroup_name)
2370
+ SENSITIVE = []
2371
+ include Aws::Structure
2372
+ end
2373
+
2374
+ # @!attribute [rw] table_restore_status
2375
+ # Contains information about a table restore request.
2376
+ # @return [Types::TableRestoreStatus]
2377
+ #
2378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreTableFromRecoveryPointResponse AWS API Documentation
2379
+ #
2380
+ class RestoreTableFromRecoveryPointResponse < Struct.new(
2381
+ :table_restore_status)
2382
+ SENSITIVE = []
2383
+ include Aws::Structure
2384
+ end
2385
+
1941
2386
  # @!attribute [rw] activate_case_sensitive_identifier
1942
2387
  # Indicates whether name identifiers for database, schema, and table
1943
2388
  # are case sensitive. If true, the names are case sensitive. If false,
@@ -2012,6 +2457,147 @@ module Aws::RedshiftServerless
2012
2457
  include Aws::Structure
2013
2458
  end
2014
2459
 
2460
+ # The schedule of when Amazon Redshift Serverless should run the
2461
+ # scheduled action.
2462
+ #
2463
+ # @note Schedule is a union - when making an API calls you must set exactly one of the members.
2464
+ #
2465
+ # @note Schedule is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Schedule corresponding to the set member.
2466
+ #
2467
+ # @!attribute [rw] at
2468
+ # The timestamp of when Amazon Redshift Serverless should run the
2469
+ # scheduled action. Format of at expressions is
2470
+ # "`at(yyyy-mm-ddThh:mm:ss)`". For example,
2471
+ # "`at(2016-03-04T17:27:00)`".
2472
+ # @return [Time]
2473
+ #
2474
+ # @!attribute [rw] cron
2475
+ # The cron expression to use to schedule a recurring scheduled action.
2476
+ # Schedule invocations must be separated by at least one hour.
2477
+ #
2478
+ # Format of cron expressions is "`cron(Minutes Hours Day-of-month
2479
+ # Month Day-of-week Year)`". For example, "`cron(0 10 ? * MON *)`".
2480
+ # For more information, see [Cron Expressions][1] in the *Amazon
2481
+ # CloudWatch Events User Guide*.
2482
+ #
2483
+ #
2484
+ #
2485
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
2486
+ # @return [String]
2487
+ #
2488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/Schedule AWS API Documentation
2489
+ #
2490
+ class Schedule < Struct.new(
2491
+ :at,
2492
+ :cron,
2493
+ :unknown)
2494
+ SENSITIVE = []
2495
+ include Aws::Structure
2496
+ include Aws::Structure::Union
2497
+
2498
+ class At < Schedule; end
2499
+ class Cron < Schedule; end
2500
+ class Unknown < Schedule; end
2501
+ end
2502
+
2503
+ # The returned scheduled action object.
2504
+ #
2505
+ # @!attribute [rw] end_time
2506
+ # The end time of
2507
+ # @return [Time]
2508
+ #
2509
+ # @!attribute [rw] namespace_name
2510
+ # The end time in UTC when the schedule is no longer active. After
2511
+ # this time, the scheduled action does not trigger.
2512
+ # @return [String]
2513
+ #
2514
+ # @!attribute [rw] next_invocations
2515
+ # An array of timestamps of when the next scheduled actions will
2516
+ # trigger.
2517
+ # @return [Array<Time>]
2518
+ #
2519
+ # @!attribute [rw] role_arn
2520
+ # The ARN of the IAM role to assume to run the scheduled action. This
2521
+ # IAM role must have permission to run the Amazon Redshift Serverless
2522
+ # API operation in the scheduled action. This IAM role must allow the
2523
+ # Amazon Redshift scheduler to schedule creating snapshots. (Principal
2524
+ # scheduler.redshift.amazonaws.com) to assume permissions on your
2525
+ # behalf. For more information about the IAM role to use with the
2526
+ # Amazon Redshift scheduler, see [Using Identity-Based Policies for
2527
+ # Amazon Redshift][1] in the Amazon Redshift Cluster Management Guide
2528
+ #
2529
+ #
2530
+ #
2531
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html
2532
+ # @return [String]
2533
+ #
2534
+ # @!attribute [rw] schedule
2535
+ # The schedule for a one-time (at format) or recurring (cron format)
2536
+ # scheduled action. Schedule invocations must be separated by at least
2537
+ # one hour.
2538
+ #
2539
+ # Format of at expressions is "`at(yyyy-mm-ddThh:mm:ss)`". For
2540
+ # example, "`at(2016-03-04T17:27:00)`".
2541
+ #
2542
+ # Format of cron expressions is "`cron(Minutes Hours Day-of-month
2543
+ # Month Day-of-week Year)`". For example, "`cron(0 10 ? * MON *)`".
2544
+ # For more information, see [Cron Expressions][1] in the *Amazon
2545
+ # CloudWatch Events User Guide*.
2546
+ #
2547
+ #
2548
+ #
2549
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
2550
+ # @return [Types::Schedule]
2551
+ #
2552
+ # @!attribute [rw] scheduled_action_description
2553
+ # The description of the scheduled action.
2554
+ # @return [String]
2555
+ #
2556
+ # @!attribute [rw] scheduled_action_name
2557
+ # The name of the scheduled action.
2558
+ # @return [String]
2559
+ #
2560
+ # @!attribute [rw] scheduled_action_uuid
2561
+ # The uuid of the scheduled action.
2562
+ # @return [String]
2563
+ #
2564
+ # @!attribute [rw] start_time
2565
+ # The start time in UTC when the schedule is active. Before this time,
2566
+ # the scheduled action does not trigger.
2567
+ # @return [Time]
2568
+ #
2569
+ # @!attribute [rw] state
2570
+ # The state of the scheduled action.
2571
+ # @return [String]
2572
+ #
2573
+ # @!attribute [rw] target_action
2574
+ # A JSON format string of the Amazon Redshift Serverless API operation
2575
+ # with input parameters. The following is an example of a target
2576
+ # action.
2577
+ #
2578
+ # `"\{"CreateSnapshot": \{"NamespaceName":
2579
+ # "sampleNamespace","SnapshotName": "sampleSnapshot",
2580
+ # "retentionPeriod": "1"\}\}"`
2581
+ # @return [Types::TargetAction]
2582
+ #
2583
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ScheduledActionResponse AWS API Documentation
2584
+ #
2585
+ class ScheduledActionResponse < Struct.new(
2586
+ :end_time,
2587
+ :namespace_name,
2588
+ :next_invocations,
2589
+ :role_arn,
2590
+ :schedule,
2591
+ :scheduled_action_description,
2592
+ :scheduled_action_name,
2593
+ :scheduled_action_uuid,
2594
+ :start_time,
2595
+ :state,
2596
+ :target_action)
2597
+ SENSITIVE = []
2598
+ include Aws::Structure
2599
+ end
2600
+
2015
2601
  # The service limit was exceeded.
2016
2602
  #
2017
2603
  # @!attribute [rw] message
@@ -2152,12 +2738,55 @@ module Aws::RedshiftServerless
2152
2738
  include Aws::Structure
2153
2739
  end
2154
2740
 
2741
+ # The object that you configure to copy snapshots from one namespace to
2742
+ # a namespace in another Amazon Web Services Region.
2743
+ #
2744
+ # @!attribute [rw] destination_kms_key_id
2745
+ # The ID of the KMS key to use to encrypt your snapshots in the
2746
+ # destination Amazon Web Services Region.
2747
+ # @return [String]
2748
+ #
2749
+ # @!attribute [rw] destination_region
2750
+ # The destination Amazon Web Services Region to copy snapshots to.
2751
+ # @return [String]
2752
+ #
2753
+ # @!attribute [rw] namespace_name
2754
+ # The name of the namespace to copy snapshots from in the source
2755
+ # Amazon Web Services Region.
2756
+ # @return [String]
2757
+ #
2758
+ # @!attribute [rw] snapshot_copy_configuration_arn
2759
+ # The ARN of the snapshot copy configuration object.
2760
+ # @return [String]
2761
+ #
2762
+ # @!attribute [rw] snapshot_copy_configuration_id
2763
+ # The ID of the snapshot copy configuration object.
2764
+ # @return [String]
2765
+ #
2766
+ # @!attribute [rw] snapshot_retention_period
2767
+ # The retention period of snapshots that are copied to the destination
2768
+ # Amazon Web Services Region.
2769
+ # @return [Integer]
2770
+ #
2771
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/SnapshotCopyConfiguration AWS API Documentation
2772
+ #
2773
+ class SnapshotCopyConfiguration < Struct.new(
2774
+ :destination_kms_key_id,
2775
+ :destination_region,
2776
+ :namespace_name,
2777
+ :snapshot_copy_configuration_arn,
2778
+ :snapshot_copy_configuration_id,
2779
+ :snapshot_retention_period)
2780
+ SENSITIVE = []
2781
+ include Aws::Structure
2782
+ end
2783
+
2155
2784
  # Contains information about a table restore request.
2156
2785
  #
2157
2786
  # @!attribute [rw] message
2158
- # A description of the status of the table restore request. Status
2159
- # values include `SUCCEEDED`, `FAILED`, `CANCELED`, `PENDING`,
2160
- # `IN_PROGRESS`.
2787
+ # A message that explains the returned status. For example, if the
2788
+ # status of the operation is `FAILED`, the message explains why the
2789
+ # operation failed.
2161
2790
  # @return [String]
2162
2791
  #
2163
2792
  # @!attribute [rw] namespace_name
@@ -2173,6 +2802,10 @@ module Aws::RedshiftServerless
2173
2802
  # (MB).
2174
2803
  # @return [Integer]
2175
2804
  #
2805
+ # @!attribute [rw] recovery_point_id
2806
+ # The ID of the recovery point being restored from.
2807
+ # @return [String]
2808
+ #
2176
2809
  # @!attribute [rw] request_time
2177
2810
  # The time that the table restore request was made, in Universal
2178
2811
  # Coordinated Time (UTC).
@@ -2196,8 +2829,8 @@ module Aws::RedshiftServerless
2196
2829
  #
2197
2830
  # @!attribute [rw] status
2198
2831
  # A value that describes the current state of the table restore
2199
- # request. Possible values include `SUCCEEDED`, `FAILED`, `CANCELED`,
2200
- # `PENDING`, `IN_PROGRESS`.
2832
+ # request. Possible values are `SUCCEEDED`, `FAILED`, `CANCELED`,
2833
+ # `PENDING`, and `IN_PROGRESS`.
2201
2834
  # @return [String]
2202
2835
  #
2203
2836
  # @!attribute [rw] table_restore_request_id
@@ -2228,6 +2861,7 @@ module Aws::RedshiftServerless
2228
2861
  :namespace_name,
2229
2862
  :new_table_name,
2230
2863
  :progress_in_mega_bytes,
2864
+ :recovery_point_id,
2231
2865
  :request_time,
2232
2866
  :snapshot_name,
2233
2867
  :source_database_name,
@@ -2283,6 +2917,40 @@ module Aws::RedshiftServerless
2283
2917
  #
2284
2918
  class TagResourceResponse < Aws::EmptyStructure; end
2285
2919
 
2920
+ # A JSON format string of the Amazon Redshift Serverless API operation
2921
+ # with input parameters. The following is an example of a target action.
2922
+ #
2923
+ # `"\{"CreateSnapshot": \{"NamespaceName":
2924
+ # "sampleNamespace","SnapshotName": "sampleSnapshot", "retentionPeriod":
2925
+ # "1"\}\}"`
2926
+ #
2927
+ # @note TargetAction is a union - when making an API calls you must set exactly one of the members.
2928
+ #
2929
+ # @note TargetAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of TargetAction corresponding to the set member.
2930
+ #
2931
+ # @!attribute [rw] create_snapshot
2932
+ # The parameters that you can use to configure a [scheduled action][1]
2933
+ # to create a snapshot. For more information about creating a
2934
+ # scheduled action, see [CreateScheduledAction][1].
2935
+ #
2936
+ #
2937
+ #
2938
+ # [1]: https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html
2939
+ # @return [Types::CreateSnapshotScheduleActionParameters]
2940
+ #
2941
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/TargetAction AWS API Documentation
2942
+ #
2943
+ class TargetAction < Struct.new(
2944
+ :create_snapshot,
2945
+ :unknown)
2946
+ SENSITIVE = []
2947
+ include Aws::Structure
2948
+ include Aws::Structure::Union
2949
+
2950
+ class CreateSnapshot < TargetAction; end
2951
+ class Unknown < TargetAction; end
2952
+ end
2953
+
2286
2954
  # The request was denied due to request throttling.
2287
2955
  #
2288
2956
  # @!attribute [rw] code
@@ -2502,6 +3170,126 @@ module Aws::RedshiftServerless
2502
3170
  include Aws::Structure
2503
3171
  end
2504
3172
 
3173
+ # @!attribute [rw] enabled
3174
+ # Specifies whether to enable the scheduled action.
3175
+ # @return [Boolean]
3176
+ #
3177
+ # @!attribute [rw] end_time
3178
+ # The end time in UTC of the scheduled action to update.
3179
+ # @return [Time]
3180
+ #
3181
+ # @!attribute [rw] role_arn
3182
+ # The ARN of the IAM role to assume to run the scheduled action. This
3183
+ # IAM role must have permission to run the Amazon Redshift Serverless
3184
+ # API operation in the scheduled action. This IAM role must allow the
3185
+ # Amazon Redshift scheduler to schedule creating snapshots (Principal
3186
+ # scheduler.redshift.amazonaws.com) to assume permissions on your
3187
+ # behalf. For more information about the IAM role to use with the
3188
+ # Amazon Redshift scheduler, see [Using Identity-Based Policies for
3189
+ # Amazon Redshift][1] in the Amazon Redshift Cluster Management Guide
3190
+ #
3191
+ #
3192
+ #
3193
+ # [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html
3194
+ # @return [String]
3195
+ #
3196
+ # @!attribute [rw] schedule
3197
+ # The schedule for a one-time (at format) or recurring (cron format)
3198
+ # scheduled action. Schedule invocations must be separated by at least
3199
+ # one hour.
3200
+ #
3201
+ # Format of at expressions is "`at(yyyy-mm-ddThh:mm:ss)`". For
3202
+ # example, "`at(2016-03-04T17:27:00)`".
3203
+ #
3204
+ # Format of cron expressions is "`cron(Minutes Hours Day-of-month
3205
+ # Month Day-of-week Year)`". For example, "`cron(0 10 ? * MON *)`".
3206
+ # For more information, see [Cron Expressions][1] in the *Amazon
3207
+ # CloudWatch Events User Guide*.
3208
+ #
3209
+ #
3210
+ #
3211
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
3212
+ # @return [Types::Schedule]
3213
+ #
3214
+ # @!attribute [rw] scheduled_action_description
3215
+ # The descripion of the scheduled action to update to.
3216
+ # @return [String]
3217
+ #
3218
+ # @!attribute [rw] scheduled_action_name
3219
+ # The name of the scheduled action to update to.
3220
+ # @return [String]
3221
+ #
3222
+ # @!attribute [rw] start_time
3223
+ # The start time in UTC of the scheduled action to update to.
3224
+ # @return [Time]
3225
+ #
3226
+ # @!attribute [rw] target_action
3227
+ # A JSON format string of the Amazon Redshift Serverless API operation
3228
+ # with input parameters. The following is an example of a target
3229
+ # action.
3230
+ #
3231
+ # `"\{"CreateSnapshot": \{"NamespaceName":
3232
+ # "sampleNamespace","SnapshotName": "sampleSnapshot",
3233
+ # "retentionPeriod": "1"\}\}"`
3234
+ # @return [Types::TargetAction]
3235
+ #
3236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateScheduledActionRequest AWS API Documentation
3237
+ #
3238
+ class UpdateScheduledActionRequest < Struct.new(
3239
+ :enabled,
3240
+ :end_time,
3241
+ :role_arn,
3242
+ :schedule,
3243
+ :scheduled_action_description,
3244
+ :scheduled_action_name,
3245
+ :start_time,
3246
+ :target_action)
3247
+ SENSITIVE = []
3248
+ include Aws::Structure
3249
+ end
3250
+
3251
+ # @!attribute [rw] scheduled_action
3252
+ # The ScheduledAction object that was updated.
3253
+ # @return [Types::ScheduledActionResponse]
3254
+ #
3255
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateScheduledActionResponse AWS API Documentation
3256
+ #
3257
+ class UpdateScheduledActionResponse < Struct.new(
3258
+ :scheduled_action)
3259
+ SENSITIVE = []
3260
+ include Aws::Structure
3261
+ end
3262
+
3263
+ # @!attribute [rw] snapshot_copy_configuration_id
3264
+ # The ID of the snapshot copy configuration to update.
3265
+ # @return [String]
3266
+ #
3267
+ # @!attribute [rw] snapshot_retention_period
3268
+ # The new retention period of how long to keep a snapshot in the
3269
+ # destination Amazon Web Services Region.
3270
+ # @return [Integer]
3271
+ #
3272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateSnapshotCopyConfigurationRequest AWS API Documentation
3273
+ #
3274
+ class UpdateSnapshotCopyConfigurationRequest < Struct.new(
3275
+ :snapshot_copy_configuration_id,
3276
+ :snapshot_retention_period)
3277
+ SENSITIVE = []
3278
+ include Aws::Structure
3279
+ end
3280
+
3281
+ # @!attribute [rw] snapshot_copy_configuration
3282
+ # The updated snapshot copy configuration object.
3283
+ # @return [Types::SnapshotCopyConfiguration]
3284
+ #
3285
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateSnapshotCopyConfigurationResponse AWS API Documentation
3286
+ #
3287
+ class UpdateSnapshotCopyConfigurationResponse < Struct.new(
3288
+ :snapshot_copy_configuration)
3289
+ SENSITIVE = []
3290
+ include Aws::Structure
3291
+ end
3292
+
2505
3293
  # @!attribute [rw] retention_period
2506
3294
  # The new retention period of the snapshot.
2507
3295
  # @return [Integer]
@@ -2577,8 +3365,8 @@ module Aws::RedshiftServerless
2577
3365
  # @!attribute [rw] config_parameters
2578
3366
  # An array of parameters to set for advanced control over a database.
2579
3367
  # The options are `auto_mv`, `datestyle`,
2580
- # `enable_case_sensitivity_identifier`,
2581
- # `enable_user_activity_logging`, `query_group`, `search_path`, and
3368
+ # `enable_case_sensitive_identifier`, `enable_user_activity_logging`,
3369
+ # `query_group`, `search_path`, `require_ssl`, `use_fips_ssl`, and
2582
3370
  # query monitoring metrics that let you define performance boundaries.
2583
3371
  # For more information about query monitoring rules and available
2584
3372
  # metrics, see [ Query monitoring metrics for Amazon Redshift
@@ -2772,8 +3560,8 @@ module Aws::RedshiftServerless
2772
3560
  # @!attribute [rw] config_parameters
2773
3561
  # An array of parameters to set for advanced control over a database.
2774
3562
  # The options are `auto_mv`, `datestyle`,
2775
- # `enable_case_sensitivity_identifier`,
2776
- # `enable_user_activity_logging`, `query_group`, , `search_path`, and
3563
+ # `enable_case_sensitive_identifier`, `enable_user_activity_logging`,
3564
+ # `query_group`, `search_path`, `require_ssl`, `use_fips_ssl`, and
2777
3565
  # query monitoring metrics that let you define performance boundaries.
2778
3566
  # For more information about query monitoring rules and available
2779
3567
  # metrics, see [ Query monitoring metrics for Amazon Redshift
@@ -2788,6 +3576,12 @@ module Aws::RedshiftServerless
2788
3576
  # The creation date of the workgroup.
2789
3577
  # @return [Time]
2790
3578
  #
3579
+ # @!attribute [rw] cross_account_vpcs
3580
+ # A list of VPCs. Each entry is the unique identifier of a virtual
3581
+ # private cloud with access to Amazon Redshift Serverless. If all of
3582
+ # the VPCs for the grantee are allowed, it shows an asterisk.
3583
+ # @return [Array<String>]
3584
+ #
2791
3585
  # @!attribute [rw] custom_domain_certificate_arn
2792
3586
  # The custom domain name’s certificate Amazon resource name (ARN).
2793
3587
  # @return [String]
@@ -2879,6 +3673,7 @@ module Aws::RedshiftServerless
2879
3673
  :base_capacity,
2880
3674
  :config_parameters,
2881
3675
  :creation_date,
3676
+ :cross_account_vpcs,
2882
3677
  :custom_domain_certificate_arn,
2883
3678
  :custom_domain_certificate_expiry_time,
2884
3679
  :custom_domain_name,