aws-sdk-efs 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,7 @@ module Aws::EFS
30
30
  # * {AccessPointAlreadyExists}
31
31
  # * {AccessPointLimitExceeded}
32
32
  # * {AccessPointNotFound}
33
+ # * {AvailabilityZonesMismatch}
33
34
  # * {BadRequest}
34
35
  # * {DependencyTimeout}
35
36
  # * {FileSystemAlreadyExists}
@@ -126,6 +127,26 @@ module Aws::EFS
126
127
  end
127
128
  end
128
129
 
130
+ class AvailabilityZonesMismatch < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::EFS::Types::AvailabilityZonesMismatch] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+
139
+ # @return [String]
140
+ def error_code
141
+ @data[:error_code]
142
+ end
143
+
144
+ # @return [String]
145
+ def message
146
+ @message || @data[:message]
147
+ end
148
+ end
149
+
129
150
  class BadRequest < ServiceError
130
151
 
131
152
  # @param [Seahorse::Client::RequestContext] context
@@ -133,8 +133,38 @@ module Aws::EFS
133
133
  include Aws::Structure
134
134
  end
135
135
 
136
- # The backup policy for the file system, showing the curent status. If
137
- # `ENABLED`, the file system is being backed up.
136
+ # Returned if the Availability Zone that was specified for a mount
137
+ # target is different from the Availability Zone that was specified for
138
+ # One Zone storage classes. For more information, see [Regional and One
139
+ # Zone storage redundancy][1].
140
+ #
141
+ #
142
+ #
143
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html
144
+ #
145
+ # @!attribute [rw] error_code
146
+ # @return [String]
147
+ #
148
+ # @!attribute [rw] message
149
+ # @return [String]
150
+ #
151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/AvailabilityZonesMismatch AWS API Documentation
152
+ #
153
+ class AvailabilityZonesMismatch < Struct.new(
154
+ :error_code,
155
+ :message)
156
+ SENSITIVE = []
157
+ include Aws::Structure
158
+ end
159
+
160
+ # The backup policy for the file system used to create automatic daily
161
+ # backups. If status has a value of `ENABLED`, the file system is being
162
+ # automatically backed up. For more information, see [Automatic
163
+ # backups][1].
164
+ #
165
+ #
166
+ #
167
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#automatic-backups
138
168
  #
139
169
  # @note When making an API call, you may pass BackupPolicy
140
170
  # data as a hash:
@@ -146,17 +176,17 @@ module Aws::EFS
146
176
  # @!attribute [rw] status
147
177
  # Describes the status of the file system's backup policy.
148
178
  #
149
- # * <i> <code>ENABLED</code> - EFS is automatically backing up the
150
- # file system.</i>
179
+ # * <b> <code>ENABLED</code> </b> - EFS is automatically backing up
180
+ # the file system.&gt;
151
181
  #
152
- # * <i> <code>ENABLING</code> - EFS is turning on automatic backups
153
- # for the file system.</i>
182
+ # * <b> <code>ENABLING</code> </b> - EFS is turning on automatic
183
+ # backups for the file system.
154
184
  #
155
- # * <i> <code>DISABLED</code> - automatic back ups are turned off for
156
- # the file system.</i>
185
+ # * <b> <code>DISABLED</code> </b> - automatic back ups are turned off
186
+ # for the file system.
157
187
  #
158
- # * <i> <code>DISABLED</code> - EFS is turning off automatic backups
159
- # for the file system.</i>
188
+ # * <b> <code>DISABLING</code> </b> - EFS is turning off automatic
189
+ # backups for the file system.
160
190
  # @return [String]
161
191
  #
162
192
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/BackupPolicy AWS API Documentation
@@ -256,7 +286,13 @@ module Aws::EFS
256
286
  # `RootDirectory` &gt; `Path` specified does not exist, EFS creates it
257
287
  # and applies the `CreationInfo` settings when a client connects to an
258
288
  # access point. When specifying a `RootDirectory`, you need to provide
259
- # the `Path`, and the `CreationInfo` is optional.
289
+ # the `Path`, and the `CreationInfo`.
290
+ #
291
+ # Amazon EFS creates a root directory only if you have provided the
292
+ # CreationInfo: OwnUid, OwnGID, and permissions for the directory. If
293
+ # you do not provide this information, Amazon EFS does not create the
294
+ # root directory. If the root directory does not exist, attempts to
295
+ # mount using the access point will fail.
260
296
  # @return [Types::RootDirectory]
261
297
  #
262
298
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateAccessPointRequest AWS API Documentation
@@ -281,6 +317,8 @@ module Aws::EFS
281
317
  # kms_key_id: "KmsKeyId",
282
318
  # throughput_mode: "bursting", # accepts bursting, provisioned
283
319
  # provisioned_throughput_in_mibps: 1.0,
320
+ # availability_zone_name: "AvailabilityZoneName",
321
+ # backup: false,
284
322
  # tags: [
285
323
  # {
286
324
  # key: "TagKey", # required
@@ -305,6 +343,11 @@ module Aws::EFS
305
343
  # tradeoff of slightly higher latencies for most file operations. The
306
344
  # performance mode can't be changed after the file system has been
307
345
  # created.
346
+ #
347
+ # <note markdown="1"> The `maxIO` mode is not supported on file systems using One Zone
348
+ # storage classes.
349
+ #
350
+ # </note>
308
351
  # @return [String]
309
352
  #
310
353
  # @!attribute [rw] encrypted
@@ -320,7 +363,7 @@ module Aws::EFS
320
363
  # @!attribute [rw] kms_key_id
321
364
  # The ID of the AWS KMS CMK to be used to protect the encrypted file
322
365
  # system. This parameter is only required if you want to use a
323
- # nondefault CMK. If this parameter is not specified, the default CMK
366
+ # non-default CMK. If this parameter is not specified, the default CMK
324
367
  # for Amazon EFS is used. This ID can be in one of the following
325
368
  # formats:
326
369
  #
@@ -344,15 +387,17 @@ module Aws::EFS
344
387
  # @return [String]
345
388
  #
346
389
  # @!attribute [rw] throughput_mode
347
- # The throughput mode for the file system to be created. There are two
348
- # throughput modes to choose from for your file system: `bursting` and
349
- # `provisioned`. If you set `ThroughputMode` to `provisioned`, you
350
- # must also set a value for `ProvisionedThroughPutInMibps`. You can
351
- # decrease your file system's throughput in Provisioned Throughput
352
- # mode or change between the throughput modes as long as it’s been
353
- # more than 24 hours since the last decrease or throughput mode
354
- # change. For more, see [Specifying Throughput with Provisioned
355
- # Mode][1] in the *Amazon EFS User Guide.*
390
+ # Specifies the throughput mode for the file system, either `bursting`
391
+ # or `provisioned`. If you set `ThroughputMode` to `provisioned`, you
392
+ # must also set a value for `ProvisionedThroughputInMibps`. After you
393
+ # create the file system, you can decrease your file system's
394
+ # throughput in Provisioned Throughput mode or change between the
395
+ # throughput modes, as long as it’s been more than 24 hours since the
396
+ # last decrease or throughput mode change. For more information, see
397
+ # [Specifying throughput with provisioned mode][1] in the *Amazon EFS
398
+ # User Guide*.
399
+ #
400
+ # Default is `bursting`.
356
401
  #
357
402
  #
358
403
  #
@@ -363,15 +408,53 @@ module Aws::EFS
363
408
  # The throughput, measured in MiB/s, that you want to provision for a
364
409
  # file system that you're creating. Valid values are 1-1024. Required
365
410
  # if `ThroughputMode` is set to `provisioned`. The upper limit for
366
- # throughput is 1024 MiB/s. You can get this limit increased by
367
- # contacting AWS Support. For more information, see [Amazon EFS Limits
368
- # That You Can Increase][1] in the *Amazon EFS User Guide.*
411
+ # throughput is 1024 MiB/s. To increase this limit, contact AWS
412
+ # Support. For more information, see [Amazon EFS quotas that you can
413
+ # increase][1] in the *Amazon EFS User Guide*.
369
414
  #
370
415
  #
371
416
  #
372
417
  # [1]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#soft-limits
373
418
  # @return [Float]
374
419
  #
420
+ # @!attribute [rw] availability_zone_name
421
+ # Used to create a file system that uses One Zone storage classes. It
422
+ # specifies the AWS Availability Zone in which to create the file
423
+ # system. Use the format `us-east-1a` to specify the Availability
424
+ # Zone. For more information about One Zone storage classes, see
425
+ # [Using EFS storage classes][1] in the *Amazon EFS User Guide*.
426
+ #
427
+ # <note markdown="1"> One Zone storage classes are not available in all Availability Zones
428
+ # in AWS Regions where Amazon EFS is available.
429
+ #
430
+ # </note>
431
+ #
432
+ #
433
+ #
434
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] backup
438
+ # Specifies whether automatic backups are enabled on the file system
439
+ # that you are creating. Set the value to `true` to enable automatic
440
+ # backups. If you are creating a file system that uses One Zone
441
+ # storage classes, automatic backups are enabled by default. For more
442
+ # information, see [Automatic backups][1] in the *Amazon EFS User
443
+ # Guide*.
444
+ #
445
+ # Default is `false`. However, if you specify an
446
+ # `AvailabilityZoneName`, the default is `true`.
447
+ #
448
+ # <note markdown="1"> AWS Backup is not available in all AWS Regions where Amazon EFS is
449
+ # available.
450
+ #
451
+ # </note>
452
+ #
453
+ #
454
+ #
455
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#automatic-backups
456
+ # @return [Boolean]
457
+ #
375
458
  # @!attribute [rw] tags
376
459
  # A value that specifies to create one or more tags associated with
377
460
  # the file system. Each tag is a user-defined key-value pair. Name
@@ -388,6 +471,8 @@ module Aws::EFS
388
471
  :kms_key_id,
389
472
  :throughput_mode,
390
473
  :provisioned_throughput_in_mibps,
474
+ :availability_zone_name,
475
+ :backup,
391
476
  :tags)
392
477
  SENSITIVE = []
393
478
  include Aws::Structure
@@ -408,7 +493,9 @@ module Aws::EFS
408
493
  # @return [String]
409
494
  #
410
495
  # @!attribute [rw] subnet_id
411
- # The ID of the subnet to add the mount target in.
496
+ # The ID of the subnet to add the mount target in. For file systems
497
+ # that use One Zone storage classes, use the subnet that is associated
498
+ # with the file system's Availability Zone.
412
499
  # @return [String]
413
500
  #
414
501
  # @!attribute [rw] ip_address
@@ -470,6 +557,12 @@ module Aws::EFS
470
557
  # client connects to the access point. When specifying `CreationInfo`,
471
558
  # you must include values for all properties.
472
559
  #
560
+ # Amazon EFS creates a root directory only if you have provided the
561
+ # CreationInfo: OwnUid, OwnGID, and permissions for the directory. If
562
+ # you do not provide this information, Amazon EFS does not create the
563
+ # root directory. If the root directory does not exist, attempts to
564
+ # mount using the access point will fail.
565
+ #
473
566
  # If you do not provide `CreationInfo` and the specified `RootDirectory`
474
567
  # does not exist, attempts to mount the file system using the access
475
568
  # point will fail.
@@ -1091,28 +1184,37 @@ module Aws::EFS
1091
1184
  # @return [String]
1092
1185
  #
1093
1186
  # @!attribute [rw] throughput_mode
1094
- # The throughput mode for a file system. There are two throughput
1095
- # modes to choose from for your file system: `bursting` and
1096
- # `provisioned`. If you set `ThroughputMode` to `provisioned`, you
1097
- # must also set a value for `ProvisionedThroughPutInMibps`. You can
1098
- # decrease your file system's throughput in Provisioned Throughput
1099
- # mode or change between the throughput modes as long as it’s been
1100
- # more than 24 hours since the last decrease or throughput mode
1101
- # change.
1187
+ # Displays the file system's throughput mode. For more information,
1188
+ # see [Throughput modes][1] in the *Amazon EFS User Guide*.
1189
+ #
1190
+ #
1191
+ #
1192
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes
1102
1193
  # @return [String]
1103
1194
  #
1104
1195
  # @!attribute [rw] provisioned_throughput_in_mibps
1105
- # The throughput, measured in MiB/s, that you want to provision for a
1106
- # file system. Valid values are 1-1024. Required if `ThroughputMode`
1107
- # is set to `provisioned`. The limit on throughput is 1024 MiB/s. You
1108
- # can get these limits increased by contacting AWS Support. For more
1109
- # information, see [Amazon EFS Limits That You Can Increase][1] in the
1110
- # *Amazon EFS User Guide.*
1196
+ # The amount of provisioned throughput, measured in MiB/s, for the
1197
+ # file system. Valid for file systems using `ThroughputMode` set to
1198
+ # `provisioned`.
1199
+ # @return [Float]
1111
1200
  #
1201
+ # @!attribute [rw] availability_zone_name
1202
+ # Describes the AWS Availability Zone in which the file system is
1203
+ # located, and is valid only for file systems using One Zone storage
1204
+ # classes. For more information, see [Using EFS storage classes][1] in
1205
+ # the *Amazon EFS User Guide*.
1112
1206
  #
1113
1207
  #
1114
- # [1]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#soft-limits
1115
- # @return [Float]
1208
+ #
1209
+ # [1]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html
1210
+ # @return [String]
1211
+ #
1212
+ # @!attribute [rw] availability_zone_id
1213
+ # The unique and consistent identifier of the Availability Zone in
1214
+ # which the file system's One Zone storage classes exist. For
1215
+ # example, `use1-az1` is an Availability Zone ID for the us-east-1 AWS
1216
+ # Region, and it has the same location in every AWS account.
1217
+ # @return [String]
1116
1218
  #
1117
1219
  # @!attribute [rw] tags
1118
1220
  # The tags associated with the file system, presented as an array of
@@ -1136,6 +1238,8 @@ module Aws::EFS
1136
1238
  :kms_key_id,
1137
1239
  :throughput_mode,
1138
1240
  :provisioned_throughput_in_mibps,
1241
+ :availability_zone_name,
1242
+ :availability_zone_id,
1139
1243
  :tags)
1140
1244
  SENSITIVE = []
1141
1245
  include Aws::Structure
@@ -1294,7 +1398,7 @@ module Aws::EFS
1294
1398
  # system in provisioned throughput mode, when you attempt to increase
1295
1399
  # the provisioned throughput of an existing file system, or when you
1296
1400
  # attempt to change an existing file system from bursting to provisioned
1297
- # throughput mode.
1401
+ # throughput mode. Try again later.
1298
1402
  #
1299
1403
  # @!attribute [rw] error_code
1300
1404
  # @return [String]
@@ -1535,22 +1639,22 @@ module Aws::EFS
1535
1639
  # @return [String]
1536
1640
  #
1537
1641
  # @!attribute [rw] availability_zone_id
1538
- # The unique and consistent identifier of the Availability Zone (AZ)
1539
- # that the mount target resides in. For example, `use1-az1` is an AZ
1540
- # ID for the us-east-1 Region and it has the same location in every
1541
- # AWS account.
1642
+ # The unique and consistent identifier of the Availability Zone that
1643
+ # the mount target resides in. For example, `use1-az1` is an AZ ID for
1644
+ # the us-east-1 Region and it has the same location in every AWS
1645
+ # account.
1542
1646
  # @return [String]
1543
1647
  #
1544
1648
  # @!attribute [rw] availability_zone_name
1545
- # The name of the Availability Zone (AZ) that the mount target resides
1546
- # in. AZs are independently mapped to names for each AWS account. For
1547
- # example, the Availability Zone `us-east-1a` for your AWS account
1548
- # might not be the same location as `us-east-1a` for another AWS
1549
- # account.
1649
+ # The name of the Availability Zone in which the mount target is
1650
+ # located. Availability Zones are independently mapped to names for
1651
+ # each AWS account. For example, the Availability Zone `us-east-1a`
1652
+ # for your AWS account might not be the same location as `us-east-1a`
1653
+ # for another AWS account.
1550
1654
  # @return [String]
1551
1655
  #
1552
1656
  # @!attribute [rw] vpc_id
1553
- # The Virtual Private Cloud (VPC) ID that the mount target is
1657
+ # The virtual private cloud (VPC) ID that the mount target is
1554
1658
  # configured in.
1555
1659
  # @return [String]
1556
1660
  #
@@ -1732,9 +1836,9 @@ module Aws::EFS
1732
1836
  #
1733
1837
  # @!attribute [rw] policy
1734
1838
  # The `FileSystemPolicy` that you're creating. Accepts a JSON
1735
- # formatted policy definition. To find out more about the elements
1736
- # that make up a file system policy, see [EFS Resource-based
1737
- # Policies][1].
1839
+ # formatted policy definition. EFS file system policies have a 20,000
1840
+ # character limit. To find out more about the elements that make up a
1841
+ # file system policy, see [EFS Resource-based Policies][1].
1738
1842
  #
1739
1843
  #
1740
1844
  #
@@ -1995,6 +2099,9 @@ module Aws::EFS
1995
2099
  include Aws::Structure
1996
2100
  end
1997
2101
 
2102
+ # Returned if the requested Amazon EFS functionality is not available in
2103
+ # the specified Availability Zone.
2104
+ #
1998
2105
  # @!attribute [rw] error_code
1999
2106
  # @return [String]
2000
2107
  #
@@ -2023,7 +2130,7 @@ module Aws::EFS
2023
2130
  # @return [String]
2024
2131
  #
2025
2132
  # @!attribute [rw] tag_keys
2026
- # The keys of the key:value tag pairs that you want to remove from the
2133
+ # The keys of the key-value tag pairs that you want to remove from the
2027
2134
  # specified EFS resource.
2028
2135
  # @return [Array<String>]
2029
2136
  #
@@ -2050,19 +2157,19 @@ module Aws::EFS
2050
2157
  # @return [String]
2051
2158
  #
2052
2159
  # @!attribute [rw] throughput_mode
2053
- # (Optional) The throughput mode that you want your file system to
2054
- # use. If you're not updating your throughput mode, you don't need
2055
- # to provide this value in your request. If you are changing the
2056
- # `ThroughputMode` to `provisioned`, you must also set a value for
2160
+ # (Optional) Updates the file system's throughput mode. If you're
2161
+ # not updating your throughput mode, you don't need to provide this
2162
+ # value in your request. If you are changing the `ThroughputMode` to
2163
+ # `provisioned`, you must also set a value for
2057
2164
  # `ProvisionedThroughputInMibps`.
2058
2165
  # @return [String]
2059
2166
  #
2060
2167
  # @!attribute [rw] provisioned_throughput_in_mibps
2061
- # (Optional) The amount of throughput, in MiB/s, that you want to
2062
- # provision for your file system. Valid values are 1-1024. Required if
2063
- # `ThroughputMode` is changed to `provisioned` on update. If you're
2064
- # not updating the amount of provisioned throughput for your file
2065
- # system, you don't need to provide this value in your request.
2168
+ # (Optional) Sets the amount of provisioned throughput, in MiB/s, for
2169
+ # the file system. Valid values are 1-1024. If you are changing the
2170
+ # throughput mode to provisioned, you must also provide the amount of
2171
+ # provisioned throughput. Required if `ThroughputMode` is changed to
2172
+ # `provisioned` on update.
2066
2173
  # @return [Float]
2067
2174
  #
2068
2175
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/UpdateFileSystemRequest AWS API Documentation
@@ -2075,8 +2182,8 @@ module Aws::EFS
2075
2182
  include Aws::Structure
2076
2183
  end
2077
2184
 
2078
- # Returned if the AWS Backup service is not available in the region that
2079
- # the request was made.
2185
+ # Returned if the AWS Backup service is not available in the Region in
2186
+ # which the request was made.
2080
2187
  #
2081
2188
  # @!attribute [rw] error_code
2082
2189
  # @return [String]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-efs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
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: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon Elastic File System (EFS). This gem
48
48
  is part of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-efs.rb
56
59
  - lib/aws-sdk-efs/client.rb
57
60
  - lib/aws-sdk-efs/client_api.rb