aws-sdk-efs 1.127.0 → 1.128.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/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-efs/client.rb +168 -109
- data/lib/aws-sdk-efs/client_api.rb +48 -2
- data/lib/aws-sdk-efs/types.rb +162 -41
- data/lib/aws-sdk-efs.rb +1 -1
- data/sig/client.rbs +15 -0
- data/sig/types.rbs +25 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e924073b9b3aca7830c0afaa07997f60dee1cab0998ca69f10791cd856391269
|
|
4
|
+
data.tar.gz: f35503c35efbce99d572b58075b1ff7b45acceba66e30c48c344124839b22510
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44b5291090949e95f7cff3bc808bf5dff19bb50c8bf1a176971162e1fa9046d51360f35910aafb294fb44b6cd0fcd1b9ddd6720be11924f397e61f292ddb076c
|
|
7
|
+
data.tar.gz: df1fdffb32158a7089f7140c839c03d83eafd06dfc0628211797ae0c713dc513bad5a8566ea9e8b8bc05068b756df6f0e34e23bbddf3d63c4b190c7b392a5375
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.128.0
|
data/lib/aws-sdk-efs/client.rb
CHANGED
|
@@ -728,12 +728,12 @@ module Aws::EFS
|
|
|
728
728
|
# Default is `generalPurpose`.
|
|
729
729
|
#
|
|
730
730
|
# @option params [Boolean] :encrypted
|
|
731
|
-
#
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
# system.
|
|
731
|
+
# Specifies whether the file system is encrypted. As of September 4,
|
|
732
|
+
# 2026, Amazon EFS encrypts all new file systems. The file system is
|
|
733
|
+
# encrypted even if you set this value to `false`. When creating a file
|
|
734
|
+
# system, you can specify an existing Key Management Service key (KMS
|
|
735
|
+
# key). If you don't specify a KMS key, then the default KMS key for
|
|
736
|
+
# Amazon EFS, `/aws/elasticfilesystem`, protects the file system.
|
|
737
737
|
#
|
|
738
738
|
# @option params [String] :kms_key_id
|
|
739
739
|
# The ID of the KMS key that you want to use to protect the encrypted
|
|
@@ -754,9 +754,6 @@ module Aws::EFS
|
|
|
754
754
|
# * Key alias ARN - An ARN for a key alias, for example
|
|
755
755
|
# `arn:aws:kms:us-west-2:444455556666:alias/projectKey1`.
|
|
756
756
|
#
|
|
757
|
-
# If you use `KmsKeyId`, you must set the
|
|
758
|
-
# CreateFileSystemRequest$Encrypted parameter to true.
|
|
759
|
-
#
|
|
760
757
|
# EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS
|
|
761
758
|
# keys with Amazon EFS file systems.
|
|
762
759
|
#
|
|
@@ -952,92 +949,137 @@ module Aws::EFS
|
|
|
952
949
|
req.send_request(options)
|
|
953
950
|
end
|
|
954
951
|
|
|
955
|
-
# Creates a mount
|
|
956
|
-
#
|
|
952
|
+
# Creates a mount session for an Amazon EFS file system and returns a
|
|
953
|
+
# set of endpoints that you can use to mount the file system. Each
|
|
954
|
+
# endpoint includes an IP address, a port, and a mount token that a
|
|
955
|
+
# client presents when it connects to the endpoint.
|
|
957
956
|
#
|
|
958
|
-
#
|
|
959
|
-
#
|
|
960
|
-
# single mount target for a given file system. If you have multiple
|
|
961
|
-
# subnets in an Availability Zone, you create a mount target in one of
|
|
962
|
-
# the subnets. EC2 instances do not need to be in the same subnet as the
|
|
963
|
-
# mount target in order to access their file system.
|
|
957
|
+
# To create a mount session, the file system's lifecycle state must be
|
|
958
|
+
# `available`. For more information, see DescribeFileSystems.
|
|
964
959
|
#
|
|
965
|
-
#
|
|
966
|
-
#
|
|
967
|
-
# the file system is located. Use the `AvailabilityZoneName` and
|
|
968
|
-
# `AvailabiltyZoneId` properties in the DescribeFileSystems response
|
|
969
|
-
# object to get this information. Use the `subnetId` associated with the
|
|
970
|
-
# file system's Availability Zone when creating the mount target.
|
|
960
|
+
# This operation requires permissions for the
|
|
961
|
+
# `elasticfilesystem:CreateMountSession` action.
|
|
971
962
|
#
|
|
972
|
-
#
|
|
963
|
+
# @option params [required, String] :file_system_id
|
|
964
|
+
# The ID of the file system for which to create the mount session.
|
|
973
965
|
#
|
|
974
|
-
#
|
|
975
|
-
#
|
|
976
|
-
#
|
|
966
|
+
# @option params [String] :preferred_availability_zone_id
|
|
967
|
+
# The ID of the Availability Zone (for example, `use1-az1`) in which you
|
|
968
|
+
# prefer the returned endpoints to be located. The Availability Zone
|
|
969
|
+
# must be in the same Amazon Web Services Region as the file system.
|
|
970
|
+
# This preference is best effort: if Amazon EFS can't provide an
|
|
971
|
+
# endpoint in the preferred Availability Zone, it returns endpoints in
|
|
972
|
+
# another Availability Zone instead of failing the request. If you
|
|
973
|
+
# don't specify a value, Amazon EFS returns endpoints without an
|
|
974
|
+
# Availability Zone preference.
|
|
977
975
|
#
|
|
978
|
-
#
|
|
976
|
+
# @option params [String] :network_origin
|
|
977
|
+
# Indicates whether the client connects to the file system from within
|
|
978
|
+
# the Amazon Web Services Cloud (`AWS_NETWORK`). External network
|
|
979
|
+
# (`EXTERNAL_NETWORK`) connections are not supported.
|
|
979
980
|
#
|
|
980
|
-
#
|
|
981
|
+
# @return [Types::CreateMountSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
981
982
|
#
|
|
982
|
-
#
|
|
983
|
+
# * {Types::CreateMountSessionResponse#file_system_id #file_system_id} => String
|
|
984
|
+
# * {Types::CreateMountSessionResponse#preferred_availability_zone_id #preferred_availability_zone_id} => String
|
|
985
|
+
# * {Types::CreateMountSessionResponse#endpoints #endpoints} => Array<Types::MountSessionEndpoint>
|
|
983
986
|
#
|
|
984
|
-
# * The VPC in which Amazon EFS creates the mount target
|
|
985
987
|
#
|
|
986
|
-
#
|
|
988
|
+
# @example Example: To create a mount session
|
|
987
989
|
#
|
|
988
|
-
#
|
|
989
|
-
#
|
|
990
|
-
# request)
|
|
990
|
+
# # This operation creates a mount session for an EFS file system and returns an endpoint in the preferred Availability
|
|
991
|
+
# # Zone.
|
|
991
992
|
#
|
|
992
|
-
#
|
|
993
|
-
#
|
|
994
|
-
#
|
|
995
|
-
#
|
|
996
|
-
# EC2 instance on which you mount the file system by using the mount
|
|
997
|
-
# target can resolve the mount target's DNS name to its IP address. For
|
|
998
|
-
# more information, see [How it Works: Implementation Overview][2].
|
|
993
|
+
# resp = client.create_mount_session({
|
|
994
|
+
# file_system_id: "fs-01234567",
|
|
995
|
+
# preferred_availability_zone_id: "use1-az1",
|
|
996
|
+
# })
|
|
999
997
|
#
|
|
1000
|
-
#
|
|
1001
|
-
#
|
|
1002
|
-
#
|
|
1003
|
-
#
|
|
1004
|
-
#
|
|
998
|
+
# resp.to_h outputs the following:
|
|
999
|
+
# {
|
|
1000
|
+
# endpoints: [
|
|
1001
|
+
# {
|
|
1002
|
+
# availability_zone_id: "use1-az1",
|
|
1003
|
+
# ipv_4_address: "192.0.2.10",
|
|
1004
|
+
# ipv_6_address: "2001:db8::10",
|
|
1005
|
+
# issued_at: Time.parse("1764590400.0"),
|
|
1006
|
+
# mount_token: "EXAMPLE-MOUNT-TOKEN",
|
|
1007
|
+
# port: 443,
|
|
1008
|
+
# },
|
|
1009
|
+
# ],
|
|
1010
|
+
# file_system_id: "fs-01234567",
|
|
1011
|
+
# preferred_availability_zone_id: "use1-az1",
|
|
1012
|
+
# }
|
|
1013
|
+
#
|
|
1014
|
+
# @example Request syntax with placeholder values
|
|
1005
1015
|
#
|
|
1006
|
-
#
|
|
1007
|
-
#
|
|
1016
|
+
# resp = client.create_mount_session({
|
|
1017
|
+
# file_system_id: "FileSystemId", # required
|
|
1018
|
+
# preferred_availability_zone_id: "AvailabilityZoneId",
|
|
1019
|
+
# network_origin: "AWS_NETWORK", # accepts AWS_NETWORK, EXTERNAL_NETWORK
|
|
1020
|
+
# })
|
|
1008
1021
|
#
|
|
1009
|
-
#
|
|
1010
|
-
#
|
|
1022
|
+
# @example Response structure
|
|
1023
|
+
#
|
|
1024
|
+
# resp.file_system_id #=> String
|
|
1025
|
+
# resp.preferred_availability_zone_id #=> String
|
|
1026
|
+
# resp.endpoints #=> Array
|
|
1027
|
+
# resp.endpoints[0].availability_zone_id #=> String
|
|
1028
|
+
# resp.endpoints[0].ipv_4_address #=> String
|
|
1029
|
+
# resp.endpoints[0].ipv_6_address #=> String
|
|
1030
|
+
# resp.endpoints[0].port #=> Integer
|
|
1031
|
+
# resp.endpoints[0].mount_token #=> String
|
|
1032
|
+
# resp.endpoints[0].issued_at #=> Time
|
|
1033
|
+
#
|
|
1034
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountSession AWS API Documentation
|
|
1035
|
+
#
|
|
1036
|
+
# @overload create_mount_session(params = {})
|
|
1037
|
+
# @param [Hash] params ({})
|
|
1038
|
+
def create_mount_session(params = {}, options = {})
|
|
1039
|
+
req = build_request(:create_mount_session, params)
|
|
1040
|
+
req.send_request(options)
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
# Creates a mount target for a file system. You can then mount the file
|
|
1044
|
+
# system on EC2 instances by using the mount target. For more
|
|
1045
|
+
# information about mount targets, see [Managing mount targets][1].
|
|
1046
|
+
#
|
|
1047
|
+
# To create a mount target for an EFS file system, the file system's
|
|
1048
|
+
# lifecycle state must be `available`. For more information, see
|
|
1049
|
+
# DescribeFileSystems.
|
|
1050
|
+
#
|
|
1051
|
+
# After creating the mount target, Amazon EFS returns a response that
|
|
1052
|
+
# includes a `MountTargetId` and an IP address (`IpAddress` or
|
|
1053
|
+
# `Ipv6Address`). You use this IP address when mounting the file system
|
|
1054
|
+
# in an EC2 instance. You can also use the mount target's DNS name when
|
|
1055
|
+
# mounting the file system. The EC2 instance on which you mount the file
|
|
1056
|
+
# system by using the mount target can resolve the mount target's DNS
|
|
1057
|
+
# name to its IP address. For more information, see [How Amazon EFS
|
|
1058
|
+
# works][2].
|
|
1059
|
+
#
|
|
1060
|
+
# Note that you can create mount targets for a file system in only one
|
|
1061
|
+
# VPC, and there can be only one mount target per Availability Zone. For
|
|
1062
|
+
# more information, see [Creating mount targets][3].
|
|
1011
1063
|
#
|
|
1012
1064
|
# If the request satisfies the requirements, Amazon EFS does the
|
|
1013
1065
|
# following:
|
|
1014
1066
|
#
|
|
1015
1067
|
# * Creates a new mount target in the specified subnet.
|
|
1016
1068
|
#
|
|
1017
|
-
# *
|
|
1018
|
-
#
|
|
1019
|
-
# * If the request provides an `IpAddress`, Amazon EFS assigns that IP
|
|
1020
|
-
# address to the network interface. Otherwise, Amazon EFS assigns a
|
|
1021
|
-
# free address in the subnet (in the same way that the Amazon EC2
|
|
1022
|
-
# `CreateNetworkInterface` call does when a request does not specify
|
|
1023
|
-
# a primary private IP address).
|
|
1069
|
+
# * Creates a new network interface in the subnet with the folowing:
|
|
1024
1070
|
#
|
|
1025
|
-
# *
|
|
1026
|
-
#
|
|
1027
|
-
#
|
|
1071
|
+
# * The description `Mount target fsmt-id for file system fs-id `
|
|
1072
|
+
# where ` fsmt-id ` is the mount target ID, and ` fs-id ` is the
|
|
1073
|
+
# `FileSystemId`.
|
|
1028
1074
|
#
|
|
1029
|
-
# *
|
|
1030
|
-
#
|
|
1031
|
-
#
|
|
1032
|
-
#
|
|
1033
|
-
#
|
|
1034
|
-
#
|
|
1035
|
-
#
|
|
1036
|
-
#
|
|
1037
|
-
# Amazon EFS sets the `NetworkInterfaceId` field in the mount
|
|
1038
|
-
# target's description to the network interface ID, and the
|
|
1039
|
-
# `IpAddress` field to its address. If network interface creation
|
|
1040
|
-
# fails, the entire `CreateMountTarget` operation fails.
|
|
1075
|
+
# * The `requesterManaged` property of the network interface set to
|
|
1076
|
+
# `true`, and the `requesterId` value set to `EFS`.
|
|
1077
|
+
# Each mount target has one corresponding requester-managed EC2
|
|
1078
|
+
# network interface. After the network interface is created, Amazon
|
|
1079
|
+
# EFS sets the `NetworkInterfaceId` field in the mount target's
|
|
1080
|
+
# description to the network interface ID, and the IP address to its
|
|
1081
|
+
# address. If network interface creation fails, the entire
|
|
1082
|
+
# `CreateMountTarget` operation fails.
|
|
1041
1083
|
#
|
|
1042
1084
|
# <note markdown="1"> The `CreateMountTarget` call returns only after creating the network
|
|
1043
1085
|
# interface, but while the mount target state is still `creating`, you
|
|
@@ -1047,16 +1089,6 @@ module Aws::EFS
|
|
|
1047
1089
|
#
|
|
1048
1090
|
# </note>
|
|
1049
1091
|
#
|
|
1050
|
-
# We recommend that you create a mount target in each of the
|
|
1051
|
-
# Availability Zones. There are cost considerations for using a file
|
|
1052
|
-
# system in an Availability Zone through a mount target created in
|
|
1053
|
-
# another Availability Zone. For more information, see [Amazon EFS
|
|
1054
|
-
# pricing][3]. In addition, by always using a mount target local to the
|
|
1055
|
-
# instance's Availability Zone, you eliminate a partial failure
|
|
1056
|
-
# scenario. If the Availability Zone in which your mount target is
|
|
1057
|
-
# created goes down, then you can't access your file system through
|
|
1058
|
-
# that mount target.
|
|
1059
|
-
#
|
|
1060
1092
|
# This operation requires permissions for the following action on the
|
|
1061
1093
|
# file system:
|
|
1062
1094
|
#
|
|
@@ -1064,8 +1096,9 @@ module Aws::EFS
|
|
|
1064
1096
|
#
|
|
1065
1097
|
# ^
|
|
1066
1098
|
#
|
|
1067
|
-
#
|
|
1068
|
-
# actions
|
|
1099
|
+
# Unless you use the [Amazon EFS service-linked role][4], which performs
|
|
1100
|
+
# these actions on your behalf by default, this operation also requires
|
|
1101
|
+
# permissions for the following Amazon EC2 actions:
|
|
1069
1102
|
#
|
|
1070
1103
|
# * `ec2:DescribeSubnets`
|
|
1071
1104
|
#
|
|
@@ -1075,9 +1108,10 @@ module Aws::EFS
|
|
|
1075
1108
|
#
|
|
1076
1109
|
#
|
|
1077
1110
|
#
|
|
1078
|
-
# [1]: https://docs.aws.amazon.com/efs/latest/ug/
|
|
1079
|
-
# [2]: https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html
|
|
1080
|
-
# [3]:
|
|
1111
|
+
# [1]: https://docs.aws.amazon.com/efs/latest/ug/accessing-fs.html
|
|
1112
|
+
# [2]: https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html
|
|
1113
|
+
# [3]: https://docs.aws.amazon.com/efs/latest/ug/manage-fs-access-create-delete-mount-targets.html
|
|
1114
|
+
# [4]: https://docs.aws.amazon.com/efs/latest/ug/using-service-linked-roles.html
|
|
1081
1115
|
#
|
|
1082
1116
|
# @option params [required, String] :file_system_id
|
|
1083
1117
|
# The ID of the file system for which to create the mount target.
|
|
@@ -1085,39 +1119,47 @@ module Aws::EFS
|
|
|
1085
1119
|
# @option params [required, String] :subnet_id
|
|
1086
1120
|
# The ID of the subnet to add the mount target in. For One Zone file
|
|
1087
1121
|
# systems, use the subnet that is associated with the file system's
|
|
1088
|
-
# Availability Zone.
|
|
1122
|
+
# Availability Zone. The subnet type must be the same type as the
|
|
1123
|
+
# `IpAddressType`.
|
|
1089
1124
|
#
|
|
1090
1125
|
# @option params [String] :ip_address
|
|
1091
|
-
# If the
|
|
1092
|
-
#
|
|
1126
|
+
# If the `IpAddressType` for the mount target is IPv4 ( `IPV4_ONLY` or
|
|
1127
|
+
# `DUAL_STACK`), then specify the IPv4 address to use. If you do not
|
|
1128
|
+
# specify an `IpAddress`, then Amazon EFS selects an unused IP address
|
|
1129
|
+
# from the subnet specified for `SubnetId`.
|
|
1093
1130
|
#
|
|
1094
1131
|
# @option params [String] :ipv_6_address
|
|
1095
|
-
# If the
|
|
1096
|
-
#
|
|
1132
|
+
# If the `IPAddressType` for the mount target is IPv6 (`IPV6_ONLY` or
|
|
1133
|
+
# `DUAL_STACK`), then specify the IPv6 address to use. If you do not
|
|
1134
|
+
# specify an `Ipv6Address`, then Amazon EFS selects an unused IP address
|
|
1135
|
+
# from the subnet specified for `SubnetId`.
|
|
1097
1136
|
#
|
|
1098
1137
|
# @option params [String] :ip_address_type
|
|
1099
|
-
#
|
|
1100
|
-
#
|
|
1101
|
-
#
|
|
1102
|
-
#
|
|
1103
|
-
#
|
|
1104
|
-
#
|
|
1138
|
+
# The IP address type for the mount target. The possible values are
|
|
1139
|
+
# `IPV4_ONLY` (only IPv4 addresses), `IPV6_ONLY` (only IPv6 addresses),
|
|
1140
|
+
# and `DUAL_STACK` (dual-stack, both IPv4 and IPv6 addresses). If you
|
|
1141
|
+
# don’t specify an `IpAddressType`, then `IPV4_ONLY` is used.
|
|
1142
|
+
#
|
|
1143
|
+
# <note markdown="1"> The `IPAddressType` must match the IP type of the subnet.
|
|
1144
|
+
# Additionally, the `IPAddressType` parameter overrides the value set as
|
|
1145
|
+
# the default IP address for the subnet in the VPC. For example, if the
|
|
1146
|
+
# `IPAddressType` is `IPV4_ONLY` and `AssignIpv6AddressOnCreation` is
|
|
1147
|
+
# `true`, then IPv4 is used for the mount target. For more information,
|
|
1148
|
+
# see [Modify the IP addressing attributes of your subnet][1].
|
|
1105
1149
|
#
|
|
1106
|
-
#
|
|
1150
|
+
# </note>
|
|
1107
1151
|
#
|
|
1108
|
-
# * IPV6\_ONLY – Create mount target with IPv6 only subnet.
|
|
1109
1152
|
#
|
|
1110
|
-
# <note markdown="1"> Creating IPv6 mount target only ENI in dual-stack subnet is not
|
|
1111
|
-
# supported.
|
|
1112
1153
|
#
|
|
1113
|
-
#
|
|
1154
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/subnet-public-ip.html
|
|
1114
1155
|
#
|
|
1115
1156
|
# @option params [Array<String>] :security_groups
|
|
1116
1157
|
# VPC security group IDs, of the form `sg-xxxxxxxx`. These must be for
|
|
1117
1158
|
# the same VPC as the subnet specified. The maximum number of security
|
|
1118
1159
|
# groups depends on account quota. For more information, see [Amazon VPC
|
|
1119
1160
|
# Quotas][1] in the *Amazon VPC User Guide* (see the **Security Groups**
|
|
1120
|
-
# table).
|
|
1161
|
+
# table). If you don't specify a security group, then Amazon EFS uses
|
|
1162
|
+
# the default security group for the subnet's VPC.
|
|
1121
1163
|
#
|
|
1122
1164
|
#
|
|
1123
1165
|
#
|
|
@@ -1136,6 +1178,7 @@ module Aws::EFS
|
|
|
1136
1178
|
# * {Types::MountTargetDescription#availability_zone_id #availability_zone_id} => String
|
|
1137
1179
|
# * {Types::MountTargetDescription#availability_zone_name #availability_zone_name} => String
|
|
1138
1180
|
# * {Types::MountTargetDescription#vpc_id #vpc_id} => String
|
|
1181
|
+
# * {Types::MountTargetDescription#status_message #status_message} => String
|
|
1139
1182
|
#
|
|
1140
1183
|
#
|
|
1141
1184
|
# @example Example: To create a new mount target
|
|
@@ -1182,6 +1225,7 @@ module Aws::EFS
|
|
|
1182
1225
|
# resp.availability_zone_id #=> String
|
|
1183
1226
|
# resp.availability_zone_name #=> String
|
|
1184
1227
|
# resp.vpc_id #=> String
|
|
1228
|
+
# resp.status_message #=> String
|
|
1185
1229
|
#
|
|
1186
1230
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget AWS API Documentation
|
|
1187
1231
|
#
|
|
@@ -1491,13 +1535,19 @@ module Aws::EFS
|
|
|
1491
1535
|
#
|
|
1492
1536
|
# </note>
|
|
1493
1537
|
#
|
|
1494
|
-
#
|
|
1495
|
-
# action on
|
|
1538
|
+
# Unless you use the [Amazon EFS service-linked role][1], which performs
|
|
1539
|
+
# this action on your behalf by default, this operation also requires
|
|
1540
|
+
# permissions for the following Amazon EC2 action on the mount target's
|
|
1541
|
+
# network interface:
|
|
1496
1542
|
#
|
|
1497
1543
|
# * `ec2:DeleteNetworkInterface`
|
|
1498
1544
|
#
|
|
1499
1545
|
# ^
|
|
1500
1546
|
#
|
|
1547
|
+
#
|
|
1548
|
+
#
|
|
1549
|
+
# [1]: https://docs.aws.amazon.com/efs/latest/ug/using-service-linked-roles.html
|
|
1550
|
+
#
|
|
1501
1551
|
# @option params [required, String] :mount_target_id
|
|
1502
1552
|
# The ID of the mount target to delete (String).
|
|
1503
1553
|
#
|
|
@@ -2077,6 +2127,8 @@ module Aws::EFS
|
|
|
2077
2127
|
# system ID that you specify in `FileSystemId`, or on the file system of
|
|
2078
2128
|
# the mount target that you specify in `MountTargetId`.
|
|
2079
2129
|
#
|
|
2130
|
+
# The corresponding CLI command is `describe-mount-targets`.
|
|
2131
|
+
#
|
|
2080
2132
|
# @option params [Integer] :max_items
|
|
2081
2133
|
# (Optional) Maximum number of mount targets to return in the response.
|
|
2082
2134
|
# Currently, this number is automatically set to 10, and other values
|
|
@@ -2162,6 +2214,7 @@ module Aws::EFS
|
|
|
2162
2214
|
# resp.mount_targets[0].availability_zone_id #=> String
|
|
2163
2215
|
# resp.mount_targets[0].availability_zone_name #=> String
|
|
2164
2216
|
# resp.mount_targets[0].vpc_id #=> String
|
|
2217
|
+
# resp.mount_targets[0].status_message #=> String
|
|
2165
2218
|
# resp.next_marker #=> String
|
|
2166
2219
|
#
|
|
2167
2220
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargets AWS API Documentation
|
|
@@ -2382,7 +2435,13 @@ module Aws::EFS
|
|
|
2382
2435
|
# mount target's file system.
|
|
2383
2436
|
#
|
|
2384
2437
|
# * `ec2:ModifyNetworkInterfaceAttribute` action on the mount target's
|
|
2385
|
-
# network interface.
|
|
2438
|
+
# network interface. Unless you use the [Amazon EFS service-linked
|
|
2439
|
+
# role][1], which performs this action on your behalf by default, you
|
|
2440
|
+
# must have this permission.
|
|
2441
|
+
#
|
|
2442
|
+
#
|
|
2443
|
+
#
|
|
2444
|
+
# [1]: https://docs.aws.amazon.com/efs/latest/ug/using-service-linked-roles.html
|
|
2386
2445
|
#
|
|
2387
2446
|
# @option params [required, String] :mount_target_id
|
|
2388
2447
|
# The ID of the mount target whose security groups you want to modify.
|
|
@@ -2973,7 +3032,7 @@ module Aws::EFS
|
|
|
2973
3032
|
tracer: tracer
|
|
2974
3033
|
)
|
|
2975
3034
|
context[:gem_name] = 'aws-sdk-efs'
|
|
2976
|
-
context[:gem_version] = '1.
|
|
3035
|
+
context[:gem_version] = '1.128.0'
|
|
2977
3036
|
Seahorse::Client::Request.new(handlers, context)
|
|
2978
3037
|
end
|
|
2979
3038
|
|
|
@@ -34,6 +34,8 @@ module Aws::EFS
|
|
|
34
34
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
35
35
|
CreateAccessPointRequest = Shapes::StructureShape.new(name: 'CreateAccessPointRequest')
|
|
36
36
|
CreateFileSystemRequest = Shapes::StructureShape.new(name: 'CreateFileSystemRequest')
|
|
37
|
+
CreateMountSessionRequest = Shapes::StructureShape.new(name: 'CreateMountSessionRequest')
|
|
38
|
+
CreateMountSessionResponse = Shapes::StructureShape.new(name: 'CreateMountSessionResponse')
|
|
37
39
|
CreateMountTargetRequest = Shapes::StructureShape.new(name: 'CreateMountTargetRequest')
|
|
38
40
|
CreateReplicationConfigurationRequest = Shapes::StructureShape.new(name: 'CreateReplicationConfigurationRequest')
|
|
39
41
|
CreateTagsRequest = Shapes::StructureShape.new(name: 'CreateTagsRequest')
|
|
@@ -105,15 +107,20 @@ module Aws::EFS
|
|
|
105
107
|
MaxItems = Shapes::IntegerShape.new(name: 'MaxItems')
|
|
106
108
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
107
109
|
ModifyMountTargetSecurityGroupsRequest = Shapes::StructureShape.new(name: 'ModifyMountTargetSecurityGroupsRequest')
|
|
110
|
+
MountSessionEndpoint = Shapes::StructureShape.new(name: 'MountSessionEndpoint')
|
|
111
|
+
MountSessionEndpoints = Shapes::ListShape.new(name: 'MountSessionEndpoints')
|
|
112
|
+
MountSessionPort = Shapes::IntegerShape.new(name: 'MountSessionPort')
|
|
108
113
|
MountTargetConflict = Shapes::StructureShape.new(name: 'MountTargetConflict')
|
|
109
114
|
MountTargetCount = Shapes::IntegerShape.new(name: 'MountTargetCount')
|
|
110
115
|
MountTargetDescription = Shapes::StructureShape.new(name: 'MountTargetDescription')
|
|
111
116
|
MountTargetDescriptions = Shapes::ListShape.new(name: 'MountTargetDescriptions')
|
|
112
117
|
MountTargetId = Shapes::StringShape.new(name: 'MountTargetId')
|
|
113
118
|
MountTargetNotFound = Shapes::StructureShape.new(name: 'MountTargetNotFound')
|
|
119
|
+
MountToken = Shapes::StringShape.new(name: 'MountToken')
|
|
114
120
|
Name = Shapes::StringShape.new(name: 'Name')
|
|
115
121
|
NetworkInterfaceId = Shapes::StringShape.new(name: 'NetworkInterfaceId')
|
|
116
122
|
NetworkInterfaceLimitExceeded = Shapes::StructureShape.new(name: 'NetworkInterfaceLimitExceeded')
|
|
123
|
+
NetworkOrigin = Shapes::StringShape.new(name: 'NetworkOrigin')
|
|
117
124
|
NoFreeAddressesInSubnet = Shapes::StructureShape.new(name: 'NoFreeAddressesInSubnet')
|
|
118
125
|
OwnerGid = Shapes::IntegerShape.new(name: 'OwnerGid')
|
|
119
126
|
OwnerUid = Shapes::IntegerShape.new(name: 'OwnerUid')
|
|
@@ -238,6 +245,16 @@ module Aws::EFS
|
|
|
238
245
|
CreateFileSystemRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
|
239
246
|
CreateFileSystemRequest.struct_class = Types::CreateFileSystemRequest
|
|
240
247
|
|
|
248
|
+
CreateMountSessionRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location: "uri", location_name: "FileSystemId"))
|
|
249
|
+
CreateMountSessionRequest.add_member(:preferred_availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "PreferredAvailabilityZoneId"))
|
|
250
|
+
CreateMountSessionRequest.add_member(:network_origin, Shapes::ShapeRef.new(shape: NetworkOrigin, location_name: "NetworkOrigin"))
|
|
251
|
+
CreateMountSessionRequest.struct_class = Types::CreateMountSessionRequest
|
|
252
|
+
|
|
253
|
+
CreateMountSessionResponse.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, location_name: "FileSystemId"))
|
|
254
|
+
CreateMountSessionResponse.add_member(:preferred_availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "PreferredAvailabilityZoneId"))
|
|
255
|
+
CreateMountSessionResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: MountSessionEndpoints, location_name: "Endpoints"))
|
|
256
|
+
CreateMountSessionResponse.struct_class = Types::CreateMountSessionResponse
|
|
257
|
+
|
|
241
258
|
CreateMountTargetRequest.add_member(:file_system_id, Shapes::ShapeRef.new(shape: FileSystemId, required: true, location_name: "FileSystemId"))
|
|
242
259
|
CreateMountTargetRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
|
|
243
260
|
CreateMountTargetRequest.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "IpAddress"))
|
|
@@ -293,8 +310,8 @@ module Aws::EFS
|
|
|
293
310
|
DescribeAccessPointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
|
294
311
|
DescribeAccessPointsResponse.struct_class = Types::DescribeAccessPointsResponse
|
|
295
312
|
|
|
296
|
-
DescribeAccountPreferencesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
|
297
|
-
DescribeAccountPreferencesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
|
313
|
+
DescribeAccountPreferencesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "NextToken"))
|
|
314
|
+
DescribeAccountPreferencesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
|
|
298
315
|
DescribeAccountPreferencesRequest.struct_class = Types::DescribeAccountPreferencesRequest
|
|
299
316
|
|
|
300
317
|
DescribeAccountPreferencesResponse.add_member(:resource_id_preference, Shapes::ShapeRef.new(shape: ResourceIdPreference, location_name: "ResourceIdPreference"))
|
|
@@ -478,6 +495,16 @@ module Aws::EFS
|
|
|
478
495
|
ModifyMountTargetSecurityGroupsRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroups, location_name: "SecurityGroups"))
|
|
479
496
|
ModifyMountTargetSecurityGroupsRequest.struct_class = Types::ModifyMountTargetSecurityGroupsRequest
|
|
480
497
|
|
|
498
|
+
MountSessionEndpoint.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
|
|
499
|
+
MountSessionEndpoint.add_member(:ipv_4_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "Ipv4Address"))
|
|
500
|
+
MountSessionEndpoint.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: Ipv6Address, location_name: "Ipv6Address"))
|
|
501
|
+
MountSessionEndpoint.add_member(:port, Shapes::ShapeRef.new(shape: MountSessionPort, location_name: "Port"))
|
|
502
|
+
MountSessionEndpoint.add_member(:mount_token, Shapes::ShapeRef.new(shape: MountToken, location_name: "MountToken"))
|
|
503
|
+
MountSessionEndpoint.add_member(:issued_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "IssuedAt"))
|
|
504
|
+
MountSessionEndpoint.struct_class = Types::MountSessionEndpoint
|
|
505
|
+
|
|
506
|
+
MountSessionEndpoints.member = Shapes::ShapeRef.new(shape: MountSessionEndpoint)
|
|
507
|
+
|
|
481
508
|
MountTargetConflict.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "ErrorCode"))
|
|
482
509
|
MountTargetConflict.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
|
483
510
|
MountTargetConflict.struct_class = Types::MountTargetConflict
|
|
@@ -493,6 +520,7 @@ module Aws::EFS
|
|
|
493
520
|
MountTargetDescription.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
|
|
494
521
|
MountTargetDescription.add_member(:availability_zone_name, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZoneName"))
|
|
495
522
|
MountTargetDescription.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
|
|
523
|
+
MountTargetDescription.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "StatusMessage"))
|
|
496
524
|
MountTargetDescription.struct_class = Types::MountTargetDescription
|
|
497
525
|
|
|
498
526
|
MountTargetDescriptions.member = Shapes::ShapeRef.new(shape: MountTargetDescription)
|
|
@@ -674,6 +702,20 @@ module Aws::EFS
|
|
|
674
702
|
o.errors << Shapes::ShapeRef.new(shape: InsufficientThroughputCapacity)
|
|
675
703
|
o.errors << Shapes::ShapeRef.new(shape: ThroughputLimitExceeded)
|
|
676
704
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAvailabilityZone)
|
|
705
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
706
|
+
end)
|
|
707
|
+
|
|
708
|
+
api.add_operation(:create_mount_session, Seahorse::Model::Operation.new.tap do |o|
|
|
709
|
+
o.name = "CreateMountSession"
|
|
710
|
+
o.http_method = "POST"
|
|
711
|
+
o.http_request_uri = "/2015-02-01/file-systems/{FileSystemId}/mount-sessions"
|
|
712
|
+
o.input = Shapes::ShapeRef.new(shape: CreateMountSessionRequest)
|
|
713
|
+
o.output = Shapes::ShapeRef.new(shape: CreateMountSessionResponse)
|
|
714
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequest)
|
|
715
|
+
o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
|
|
716
|
+
o.errors << Shapes::ShapeRef.new(shape: IncorrectFileSystemLifeCycleState)
|
|
717
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
|
718
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
677
719
|
end)
|
|
678
720
|
|
|
679
721
|
api.add_operation(:create_mount_target, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -695,6 +737,7 @@ module Aws::EFS
|
|
|
695
737
|
o.errors << Shapes::ShapeRef.new(shape: SecurityGroupNotFound)
|
|
696
738
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAvailabilityZone)
|
|
697
739
|
o.errors << Shapes::ShapeRef.new(shape: AvailabilityZonesMismatch)
|
|
740
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
698
741
|
end)
|
|
699
742
|
|
|
700
743
|
api.add_operation(:create_replication_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -773,6 +816,7 @@ module Aws::EFS
|
|
|
773
816
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
|
774
817
|
o.errors << Shapes::ShapeRef.new(shape: DependencyTimeout)
|
|
775
818
|
o.errors << Shapes::ShapeRef.new(shape: MountTargetNotFound)
|
|
819
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
776
820
|
end)
|
|
777
821
|
|
|
778
822
|
api.add_operation(:delete_replication_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -785,6 +829,7 @@ module Aws::EFS
|
|
|
785
829
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
|
786
830
|
o.errors << Shapes::ShapeRef.new(shape: FileSystemNotFound)
|
|
787
831
|
o.errors << Shapes::ShapeRef.new(shape: ReplicationNotFound)
|
|
832
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
788
833
|
end)
|
|
789
834
|
|
|
790
835
|
api.add_operation(:delete_tags, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -977,6 +1022,7 @@ module Aws::EFS
|
|
|
977
1022
|
o.errors << Shapes::ShapeRef.new(shape: IncorrectMountTargetState)
|
|
978
1023
|
o.errors << Shapes::ShapeRef.new(shape: SecurityGroupLimitExceeded)
|
|
979
1024
|
o.errors << Shapes::ShapeRef.new(shape: SecurityGroupNotFound)
|
|
1025
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
980
1026
|
end)
|
|
981
1027
|
|
|
982
1028
|
api.add_operation(:put_account_preferences, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-efs/types.rb
CHANGED
|
@@ -170,14 +170,13 @@ module Aws::EFS
|
|
|
170
170
|
include Aws::Structure
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
# Returned if the Availability Zone that was specified for
|
|
174
|
-
# target is different from the Availability Zone
|
|
175
|
-
#
|
|
176
|
-
# storage redundancy][1].
|
|
173
|
+
# Returned if the Availability Zone that was specified for the mount
|
|
174
|
+
# target is different from the file system's Availability Zone. For
|
|
175
|
+
# more information, see [Regional and One Zone storage redundancy][1].
|
|
177
176
|
#
|
|
178
177
|
#
|
|
179
178
|
#
|
|
180
|
-
# [1]: https://docs.aws.amazon.com/efs/latest/ug/
|
|
179
|
+
# [1]: https://docs.aws.amazon.com/efs/latest/ug/accessing-fs
|
|
181
180
|
#
|
|
182
181
|
# @!attribute [rw] error_code
|
|
183
182
|
# The error code is a string that uniquely identifies an error
|
|
@@ -388,12 +387,12 @@ module Aws::EFS
|
|
|
388
387
|
# @return [String]
|
|
389
388
|
#
|
|
390
389
|
# @!attribute [rw] encrypted
|
|
391
|
-
#
|
|
392
|
-
#
|
|
393
|
-
#
|
|
394
|
-
#
|
|
395
|
-
#
|
|
396
|
-
# system.
|
|
390
|
+
# Specifies whether the file system is encrypted. As of September 4,
|
|
391
|
+
# 2026, Amazon EFS encrypts all new file systems. The file system is
|
|
392
|
+
# encrypted even if you set this value to `false`. When creating a
|
|
393
|
+
# file system, you can specify an existing Key Management Service key
|
|
394
|
+
# (KMS key). If you don't specify a KMS key, then the default KMS key
|
|
395
|
+
# for Amazon EFS, `/aws/elasticfilesystem`, protects the file system.
|
|
397
396
|
# @return [Boolean]
|
|
398
397
|
#
|
|
399
398
|
# @!attribute [rw] kms_key_id
|
|
@@ -415,9 +414,6 @@ module Aws::EFS
|
|
|
415
414
|
# * Key alias ARN - An ARN for a key alias, for example
|
|
416
415
|
# `arn:aws:kms:us-west-2:444455556666:alias/projectKey1`.
|
|
417
416
|
#
|
|
418
|
-
# If you use `KmsKeyId`, you must set the
|
|
419
|
-
# CreateFileSystemRequest$Encrypted parameter to true.
|
|
420
|
-
#
|
|
421
417
|
# EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS
|
|
422
418
|
# keys with Amazon EFS file systems.
|
|
423
419
|
# @return [String]
|
|
@@ -519,6 +515,68 @@ module Aws::EFS
|
|
|
519
515
|
include Aws::Structure
|
|
520
516
|
end
|
|
521
517
|
|
|
518
|
+
# The parameters for creating a mount session for an Amazon EFS file
|
|
519
|
+
# system.
|
|
520
|
+
#
|
|
521
|
+
# @!attribute [rw] file_system_id
|
|
522
|
+
# The ID of the file system for which to create the mount session.
|
|
523
|
+
# @return [String]
|
|
524
|
+
#
|
|
525
|
+
# @!attribute [rw] preferred_availability_zone_id
|
|
526
|
+
# The ID of the Availability Zone (for example, `use1-az1`) in which
|
|
527
|
+
# you prefer the returned endpoints to be located. The Availability
|
|
528
|
+
# Zone must be in the same Amazon Web Services Region as the file
|
|
529
|
+
# system. This preference is best effort: if Amazon EFS can't provide
|
|
530
|
+
# an endpoint in the preferred Availability Zone, it returns endpoints
|
|
531
|
+
# in another Availability Zone instead of failing the request. If you
|
|
532
|
+
# don't specify a value, Amazon EFS returns endpoints without an
|
|
533
|
+
# Availability Zone preference.
|
|
534
|
+
# @return [String]
|
|
535
|
+
#
|
|
536
|
+
# @!attribute [rw] network_origin
|
|
537
|
+
# Indicates whether the client connects to the file system from within
|
|
538
|
+
# the Amazon Web Services Cloud (`AWS_NETWORK`). External network
|
|
539
|
+
# (`EXTERNAL_NETWORK`) connections are not supported.
|
|
540
|
+
# @return [String]
|
|
541
|
+
#
|
|
542
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountSessionRequest AWS API Documentation
|
|
543
|
+
#
|
|
544
|
+
class CreateMountSessionRequest < Struct.new(
|
|
545
|
+
:file_system_id,
|
|
546
|
+
:preferred_availability_zone_id,
|
|
547
|
+
:network_origin)
|
|
548
|
+
SENSITIVE = []
|
|
549
|
+
include Aws::Structure
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
# The endpoints that you can use to mount the file system, and the file
|
|
553
|
+
# system and Availability Zone that they apply to.
|
|
554
|
+
#
|
|
555
|
+
# @!attribute [rw] file_system_id
|
|
556
|
+
# The ID of the file system that the mount session applies to.
|
|
557
|
+
# @return [String]
|
|
558
|
+
#
|
|
559
|
+
# @!attribute [rw] preferred_availability_zone_id
|
|
560
|
+
# The ID of the preferred Availability Zone that was specified in the
|
|
561
|
+
# request, if any. The Availability Zone of an individual endpoint can
|
|
562
|
+
# differ from this value.
|
|
563
|
+
# @return [String]
|
|
564
|
+
#
|
|
565
|
+
# @!attribute [rw] endpoints
|
|
566
|
+
# The endpoints that you can use to mount the file system. Each
|
|
567
|
+
# endpoint includes an IP address, a port, and a mount token.
|
|
568
|
+
# @return [Array<Types::MountSessionEndpoint>]
|
|
569
|
+
#
|
|
570
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountSessionResponse AWS API Documentation
|
|
571
|
+
#
|
|
572
|
+
class CreateMountSessionResponse < Struct.new(
|
|
573
|
+
:file_system_id,
|
|
574
|
+
:preferred_availability_zone_id,
|
|
575
|
+
:endpoints)
|
|
576
|
+
SENSITIVE = []
|
|
577
|
+
include Aws::Structure
|
|
578
|
+
end
|
|
579
|
+
|
|
522
580
|
# @!attribute [rw] file_system_id
|
|
523
581
|
# The ID of the file system for which to create the mount target.
|
|
524
582
|
# @return [String]
|
|
@@ -526,35 +584,44 @@ module Aws::EFS
|
|
|
526
584
|
# @!attribute [rw] subnet_id
|
|
527
585
|
# The ID of the subnet to add the mount target in. For One Zone file
|
|
528
586
|
# systems, use the subnet that is associated with the file system's
|
|
529
|
-
# Availability Zone.
|
|
587
|
+
# Availability Zone. The subnet type must be the same type as the
|
|
588
|
+
# `IpAddressType`.
|
|
530
589
|
# @return [String]
|
|
531
590
|
#
|
|
532
591
|
# @!attribute [rw] ip_address
|
|
533
|
-
# If the
|
|
534
|
-
# the IPv4 address
|
|
592
|
+
# If the `IpAddressType` for the mount target is IPv4 ( `IPV4_ONLY` or
|
|
593
|
+
# `DUAL_STACK`), then specify the IPv4 address to use. If you do not
|
|
594
|
+
# specify an `IpAddress`, then Amazon EFS selects an unused IP address
|
|
595
|
+
# from the subnet specified for `SubnetId`.
|
|
535
596
|
# @return [String]
|
|
536
597
|
#
|
|
537
598
|
# @!attribute [rw] ipv_6_address
|
|
538
|
-
# If the
|
|
539
|
-
# the IPv6 address
|
|
599
|
+
# If the `IPAddressType` for the mount target is IPv6 (`IPV6_ONLY` or
|
|
600
|
+
# `DUAL_STACK`), then specify the IPv6 address to use. If you do not
|
|
601
|
+
# specify an `Ipv6Address`, then Amazon EFS selects an unused IP
|
|
602
|
+
# address from the subnet specified for `SubnetId`.
|
|
540
603
|
# @return [String]
|
|
541
604
|
#
|
|
542
605
|
# @!attribute [rw] ip_address_type
|
|
543
|
-
#
|
|
544
|
-
#
|
|
545
|
-
#
|
|
606
|
+
# The IP address type for the mount target. The possible values are
|
|
607
|
+
# `IPV4_ONLY` (only IPv4 addresses), `IPV6_ONLY` (only IPv6
|
|
608
|
+
# addresses), and `DUAL_STACK` (dual-stack, both IPv4 and IPv6
|
|
609
|
+
# addresses). If you don’t specify an `IpAddressType`, then
|
|
610
|
+
# `IPV4_ONLY` is used.
|
|
611
|
+
#
|
|
612
|
+
# <note markdown="1"> The `IPAddressType` must match the IP type of the subnet.
|
|
613
|
+
# Additionally, the `IPAddressType` parameter overrides the value set
|
|
614
|
+
# as the default IP address for the subnet in the VPC. For example, if
|
|
615
|
+
# the `IPAddressType` is `IPV4_ONLY` and `AssignIpv6AddressOnCreation`
|
|
616
|
+
# is `true`, then IPv4 is used for the mount target. For more
|
|
617
|
+
# information, see [Modify the IP addressing attributes of your
|
|
618
|
+
# subnet][1].
|
|
546
619
|
#
|
|
547
|
-
#
|
|
548
|
-
# dual-stack subnet.
|
|
549
|
-
#
|
|
550
|
-
# * DUAL\_STACK – Create mount target with dual-stack subnet.
|
|
620
|
+
# </note>
|
|
551
621
|
#
|
|
552
|
-
# * IPV6\_ONLY – Create mount target with IPv6 only subnet.
|
|
553
622
|
#
|
|
554
|
-
# <note markdown="1"> Creating IPv6 mount target only ENI in dual-stack subnet is not
|
|
555
|
-
# supported.
|
|
556
623
|
#
|
|
557
|
-
#
|
|
624
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/subnet-public-ip.html
|
|
558
625
|
# @return [String]
|
|
559
626
|
#
|
|
560
627
|
# @!attribute [rw] security_groups
|
|
@@ -562,7 +629,8 @@ module Aws::EFS
|
|
|
562
629
|
# the same VPC as the subnet specified. The maximum number of security
|
|
563
630
|
# groups depends on account quota. For more information, see [Amazon
|
|
564
631
|
# VPC Quotas][1] in the *Amazon VPC User Guide* (see the **Security
|
|
565
|
-
# Groups** table).
|
|
632
|
+
# Groups** table). If you don't specify a security group, then Amazon
|
|
633
|
+
# EFS uses the default security group for the subnet's VPC.
|
|
566
634
|
#
|
|
567
635
|
#
|
|
568
636
|
#
|
|
@@ -1459,8 +1527,8 @@ module Aws::EFS
|
|
|
1459
1527
|
# @return [String]
|
|
1460
1528
|
#
|
|
1461
1529
|
# @!attribute [rw] encrypted
|
|
1462
|
-
#
|
|
1463
|
-
#
|
|
1530
|
+
# Specifies whether the file system is encrypted. As of September 4,
|
|
1531
|
+
# 2026, Amazon EFS encrypts all new file systems.
|
|
1464
1532
|
# @return [Boolean]
|
|
1465
1533
|
#
|
|
1466
1534
|
# @!attribute [rw] kms_key_id
|
|
@@ -1859,8 +1927,8 @@ module Aws::EFS
|
|
|
1859
1927
|
include Aws::Structure
|
|
1860
1928
|
end
|
|
1861
1929
|
|
|
1862
|
-
# Returned if the request specified an `IpAddress`
|
|
1863
|
-
# use in the subnet.
|
|
1930
|
+
# Returned if the request specified an IP address (`IpAddress` or
|
|
1931
|
+
# `Ipv6Address`) that is already in use in the subnet.
|
|
1864
1932
|
#
|
|
1865
1933
|
# @!attribute [rw] error_code
|
|
1866
1934
|
# The error code is a string that uniquely identifies an error
|
|
@@ -2012,6 +2080,49 @@ module Aws::EFS
|
|
|
2012
2080
|
include Aws::Structure
|
|
2013
2081
|
end
|
|
2014
2082
|
|
|
2083
|
+
# Describes a single endpoint that a client can use to mount an Amazon
|
|
2084
|
+
# EFS file system. An endpoint includes the network address, port, and
|
|
2085
|
+
# mount token for the connection.
|
|
2086
|
+
#
|
|
2087
|
+
# @!attribute [rw] availability_zone_id
|
|
2088
|
+
# The ID of the Availability Zone in which the endpoint is located.
|
|
2089
|
+
# @return [String]
|
|
2090
|
+
#
|
|
2091
|
+
# @!attribute [rw] ipv_4_address
|
|
2092
|
+
# The IPv4 address to connect to for this endpoint.
|
|
2093
|
+
# @return [String]
|
|
2094
|
+
#
|
|
2095
|
+
# @!attribute [rw] ipv_6_address
|
|
2096
|
+
# The IPv6 address to connect to for this endpoint.
|
|
2097
|
+
# @return [String]
|
|
2098
|
+
#
|
|
2099
|
+
# @!attribute [rw] port
|
|
2100
|
+
# The port to connect to for this endpoint.
|
|
2101
|
+
# @return [Integer]
|
|
2102
|
+
#
|
|
2103
|
+
# @!attribute [rw] mount_token
|
|
2104
|
+
# An opaque token that the client presents when it connects to this
|
|
2105
|
+
# endpoint to mount the file system. Treat the mount token as a
|
|
2106
|
+
# credential and keep it secret.
|
|
2107
|
+
# @return [String]
|
|
2108
|
+
#
|
|
2109
|
+
# @!attribute [rw] issued_at
|
|
2110
|
+
# The time at which this endpoint was issued.
|
|
2111
|
+
# @return [Time]
|
|
2112
|
+
#
|
|
2113
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/MountSessionEndpoint AWS API Documentation
|
|
2114
|
+
#
|
|
2115
|
+
class MountSessionEndpoint < Struct.new(
|
|
2116
|
+
:availability_zone_id,
|
|
2117
|
+
:ipv_4_address,
|
|
2118
|
+
:ipv_6_address,
|
|
2119
|
+
:port,
|
|
2120
|
+
:mount_token,
|
|
2121
|
+
:issued_at)
|
|
2122
|
+
SENSITIVE = [:mount_token]
|
|
2123
|
+
include Aws::Structure
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2015
2126
|
# Returned if the mount target would violate one of the specified
|
|
2016
2127
|
# restrictions based on the file system's existing mount targets.
|
|
2017
2128
|
#
|
|
@@ -2063,8 +2174,7 @@ module Aws::EFS
|
|
|
2063
2174
|
# @return [String]
|
|
2064
2175
|
#
|
|
2065
2176
|
# @!attribute [rw] ip_address
|
|
2066
|
-
#
|
|
2067
|
-
# target.
|
|
2177
|
+
# The IPv4 address for the mount target.
|
|
2068
2178
|
# @return [String]
|
|
2069
2179
|
#
|
|
2070
2180
|
# @!attribute [rw] ipv_6_address
|
|
@@ -2097,6 +2207,13 @@ module Aws::EFS
|
|
|
2097
2207
|
# configured in.
|
|
2098
2208
|
# @return [String]
|
|
2099
2209
|
#
|
|
2210
|
+
# @!attribute [rw] status_message
|
|
2211
|
+
# Message that provides details about the current lifecycle state of
|
|
2212
|
+
# the mount target, such as the reason a mount target is in the
|
|
2213
|
+
# `error` state. This field is returned only when a message is
|
|
2214
|
+
# available.
|
|
2215
|
+
# @return [String]
|
|
2216
|
+
#
|
|
2100
2217
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/MountTargetDescription AWS API Documentation
|
|
2101
2218
|
#
|
|
2102
2219
|
class MountTargetDescription < Struct.new(
|
|
@@ -2110,7 +2227,8 @@ module Aws::EFS
|
|
|
2110
2227
|
:network_interface_id,
|
|
2111
2228
|
:availability_zone_id,
|
|
2112
2229
|
:availability_zone_name,
|
|
2113
|
-
:vpc_id
|
|
2230
|
+
:vpc_id,
|
|
2231
|
+
:status_message)
|
|
2114
2232
|
SENSITIVE = []
|
|
2115
2233
|
include Aws::Structure
|
|
2116
2234
|
end
|
|
@@ -2179,8 +2297,8 @@ module Aws::EFS
|
|
|
2179
2297
|
include Aws::Structure
|
|
2180
2298
|
end
|
|
2181
2299
|
|
|
2182
|
-
# Returned
|
|
2183
|
-
# no free IP addresses in the subnet.
|
|
2300
|
+
# Returned no `IpAddress` or `Ipv6Address` was provided in the request
|
|
2301
|
+
# and there are no free IP addresses in the specified subnet.
|
|
2184
2302
|
#
|
|
2185
2303
|
# @!attribute [rw] error_code
|
|
2186
2304
|
# The error code is a string that uniquely identifies an error
|
|
@@ -2207,7 +2325,10 @@ module Aws::EFS
|
|
|
2207
2325
|
include Aws::Structure
|
|
2208
2326
|
end
|
|
2209
2327
|
|
|
2210
|
-
# Returned if
|
|
2328
|
+
# Returned if the specified IAM policy or resource policy cannot be
|
|
2329
|
+
# located or accessed. Depending on the action being performed, the
|
|
2330
|
+
# error may also be returned if the default file system policy is in
|
|
2331
|
+
# effect for the EFS file system or if no backup policy is specified.
|
|
2211
2332
|
#
|
|
2212
2333
|
# @!attribute [rw] error_code
|
|
2213
2334
|
# The error code is a string that uniquely identifies an error
|
data/lib/aws-sdk-efs.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -158,6 +158,20 @@ module Aws
|
|
|
158
158
|
) -> _CreateFileSystemResponseSuccess
|
|
159
159
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFileSystemResponseSuccess
|
|
160
160
|
|
|
161
|
+
interface _CreateMountSessionResponseSuccess
|
|
162
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateMountSessionResponse]
|
|
163
|
+
def file_system_id: () -> ::String
|
|
164
|
+
def preferred_availability_zone_id: () -> ::String
|
|
165
|
+
def endpoints: () -> ::Array[Types::MountSessionEndpoint]
|
|
166
|
+
end
|
|
167
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EFS/Client.html#create_mount_session-instance_method
|
|
168
|
+
def create_mount_session: (
|
|
169
|
+
file_system_id: ::String,
|
|
170
|
+
?preferred_availability_zone_id: ::String,
|
|
171
|
+
?network_origin: ("AWS_NETWORK" | "EXTERNAL_NETWORK")
|
|
172
|
+
) -> _CreateMountSessionResponseSuccess
|
|
173
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMountSessionResponseSuccess
|
|
174
|
+
|
|
161
175
|
interface _CreateMountTargetResponseSuccess
|
|
162
176
|
include ::Seahorse::Client::_ResponseSuccess[Types::MountTargetDescription]
|
|
163
177
|
def owner_id: () -> ::String
|
|
@@ -171,6 +185,7 @@ module Aws
|
|
|
171
185
|
def availability_zone_id: () -> ::String
|
|
172
186
|
def availability_zone_name: () -> ::String
|
|
173
187
|
def vpc_id: () -> ::String
|
|
188
|
+
def status_message: () -> ::String
|
|
174
189
|
end
|
|
175
190
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EFS/Client.html#create_mount_target-instance_method
|
|
176
191
|
def create_mount_target: (
|
data/sig/types.rbs
CHANGED
|
@@ -91,6 +91,20 @@ module Aws::EFS
|
|
|
91
91
|
SENSITIVE: []
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
+
class CreateMountSessionRequest
|
|
95
|
+
attr_accessor file_system_id: ::String
|
|
96
|
+
attr_accessor preferred_availability_zone_id: ::String
|
|
97
|
+
attr_accessor network_origin: ("AWS_NETWORK" | "EXTERNAL_NETWORK")
|
|
98
|
+
SENSITIVE: []
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class CreateMountSessionResponse
|
|
102
|
+
attr_accessor file_system_id: ::String
|
|
103
|
+
attr_accessor preferred_availability_zone_id: ::String
|
|
104
|
+
attr_accessor endpoints: ::Array[Types::MountSessionEndpoint]
|
|
105
|
+
SENSITIVE: []
|
|
106
|
+
end
|
|
107
|
+
|
|
94
108
|
class CreateMountTargetRequest
|
|
95
109
|
attr_accessor file_system_id: ::String
|
|
96
110
|
attr_accessor subnet_id: ::String
|
|
@@ -421,6 +435,16 @@ module Aws::EFS
|
|
|
421
435
|
SENSITIVE: []
|
|
422
436
|
end
|
|
423
437
|
|
|
438
|
+
class MountSessionEndpoint
|
|
439
|
+
attr_accessor availability_zone_id: ::String
|
|
440
|
+
attr_accessor ipv_4_address: ::String
|
|
441
|
+
attr_accessor ipv_6_address: ::String
|
|
442
|
+
attr_accessor port: ::Integer
|
|
443
|
+
attr_accessor mount_token: ::String
|
|
444
|
+
attr_accessor issued_at: ::Time
|
|
445
|
+
SENSITIVE: [:mount_token]
|
|
446
|
+
end
|
|
447
|
+
|
|
424
448
|
class MountTargetConflict
|
|
425
449
|
attr_accessor error_code: ::String
|
|
426
450
|
attr_accessor message: ::String
|
|
@@ -439,6 +463,7 @@ module Aws::EFS
|
|
|
439
463
|
attr_accessor availability_zone_id: ::String
|
|
440
464
|
attr_accessor availability_zone_name: ::String
|
|
441
465
|
attr_accessor vpc_id: ::String
|
|
466
|
+
attr_accessor status_message: ::String
|
|
442
467
|
SENSITIVE: []
|
|
443
468
|
end
|
|
444
469
|
|