lib/aws-sdk-cloudhsmv2/client.rb in aws-sdk-cloudhsmv2-1.2.0 vs lib/aws-sdk-cloudhsmv2/client.rb in aws-sdk-cloudhsmv2-1.3.0
- old
+ new
@@ -164,10 +164,41 @@
super
end
# @!group API Operations
+ # @option params [required, String] :destination_region
+ #
+ # @option params [required, String] :backup_id
+ #
+ # @return [Types::CopyBackupToRegionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::CopyBackupToRegionResponse#destination_backup #destination_backup} => Types::DestinationBackup
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.copy_backup_to_region({
+ # destination_region: "Region", # required
+ # backup_id: "BackupId", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.destination_backup.create_timestamp #=> Time
+ # resp.destination_backup.source_region #=> String
+ # resp.destination_backup.source_backup #=> String
+ # resp.destination_backup.source_cluster #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegion AWS API Documentation
+ #
+ # @overload copy_backup_to_region(params = {})
+ # @param [Hash] params ({})
+ def copy_backup_to_region(params = {}, options = {})
+ req = build_request(:copy_backup_to_region, params)
+ req.send_request(options)
+ end
+
# Creates a new AWS CloudHSM cluster.
#
# @option params [required, Array<String>] :subnet_ids
# The identifiers (IDs) of the subnets where you are creating the
# cluster. You must specify at least one subnet. If you specify multiple
@@ -416,10 +447,12 @@
# specified clusters. Specify clusters by their cluster identifier (ID).
#
# Use the `states` filter to return only backups that match the
# specified state.
#
+ # @option params [Boolean] :sort_ascending
+ #
# @return [Types::DescribeBackupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeBackupsResponse#backups #backups} => Array<Types::Backup>
# * {Types::DescribeBackupsResponse#next_token #next_token} => String
#
@@ -429,19 +462,24 @@
# next_token: "NextToken",
# max_results: 1,
# filters: {
# "Field" => ["String"],
# },
+ # sort_ascending: false,
# })
#
# @example Response structure
#
# resp.backups #=> Array
# resp.backups[0].backup_id #=> String
# resp.backups[0].backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED"
# resp.backups[0].cluster_id #=> String
# resp.backups[0].create_timestamp #=> Time
+ # resp.backups[0].copy_timestamp #=> Time
+ # resp.backups[0].source_region #=> String
+ # resp.backups[0].source_backup #=> String
+ # resp.backups[0].source_cluster #=> String
# resp.next_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups AWS API Documentation
#
# @overload describe_backups(params = {})
@@ -711,10 +749,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-cloudhsmv2'
- context[:gem_version] = '1.2.0'
+ context[:gem_version] = '1.3.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated