aws-sdk-efs 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-efs.rb +1 -1
- data/lib/aws-sdk-efs/client.rb +73 -2
- data/lib/aws-sdk-efs/client_api.rb +54 -0
- data/lib/aws-sdk-efs/errors.rb +21 -0
- data/lib/aws-sdk-efs/types.rb +127 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5898638bd260e90ab9d565b57189ff24061938dadc976f0606b42c8339fefb28
|
4
|
+
data.tar.gz: 92751a1ba333a7d939ee937349140e3354fbe6dfe991083d1ad6914a73ca9f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38bca1194b0e23037f98c68dccf379a8caef87c1fba6e1486a784bce1ec60abdb2a0e2b79e424ca605459c8a6c65d4946e2ef50c1e362ff482703451eae6a181
|
7
|
+
data.tar.gz: d0160b60fc463900487316ef9bb3f2a09c90f215c75db3e46bd6395454f7c4e3fb169c81d74e02d0ac89b1c6ef4345bb3cbf6ed641fb7d40952dbe1a91b813d3
|
data/lib/aws-sdk-efs.rb
CHANGED
data/lib/aws-sdk-efs/client.rb
CHANGED
@@ -573,6 +573,7 @@ module Aws::EFS
|
|
573
573
|
# * {Types::FileSystemDescription#owner_id #owner_id} => String
|
574
574
|
# * {Types::FileSystemDescription#creation_token #creation_token} => String
|
575
575
|
# * {Types::FileSystemDescription#file_system_id #file_system_id} => String
|
576
|
+
# * {Types::FileSystemDescription#file_system_arn #file_system_arn} => String
|
576
577
|
# * {Types::FileSystemDescription#creation_time #creation_time} => Time
|
577
578
|
# * {Types::FileSystemDescription#life_cycle_state #life_cycle_state} => String
|
578
579
|
# * {Types::FileSystemDescription#name #name} => String
|
@@ -643,6 +644,7 @@ module Aws::EFS
|
|
643
644
|
# resp.owner_id #=> String
|
644
645
|
# resp.creation_token #=> String
|
645
646
|
# resp.file_system_id #=> String
|
647
|
+
# resp.file_system_arn #=> String
|
646
648
|
# resp.creation_time #=> Time
|
647
649
|
# resp.life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
648
650
|
# resp.name #=> String
|
@@ -808,6 +810,7 @@ module Aws::EFS
|
|
808
810
|
# * {Types::MountTargetDescription#network_interface_id #network_interface_id} => String
|
809
811
|
# * {Types::MountTargetDescription#availability_zone_id #availability_zone_id} => String
|
810
812
|
# * {Types::MountTargetDescription#availability_zone_name #availability_zone_name} => String
|
813
|
+
# * {Types::MountTargetDescription#vpc_id #vpc_id} => String
|
811
814
|
#
|
812
815
|
#
|
813
816
|
# @example Example: To create a new mount target
|
@@ -850,6 +853,7 @@ module Aws::EFS
|
|
850
853
|
# resp.network_interface_id #=> String
|
851
854
|
# resp.availability_zone_id #=> String
|
852
855
|
# resp.availability_zone_name #=> String
|
856
|
+
# resp.vpc_id #=> String
|
853
857
|
#
|
854
858
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget AWS API Documentation
|
855
859
|
#
|
@@ -1212,6 +1216,34 @@ module Aws::EFS
|
|
1212
1216
|
req.send_request(options)
|
1213
1217
|
end
|
1214
1218
|
|
1219
|
+
# Returns the backup policy for the specified EFS file system.
|
1220
|
+
#
|
1221
|
+
# @option params [required, String] :file_system_id
|
1222
|
+
# Specifies which EFS file system to retrieve the `BackupPolicy` for.
|
1223
|
+
#
|
1224
|
+
# @return [Types::BackupPolicyDescription] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1225
|
+
#
|
1226
|
+
# * {Types::BackupPolicyDescription#backup_policy #backup_policy} => Types::BackupPolicy
|
1227
|
+
#
|
1228
|
+
# @example Request syntax with placeholder values
|
1229
|
+
#
|
1230
|
+
# resp = client.describe_backup_policy({
|
1231
|
+
# file_system_id: "FileSystemId", # required
|
1232
|
+
# })
|
1233
|
+
#
|
1234
|
+
# @example Response structure
|
1235
|
+
#
|
1236
|
+
# resp.backup_policy.status #=> String, one of "ENABLED", "ENABLING", "DISABLED", "DISABLING"
|
1237
|
+
#
|
1238
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeBackupPolicy AWS API Documentation
|
1239
|
+
#
|
1240
|
+
# @overload describe_backup_policy(params = {})
|
1241
|
+
# @param [Hash] params ({})
|
1242
|
+
def describe_backup_policy(params = {}, options = {})
|
1243
|
+
req = build_request(:describe_backup_policy, params)
|
1244
|
+
req.send_request(options)
|
1245
|
+
end
|
1246
|
+
|
1215
1247
|
# Returns the `FileSystemPolicy` for the specified EFS file system.
|
1216
1248
|
#
|
1217
1249
|
# This operation requires permissions for the
|
@@ -1350,6 +1382,7 @@ module Aws::EFS
|
|
1350
1382
|
# resp.file_systems[0].owner_id #=> String
|
1351
1383
|
# resp.file_systems[0].creation_token #=> String
|
1352
1384
|
# resp.file_systems[0].file_system_id #=> String
|
1385
|
+
# resp.file_systems[0].file_system_arn #=> String
|
1353
1386
|
# resp.file_systems[0].creation_time #=> Time
|
1354
1387
|
# resp.file_systems[0].life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
1355
1388
|
# resp.file_systems[0].name #=> String
|
@@ -1466,7 +1499,7 @@ module Aws::EFS
|
|
1466
1499
|
# resp.to_h outputs the following:
|
1467
1500
|
# {
|
1468
1501
|
# security_groups: [
|
1469
|
-
# "sg-
|
1502
|
+
# "sg-4567abcd",
|
1470
1503
|
# ],
|
1471
1504
|
# }
|
1472
1505
|
#
|
@@ -1581,6 +1614,7 @@ module Aws::EFS
|
|
1581
1614
|
# resp.mount_targets[0].network_interface_id #=> String
|
1582
1615
|
# resp.mount_targets[0].availability_zone_id #=> String
|
1583
1616
|
# resp.mount_targets[0].availability_zone_name #=> String
|
1617
|
+
# resp.mount_targets[0].vpc_id #=> String
|
1584
1618
|
# resp.next_marker #=> String
|
1585
1619
|
#
|
1586
1620
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargets AWS API Documentation
|
@@ -1770,6 +1804,41 @@ module Aws::EFS
|
|
1770
1804
|
req.send_request(options)
|
1771
1805
|
end
|
1772
1806
|
|
1807
|
+
# Updates the file system's backup policy. Use this action to start or
|
1808
|
+
# stop automatic backups of the file system.
|
1809
|
+
#
|
1810
|
+
# @option params [required, String] :file_system_id
|
1811
|
+
# Specifies which EFS file system to update the backup policy for.
|
1812
|
+
#
|
1813
|
+
# @option params [required, Types::BackupPolicy] :backup_policy
|
1814
|
+
# The backup policy included in the `PutBackupPolicy` request.
|
1815
|
+
#
|
1816
|
+
# @return [Types::BackupPolicyDescription] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1817
|
+
#
|
1818
|
+
# * {Types::BackupPolicyDescription#backup_policy #backup_policy} => Types::BackupPolicy
|
1819
|
+
#
|
1820
|
+
# @example Request syntax with placeholder values
|
1821
|
+
#
|
1822
|
+
# resp = client.put_backup_policy({
|
1823
|
+
# file_system_id: "FileSystemId", # required
|
1824
|
+
# backup_policy: { # required
|
1825
|
+
# status: "ENABLED", # required, accepts ENABLED, ENABLING, DISABLED, DISABLING
|
1826
|
+
# },
|
1827
|
+
# })
|
1828
|
+
#
|
1829
|
+
# @example Response structure
|
1830
|
+
#
|
1831
|
+
# resp.backup_policy.status #=> String, one of "ENABLED", "ENABLING", "DISABLED", "DISABLING"
|
1832
|
+
#
|
1833
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/PutBackupPolicy AWS API Documentation
|
1834
|
+
#
|
1835
|
+
# @overload put_backup_policy(params = {})
|
1836
|
+
# @param [Hash] params ({})
|
1837
|
+
def put_backup_policy(params = {}, options = {})
|
1838
|
+
req = build_request(:put_backup_policy, params)
|
1839
|
+
req.send_request(options)
|
1840
|
+
end
|
1841
|
+
|
1773
1842
|
# Applies an Amazon EFS `FileSystemPolicy` to an Amazon EFS file system.
|
1774
1843
|
# A file system policy is an IAM resource-based policy and can contain
|
1775
1844
|
# multiple policy statements. A file system always has exactly one file
|
@@ -2021,6 +2090,7 @@ module Aws::EFS
|
|
2021
2090
|
# * {Types::FileSystemDescription#owner_id #owner_id} => String
|
2022
2091
|
# * {Types::FileSystemDescription#creation_token #creation_token} => String
|
2023
2092
|
# * {Types::FileSystemDescription#file_system_id #file_system_id} => String
|
2093
|
+
# * {Types::FileSystemDescription#file_system_arn #file_system_arn} => String
|
2024
2094
|
# * {Types::FileSystemDescription#creation_time #creation_time} => Time
|
2025
2095
|
# * {Types::FileSystemDescription#life_cycle_state #life_cycle_state} => String
|
2026
2096
|
# * {Types::FileSystemDescription#name #name} => String
|
@@ -2046,6 +2116,7 @@ module Aws::EFS
|
|
2046
2116
|
# resp.owner_id #=> String
|
2047
2117
|
# resp.creation_token #=> String
|
2048
2118
|
# resp.file_system_id #=> String
|
2119
|
+
# resp.file_system_arn #=> String
|
2049
2120
|
# resp.creation_time #=> Time
|
2050
2121
|
# resp.life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
2051
2122
|
# resp.name #=> String
|
@@ -2085,7 +2156,7 @@ module Aws::EFS
|
|
2085
2156
|
params: params,
|
2086
2157
|
config: config)
|
2087
2158
|
context[:gem_name] = 'aws-sdk-efs'
|
2088
|
-
context[:gem_version] = '1.
|
2159
|
+
context[:gem_version] = '1.33.0'
|
2089
2160
|
Seahorse::Client::Request.new(handlers, context)
|
2090
2161
|
end
|
2091
2162
|
|
@@ -23,6 +23,8 @@ module Aws::EFS
|
|
23
23
|
AvailabilityZoneId = Shapes::StringShape.new(name: 'AvailabilityZoneId')
|
24
24
|
AvailabilityZoneName = Shapes::StringShape.new(name: 'AvailabilityZoneName')
|
25
25
|
AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
|
26
|
+
BackupPolicy = Shapes::StructureShape.new(name: 'BackupPolicy')
|
27
|
+
BackupPolicyDescription = Shapes::StructureShape.new(name: 'BackupPolicyDescription')
|
26
28
|
BadRequest = Shapes::StructureShape.new(name: 'BadRequest')
|
27
29
|
BypassPolicyLockoutSafetyCheck = Shapes::BooleanShape.new(name: 'BypassPolicyLockoutSafetyCheck')
|
28
30
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
@@ -40,6 +42,7 @@ module Aws::EFS
|
|
40
42
|
DependencyTimeout = Shapes::StructureShape.new(name: 'DependencyTimeout')
|
41
43
|
DescribeAccessPointsRequest = Shapes::StructureShape.new(name: 'DescribeAccessPointsRequest')
|
42
44
|
DescribeAccessPointsResponse = Shapes::StructureShape.new(name: 'DescribeAccessPointsResponse')
|
45
|
+
DescribeBackupPolicyRequest = Shapes::StructureShape.new(name: 'DescribeBackupPolicyRequest')
|
43
46
|
DescribeFileSystemPolicyRequest = Shapes::StructureShape.new(name: 'DescribeFileSystemPolicyRequest')
|
44
47
|
DescribeFileSystemsRequest = Shapes::StructureShape.new(name: 'DescribeFileSystemsRequest')
|
45
48
|
DescribeFileSystemsResponse = Shapes::StructureShape.new(name: 'DescribeFileSystemsResponse')
|
@@ -54,6 +57,7 @@ module Aws::EFS
|
|
54
57
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
55
58
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
56
59
|
FileSystemAlreadyExists = Shapes::StructureShape.new(name: 'FileSystemAlreadyExists')
|
60
|
+
FileSystemArn = Shapes::StringShape.new(name: 'FileSystemArn')
|
57
61
|
FileSystemDescription = Shapes::StructureShape.new(name: 'FileSystemDescription')
|
58
62
|
FileSystemDescriptions = Shapes::ListShape.new(name: 'FileSystemDescriptions')
|
59
63
|
FileSystemId = Shapes::StringShape.new(name: 'FileSystemId')
|
@@ -102,6 +106,7 @@ module Aws::EFS
|
|
102
106
|
PolicyNotFound = Shapes::StructureShape.new(name: 'PolicyNotFound')
|
103
107
|
PosixUser = Shapes::StructureShape.new(name: 'PosixUser')
|
104
108
|
ProvisionedThroughputInMibps = Shapes::FloatShape.new(name: 'ProvisionedThroughputInMibps')
|
109
|
+
PutBackupPolicyRequest = Shapes::StructureShape.new(name: 'PutBackupPolicyRequest')
|
105
110
|
PutFileSystemPolicyRequest = Shapes::StructureShape.new(name: 'PutFileSystemPolicyRequest')
|
106
111
|
PutLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'PutLifecycleConfigurationRequest')
|
107
112
|
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
@@ -111,6 +116,7 @@ module Aws::EFS
|
|
111
116
|
SecurityGroupLimitExceeded = Shapes::StructureShape.new(name: 'SecurityGroupLimitExceeded')
|
112
117
|
SecurityGroupNotFound = Shapes::StructureShape.new(name: 'SecurityGroupNotFound')
|
113
118
|
SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
|
119
|
+
Status = Shapes::StringShape.new(name: 'Status')
|
114
120
|
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
115
121
|
SubnetNotFound = Shapes::StructureShape.new(name: 'SubnetNotFound')
|
116
122
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
@@ -129,6 +135,8 @@ module Aws::EFS
|
|
129
135
|
UnsupportedAvailabilityZone = Shapes::StructureShape.new(name: 'UnsupportedAvailabilityZone')
|
130
136
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
131
137
|
UpdateFileSystemRequest = Shapes::StructureShape.new(name: 'UpdateFileSystemRequest')
|
138
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
139
|
+
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
132
140
|
|
133
141
|
AccessPointAlreadyExists.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "ErrorCode"))
|
134
142
|
AccessPointAlreadyExists.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -157,6 +165,12 @@ module Aws::EFS
|
|
157
165
|
AccessPointNotFound.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
158
166
|
AccessPointNotFound.struct_class = Types::AccessPointNotFound
|
159
167
|
|
168
|
+
BackupPolicy.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "Status"))
|
169
|
+
BackupPolicy.struct_class = Types::BackupPolicy
|
170
|
+
|
171
|
+
BackupPolicyDescription.add_member(:backup_policy, Shapes::ShapeRef.new(shape: BackupPolicy, location_name: "BackupPolicy"))
|
172
|
+
BackupPolicyDescription.struct_class = Types::BackupPolicyDescription
|
173
|
+
|
160
174
|
BadRequest.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "ErrorCode"))
|
161
175
|
BadRequest.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
162
176
|
BadRequest.struct_class = Types::BadRequest
|
@@ -222,6 +236,9 @@ module Aws::EFS
|
|
222
236
|
DescribeAccessPointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
223
237
|
DescribeAccessPointsResponse.struct_class = Types::DescribeAccessPointsResponse
|
224
238
|
|
239
|
+
DescribeBackupPolicyRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
|
240
|
+
DescribeBackupPolicyRequest.struct_class = Types::DescribeBackupPolicyRequest
|
241
|
+
|
225
242
|
DescribeFileSystemPolicyRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
|
226
243
|
DescribeFileSystemPolicyRequest.struct_class = Types::DescribeFileSystemPolicyRequest
|
227
244
|
|
@@ -275,6 +292,7 @@ module Aws::EFS
|
|
275
292
|
FileSystemDescription.add_member(:owner_id, Shapes::ShapeRef.new(shape: AwsAccountId, required: true, location_name: "OwnerId"))
|
276
293
|
FileSystemDescription.add_member(:creation_token, Shapes::ShapeRef.new(shape: CreationToken, required: true, location_name: "CreationToken"))
|
277
294
|
FileSystemDescription.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location_name: "FileSystemId"))
|
295
|
+
FileSystemDescription.add_member(:file_system_arn, Shapes::ShapeRef.new(shape: FileSystemArn, location_name: "FileSystemArn"))
|
278
296
|
FileSystemDescription.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
279
297
|
FileSystemDescription.add_member(:life_cycle_state, Shapes::ShapeRef.new(shape: LifeCycleState, required: true, location_name: "LifeCycleState"))
|
280
298
|
FileSystemDescription.add_member(:name, Shapes::ShapeRef.new(shape: TagValue, location_name: "Name"))
|
@@ -370,6 +388,7 @@ module Aws::EFS
|
|
370
388
|
MountTargetDescription.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "NetworkInterfaceId"))
|
371
389
|
MountTargetDescription.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
|
372
390
|
MountTargetDescription.add_member(:availability_zone_name, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZoneName"))
|
391
|
+
MountTargetDescription.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
|
373
392
|
MountTargetDescription.struct_class = Types::MountTargetDescription
|
374
393
|
|
375
394
|
MountTargetDescriptions.member = Shapes::ShapeRef.new(shape: MountTargetDescription)
|
@@ -395,6 +414,10 @@ module Aws::EFS
|
|
395
414
|
PosixUser.add_member(:secondary_gids, Shapes::ShapeRef.new(shape: SecondaryGids, location_name: "SecondaryGids"))
|
396
415
|
PosixUser.struct_class = Types::PosixUser
|
397
416
|
|
417
|
+
PutBackupPolicyRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
|
418
|
+
PutBackupPolicyRequest.add_member(:backup_policy, Shapes::ShapeRef.new(shape: BackupPolicy, required: true, location_name: "BackupPolicy"))
|
419
|
+
PutBackupPolicyRequest.struct_class = Types::PutBackupPolicyRequest
|
420
|
+
|
398
421
|
PutFileSystemPolicyRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
|
399
422
|
PutFileSystemPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
|
400
423
|
PutFileSystemPolicyRequest.add_member(:bypass_policy_lockout_safety_check, Shapes::ShapeRef.new(shape: BypassPolicyLockoutSafetyCheck, location_name: "BypassPolicyLockoutSafetyCheck"))
|
@@ -457,6 +480,10 @@ module Aws::EFS
|
|
457
480
|
UpdateFileSystemRequest.add_member(:provisioned_throughput_in_mibps, Shapes::ShapeRef.new(shape: ProvisionedThroughputInMibps, location_name: "ProvisionedThroughputInMibps"))
|
458
481
|
UpdateFileSystemRequest.struct_class = Types::UpdateFileSystemRequest
|
459
482
|
|
483
|
+
ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "ErrorCode"))
|
484
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
485
|
+
ValidationException.struct_class = Types::ValidationException
|
486
|
+
|
460
487
|
|
461
488
|
# @api private
|
462
489
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -482,6 +509,7 @@ module Aws::EFS
|
|
482
509
|
o.output = Shapes::ShapeRef.new(shape: AccessPointDescription)
|
483
510
|
o.errors << Shapes::ShapeRef.new(shape: BadRequest)
|
484
511
|
o.errors << Shapes::ShapeRef.new(shape: AccessPointAlreadyExists)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectFileSystemLifeCycleState)
|
485
513
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
486
514
|
o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
|
487
515
|
o.errors << Shapes::ShapeRef.new(shape: AccessPointLimitExceeded)
|
@@ -609,6 +637,19 @@ module Aws::EFS
|
|
609
637
|
)
|
610
638
|
end)
|
611
639
|
|
640
|
+
api.add_operation(:describe_backup_policy, Seahorse::Model::Operation.new.tap do |o|
|
641
|
+
o.name = "DescribeBackupPolicy"
|
642
|
+
o.http_method = "GET"
|
643
|
+
o.http_request_uri = "/2015-02-01/file-systems/{FileSystemId}/backup-policy"
|
644
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeBackupPolicyRequest)
|
645
|
+
o.output = Shapes::ShapeRef.new(shape: BackupPolicyDescription)
|
646
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequest)
|
647
|
+
o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
|
648
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
649
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyNotFound)
|
650
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
651
|
+
end)
|
652
|
+
|
612
653
|
api.add_operation(:describe_file_system_policy, Seahorse::Model::Operation.new.tap do |o|
|
613
654
|
o.name = "DescribeFileSystemPolicy"
|
614
655
|
o.http_method = "GET"
|
@@ -723,6 +764,19 @@ module Aws::EFS
|
|
723
764
|
o.errors << Shapes::ShapeRef.new(shape: SecurityGroupNotFound)
|
724
765
|
end)
|
725
766
|
|
767
|
+
api.add_operation(:put_backup_policy, Seahorse::Model::Operation.new.tap do |o|
|
768
|
+
o.name = "PutBackupPolicy"
|
769
|
+
o.http_method = "PUT"
|
770
|
+
o.http_request_uri = "/2015-02-01/file-systems/{FileSystemId}/backup-policy"
|
771
|
+
o.input = Shapes::ShapeRef.new(shape: PutBackupPolicyRequest)
|
772
|
+
o.output = Shapes::ShapeRef.new(shape: BackupPolicyDescription)
|
773
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequest)
|
774
|
+
o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
|
775
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectFileSystemLifeCycleState)
|
776
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
777
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
778
|
+
end)
|
779
|
+
|
726
780
|
api.add_operation(:put_file_system_policy, Seahorse::Model::Operation.new.tap do |o|
|
727
781
|
o.name = "PutFileSystemPolicy"
|
728
782
|
o.http_method = "PUT"
|
data/lib/aws-sdk-efs/errors.rb
CHANGED
@@ -53,6 +53,7 @@ module Aws::EFS
|
|
53
53
|
# * {ThroughputLimitExceeded}
|
54
54
|
# * {TooManyRequests}
|
55
55
|
# * {UnsupportedAvailabilityZone}
|
56
|
+
# * {ValidationException}
|
56
57
|
#
|
57
58
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
58
59
|
# if they are not defined above.
|
@@ -590,5 +591,25 @@ module Aws::EFS
|
|
590
591
|
end
|
591
592
|
end
|
592
593
|
|
594
|
+
class ValidationException < ServiceError
|
595
|
+
|
596
|
+
# @param [Seahorse::Client::RequestContext] context
|
597
|
+
# @param [String] message
|
598
|
+
# @param [Aws::EFS::Types::ValidationException] data
|
599
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
600
|
+
super(context, message, data)
|
601
|
+
end
|
602
|
+
|
603
|
+
# @return [String]
|
604
|
+
def error_code
|
605
|
+
@data[:error_code]
|
606
|
+
end
|
607
|
+
|
608
|
+
# @return [String]
|
609
|
+
def message
|
610
|
+
@message || @data[:message]
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
593
614
|
end
|
594
615
|
end
|
data/lib/aws-sdk-efs/types.rb
CHANGED
@@ -133,6 +133,53 @@ 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.
|
138
|
+
#
|
139
|
+
# @note When making an API call, you may pass BackupPolicy
|
140
|
+
# data as a hash:
|
141
|
+
#
|
142
|
+
# {
|
143
|
+
# status: "ENABLED", # required, accepts ENABLED, ENABLING, DISABLED, DISABLING
|
144
|
+
# }
|
145
|
+
#
|
146
|
+
# @!attribute [rw] status
|
147
|
+
# Describes the status of the file system's backup policy.
|
148
|
+
#
|
149
|
+
# * <i> <code>ENABLED</code> - EFS is automatically backing up the
|
150
|
+
# file system.</i>
|
151
|
+
#
|
152
|
+
# * <i> <code>ENABLING</code> - EFS is turning on automatic backups
|
153
|
+
# for the file system.</i>
|
154
|
+
#
|
155
|
+
# * <i> <code>DISABLED</code> - automatic back ups are turned off for
|
156
|
+
# the file system.</i>
|
157
|
+
#
|
158
|
+
# * <i> <code>DISABLED</code> - EFS is turning off automatic backups
|
159
|
+
# for the file system.</i>
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/BackupPolicy AWS API Documentation
|
163
|
+
#
|
164
|
+
class BackupPolicy < Struct.new(
|
165
|
+
:status)
|
166
|
+
SENSITIVE = []
|
167
|
+
include Aws::Structure
|
168
|
+
end
|
169
|
+
|
170
|
+
# @!attribute [rw] backup_policy
|
171
|
+
# Describes the file system's backup policy, indicating whether
|
172
|
+
# automatic backups are turned on or off..
|
173
|
+
# @return [Types::BackupPolicy]
|
174
|
+
#
|
175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/BackupPolicyDescription AWS API Documentation
|
176
|
+
#
|
177
|
+
class BackupPolicyDescription < Struct.new(
|
178
|
+
:backup_policy)
|
179
|
+
SENSITIVE = []
|
180
|
+
include Aws::Structure
|
181
|
+
end
|
182
|
+
|
136
183
|
# Returned if the request is malformed or contains an error such as an
|
137
184
|
# invalid parameter value or a missing required parameter.
|
138
185
|
#
|
@@ -644,6 +691,25 @@ module Aws::EFS
|
|
644
691
|
include Aws::Structure
|
645
692
|
end
|
646
693
|
|
694
|
+
# @note When making an API call, you may pass DescribeBackupPolicyRequest
|
695
|
+
# data as a hash:
|
696
|
+
#
|
697
|
+
# {
|
698
|
+
# file_system_id: "FileSystemId", # required
|
699
|
+
# }
|
700
|
+
#
|
701
|
+
# @!attribute [rw] file_system_id
|
702
|
+
# Specifies which EFS file system to retrieve the `BackupPolicy` for.
|
703
|
+
# @return [String]
|
704
|
+
#
|
705
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeBackupPolicyRequest AWS API Documentation
|
706
|
+
#
|
707
|
+
class DescribeBackupPolicyRequest < Struct.new(
|
708
|
+
:file_system_id)
|
709
|
+
SENSITIVE = []
|
710
|
+
include Aws::Structure
|
711
|
+
end
|
712
|
+
|
647
713
|
# @note When making an API call, you may pass DescribeFileSystemPolicyRequest
|
648
714
|
# data as a hash:
|
649
715
|
#
|
@@ -969,6 +1035,14 @@ module Aws::EFS
|
|
969
1035
|
# The ID of the file system, assigned by Amazon EFS.
|
970
1036
|
# @return [String]
|
971
1037
|
#
|
1038
|
+
# @!attribute [rw] file_system_arn
|
1039
|
+
# The Amazon Resource Name (ARN) for the EFS file system, in the
|
1040
|
+
# format
|
1041
|
+
# `arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
|
1042
|
+
# `. Example with sample data:
|
1043
|
+
# `arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567`
|
1044
|
+
# @return [String]
|
1045
|
+
#
|
972
1046
|
# @!attribute [rw] creation_time
|
973
1047
|
# The time that the file system was created, in seconds (since
|
974
1048
|
# 1970-01-01T00:00:00Z).
|
@@ -1051,6 +1125,7 @@ module Aws::EFS
|
|
1051
1125
|
:owner_id,
|
1052
1126
|
:creation_token,
|
1053
1127
|
:file_system_id,
|
1128
|
+
:file_system_arn,
|
1054
1129
|
:creation_time,
|
1055
1130
|
:life_cycle_state,
|
1056
1131
|
:name,
|
@@ -1474,6 +1549,11 @@ module Aws::EFS
|
|
1474
1549
|
# account.
|
1475
1550
|
# @return [String]
|
1476
1551
|
#
|
1552
|
+
# @!attribute [rw] vpc_id
|
1553
|
+
# The Virtual Private Cloud (VPC) ID that the mount target is
|
1554
|
+
# configured in.
|
1555
|
+
# @return [String]
|
1556
|
+
#
|
1477
1557
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/MountTargetDescription AWS API Documentation
|
1478
1558
|
#
|
1479
1559
|
class MountTargetDescription < Struct.new(
|
@@ -1485,7 +1565,8 @@ module Aws::EFS
|
|
1485
1565
|
:ip_address,
|
1486
1566
|
:network_interface_id,
|
1487
1567
|
:availability_zone_id,
|
1488
|
-
:availability_zone_name
|
1568
|
+
:availability_zone_name,
|
1569
|
+
:vpc_id)
|
1489
1570
|
SENSITIVE = []
|
1490
1571
|
include Aws::Structure
|
1491
1572
|
end
|
@@ -1608,6 +1689,33 @@ module Aws::EFS
|
|
1608
1689
|
include Aws::Structure
|
1609
1690
|
end
|
1610
1691
|
|
1692
|
+
# @note When making an API call, you may pass PutBackupPolicyRequest
|
1693
|
+
# data as a hash:
|
1694
|
+
#
|
1695
|
+
# {
|
1696
|
+
# file_system_id: "FileSystemId", # required
|
1697
|
+
# backup_policy: { # required
|
1698
|
+
# status: "ENABLED", # required, accepts ENABLED, ENABLING, DISABLED, DISABLING
|
1699
|
+
# },
|
1700
|
+
# }
|
1701
|
+
#
|
1702
|
+
# @!attribute [rw] file_system_id
|
1703
|
+
# Specifies which EFS file system to update the backup policy for.
|
1704
|
+
# @return [String]
|
1705
|
+
#
|
1706
|
+
# @!attribute [rw] backup_policy
|
1707
|
+
# The backup policy included in the `PutBackupPolicy` request.
|
1708
|
+
# @return [Types::BackupPolicy]
|
1709
|
+
#
|
1710
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/PutBackupPolicyRequest AWS API Documentation
|
1711
|
+
#
|
1712
|
+
class PutBackupPolicyRequest < Struct.new(
|
1713
|
+
:file_system_id,
|
1714
|
+
:backup_policy)
|
1715
|
+
SENSITIVE = []
|
1716
|
+
include Aws::Structure
|
1717
|
+
end
|
1718
|
+
|
1611
1719
|
# @note When making an API call, you may pass PutFileSystemPolicyRequest
|
1612
1720
|
# data as a hash:
|
1613
1721
|
#
|
@@ -1967,5 +2075,23 @@ module Aws::EFS
|
|
1967
2075
|
include Aws::Structure
|
1968
2076
|
end
|
1969
2077
|
|
2078
|
+
# Returned if the AWS Backup service is not available in the region that
|
2079
|
+
# the request was made.
|
2080
|
+
#
|
2081
|
+
# @!attribute [rw] error_code
|
2082
|
+
# @return [String]
|
2083
|
+
#
|
2084
|
+
# @!attribute [rw] message
|
2085
|
+
# @return [String]
|
2086
|
+
#
|
2087
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ValidationException AWS API Documentation
|
2088
|
+
#
|
2089
|
+
class ValidationException < Struct.new(
|
2090
|
+
:error_code,
|
2091
|
+
:message)
|
2092
|
+
SENSITIVE = []
|
2093
|
+
include Aws::Structure
|
2094
|
+
end
|
2095
|
+
|
1970
2096
|
end
|
1971
2097
|
end
|
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.
|
4
|
+
version: 1.33.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: 2020-07-
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|