aws-sdk-datasync 1.16.0 → 1.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-datasync.rb +7 -4
- data/lib/aws-sdk-datasync/client.rb +197 -18
- data/lib/aws-sdk-datasync/client_api.rb +59 -6
- data/lib/aws-sdk-datasync/errors.rb +24 -2
- data/lib/aws-sdk-datasync/resource.rb +1 -0
- data/lib/aws-sdk-datasync/types.rb +158 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7ef6ca6f933929246e4fb6d7bba0488a698165c21ff04036f0a1ed57c9d1be34
|
4
|
+
data.tar.gz: 87c8e56a62db4463ceada76e91f9c2351f154708eb425b8cb038bc4d1a21e238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f7f09977dc6e456f034e9ff056db95ff62e04094b3719a3ebfbb3e4e04fb1e868858328f61b5a46a95d4b1acb03228f4b69267b105cd95563f16418889e3c3
|
7
|
+
data.tar.gz: 19887cd0b97993f0d082897792bb0b728f59badb20c29d32db208f5520a00fe649c3ac469f675f73df1a1e49818af40d28c546723cab6a07c86e400c9379d09d
|
data/lib/aws-sdk-datasync.rb
CHANGED
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-datasync/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# data_sync = Aws::DataSync::Client.new
|
28
|
+
# resp = data_sync.cancel_task_execution(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from AWS DataSync
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from AWS DataSync are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::DataSync::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all AWS DataSync API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-datasync/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::DataSync
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.21.1'
|
46
49
|
|
47
50
|
end
|
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
30
|
|
30
31
|
Aws::Plugins::GlobalConfiguration.add_identifier(:datasync)
|
31
32
|
|
32
33
|
module Aws::DataSync
|
34
|
+
# An API client for DataSync. To construct a client, you need to configure a `:region` and `:credentials`.
|
35
|
+
#
|
36
|
+
# client = Aws::DataSync::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
41
|
+
#
|
42
|
+
# For details on configuring region and credentials see
|
43
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
44
|
+
#
|
45
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
46
|
class Client < Seahorse::Client::Base
|
34
47
|
|
35
48
|
include Aws::ClientStubs
|
@@ -57,6 +70,7 @@ module Aws::DataSync
|
|
57
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
58
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
59
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
60
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
61
75
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
62
76
|
|
@@ -93,7 +107,7 @@ module Aws::DataSync
|
|
93
107
|
# @option options [required, String] :region
|
94
108
|
# The AWS region to connect to. The configured `:region` is
|
95
109
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
97
111
|
#
|
98
112
|
# * `Aws.config[:region]`
|
99
113
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +122,12 @@ module Aws::DataSync
|
|
108
122
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
123
|
# the background every 60 secs (default). Defaults to `false`.
|
110
124
|
#
|
125
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
126
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
127
|
+
# until there is sufficent client side capacity to retry the request.
|
128
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
129
|
+
# not retry instead of sleeping.
|
130
|
+
#
|
111
131
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
132
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
133
|
# this client.
|
@@ -132,6 +152,10 @@ module Aws::DataSync
|
|
132
152
|
# When `true`, an attempt is made to coerce request parameters into
|
133
153
|
# the required types.
|
134
154
|
#
|
155
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
156
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
157
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
158
|
+
#
|
135
159
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
160
|
# Set to true to disable SDK automatically adding host prefix
|
137
161
|
# to default service endpoint when available.
|
@@ -139,7 +163,7 @@ module Aws::DataSync
|
|
139
163
|
# @option options [String] :endpoint
|
140
164
|
# The client endpoint is normally constructed from the `:region`
|
141
165
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
143
167
|
#
|
144
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +178,7 @@ module Aws::DataSync
|
|
154
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
179
|
#
|
156
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
182
|
#
|
159
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
184
|
# The log formatter.
|
@@ -166,15 +190,29 @@ module Aws::DataSync
|
|
166
190
|
# The Logger instance to send log messages to. If this option
|
167
191
|
# is not set, logging will be disabled.
|
168
192
|
#
|
193
|
+
# @option options [Integer] :max_attempts (3)
|
194
|
+
# An integer representing the maximum number attempts that will be made for
|
195
|
+
# a single request, including the initial attempt. For example,
|
196
|
+
# setting this value to 5 will result in a request being retried up to
|
197
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
198
|
+
#
|
169
199
|
# @option options [String] :profile ("default")
|
170
200
|
# Used when loading credentials from the shared credentials file
|
171
201
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
202
|
#
|
203
|
+
# @option options [Proc] :retry_backoff
|
204
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
205
|
+
# This option is only used in the `legacy` retry mode.
|
206
|
+
#
|
173
207
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
208
|
+
# The base delay in seconds used by the default backoff function. This option
|
209
|
+
# is only used in the `legacy` retry mode.
|
175
210
|
#
|
176
211
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
212
|
+
# A delay randomiser function used by the default backoff function.
|
213
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
214
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
215
|
+
# in the `legacy` retry mode.
|
178
216
|
#
|
179
217
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
218
|
#
|
@@ -182,11 +220,30 @@ module Aws::DataSync
|
|
182
220
|
# The maximum number of times to retry failed requests. Only
|
183
221
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
222
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
223
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
224
|
+
# endpoint discovery, and errors from expired credentials.
|
225
|
+
# This option is only used in the `legacy` retry mode.
|
187
226
|
#
|
188
227
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
228
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
229
|
+
# used by the default backoff function. This option is only used in the
|
230
|
+
# `legacy` retry mode.
|
231
|
+
#
|
232
|
+
# @option options [String] :retry_mode ("legacy")
|
233
|
+
# Specifies which retry algorithm to use. Values are:
|
234
|
+
#
|
235
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
236
|
+
# no retry mode is provided.
|
237
|
+
#
|
238
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
239
|
+
# This includes support for retry quotas, which limit the number of
|
240
|
+
# unsuccessful retries a client can make.
|
241
|
+
#
|
242
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
243
|
+
# functionality of `standard` mode along with automatic client side
|
244
|
+
# throttling. This is a provisional mode that may change behavior
|
245
|
+
# in the future.
|
246
|
+
#
|
190
247
|
#
|
191
248
|
# @option options [String] :secret_access_key
|
192
249
|
#
|
@@ -219,16 +276,15 @@ module Aws::DataSync
|
|
219
276
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
277
|
#
|
221
278
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
279
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
280
|
# `Timeout::Error`.
|
224
281
|
#
|
225
282
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
283
|
# number of seconds to wait for response data. This value can
|
227
|
-
# safely be set
|
228
|
-
# per-request on the session yeidled by {#session_for}.
|
284
|
+
# safely be set per-request on the session.
|
229
285
|
#
|
230
286
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
287
|
+
# seconds a connection is allowed to sit idle before it is
|
232
288
|
# considered stale. Stale connections are closed and removed
|
233
289
|
# from the pool before making a request.
|
234
290
|
#
|
@@ -237,7 +293,7 @@ module Aws::DataSync
|
|
237
293
|
# request body. This option has no effect unless the request has
|
238
294
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
295
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
296
|
+
# request on the session.
|
241
297
|
#
|
242
298
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
299
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -457,7 +513,7 @@ module Aws::DataSync
|
|
457
513
|
# @example Request syntax with placeholder values
|
458
514
|
#
|
459
515
|
# resp = client.create_location_efs({
|
460
|
-
# subdirectory: "
|
516
|
+
# subdirectory: "EfsSubdirectory",
|
461
517
|
# efs_filesystem_arn: "EfsFilesystemArn", # required
|
462
518
|
# ec2_config: { # required
|
463
519
|
# subnet_arn: "Ec2SubnetArn", # required
|
@@ -484,6 +540,73 @@ module Aws::DataSync
|
|
484
540
|
req.send_request(options)
|
485
541
|
end
|
486
542
|
|
543
|
+
# Creates an endpoint for an Amazon FSx for Windows file system.
|
544
|
+
#
|
545
|
+
# @option params [String] :subdirectory
|
546
|
+
# A subdirectory in the location’s path. This subdirectory in the Amazon
|
547
|
+
# FSx for Windows file system is used to read data from the Amazon FSx
|
548
|
+
# for Windows source location or write data to the FSx for Windows
|
549
|
+
# destination.
|
550
|
+
#
|
551
|
+
# @option params [required, String] :fsx_filesystem_arn
|
552
|
+
# The Amazon Resource Name (ARN) for the FSx for Windows file system.
|
553
|
+
#
|
554
|
+
# @option params [required, Array<String>] :security_group_arns
|
555
|
+
# The Amazon Resource Names (ARNs) of the security groups that are to
|
556
|
+
# use to configure the FSx for Windows file system.
|
557
|
+
#
|
558
|
+
# @option params [Array<Types::TagListEntry>] :tags
|
559
|
+
# The key-value pair that represents a tag that you want to add to the
|
560
|
+
# resource. The value can be an empty string. This value helps you
|
561
|
+
# manage, filter, and search for your resources. We recommend that you
|
562
|
+
# create a name tag for your location.
|
563
|
+
#
|
564
|
+
# @option params [required, String] :user
|
565
|
+
# The user who has the permissions to access files and folders in the
|
566
|
+
# FSx for Windows file system.
|
567
|
+
#
|
568
|
+
# @option params [String] :domain
|
569
|
+
# The name of the Windows domain that the FSx for Windows server belongs
|
570
|
+
# to.
|
571
|
+
#
|
572
|
+
# @option params [required, String] :password
|
573
|
+
# The password of the user who has the permissions to access files and
|
574
|
+
# folders in the FSx for Windows file system.
|
575
|
+
#
|
576
|
+
# @return [Types::CreateLocationFsxWindowsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
577
|
+
#
|
578
|
+
# * {Types::CreateLocationFsxWindowsResponse#location_arn #location_arn} => String
|
579
|
+
#
|
580
|
+
# @example Request syntax with placeholder values
|
581
|
+
#
|
582
|
+
# resp = client.create_location_fsx_windows({
|
583
|
+
# subdirectory: "FsxWindowsSubdirectory",
|
584
|
+
# fsx_filesystem_arn: "FsxFilesystemArn", # required
|
585
|
+
# security_group_arns: ["Ec2SecurityGroupArn"], # required
|
586
|
+
# tags: [
|
587
|
+
# {
|
588
|
+
# key: "TagKey", # required
|
589
|
+
# value: "TagValue",
|
590
|
+
# },
|
591
|
+
# ],
|
592
|
+
# user: "SmbUser", # required
|
593
|
+
# domain: "SmbDomain",
|
594
|
+
# password: "SmbPassword", # required
|
595
|
+
# })
|
596
|
+
#
|
597
|
+
# @example Response structure
|
598
|
+
#
|
599
|
+
# resp.location_arn #=> String
|
600
|
+
#
|
601
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationFsxWindows AWS API Documentation
|
602
|
+
#
|
603
|
+
# @overload create_location_fsx_windows(params = {})
|
604
|
+
# @param [Hash] params ({})
|
605
|
+
def create_location_fsx_windows(params = {}, options = {})
|
606
|
+
req = build_request(:create_location_fsx_windows, params)
|
607
|
+
req.send_request(options)
|
608
|
+
end
|
609
|
+
|
487
610
|
# Defines a file system on a Network File System (NFS) server that can
|
488
611
|
# be read from or written to
|
489
612
|
#
|
@@ -541,7 +664,7 @@ module Aws::DataSync
|
|
541
664
|
# @example Request syntax with placeholder values
|
542
665
|
#
|
543
666
|
# resp = client.create_location_nfs({
|
544
|
-
# subdirectory: "
|
667
|
+
# subdirectory: "NfsSubdirectory", # required
|
545
668
|
# server_hostname: "ServerHostname", # required
|
546
669
|
# on_prem_config: { # required
|
547
670
|
# agent_arns: ["AgentArn"], # required
|
@@ -622,7 +745,7 @@ module Aws::DataSync
|
|
622
745
|
# @example Request syntax with placeholder values
|
623
746
|
#
|
624
747
|
# resp = client.create_location_s3({
|
625
|
-
# subdirectory: "
|
748
|
+
# subdirectory: "S3Subdirectory",
|
626
749
|
# s3_bucket_arn: "S3BucketArn", # required
|
627
750
|
# s3_storage_class: "STANDARD", # accepts STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
|
628
751
|
# s3_config: { # required
|
@@ -714,7 +837,7 @@ module Aws::DataSync
|
|
714
837
|
# @example Request syntax with placeholder values
|
715
838
|
#
|
716
839
|
# resp = client.create_location_smb({
|
717
|
-
# subdirectory: "
|
840
|
+
# subdirectory: "SmbSubdirectory", # required
|
718
841
|
# server_hostname: "ServerHostname", # required
|
719
842
|
# user: "SmbUser", # required
|
720
843
|
# domain: "SmbDomain",
|
@@ -832,6 +955,7 @@ module Aws::DataSync
|
|
832
955
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
833
956
|
# bytes_per_second: 1,
|
834
957
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
958
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
835
959
|
# },
|
836
960
|
# excludes: [
|
837
961
|
# {
|
@@ -1020,6 +1144,47 @@ module Aws::DataSync
|
|
1020
1144
|
req.send_request(options)
|
1021
1145
|
end
|
1022
1146
|
|
1147
|
+
# Returns metadata, such as the path information about an Amazon FSx for
|
1148
|
+
# Windows location.
|
1149
|
+
#
|
1150
|
+
# @option params [required, String] :location_arn
|
1151
|
+
# The Amazon Resource Name (ARN) of the FSx for Windows location to
|
1152
|
+
# describe.
|
1153
|
+
#
|
1154
|
+
# @return [Types::DescribeLocationFsxWindowsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1155
|
+
#
|
1156
|
+
# * {Types::DescribeLocationFsxWindowsResponse#location_arn #location_arn} => String
|
1157
|
+
# * {Types::DescribeLocationFsxWindowsResponse#location_uri #location_uri} => String
|
1158
|
+
# * {Types::DescribeLocationFsxWindowsResponse#security_group_arns #security_group_arns} => Array<String>
|
1159
|
+
# * {Types::DescribeLocationFsxWindowsResponse#creation_time #creation_time} => Time
|
1160
|
+
# * {Types::DescribeLocationFsxWindowsResponse#user #user} => String
|
1161
|
+
# * {Types::DescribeLocationFsxWindowsResponse#domain #domain} => String
|
1162
|
+
#
|
1163
|
+
# @example Request syntax with placeholder values
|
1164
|
+
#
|
1165
|
+
# resp = client.describe_location_fsx_windows({
|
1166
|
+
# location_arn: "LocationArn", # required
|
1167
|
+
# })
|
1168
|
+
#
|
1169
|
+
# @example Response structure
|
1170
|
+
#
|
1171
|
+
# resp.location_arn #=> String
|
1172
|
+
# resp.location_uri #=> String
|
1173
|
+
# resp.security_group_arns #=> Array
|
1174
|
+
# resp.security_group_arns[0] #=> String
|
1175
|
+
# resp.creation_time #=> Time
|
1176
|
+
# resp.user #=> String
|
1177
|
+
# resp.domain #=> String
|
1178
|
+
#
|
1179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationFsxWindows AWS API Documentation
|
1180
|
+
#
|
1181
|
+
# @overload describe_location_fsx_windows(params = {})
|
1182
|
+
# @param [Hash] params ({})
|
1183
|
+
def describe_location_fsx_windows(params = {}, options = {})
|
1184
|
+
req = build_request(:describe_location_fsx_windows, params)
|
1185
|
+
req.send_request(options)
|
1186
|
+
end
|
1187
|
+
|
1023
1188
|
# Returns metadata, such as the path information, about a NFS location.
|
1024
1189
|
#
|
1025
1190
|
# @option params [required, String] :location_arn
|
@@ -1190,6 +1355,7 @@ module Aws::DataSync
|
|
1190
1355
|
# resp.options.posix_permissions #=> String, one of "NONE", "PRESERVE"
|
1191
1356
|
# resp.options.bytes_per_second #=> Integer
|
1192
1357
|
# resp.options.task_queueing #=> String, one of "ENABLED", "DISABLED"
|
1358
|
+
# resp.options.log_level #=> String, one of "OFF", "BASIC", "TRANSFER"
|
1193
1359
|
# resp.excludes #=> Array
|
1194
1360
|
# resp.excludes[0].filter_type #=> String, one of "SIMPLE_PATTERN"
|
1195
1361
|
# resp.excludes[0].value #=> String
|
@@ -1248,6 +1414,7 @@ module Aws::DataSync
|
|
1248
1414
|
# resp.options.posix_permissions #=> String, one of "NONE", "PRESERVE"
|
1249
1415
|
# resp.options.bytes_per_second #=> Integer
|
1250
1416
|
# resp.options.task_queueing #=> String, one of "ENABLED", "DISABLED"
|
1417
|
+
# resp.options.log_level #=> String, one of "OFF", "BASIC", "TRANSFER"
|
1251
1418
|
# resp.excludes #=> Array
|
1252
1419
|
# resp.excludes[0].filter_type #=> String, one of "SIMPLE_PATTERN"
|
1253
1420
|
# resp.excludes[0].value #=> String
|
@@ -1304,6 +1471,8 @@ module Aws::DataSync
|
|
1304
1471
|
# * {Types::ListAgentsResponse#agents #agents} => Array<Types::AgentListEntry>
|
1305
1472
|
# * {Types::ListAgentsResponse#next_token #next_token} => String
|
1306
1473
|
#
|
1474
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1475
|
+
#
|
1307
1476
|
# @example Request syntax with placeholder values
|
1308
1477
|
#
|
1309
1478
|
# resp = client.list_agents({
|
@@ -1347,6 +1516,8 @@ module Aws::DataSync
|
|
1347
1516
|
# * {Types::ListLocationsResponse#locations #locations} => Array<Types::LocationListEntry>
|
1348
1517
|
# * {Types::ListLocationsResponse#next_token #next_token} => String
|
1349
1518
|
#
|
1519
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1520
|
+
#
|
1350
1521
|
# @example Request syntax with placeholder values
|
1351
1522
|
#
|
1352
1523
|
# resp = client.list_locations({
|
@@ -1387,6 +1558,8 @@ module Aws::DataSync
|
|
1387
1558
|
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::TagListEntry>
|
1388
1559
|
# * {Types::ListTagsForResourceResponse#next_token #next_token} => String
|
1389
1560
|
#
|
1561
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1562
|
+
#
|
1390
1563
|
# @example Request syntax with placeholder values
|
1391
1564
|
#
|
1392
1565
|
# resp = client.list_tags_for_resource({
|
@@ -1429,6 +1602,8 @@ module Aws::DataSync
|
|
1429
1602
|
# * {Types::ListTaskExecutionsResponse#task_executions #task_executions} => Array<Types::TaskExecutionListEntry>
|
1430
1603
|
# * {Types::ListTaskExecutionsResponse#next_token #next_token} => String
|
1431
1604
|
#
|
1605
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1606
|
+
#
|
1432
1607
|
# @example Request syntax with placeholder values
|
1433
1608
|
#
|
1434
1609
|
# resp = client.list_task_executions({
|
@@ -1467,6 +1642,8 @@ module Aws::DataSync
|
|
1467
1642
|
# * {Types::ListTasksResponse#tasks #tasks} => Array<Types::TaskListEntry>
|
1468
1643
|
# * {Types::ListTasksResponse#next_token #next_token} => String
|
1469
1644
|
#
|
1645
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1646
|
+
#
|
1470
1647
|
# @example Request syntax with placeholder values
|
1471
1648
|
#
|
1472
1649
|
# resp = client.list_tasks({
|
@@ -1542,6 +1719,7 @@ module Aws::DataSync
|
|
1542
1719
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
1543
1720
|
# bytes_per_second: 1,
|
1544
1721
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
1722
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
1545
1723
|
# },
|
1546
1724
|
# includes: [
|
1547
1725
|
# {
|
@@ -1703,6 +1881,7 @@ module Aws::DataSync
|
|
1703
1881
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
1704
1882
|
# bytes_per_second: 1,
|
1705
1883
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
1884
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
1706
1885
|
# },
|
1707
1886
|
# excludes: [
|
1708
1887
|
# {
|
@@ -1739,7 +1918,7 @@ module Aws::DataSync
|
|
1739
1918
|
params: params,
|
1740
1919
|
config: config)
|
1741
1920
|
context[:gem_name] = 'aws-sdk-datasync'
|
1742
|
-
context[:gem_version] = '1.
|
1921
|
+
context[:gem_version] = '1.21.1'
|
1743
1922
|
Seahorse::Client::Request.new(handlers, context)
|
1744
1923
|
end
|
1745
1924
|
|
@@ -25,6 +25,8 @@ module Aws::DataSync
|
|
25
25
|
CreateAgentResponse = Shapes::StructureShape.new(name: 'CreateAgentResponse')
|
26
26
|
CreateLocationEfsRequest = Shapes::StructureShape.new(name: 'CreateLocationEfsRequest')
|
27
27
|
CreateLocationEfsResponse = Shapes::StructureShape.new(name: 'CreateLocationEfsResponse')
|
28
|
+
CreateLocationFsxWindowsRequest = Shapes::StructureShape.new(name: 'CreateLocationFsxWindowsRequest')
|
29
|
+
CreateLocationFsxWindowsResponse = Shapes::StructureShape.new(name: 'CreateLocationFsxWindowsResponse')
|
28
30
|
CreateLocationNfsRequest = Shapes::StructureShape.new(name: 'CreateLocationNfsRequest')
|
29
31
|
CreateLocationNfsResponse = Shapes::StructureShape.new(name: 'CreateLocationNfsResponse')
|
30
32
|
CreateLocationS3Request = Shapes::StructureShape.new(name: 'CreateLocationS3Request')
|
@@ -43,6 +45,8 @@ module Aws::DataSync
|
|
43
45
|
DescribeAgentResponse = Shapes::StructureShape.new(name: 'DescribeAgentResponse')
|
44
46
|
DescribeLocationEfsRequest = Shapes::StructureShape.new(name: 'DescribeLocationEfsRequest')
|
45
47
|
DescribeLocationEfsResponse = Shapes::StructureShape.new(name: 'DescribeLocationEfsResponse')
|
48
|
+
DescribeLocationFsxWindowsRequest = Shapes::StructureShape.new(name: 'DescribeLocationFsxWindowsRequest')
|
49
|
+
DescribeLocationFsxWindowsResponse = Shapes::StructureShape.new(name: 'DescribeLocationFsxWindowsResponse')
|
46
50
|
DescribeLocationNfsRequest = Shapes::StructureShape.new(name: 'DescribeLocationNfsRequest')
|
47
51
|
DescribeLocationNfsResponse = Shapes::StructureShape.new(name: 'DescribeLocationNfsResponse')
|
48
52
|
DescribeLocationS3Request = Shapes::StructureShape.new(name: 'DescribeLocationS3Request')
|
@@ -60,12 +64,15 @@ module Aws::DataSync
|
|
60
64
|
Ec2SecurityGroupArnList = Shapes::ListShape.new(name: 'Ec2SecurityGroupArnList')
|
61
65
|
Ec2SubnetArn = Shapes::StringShape.new(name: 'Ec2SubnetArn')
|
62
66
|
EfsFilesystemArn = Shapes::StringShape.new(name: 'EfsFilesystemArn')
|
67
|
+
EfsSubdirectory = Shapes::StringShape.new(name: 'EfsSubdirectory')
|
63
68
|
Endpoint = Shapes::StringShape.new(name: 'Endpoint')
|
64
69
|
EndpointType = Shapes::StringShape.new(name: 'EndpointType')
|
65
70
|
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
66
71
|
FilterRule = Shapes::StructureShape.new(name: 'FilterRule')
|
67
72
|
FilterType = Shapes::StringShape.new(name: 'FilterType')
|
68
73
|
FilterValue = Shapes::StringShape.new(name: 'FilterValue')
|
74
|
+
FsxFilesystemArn = Shapes::StringShape.new(name: 'FsxFilesystemArn')
|
75
|
+
FsxWindowsSubdirectory = Shapes::StringShape.new(name: 'FsxWindowsSubdirectory')
|
69
76
|
Gid = Shapes::StringShape.new(name: 'Gid')
|
70
77
|
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
71
78
|
InternalException = Shapes::StructureShape.new(name: 'InternalException')
|
@@ -85,13 +92,14 @@ module Aws::DataSync
|
|
85
92
|
LocationListEntry = Shapes::StructureShape.new(name: 'LocationListEntry')
|
86
93
|
LocationUri = Shapes::StringShape.new(name: 'LocationUri')
|
87
94
|
LogGroupArn = Shapes::StringShape.new(name: 'LogGroupArn')
|
95
|
+
LogLevel = Shapes::StringShape.new(name: 'LogLevel')
|
88
96
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
89
97
|
Mtime = Shapes::StringShape.new(name: 'Mtime')
|
90
98
|
NetworkInterfaceArn = Shapes::StringShape.new(name: 'NetworkInterfaceArn')
|
91
99
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
92
100
|
NfsMountOptions = Shapes::StructureShape.new(name: 'NfsMountOptions')
|
101
|
+
NfsSubdirectory = Shapes::StringShape.new(name: 'NfsSubdirectory')
|
93
102
|
NfsVersion = Shapes::StringShape.new(name: 'NfsVersion')
|
94
|
-
NonEmptySubdirectory = Shapes::StringShape.new(name: 'NonEmptySubdirectory')
|
95
103
|
OnPremConfig = Shapes::StructureShape.new(name: 'OnPremConfig')
|
96
104
|
Options = Shapes::StructureShape.new(name: 'Options')
|
97
105
|
OverwriteMode = Shapes::StringShape.new(name: 'OverwriteMode')
|
@@ -105,17 +113,18 @@ module Aws::DataSync
|
|
105
113
|
S3BucketArn = Shapes::StringShape.new(name: 'S3BucketArn')
|
106
114
|
S3Config = Shapes::StructureShape.new(name: 'S3Config')
|
107
115
|
S3StorageClass = Shapes::StringShape.new(name: 'S3StorageClass')
|
116
|
+
S3Subdirectory = Shapes::StringShape.new(name: 'S3Subdirectory')
|
108
117
|
ScheduleExpressionCron = Shapes::StringShape.new(name: 'ScheduleExpressionCron')
|
109
118
|
ServerHostname = Shapes::StringShape.new(name: 'ServerHostname')
|
110
119
|
SmbDomain = Shapes::StringShape.new(name: 'SmbDomain')
|
111
120
|
SmbMountOptions = Shapes::StructureShape.new(name: 'SmbMountOptions')
|
112
121
|
SmbPassword = Shapes::StringShape.new(name: 'SmbPassword')
|
122
|
+
SmbSubdirectory = Shapes::StringShape.new(name: 'SmbSubdirectory')
|
113
123
|
SmbUser = Shapes::StringShape.new(name: 'SmbUser')
|
114
124
|
SmbVersion = Shapes::StringShape.new(name: 'SmbVersion')
|
115
125
|
SourceNetworkInterfaceArns = Shapes::ListShape.new(name: 'SourceNetworkInterfaceArns')
|
116
126
|
StartTaskExecutionRequest = Shapes::StructureShape.new(name: 'StartTaskExecutionRequest')
|
117
127
|
StartTaskExecutionResponse = Shapes::StructureShape.new(name: 'StartTaskExecutionResponse')
|
118
|
-
Subdirectory = Shapes::StringShape.new(name: 'Subdirectory')
|
119
128
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
120
129
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
121
130
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
@@ -173,7 +182,7 @@ module Aws::DataSync
|
|
173
182
|
CreateAgentResponse.add_member(:agent_arn, Shapes::ShapeRef.new(shape: AgentArn, location_name: "AgentArn"))
|
174
183
|
CreateAgentResponse.struct_class = Types::CreateAgentResponse
|
175
184
|
|
176
|
-
CreateLocationEfsRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape:
|
185
|
+
CreateLocationEfsRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape: EfsSubdirectory, location_name: "Subdirectory"))
|
177
186
|
CreateLocationEfsRequest.add_member(:efs_filesystem_arn, Shapes::ShapeRef.new(shape: EfsFilesystemArn, required: true, location_name: "EfsFilesystemArn"))
|
178
187
|
CreateLocationEfsRequest.add_member(:ec2_config, Shapes::ShapeRef.new(shape: Ec2Config, required: true, location_name: "Ec2Config"))
|
179
188
|
CreateLocationEfsRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
@@ -182,7 +191,19 @@ module Aws::DataSync
|
|
182
191
|
CreateLocationEfsResponse.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, location_name: "LocationArn"))
|
183
192
|
CreateLocationEfsResponse.struct_class = Types::CreateLocationEfsResponse
|
184
193
|
|
185
|
-
|
194
|
+
CreateLocationFsxWindowsRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape: FsxWindowsSubdirectory, location_name: "Subdirectory"))
|
195
|
+
CreateLocationFsxWindowsRequest.add_member(:fsx_filesystem_arn, Shapes::ShapeRef.new(shape: FsxFilesystemArn, required: true, location_name: "FsxFilesystemArn"))
|
196
|
+
CreateLocationFsxWindowsRequest.add_member(:security_group_arns, Shapes::ShapeRef.new(shape: Ec2SecurityGroupArnList, required: true, location_name: "SecurityGroupArns"))
|
197
|
+
CreateLocationFsxWindowsRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
198
|
+
CreateLocationFsxWindowsRequest.add_member(:user, Shapes::ShapeRef.new(shape: SmbUser, required: true, location_name: "User"))
|
199
|
+
CreateLocationFsxWindowsRequest.add_member(:domain, Shapes::ShapeRef.new(shape: SmbDomain, location_name: "Domain"))
|
200
|
+
CreateLocationFsxWindowsRequest.add_member(:password, Shapes::ShapeRef.new(shape: SmbPassword, required: true, location_name: "Password"))
|
201
|
+
CreateLocationFsxWindowsRequest.struct_class = Types::CreateLocationFsxWindowsRequest
|
202
|
+
|
203
|
+
CreateLocationFsxWindowsResponse.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, location_name: "LocationArn"))
|
204
|
+
CreateLocationFsxWindowsResponse.struct_class = Types::CreateLocationFsxWindowsResponse
|
205
|
+
|
206
|
+
CreateLocationNfsRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape: NfsSubdirectory, required: true, location_name: "Subdirectory"))
|
186
207
|
CreateLocationNfsRequest.add_member(:server_hostname, Shapes::ShapeRef.new(shape: ServerHostname, required: true, location_name: "ServerHostname"))
|
187
208
|
CreateLocationNfsRequest.add_member(:on_prem_config, Shapes::ShapeRef.new(shape: OnPremConfig, required: true, location_name: "OnPremConfig"))
|
188
209
|
CreateLocationNfsRequest.add_member(:mount_options, Shapes::ShapeRef.new(shape: NfsMountOptions, location_name: "MountOptions"))
|
@@ -192,7 +213,7 @@ module Aws::DataSync
|
|
192
213
|
CreateLocationNfsResponse.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, location_name: "LocationArn"))
|
193
214
|
CreateLocationNfsResponse.struct_class = Types::CreateLocationNfsResponse
|
194
215
|
|
195
|
-
CreateLocationS3Request.add_member(:subdirectory, Shapes::ShapeRef.new(shape:
|
216
|
+
CreateLocationS3Request.add_member(:subdirectory, Shapes::ShapeRef.new(shape: S3Subdirectory, location_name: "Subdirectory"))
|
196
217
|
CreateLocationS3Request.add_member(:s3_bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "S3BucketArn"))
|
197
218
|
CreateLocationS3Request.add_member(:s3_storage_class, Shapes::ShapeRef.new(shape: S3StorageClass, location_name: "S3StorageClass"))
|
198
219
|
CreateLocationS3Request.add_member(:s3_config, Shapes::ShapeRef.new(shape: S3Config, required: true, location_name: "S3Config"))
|
@@ -202,7 +223,7 @@ module Aws::DataSync
|
|
202
223
|
CreateLocationS3Response.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, location_name: "LocationArn"))
|
203
224
|
CreateLocationS3Response.struct_class = Types::CreateLocationS3Response
|
204
225
|
|
205
|
-
CreateLocationSmbRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape:
|
226
|
+
CreateLocationSmbRequest.add_member(:subdirectory, Shapes::ShapeRef.new(shape: SmbSubdirectory, required: true, location_name: "Subdirectory"))
|
206
227
|
CreateLocationSmbRequest.add_member(:server_hostname, Shapes::ShapeRef.new(shape: ServerHostname, required: true, location_name: "ServerHostname"))
|
207
228
|
CreateLocationSmbRequest.add_member(:user, Shapes::ShapeRef.new(shape: SmbUser, required: true, location_name: "User"))
|
208
229
|
CreateLocationSmbRequest.add_member(:domain, Shapes::ShapeRef.new(shape: SmbDomain, location_name: "Domain"))
|
@@ -264,6 +285,17 @@ module Aws::DataSync
|
|
264
285
|
DescribeLocationEfsResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Time, location_name: "CreationTime"))
|
265
286
|
DescribeLocationEfsResponse.struct_class = Types::DescribeLocationEfsResponse
|
266
287
|
|
288
|
+
DescribeLocationFsxWindowsRequest.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, required: true, location_name: "LocationArn"))
|
289
|
+
DescribeLocationFsxWindowsRequest.struct_class = Types::DescribeLocationFsxWindowsRequest
|
290
|
+
|
291
|
+
DescribeLocationFsxWindowsResponse.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, location_name: "LocationArn"))
|
292
|
+
DescribeLocationFsxWindowsResponse.add_member(:location_uri, Shapes::ShapeRef.new(shape: LocationUri, location_name: "LocationUri"))
|
293
|
+
DescribeLocationFsxWindowsResponse.add_member(:security_group_arns, Shapes::ShapeRef.new(shape: Ec2SecurityGroupArnList, location_name: "SecurityGroupArns"))
|
294
|
+
DescribeLocationFsxWindowsResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Time, location_name: "CreationTime"))
|
295
|
+
DescribeLocationFsxWindowsResponse.add_member(:user, Shapes::ShapeRef.new(shape: SmbUser, location_name: "User"))
|
296
|
+
DescribeLocationFsxWindowsResponse.add_member(:domain, Shapes::ShapeRef.new(shape: SmbDomain, location_name: "Domain"))
|
297
|
+
DescribeLocationFsxWindowsResponse.struct_class = Types::DescribeLocationFsxWindowsResponse
|
298
|
+
|
267
299
|
DescribeLocationNfsRequest.add_member(:location_arn, Shapes::ShapeRef.new(shape: LocationArn, required: true, location_name: "LocationArn"))
|
268
300
|
DescribeLocationNfsRequest.struct_class = Types::DescribeLocationNfsRequest
|
269
301
|
|
@@ -420,6 +452,7 @@ module Aws::DataSync
|
|
420
452
|
Options.add_member(:posix_permissions, Shapes::ShapeRef.new(shape: PosixPermissions, location_name: "PosixPermissions"))
|
421
453
|
Options.add_member(:bytes_per_second, Shapes::ShapeRef.new(shape: BytesPerSecond, location_name: "BytesPerSecond"))
|
422
454
|
Options.add_member(:task_queueing, Shapes::ShapeRef.new(shape: TaskQueueing, location_name: "TaskQueueing"))
|
455
|
+
Options.add_member(:log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "LogLevel"))
|
423
456
|
Options.struct_class = Types::Options
|
424
457
|
|
425
458
|
PLSecurityGroupArnList.member = Shapes::ShapeRef.new(shape: Ec2SecurityGroupArn)
|
@@ -561,6 +594,16 @@ module Aws::DataSync
|
|
561
594
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
562
595
|
end)
|
563
596
|
|
597
|
+
api.add_operation(:create_location_fsx_windows, Seahorse::Model::Operation.new.tap do |o|
|
598
|
+
o.name = "CreateLocationFsxWindows"
|
599
|
+
o.http_method = "POST"
|
600
|
+
o.http_request_uri = "/"
|
601
|
+
o.input = Shapes::ShapeRef.new(shape: CreateLocationFsxWindowsRequest)
|
602
|
+
o.output = Shapes::ShapeRef.new(shape: CreateLocationFsxWindowsResponse)
|
603
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
604
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
605
|
+
end)
|
606
|
+
|
564
607
|
api.add_operation(:create_location_nfs, Seahorse::Model::Operation.new.tap do |o|
|
565
608
|
o.name = "CreateLocationNfs"
|
566
609
|
o.http_method = "POST"
|
@@ -651,6 +694,16 @@ module Aws::DataSync
|
|
651
694
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
652
695
|
end)
|
653
696
|
|
697
|
+
api.add_operation(:describe_location_fsx_windows, Seahorse::Model::Operation.new.tap do |o|
|
698
|
+
o.name = "DescribeLocationFsxWindows"
|
699
|
+
o.http_method = "POST"
|
700
|
+
o.http_request_uri = "/"
|
701
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeLocationFsxWindowsRequest)
|
702
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeLocationFsxWindowsResponse)
|
703
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
704
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
705
|
+
end)
|
706
|
+
|
654
707
|
api.add_operation(:describe_location_nfs, Seahorse::Model::Operation.new.tap do |o|
|
655
708
|
o.name = "DescribeLocationNfs"
|
656
709
|
o.http_method = "POST"
|
@@ -6,6 +6,30 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::DataSync
|
9
|
+
|
10
|
+
# When DataSync returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::DataSync::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all DataSync errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::DataSync::Errors::ServiceError
|
18
|
+
# # rescues all DataSync API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {InternalException}
|
29
|
+
# * {InvalidRequestException}
|
30
|
+
#
|
31
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
32
|
+
# if they are not defined above.
|
9
33
|
module Errors
|
10
34
|
|
11
35
|
extend Aws::Errors::DynamicErrors
|
@@ -28,7 +52,6 @@ module Aws::DataSync
|
|
28
52
|
def error_code
|
29
53
|
@data[:error_code]
|
30
54
|
end
|
31
|
-
|
32
55
|
end
|
33
56
|
|
34
57
|
class InvalidRequestException < ServiceError
|
@@ -49,7 +72,6 @@ module Aws::DataSync
|
|
49
72
|
def error_code
|
50
73
|
@data[:error_code]
|
51
74
|
end
|
52
|
-
|
53
75
|
end
|
54
76
|
|
55
77
|
end
|
@@ -173,7 +173,7 @@ module Aws::DataSync
|
|
173
173
|
# data as a hash:
|
174
174
|
#
|
175
175
|
# {
|
176
|
-
# subdirectory: "
|
176
|
+
# subdirectory: "EfsSubdirectory",
|
177
177
|
# efs_filesystem_arn: "EfsFilesystemArn", # required
|
178
178
|
# ec2_config: { # required
|
179
179
|
# subnet_arn: "Ec2SubnetArn", # required
|
@@ -259,13 +259,94 @@ module Aws::DataSync
|
|
259
259
|
include Aws::Structure
|
260
260
|
end
|
261
261
|
|
262
|
+
# @note When making an API call, you may pass CreateLocationFsxWindowsRequest
|
263
|
+
# data as a hash:
|
264
|
+
#
|
265
|
+
# {
|
266
|
+
# subdirectory: "FsxWindowsSubdirectory",
|
267
|
+
# fsx_filesystem_arn: "FsxFilesystemArn", # required
|
268
|
+
# security_group_arns: ["Ec2SecurityGroupArn"], # required
|
269
|
+
# tags: [
|
270
|
+
# {
|
271
|
+
# key: "TagKey", # required
|
272
|
+
# value: "TagValue",
|
273
|
+
# },
|
274
|
+
# ],
|
275
|
+
# user: "SmbUser", # required
|
276
|
+
# domain: "SmbDomain",
|
277
|
+
# password: "SmbPassword", # required
|
278
|
+
# }
|
279
|
+
#
|
280
|
+
# @!attribute [rw] subdirectory
|
281
|
+
# A subdirectory in the location’s path. This subdirectory in the
|
282
|
+
# Amazon FSx for Windows file system is used to read data from the
|
283
|
+
# Amazon FSx for Windows source location or write data to the FSx for
|
284
|
+
# Windows destination.
|
285
|
+
# @return [String]
|
286
|
+
#
|
287
|
+
# @!attribute [rw] fsx_filesystem_arn
|
288
|
+
# The Amazon Resource Name (ARN) for the FSx for Windows file system.
|
289
|
+
# @return [String]
|
290
|
+
#
|
291
|
+
# @!attribute [rw] security_group_arns
|
292
|
+
# The Amazon Resource Names (ARNs) of the security groups that are to
|
293
|
+
# use to configure the FSx for Windows file system.
|
294
|
+
# @return [Array<String>]
|
295
|
+
#
|
296
|
+
# @!attribute [rw] tags
|
297
|
+
# The key-value pair that represents a tag that you want to add to the
|
298
|
+
# resource. The value can be an empty string. This value helps you
|
299
|
+
# manage, filter, and search for your resources. We recommend that you
|
300
|
+
# create a name tag for your location.
|
301
|
+
# @return [Array<Types::TagListEntry>]
|
302
|
+
#
|
303
|
+
# @!attribute [rw] user
|
304
|
+
# The user who has the permissions to access files and folders in the
|
305
|
+
# FSx for Windows file system.
|
306
|
+
# @return [String]
|
307
|
+
#
|
308
|
+
# @!attribute [rw] domain
|
309
|
+
# The name of the Windows domain that the FSx for Windows server
|
310
|
+
# belongs to.
|
311
|
+
# @return [String]
|
312
|
+
#
|
313
|
+
# @!attribute [rw] password
|
314
|
+
# The password of the user who has the permissions to access files and
|
315
|
+
# folders in the FSx for Windows file system.
|
316
|
+
# @return [String]
|
317
|
+
#
|
318
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationFsxWindowsRequest AWS API Documentation
|
319
|
+
#
|
320
|
+
class CreateLocationFsxWindowsRequest < Struct.new(
|
321
|
+
:subdirectory,
|
322
|
+
:fsx_filesystem_arn,
|
323
|
+
:security_group_arns,
|
324
|
+
:tags,
|
325
|
+
:user,
|
326
|
+
:domain,
|
327
|
+
:password)
|
328
|
+
include Aws::Structure
|
329
|
+
end
|
330
|
+
|
331
|
+
# @!attribute [rw] location_arn
|
332
|
+
# The Amazon Resource Name (ARN) of the FSx for Windows file system
|
333
|
+
# location that is created.
|
334
|
+
# @return [String]
|
335
|
+
#
|
336
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationFsxWindowsResponse AWS API Documentation
|
337
|
+
#
|
338
|
+
class CreateLocationFsxWindowsResponse < Struct.new(
|
339
|
+
:location_arn)
|
340
|
+
include Aws::Structure
|
341
|
+
end
|
342
|
+
|
262
343
|
# CreateLocationNfsRequest
|
263
344
|
#
|
264
345
|
# @note When making an API call, you may pass CreateLocationNfsRequest
|
265
346
|
# data as a hash:
|
266
347
|
#
|
267
348
|
# {
|
268
|
-
# subdirectory: "
|
349
|
+
# subdirectory: "NfsSubdirectory", # required
|
269
350
|
# server_hostname: "ServerHostname", # required
|
270
351
|
# on_prem_config: { # required
|
271
352
|
# agent_arns: ["AgentArn"], # required
|
@@ -365,7 +446,7 @@ module Aws::DataSync
|
|
365
446
|
# data as a hash:
|
366
447
|
#
|
367
448
|
# {
|
368
|
-
# subdirectory: "
|
449
|
+
# subdirectory: "S3Subdirectory",
|
369
450
|
# s3_bucket_arn: "S3BucketArn", # required
|
370
451
|
# s3_storage_class: "STANDARD", # accepts STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
|
371
452
|
# s3_config: { # required
|
@@ -447,7 +528,7 @@ module Aws::DataSync
|
|
447
528
|
# data as a hash:
|
448
529
|
#
|
449
530
|
# {
|
450
|
-
# subdirectory: "
|
531
|
+
# subdirectory: "SmbSubdirectory", # required
|
451
532
|
# server_hostname: "ServerHostname", # required
|
452
533
|
# user: "SmbUser", # required
|
453
534
|
# domain: "SmbDomain",
|
@@ -578,6 +659,7 @@ module Aws::DataSync
|
|
578
659
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
579
660
|
# bytes_per_second: 1,
|
580
661
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
662
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
581
663
|
# },
|
582
664
|
# excludes: [
|
583
665
|
# {
|
@@ -877,6 +959,65 @@ module Aws::DataSync
|
|
877
959
|
include Aws::Structure
|
878
960
|
end
|
879
961
|
|
962
|
+
# @note When making an API call, you may pass DescribeLocationFsxWindowsRequest
|
963
|
+
# data as a hash:
|
964
|
+
#
|
965
|
+
# {
|
966
|
+
# location_arn: "LocationArn", # required
|
967
|
+
# }
|
968
|
+
#
|
969
|
+
# @!attribute [rw] location_arn
|
970
|
+
# The Amazon Resource Name (ARN) of the FSx for Windows location to
|
971
|
+
# describe.
|
972
|
+
# @return [String]
|
973
|
+
#
|
974
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationFsxWindowsRequest AWS API Documentation
|
975
|
+
#
|
976
|
+
class DescribeLocationFsxWindowsRequest < Struct.new(
|
977
|
+
:location_arn)
|
978
|
+
include Aws::Structure
|
979
|
+
end
|
980
|
+
|
981
|
+
# @!attribute [rw] location_arn
|
982
|
+
# The Amazon resource Name (ARN) of the FSx for Windows location that
|
983
|
+
# was described.
|
984
|
+
# @return [String]
|
985
|
+
#
|
986
|
+
# @!attribute [rw] location_uri
|
987
|
+
# The URL of the FSx for Windows location that was described.
|
988
|
+
# @return [String]
|
989
|
+
#
|
990
|
+
# @!attribute [rw] security_group_arns
|
991
|
+
# The Amazon Resource Names (ARNs) of the security groups that are
|
992
|
+
# configured for the for the FSx for Windows file system.
|
993
|
+
# @return [Array<String>]
|
994
|
+
#
|
995
|
+
# @!attribute [rw] creation_time
|
996
|
+
# The time that the FSx for Windows location was created.
|
997
|
+
# @return [Time]
|
998
|
+
#
|
999
|
+
# @!attribute [rw] user
|
1000
|
+
# The user who has the permissions to access files and folders in the
|
1001
|
+
# FSx for Windows file system.
|
1002
|
+
# @return [String]
|
1003
|
+
#
|
1004
|
+
# @!attribute [rw] domain
|
1005
|
+
# The name of the Windows domain that the FSx for Windows server
|
1006
|
+
# belongs to.
|
1007
|
+
# @return [String]
|
1008
|
+
#
|
1009
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationFsxWindowsResponse AWS API Documentation
|
1010
|
+
#
|
1011
|
+
class DescribeLocationFsxWindowsResponse < Struct.new(
|
1012
|
+
:location_arn,
|
1013
|
+
:location_uri,
|
1014
|
+
:security_group_arns,
|
1015
|
+
:creation_time,
|
1016
|
+
:user,
|
1017
|
+
:domain)
|
1018
|
+
include Aws::Structure
|
1019
|
+
end
|
1020
|
+
|
880
1021
|
# DescribeLocationNfsRequest
|
881
1022
|
#
|
882
1023
|
# @note When making an API call, you may pass DescribeLocationNfsRequest
|
@@ -1791,6 +1932,7 @@ module Aws::DataSync
|
|
1791
1932
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
1792
1933
|
# bytes_per_second: 1,
|
1793
1934
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
1935
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
1794
1936
|
# }
|
1795
1937
|
#
|
1796
1938
|
# @!attribute [rw] verify_mode
|
@@ -1952,6 +2094,14 @@ module Aws::DataSync
|
|
1952
2094
|
# queue-task-execution.
|
1953
2095
|
# @return [String]
|
1954
2096
|
#
|
2097
|
+
# @!attribute [rw] log_level
|
2098
|
+
# A value that determines the type of logs DataSync will deliver to
|
2099
|
+
# your AWS CloudWatch Logs file. If set to `OFF`, no logs will be
|
2100
|
+
# delivered. `BASIC` will deliver a few logs per transfer operation
|
2101
|
+
# and `TRANSFER` will deliver a verbose log that contains logs for
|
2102
|
+
# every file that is transferred.
|
2103
|
+
# @return [String]
|
2104
|
+
#
|
1955
2105
|
# @see http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/Options AWS API Documentation
|
1956
2106
|
#
|
1957
2107
|
class Options < Struct.new(
|
@@ -1965,7 +2115,8 @@ module Aws::DataSync
|
|
1965
2115
|
:preserve_devices,
|
1966
2116
|
:posix_permissions,
|
1967
2117
|
:bytes_per_second,
|
1968
|
-
:task_queueing
|
2118
|
+
:task_queueing,
|
2119
|
+
:log_level)
|
1969
2120
|
include Aws::Structure
|
1970
2121
|
end
|
1971
2122
|
|
@@ -2078,6 +2229,7 @@ module Aws::DataSync
|
|
2078
2229
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
2079
2230
|
# bytes_per_second: 1,
|
2080
2231
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
2232
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
2081
2233
|
# },
|
2082
2234
|
# includes: [
|
2083
2235
|
# {
|
@@ -2413,6 +2565,7 @@ module Aws::DataSync
|
|
2413
2565
|
# posix_permissions: "NONE", # accepts NONE, PRESERVE
|
2414
2566
|
# bytes_per_second: 1,
|
2415
2567
|
# task_queueing: "ENABLED", # accepts ENABLED, DISABLED
|
2568
|
+
# log_level: "OFF", # accepts OFF, BASIC, TRANSFER
|
2416
2569
|
# },
|
2417
2570
|
# excludes: [
|
2418
2571
|
# {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-datasync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - DataSync
|