aws-sdk-efs 1.31.0 → 1.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-efs.rb +3 -2
- data/lib/aws-sdk-efs/client.rb +95 -9
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aab6a6a021b63cd78df9a8b26f6b81413708b34cd9a632bb231b82e250c507d2
|
4
|
+
data.tar.gz: a1d389f0e07a8c6677c996103d31933c45490c7d2dafcd7e64d74fa52a828cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de312c11703e6855ffa43f4dc7f960e695c482f411a0f0b942115977ce37f83f4821f9ec31895cf836e5c25379662952c04a749f3b863fe904fff412557c68f
|
7
|
+
data.tar.gz: 7d763bdfedba1e94baacd0635e747609bded993e78c40f00838bda84a5d027301095486d49eceb5b50eb9b4ef0a0f19cc720a2b0c3622cfa222e07de097c93e3
|
data/lib/aws-sdk-efs.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-efs/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::EFS
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.36.0'
|
51
52
|
|
52
53
|
end
|
data/lib/aws-sdk-efs/client.rb
CHANGED
@@ -85,13 +85,28 @@ module Aws::EFS
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::EFS
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -573,6 +588,7 @@ module Aws::EFS
|
|
573
588
|
# * {Types::FileSystemDescription#owner_id #owner_id} => String
|
574
589
|
# * {Types::FileSystemDescription#creation_token #creation_token} => String
|
575
590
|
# * {Types::FileSystemDescription#file_system_id #file_system_id} => String
|
591
|
+
# * {Types::FileSystemDescription#file_system_arn #file_system_arn} => String
|
576
592
|
# * {Types::FileSystemDescription#creation_time #creation_time} => Time
|
577
593
|
# * {Types::FileSystemDescription#life_cycle_state #life_cycle_state} => String
|
578
594
|
# * {Types::FileSystemDescription#name #name} => String
|
@@ -643,6 +659,7 @@ module Aws::EFS
|
|
643
659
|
# resp.owner_id #=> String
|
644
660
|
# resp.creation_token #=> String
|
645
661
|
# resp.file_system_id #=> String
|
662
|
+
# resp.file_system_arn #=> String
|
646
663
|
# resp.creation_time #=> Time
|
647
664
|
# resp.life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
648
665
|
# resp.name #=> String
|
@@ -808,6 +825,7 @@ module Aws::EFS
|
|
808
825
|
# * {Types::MountTargetDescription#network_interface_id #network_interface_id} => String
|
809
826
|
# * {Types::MountTargetDescription#availability_zone_id #availability_zone_id} => String
|
810
827
|
# * {Types::MountTargetDescription#availability_zone_name #availability_zone_name} => String
|
828
|
+
# * {Types::MountTargetDescription#vpc_id #vpc_id} => String
|
811
829
|
#
|
812
830
|
#
|
813
831
|
# @example Example: To create a new mount target
|
@@ -850,6 +868,7 @@ module Aws::EFS
|
|
850
868
|
# resp.network_interface_id #=> String
|
851
869
|
# resp.availability_zone_id #=> String
|
852
870
|
# resp.availability_zone_name #=> String
|
871
|
+
# resp.vpc_id #=> String
|
853
872
|
#
|
854
873
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget AWS API Documentation
|
855
874
|
#
|
@@ -1212,6 +1231,34 @@ module Aws::EFS
|
|
1212
1231
|
req.send_request(options)
|
1213
1232
|
end
|
1214
1233
|
|
1234
|
+
# Returns the backup policy for the specified EFS file system.
|
1235
|
+
#
|
1236
|
+
# @option params [required, String] :file_system_id
|
1237
|
+
# Specifies which EFS file system to retrieve the `BackupPolicy` for.
|
1238
|
+
#
|
1239
|
+
# @return [Types::BackupPolicyDescription] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1240
|
+
#
|
1241
|
+
# * {Types::BackupPolicyDescription#backup_policy #backup_policy} => Types::BackupPolicy
|
1242
|
+
#
|
1243
|
+
# @example Request syntax with placeholder values
|
1244
|
+
#
|
1245
|
+
# resp = client.describe_backup_policy({
|
1246
|
+
# file_system_id: "FileSystemId", # required
|
1247
|
+
# })
|
1248
|
+
#
|
1249
|
+
# @example Response structure
|
1250
|
+
#
|
1251
|
+
# resp.backup_policy.status #=> String, one of "ENABLED", "ENABLING", "DISABLED", "DISABLING"
|
1252
|
+
#
|
1253
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeBackupPolicy AWS API Documentation
|
1254
|
+
#
|
1255
|
+
# @overload describe_backup_policy(params = {})
|
1256
|
+
# @param [Hash] params ({})
|
1257
|
+
def describe_backup_policy(params = {}, options = {})
|
1258
|
+
req = build_request(:describe_backup_policy, params)
|
1259
|
+
req.send_request(options)
|
1260
|
+
end
|
1261
|
+
|
1215
1262
|
# Returns the `FileSystemPolicy` for the specified EFS file system.
|
1216
1263
|
#
|
1217
1264
|
# This operation requires permissions for the
|
@@ -1350,6 +1397,7 @@ module Aws::EFS
|
|
1350
1397
|
# resp.file_systems[0].owner_id #=> String
|
1351
1398
|
# resp.file_systems[0].creation_token #=> String
|
1352
1399
|
# resp.file_systems[0].file_system_id #=> String
|
1400
|
+
# resp.file_systems[0].file_system_arn #=> String
|
1353
1401
|
# resp.file_systems[0].creation_time #=> Time
|
1354
1402
|
# resp.file_systems[0].life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
1355
1403
|
# resp.file_systems[0].name #=> String
|
@@ -1466,7 +1514,7 @@ module Aws::EFS
|
|
1466
1514
|
# resp.to_h outputs the following:
|
1467
1515
|
# {
|
1468
1516
|
# security_groups: [
|
1469
|
-
# "sg-
|
1517
|
+
# "sg-4567abcd",
|
1470
1518
|
# ],
|
1471
1519
|
# }
|
1472
1520
|
#
|
@@ -1581,6 +1629,7 @@ module Aws::EFS
|
|
1581
1629
|
# resp.mount_targets[0].network_interface_id #=> String
|
1582
1630
|
# resp.mount_targets[0].availability_zone_id #=> String
|
1583
1631
|
# resp.mount_targets[0].availability_zone_name #=> String
|
1632
|
+
# resp.mount_targets[0].vpc_id #=> String
|
1584
1633
|
# resp.next_marker #=> String
|
1585
1634
|
#
|
1586
1635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargets AWS API Documentation
|
@@ -1770,6 +1819,41 @@ module Aws::EFS
|
|
1770
1819
|
req.send_request(options)
|
1771
1820
|
end
|
1772
1821
|
|
1822
|
+
# Updates the file system's backup policy. Use this action to start or
|
1823
|
+
# stop automatic backups of the file system.
|
1824
|
+
#
|
1825
|
+
# @option params [required, String] :file_system_id
|
1826
|
+
# Specifies which EFS file system to update the backup policy for.
|
1827
|
+
#
|
1828
|
+
# @option params [required, Types::BackupPolicy] :backup_policy
|
1829
|
+
# The backup policy included in the `PutBackupPolicy` request.
|
1830
|
+
#
|
1831
|
+
# @return [Types::BackupPolicyDescription] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1832
|
+
#
|
1833
|
+
# * {Types::BackupPolicyDescription#backup_policy #backup_policy} => Types::BackupPolicy
|
1834
|
+
#
|
1835
|
+
# @example Request syntax with placeholder values
|
1836
|
+
#
|
1837
|
+
# resp = client.put_backup_policy({
|
1838
|
+
# file_system_id: "FileSystemId", # required
|
1839
|
+
# backup_policy: { # required
|
1840
|
+
# status: "ENABLED", # required, accepts ENABLED, ENABLING, DISABLED, DISABLING
|
1841
|
+
# },
|
1842
|
+
# })
|
1843
|
+
#
|
1844
|
+
# @example Response structure
|
1845
|
+
#
|
1846
|
+
# resp.backup_policy.status #=> String, one of "ENABLED", "ENABLING", "DISABLED", "DISABLING"
|
1847
|
+
#
|
1848
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/PutBackupPolicy AWS API Documentation
|
1849
|
+
#
|
1850
|
+
# @overload put_backup_policy(params = {})
|
1851
|
+
# @param [Hash] params ({})
|
1852
|
+
def put_backup_policy(params = {}, options = {})
|
1853
|
+
req = build_request(:put_backup_policy, params)
|
1854
|
+
req.send_request(options)
|
1855
|
+
end
|
1856
|
+
|
1773
1857
|
# Applies an Amazon EFS `FileSystemPolicy` to an Amazon EFS file system.
|
1774
1858
|
# A file system policy is an IAM resource-based policy and can contain
|
1775
1859
|
# multiple policy statements. A file system always has exactly one file
|
@@ -2021,6 +2105,7 @@ module Aws::EFS
|
|
2021
2105
|
# * {Types::FileSystemDescription#owner_id #owner_id} => String
|
2022
2106
|
# * {Types::FileSystemDescription#creation_token #creation_token} => String
|
2023
2107
|
# * {Types::FileSystemDescription#file_system_id #file_system_id} => String
|
2108
|
+
# * {Types::FileSystemDescription#file_system_arn #file_system_arn} => String
|
2024
2109
|
# * {Types::FileSystemDescription#creation_time #creation_time} => Time
|
2025
2110
|
# * {Types::FileSystemDescription#life_cycle_state #life_cycle_state} => String
|
2026
2111
|
# * {Types::FileSystemDescription#name #name} => String
|
@@ -2046,6 +2131,7 @@ module Aws::EFS
|
|
2046
2131
|
# resp.owner_id #=> String
|
2047
2132
|
# resp.creation_token #=> String
|
2048
2133
|
# resp.file_system_id #=> String
|
2134
|
+
# resp.file_system_arn #=> String
|
2049
2135
|
# resp.creation_time #=> Time
|
2050
2136
|
# resp.life_cycle_state #=> String, one of "creating", "available", "updating", "deleting", "deleted"
|
2051
2137
|
# resp.name #=> String
|
@@ -2085,7 +2171,7 @@ module Aws::EFS
|
|
2085
2171
|
params: params,
|
2086
2172
|
config: config)
|
2087
2173
|
context[:gem_name] = 'aws-sdk-efs'
|
2088
|
-
context[:gem_version] = '1.
|
2174
|
+
context[:gem_version] = '1.36.0'
|
2089
2175
|
Seahorse::Client::Request.new(handlers, context)
|
2090
2176
|
end
|
2091
2177
|
|
@@ -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.36.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-
|
11
|
+
date: 2020-09-30 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.109.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.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|