@aws-sdk/client-efs 3.35.0 → 3.36.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.
- package/CHANGELOG.md +14 -0
- package/dist-cjs/EFS.js +0 -1
- package/dist-cjs/EFSClient.js +0 -1
- package/dist-cjs/commands/CreateAccessPointCommand.js +0 -1
- package/dist-cjs/commands/CreateFileSystemCommand.js +0 -1
- package/dist-cjs/commands/CreateMountTargetCommand.js +0 -1
- package/dist-cjs/commands/CreateTagsCommand.js +0 -1
- package/dist-cjs/commands/DeleteAccessPointCommand.js +0 -1
- package/dist-cjs/commands/DeleteFileSystemCommand.js +0 -1
- package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteMountTargetCommand.js +0 -1
- package/dist-cjs/commands/DeleteTagsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAccessPointsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAccountPreferencesCommand.js +0 -1
- package/dist-cjs/commands/DescribeBackupPolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js +0 -1
- package/dist-cjs/commands/DescribeFileSystemsCommand.js +0 -1
- package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +0 -1
- package/dist-cjs/commands/DescribeMountTargetsCommand.js +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -1
- package/dist-cjs/commands/PutAccountPreferencesCommand.js +0 -1
- package/dist-cjs/commands/PutBackupPolicyCommand.js +0 -1
- package/dist-cjs/commands/PutFileSystemPolicyCommand.js +0 -1
- package/dist-cjs/commands/PutLifecycleConfigurationCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateFileSystemCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeAccessPointsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeTagsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +8 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/EFS.js +0 -1
- package/dist-es/EFSClient.js +0 -1
- package/dist-es/commands/CreateAccessPointCommand.js +0 -1
- package/dist-es/commands/CreateFileSystemCommand.js +0 -1
- package/dist-es/commands/CreateMountTargetCommand.js +0 -1
- package/dist-es/commands/CreateTagsCommand.js +0 -1
- package/dist-es/commands/DeleteAccessPointCommand.js +0 -1
- package/dist-es/commands/DeleteFileSystemCommand.js +0 -1
- package/dist-es/commands/DeleteFileSystemPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteMountTargetCommand.js +0 -1
- package/dist-es/commands/DeleteTagsCommand.js +0 -1
- package/dist-es/commands/DescribeAccessPointsCommand.js +0 -1
- package/dist-es/commands/DescribeAccountPreferencesCommand.js +0 -1
- package/dist-es/commands/DescribeBackupPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeFileSystemPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeFileSystemsCommand.js +0 -1
- package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +0 -1
- package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +0 -1
- package/dist-es/commands/DescribeMountTargetsCommand.js +0 -1
- package/dist-es/commands/DescribeTagsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -1
- package/dist-es/commands/PutAccountPreferencesCommand.js +0 -1
- package/dist-es/commands/PutBackupPolicyCommand.js +0 -1
- package/dist-es/commands/PutFileSystemPolicyCommand.js +0 -1
- package/dist-es/commands/PutLifecycleConfigurationCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateFileSystemCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeAccessPointsPaginator.js +0 -1
- package/dist-es/pagination/DescribeFileSystemsPaginator.js +0 -1
- package/dist-es/pagination/DescribeTagsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +22 -15
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/EFS.js.map +0 -1
- package/dist-cjs/EFSClient.js.map +0 -1
- package/dist-cjs/commands/CreateAccessPointCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist-cjs/commands/CreateMountTargetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAccessPointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMountTargetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAccessPointsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAccountPreferencesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeBackupPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeMountTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/PutAccountPreferencesCommand.js.map +0 -1
- package/dist-cjs/commands/PutBackupPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutFileSystemPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutLifecycleConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeAccessPointsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeTagsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/EFS.js.map +0 -1
- package/dist-es/EFSClient.js.map +0 -1
- package/dist-es/commands/CreateAccessPointCommand.js.map +0 -1
- package/dist-es/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist-es/commands/CreateMountTargetCommand.js.map +0 -1
- package/dist-es/commands/CreateTagsCommand.js.map +0 -1
- package/dist-es/commands/DeleteAccessPointCommand.js.map +0 -1
- package/dist-es/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist-es/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteMountTargetCommand.js.map +0 -1
- package/dist-es/commands/DeleteTagsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAccessPointsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAccountPreferencesCommand.js.map +0 -1
- package/dist-es/commands/DescribeBackupPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist-es/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeMountTargetsCommand.js.map +0 -1
- package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist-es/commands/PutAccountPreferencesCommand.js.map +0 -1
- package/dist-es/commands/PutBackupPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutFileSystemPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutLifecycleConfigurationCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeAccessPointsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeTagsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/EFS.ts +0 -1386
- package/src/EFSClient.ts +0 -363
- package/src/commands/CreateAccessPointCommand.ts +0 -102
- package/src/commands/CreateFileSystemCommand.ts +0 -148
- package/src/commands/CreateMountTargetCommand.ts +0 -236
- package/src/commands/CreateTagsCommand.ts +0 -106
- package/src/commands/DeleteAccessPointCommand.ts +0 -98
- package/src/commands/DeleteFileSystemCommand.ts +0 -109
- package/src/commands/DeleteFileSystemPolicyCommand.ts +0 -98
- package/src/commands/DeleteMountTargetCommand.ts +0 -128
- package/src/commands/DeleteTagsCommand.ts +0 -107
- package/src/commands/DescribeAccessPointsCommand.ts +0 -98
- package/src/commands/DescribeAccountPreferencesCommand.ts +0 -99
- package/src/commands/DescribeBackupPolicyCommand.ts +0 -95
- package/src/commands/DescribeFileSystemPolicyCommand.ts +0 -96
- package/src/commands/DescribeFileSystemsCommand.ts +0 -117
- package/src/commands/DescribeLifecycleConfigurationCommand.ts +0 -110
- package/src/commands/DescribeMountTargetSecurityGroupsCommand.ts +0 -121
- package/src/commands/DescribeMountTargetsCommand.ts +0 -102
- package/src/commands/DescribeTagsCommand.ts +0 -105
- package/src/commands/ListTagsForResourceCommand.ts +0 -96
- package/src/commands/ModifyMountTargetSecurityGroupsCommand.ts +0 -120
- package/src/commands/PutAccountPreferencesCommand.ts +0 -98
- package/src/commands/PutBackupPolicyCommand.ts +0 -95
- package/src/commands/PutFileSystemPolicyCommand.ts +0 -104
- package/src/commands/PutLifecycleConfigurationCommand.ts +0 -128
- package/src/commands/TagResourceCommand.ts +0 -96
- package/src/commands/UntagResourceCommand.ts +0 -96
- package/src/commands/UpdateFileSystemCommand.ts +0 -96
- package/src/endpoints.ts +0 -183
- package/src/index.ts +0 -35
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2185
- package/src/pagination/DescribeAccessPointsPaginator.ts +0 -59
- package/src/pagination/DescribeFileSystemsPaginator.ts +0 -59
- package/src/pagination/DescribeTagsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4420
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
|
|
15
|
-
import { CreateMountTargetRequest, MountTargetDescription } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateMountTargetCommand,
|
|
18
|
-
serializeAws_restJson1CreateMountTargetCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateMountTargetCommandInput extends CreateMountTargetRequest {}
|
|
22
|
-
export interface CreateMountTargetCommandOutput extends MountTargetDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a mount target for a file system. You can then mount the file system on EC2
|
|
26
|
-
* instances by using the mount target.</p>
|
|
27
|
-
* <p>You can create one mount target in each Availability Zone in your VPC. All EC2
|
|
28
|
-
* instances in a VPC within a given Availability Zone share a single mount target for a given
|
|
29
|
-
* file system. If you have multiple subnets in an Availability Zone, you create a mount target
|
|
30
|
-
* in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target
|
|
31
|
-
* in order to access their file system.</p>
|
|
32
|
-
* <p>You can create only one mount target for an EFS file system using One Zone storage
|
|
33
|
-
* classes. You must create that mount target in the same Availability Zone in which the file
|
|
34
|
-
* system is located. Use the <code>AvailabilityZoneName</code> and
|
|
35
|
-
* <code>AvailabiltyZoneId</code> properties in the <a>DescribeFileSystems</a>
|
|
36
|
-
* response object to get this information. Use the <code>subnetId</code> associated with the
|
|
37
|
-
* file system's Availability Zone when creating the mount target.</p>
|
|
38
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html">Amazon EFS: How it Works</a>. </p>
|
|
39
|
-
* <p>To create a mount target for a file system, the file system's lifecycle state must be
|
|
40
|
-
* <code>available</code>. For more information, see <a>DescribeFileSystems</a>.</p>
|
|
41
|
-
* <p>In the request, provide the following:</p>
|
|
42
|
-
* <ul>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>The file system ID for which you are creating the mount
|
|
45
|
-
* target.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>A subnet ID, which determines the following:</p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>The VPC in which Amazon EFS creates the mount target</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>The Availability Zone in which Amazon EFS creates the mount target</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>The IP address range from which Amazon EFS selects the IP address of the mount target
|
|
58
|
-
* (if you don't specify an IP address in the request)</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* </ul>
|
|
61
|
-
* </li>
|
|
62
|
-
* </ul>
|
|
63
|
-
*
|
|
64
|
-
* <p>After creating the mount target, Amazon EFS returns a response that includes, a
|
|
65
|
-
* <code>MountTargetId</code> and an <code>IpAddress</code>. You use this IP address when
|
|
66
|
-
* mounting the file system in an EC2 instance. You can also use the mount target's DNS name
|
|
67
|
-
* when mounting the file system. The EC2 instance on which you mount the file system by using
|
|
68
|
-
* the mount target can resolve the mount target's DNS name to its IP address. For more
|
|
69
|
-
* information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#how-it-works-implementation">How it Works:
|
|
70
|
-
* Implementation Overview</a>. </p>
|
|
71
|
-
* <p>Note that you can create mount targets for a file system in only one VPC, and there can
|
|
72
|
-
* be only one mount target per Availability Zone. That is, if the file system already has one or
|
|
73
|
-
* more mount targets created for it, the subnet specified in the request to add another mount
|
|
74
|
-
* target must meet the following requirements:</p>
|
|
75
|
-
* <ul>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>Must belong to the same VPC as the subnets of the existing mount targets</p>
|
|
78
|
-
* </li>
|
|
79
|
-
* <li>
|
|
80
|
-
* <p>Must not be in the same Availability Zone as any of the subnets of the existing
|
|
81
|
-
* mount targets</p>
|
|
82
|
-
* </li>
|
|
83
|
-
* </ul>
|
|
84
|
-
*
|
|
85
|
-
* <p>If the request satisfies the requirements, Amazon EFS does the following:</p>
|
|
86
|
-
* <ul>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>Creates a new mount target in the specified subnet.</p>
|
|
89
|
-
* </li>
|
|
90
|
-
* <li>
|
|
91
|
-
* <p>Also creates a new network interface in the subnet as follows:</p>
|
|
92
|
-
* <ul>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>If the request provides an <code>IpAddress</code>, Amazon EFS assigns that IP
|
|
95
|
-
* address to the network interface. Otherwise, Amazon EFS assigns a free address in the
|
|
96
|
-
* subnet (in the same way that the Amazon EC2 <code>CreateNetworkInterface</code> call
|
|
97
|
-
* does when a request does not specify a primary private IP address).</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>If the request provides <code>SecurityGroups</code>, this network interface is
|
|
101
|
-
* associated with those security groups. Otherwise, it belongs to the default security
|
|
102
|
-
* group for the subnet's VPC.</p>
|
|
103
|
-
* </li>
|
|
104
|
-
* <li>
|
|
105
|
-
* <p>Assigns the description <code>Mount target <i>fsmt-id</i> for
|
|
106
|
-
* file system <i>fs-id</i>
|
|
107
|
-
* </code> where <code>
|
|
108
|
-
* <i>fsmt-id</i>
|
|
109
|
-
* </code> is the mount target ID, and <code>
|
|
110
|
-
* <i>fs-id</i>
|
|
111
|
-
* </code> is the <code>FileSystemId</code>.</p>
|
|
112
|
-
* </li>
|
|
113
|
-
* <li>
|
|
114
|
-
* <p>Sets the <code>requesterManaged</code> property of the network interface to
|
|
115
|
-
* <code>true</code>, and the <code>requesterId</code> value to
|
|
116
|
-
* <code>EFS</code>.</p>
|
|
117
|
-
* </li>
|
|
118
|
-
* </ul>
|
|
119
|
-
* <p>Each Amazon EFS mount target has one corresponding requester-managed EC2 network
|
|
120
|
-
* interface. After the network interface is created, Amazon EFS sets the
|
|
121
|
-
* <code>NetworkInterfaceId</code> field in the mount target's description to the
|
|
122
|
-
* network interface ID, and the <code>IpAddress</code> field to its address. If network
|
|
123
|
-
* interface creation fails, the entire <code>CreateMountTarget</code> operation
|
|
124
|
-
* fails.</p>
|
|
125
|
-
* </li>
|
|
126
|
-
* </ul>
|
|
127
|
-
* <note>
|
|
128
|
-
* <p>The <code>CreateMountTarget</code> call returns only after creating the network
|
|
129
|
-
* interface, but while the mount target state is still <code>creating</code>, you can check
|
|
130
|
-
* the mount target creation status by calling the <a>DescribeMountTargets</a> operation, which among other things returns the mount
|
|
131
|
-
* target state.</p>
|
|
132
|
-
* </note>
|
|
133
|
-
* <p>We recommend that you create a mount target in each of the Availability Zones. There
|
|
134
|
-
* are cost considerations for using a file system in an Availability Zone through a mount target
|
|
135
|
-
* created in another Availability Zone. For more information, see <a href="http://aws.amazon.com/efs/">Amazon EFS</a>. In addition, by always using a mount target local to the
|
|
136
|
-
* instance's Availability Zone, you eliminate a partial failure scenario. If the
|
|
137
|
-
* Availability Zone in which your mount target is created goes down, then you can't access
|
|
138
|
-
* your file system through that mount target. </p>
|
|
139
|
-
* <p>This operation requires permissions for the following action on the file
|
|
140
|
-
* system:</p>
|
|
141
|
-
* <ul>
|
|
142
|
-
* <li>
|
|
143
|
-
* <p>
|
|
144
|
-
* <code>elasticfilesystem:CreateMountTarget</code>
|
|
145
|
-
* </p>
|
|
146
|
-
* </li>
|
|
147
|
-
* </ul>
|
|
148
|
-
* <p>This operation also requires permissions for the following Amazon EC2
|
|
149
|
-
* actions:</p>
|
|
150
|
-
* <ul>
|
|
151
|
-
* <li>
|
|
152
|
-
* <p>
|
|
153
|
-
* <code>ec2:DescribeSubnets</code>
|
|
154
|
-
* </p>
|
|
155
|
-
* </li>
|
|
156
|
-
* <li>
|
|
157
|
-
* <p>
|
|
158
|
-
* <code>ec2:DescribeNetworkInterfaces</code>
|
|
159
|
-
* </p>
|
|
160
|
-
* </li>
|
|
161
|
-
* <li>
|
|
162
|
-
* <p>
|
|
163
|
-
* <code>ec2:CreateNetworkInterface</code>
|
|
164
|
-
* </p>
|
|
165
|
-
* </li>
|
|
166
|
-
* </ul>
|
|
167
|
-
* @example
|
|
168
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
169
|
-
* ```javascript
|
|
170
|
-
* import { EFSClient, CreateMountTargetCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
171
|
-
* // const { EFSClient, CreateMountTargetCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
172
|
-
* const client = new EFSClient(config);
|
|
173
|
-
* const command = new CreateMountTargetCommand(input);
|
|
174
|
-
* const response = await client.send(command);
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* @see {@link CreateMountTargetCommandInput} for command's `input` shape.
|
|
178
|
-
* @see {@link CreateMountTargetCommandOutput} for command's `response` shape.
|
|
179
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
180
|
-
*
|
|
181
|
-
*/
|
|
182
|
-
export class CreateMountTargetCommand extends $Command<
|
|
183
|
-
CreateMountTargetCommandInput,
|
|
184
|
-
CreateMountTargetCommandOutput,
|
|
185
|
-
EFSClientResolvedConfig
|
|
186
|
-
> {
|
|
187
|
-
// Start section: command_properties
|
|
188
|
-
// End section: command_properties
|
|
189
|
-
|
|
190
|
-
constructor(readonly input: CreateMountTargetCommandInput) {
|
|
191
|
-
// Start section: command_constructor
|
|
192
|
-
super();
|
|
193
|
-
// End section: command_constructor
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
resolveMiddleware(
|
|
200
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
201
|
-
configuration: EFSClientResolvedConfig,
|
|
202
|
-
options?: __HttpHandlerOptions
|
|
203
|
-
): Handler<CreateMountTargetCommandInput, CreateMountTargetCommandOutput> {
|
|
204
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
205
|
-
|
|
206
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
207
|
-
|
|
208
|
-
const { logger } = configuration;
|
|
209
|
-
const clientName = "EFSClient";
|
|
210
|
-
const commandName = "CreateMountTargetCommand";
|
|
211
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
212
|
-
logger,
|
|
213
|
-
clientName,
|
|
214
|
-
commandName,
|
|
215
|
-
inputFilterSensitiveLog: CreateMountTargetRequest.filterSensitiveLog,
|
|
216
|
-
outputFilterSensitiveLog: MountTargetDescription.filterSensitiveLog,
|
|
217
|
-
};
|
|
218
|
-
const { requestHandler } = configuration;
|
|
219
|
-
return stack.resolve(
|
|
220
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
221
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
222
|
-
handlerExecutionContext
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
private serialize(input: CreateMountTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
227
|
-
return serializeAws_restJson1CreateMountTargetCommand(input, context);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateMountTargetCommandOutput> {
|
|
231
|
-
return deserializeAws_restJson1CreateMountTargetCommand(output, context);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// Start section: command_body_extra
|
|
235
|
-
// End section: command_body_extra
|
|
236
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
|
|
15
|
-
import { CreateTagsRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateTagsCommand,
|
|
18
|
-
serializeAws_restJson1CreateTagsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateTagsCommandInput extends CreateTagsRequest {}
|
|
22
|
-
export interface CreateTagsCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated
|
|
26
|
-
*
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>DEPRECATED - CreateTags is deprecated and not maintained. Please use the
|
|
29
|
-
* API action to create tags for EFS resources.</p>
|
|
30
|
-
* </note>
|
|
31
|
-
* <p>Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If
|
|
32
|
-
* a tag key specified in the request already exists on the file system, this operation
|
|
33
|
-
* overwrites its value with the value provided in the request. If you add the <code>Name</code>
|
|
34
|
-
* tag to your file system, Amazon EFS returns it in the response to the <a>DescribeFileSystems</a> operation. </p>
|
|
35
|
-
* <p>This operation requires permission for the <code>elasticfilesystem:CreateTags</code>
|
|
36
|
-
* action.</p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { EFSClient, CreateTagsCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
41
|
-
* // const { EFSClient, CreateTagsCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
42
|
-
* const client = new EFSClient(config);
|
|
43
|
-
* const command = new CreateTagsCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CreateTagsCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CreateTagsCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class CreateTagsCommand extends $Command<
|
|
53
|
-
CreateTagsCommandInput,
|
|
54
|
-
CreateTagsCommandOutput,
|
|
55
|
-
EFSClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: CreateTagsCommandInput) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
|
-
super();
|
|
63
|
-
// End section: command_constructor
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
resolveMiddleware(
|
|
70
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
71
|
-
configuration: EFSClientResolvedConfig,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Handler<CreateTagsCommandInput, CreateTagsCommandOutput> {
|
|
74
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
75
|
-
|
|
76
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
77
|
-
|
|
78
|
-
const { logger } = configuration;
|
|
79
|
-
const clientName = "EFSClient";
|
|
80
|
-
const commandName = "CreateTagsCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: CreateTagsRequest.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
87
|
-
};
|
|
88
|
-
const { requestHandler } = configuration;
|
|
89
|
-
return stack.resolve(
|
|
90
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
91
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
92
|
-
handlerExecutionContext
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private serialize(input: CreateTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_restJson1CreateTagsCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateTagsCommandOutput> {
|
|
101
|
-
return deserializeAws_restJson1CreateTagsCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
|
|
15
|
-
import { DeleteAccessPointRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteAccessPointCommand,
|
|
18
|
-
serializeAws_restJson1DeleteAccessPointCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteAccessPointCommandInput extends DeleteAccessPointRequest {}
|
|
22
|
-
export interface DeleteAccessPointCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the specified access point. After deletion is complete, new clients can no
|
|
26
|
-
* longer connect to the access points. Clients connected to the access point at the time of
|
|
27
|
-
* deletion will continue to function until they terminate their connection.</p>
|
|
28
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:DeleteAccessPoint</code> action.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { EFSClient, DeleteAccessPointCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
33
|
-
* // const { EFSClient, DeleteAccessPointCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
34
|
-
* const client = new EFSClient(config);
|
|
35
|
-
* const command = new DeleteAccessPointCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteAccessPointCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteAccessPointCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteAccessPointCommand extends $Command<
|
|
45
|
-
DeleteAccessPointCommandInput,
|
|
46
|
-
DeleteAccessPointCommandOutput,
|
|
47
|
-
EFSClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteAccessPointCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: EFSClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteAccessPointCommandInput, DeleteAccessPointCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "EFSClient";
|
|
72
|
-
const commandName = "DeleteAccessPointCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteAccessPointRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteAccessPointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DeleteAccessPointCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteAccessPointCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DeleteAccessPointCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
|
|
15
|
-
import { DeleteFileSystemRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteFileSystemCommand,
|
|
18
|
-
serializeAws_restJson1DeleteFileSystemCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteFileSystemCommandInput extends DeleteFileSystemRequest {}
|
|
22
|
-
export interface DeleteFileSystemCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a file system, permanently severing access to its contents. Upon return, the
|
|
26
|
-
* file system no longer exists and you can't access any contents of the deleted file
|
|
27
|
-
* system.</p>
|
|
28
|
-
* <p> You can't delete a file system that is in use. That is, if the file system has
|
|
29
|
-
* any mount targets, you must first delete them. For more information, see <a>DescribeMountTargets</a> and <a>DeleteMountTarget</a>. </p>
|
|
30
|
-
*
|
|
31
|
-
* <note>
|
|
32
|
-
* <p>The <code>DeleteFileSystem</code> call returns while the file system state is still
|
|
33
|
-
* <code>deleting</code>. You can check the file system deletion status by calling the <a>DescribeFileSystems</a> operation, which returns a list of file systems in your
|
|
34
|
-
* account. If you pass file system ID or creation token for the deleted file system, the <a>DescribeFileSystems</a> returns a <code>404 FileSystemNotFound</code>
|
|
35
|
-
* error.</p>
|
|
36
|
-
* </note>
|
|
37
|
-
*
|
|
38
|
-
* <p>This operation requires permissions for the
|
|
39
|
-
* <code>elasticfilesystem:DeleteFileSystem</code> action.</p>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { EFSClient, DeleteFileSystemCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
44
|
-
* // const { EFSClient, DeleteFileSystemCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
45
|
-
* const client = new EFSClient(config);
|
|
46
|
-
* const command = new DeleteFileSystemCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link DeleteFileSystemCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link DeleteFileSystemCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export class DeleteFileSystemCommand extends $Command<
|
|
56
|
-
DeleteFileSystemCommandInput,
|
|
57
|
-
DeleteFileSystemCommandOutput,
|
|
58
|
-
EFSClientResolvedConfig
|
|
59
|
-
> {
|
|
60
|
-
// Start section: command_properties
|
|
61
|
-
// End section: command_properties
|
|
62
|
-
|
|
63
|
-
constructor(readonly input: DeleteFileSystemCommandInput) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
|
-
super();
|
|
66
|
-
// End section: command_constructor
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resolveMiddleware(
|
|
73
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
74
|
-
configuration: EFSClientResolvedConfig,
|
|
75
|
-
options?: __HttpHandlerOptions
|
|
76
|
-
): Handler<DeleteFileSystemCommandInput, DeleteFileSystemCommandOutput> {
|
|
77
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
|
-
|
|
79
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
80
|
-
|
|
81
|
-
const { logger } = configuration;
|
|
82
|
-
const clientName = "EFSClient";
|
|
83
|
-
const commandName = "DeleteFileSystemCommand";
|
|
84
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
85
|
-
logger,
|
|
86
|
-
clientName,
|
|
87
|
-
commandName,
|
|
88
|
-
inputFilterSensitiveLog: DeleteFileSystemRequest.filterSensitiveLog,
|
|
89
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
90
|
-
};
|
|
91
|
-
const { requestHandler } = configuration;
|
|
92
|
-
return stack.resolve(
|
|
93
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
94
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
95
|
-
handlerExecutionContext
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private serialize(input: DeleteFileSystemCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
100
|
-
return serializeAws_restJson1DeleteFileSystemCommand(input, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFileSystemCommandOutput> {
|
|
104
|
-
return deserializeAws_restJson1DeleteFileSystemCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EFSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EFSClient";
|
|
15
|
-
import { DeleteFileSystemPolicyRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteFileSystemPolicyCommand,
|
|
18
|
-
serializeAws_restJson1DeleteFileSystemPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteFileSystemPolicyCommandInput extends DeleteFileSystemPolicyRequest {}
|
|
22
|
-
export interface DeleteFileSystemPolicyCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the <code>FileSystemPolicy</code> for the specified file system.
|
|
26
|
-
* The default <code>FileSystemPolicy</code> goes into effect once the existing policy is deleted.
|
|
27
|
-
* For more information about the default file system policy, see <a href="https://docs.aws.amazon.com/efs/latest/ug/res-based-policies-efs.html">Using Resource-based Policies with EFS</a>.</p>
|
|
28
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:DeleteFileSystemPolicy</code> action.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { EFSClient, DeleteFileSystemPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
33
|
-
* // const { EFSClient, DeleteFileSystemPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
34
|
-
* const client = new EFSClient(config);
|
|
35
|
-
* const command = new DeleteFileSystemPolicyCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteFileSystemPolicyCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteFileSystemPolicyCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteFileSystemPolicyCommand extends $Command<
|
|
45
|
-
DeleteFileSystemPolicyCommandInput,
|
|
46
|
-
DeleteFileSystemPolicyCommandOutput,
|
|
47
|
-
EFSClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteFileSystemPolicyCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: EFSClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteFileSystemPolicyCommandInput, DeleteFileSystemPolicyCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "EFSClient";
|
|
72
|
-
const commandName = "DeleteFileSystemPolicyCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteFileSystemPolicyRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteFileSystemPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DeleteFileSystemPolicyCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFileSystemPolicyCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DeleteFileSystemPolicyCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|