@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,128 +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 { DeleteMountTargetRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteMountTargetCommand,
|
|
18
|
-
serializeAws_restJson1DeleteMountTargetCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteMountTargetCommandInput extends DeleteMountTargetRequest {}
|
|
22
|
-
export interface DeleteMountTargetCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the specified mount target.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>This operation forcibly breaks any mounts of the file system by using the mount target
|
|
28
|
-
* that is being deleted, which might disrupt instances or applications using those mounts. To
|
|
29
|
-
* avoid applications getting cut off abruptly, you might consider unmounting any mounts of the
|
|
30
|
-
* mount target, if feasible. The operation also deletes the associated network interface.
|
|
31
|
-
* Uncommitted writes might be lost, but breaking a mount target using this operation does not
|
|
32
|
-
* corrupt the file system itself. The file system you created remains. You can mount an EC2
|
|
33
|
-
* instance in your VPC by using another mount target.</p>
|
|
34
|
-
* <p>This operation requires permissions for the following action on the file
|
|
35
|
-
* system:</p>
|
|
36
|
-
* <ul>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>
|
|
39
|
-
* <code>elasticfilesystem:DeleteMountTarget</code>
|
|
40
|
-
* </p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
*
|
|
44
|
-
* <note>
|
|
45
|
-
* <p>The <code>DeleteMountTarget</code> call returns while the mount target state is still
|
|
46
|
-
* <code>deleting</code>. You can check the mount target deletion by calling the <a>DescribeMountTargets</a> operation, which returns a list of mount target
|
|
47
|
-
* descriptions for the given file system. </p>
|
|
48
|
-
* </note>
|
|
49
|
-
*
|
|
50
|
-
* <p>The operation also requires permissions for the following Amazon EC2 action on the
|
|
51
|
-
* mount target's network interface:</p>
|
|
52
|
-
* <ul>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>
|
|
55
|
-
* <code>ec2:DeleteNetworkInterface</code>
|
|
56
|
-
* </p>
|
|
57
|
-
* </li>
|
|
58
|
-
* </ul>
|
|
59
|
-
* @example
|
|
60
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
61
|
-
* ```javascript
|
|
62
|
-
* import { EFSClient, DeleteMountTargetCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
63
|
-
* // const { EFSClient, DeleteMountTargetCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
64
|
-
* const client = new EFSClient(config);
|
|
65
|
-
* const command = new DeleteMountTargetCommand(input);
|
|
66
|
-
* const response = await client.send(command);
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @see {@link DeleteMountTargetCommandInput} for command's `input` shape.
|
|
70
|
-
* @see {@link DeleteMountTargetCommandOutput} for command's `response` shape.
|
|
71
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
export class DeleteMountTargetCommand extends $Command<
|
|
75
|
-
DeleteMountTargetCommandInput,
|
|
76
|
-
DeleteMountTargetCommandOutput,
|
|
77
|
-
EFSClientResolvedConfig
|
|
78
|
-
> {
|
|
79
|
-
// Start section: command_properties
|
|
80
|
-
// End section: command_properties
|
|
81
|
-
|
|
82
|
-
constructor(readonly input: DeleteMountTargetCommandInput) {
|
|
83
|
-
// Start section: command_constructor
|
|
84
|
-
super();
|
|
85
|
-
// End section: command_constructor
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
resolveMiddleware(
|
|
92
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
93
|
-
configuration: EFSClientResolvedConfig,
|
|
94
|
-
options?: __HttpHandlerOptions
|
|
95
|
-
): Handler<DeleteMountTargetCommandInput, DeleteMountTargetCommandOutput> {
|
|
96
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
97
|
-
|
|
98
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
99
|
-
|
|
100
|
-
const { logger } = configuration;
|
|
101
|
-
const clientName = "EFSClient";
|
|
102
|
-
const commandName = "DeleteMountTargetCommand";
|
|
103
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
104
|
-
logger,
|
|
105
|
-
clientName,
|
|
106
|
-
commandName,
|
|
107
|
-
inputFilterSensitiveLog: DeleteMountTargetRequest.filterSensitiveLog,
|
|
108
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
109
|
-
};
|
|
110
|
-
const { requestHandler } = configuration;
|
|
111
|
-
return stack.resolve(
|
|
112
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
113
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
114
|
-
handlerExecutionContext
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
private serialize(input: DeleteMountTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
119
|
-
return serializeAws_restJson1DeleteMountTargetCommand(input, context);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteMountTargetCommandOutput> {
|
|
123
|
-
return deserializeAws_restJson1DeleteMountTargetCommand(output, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Start section: command_body_extra
|
|
127
|
-
// End section: command_body_extra
|
|
128
|
-
}
|
|
@@ -1,107 +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 { DeleteTagsRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteTagsCommand,
|
|
18
|
-
serializeAws_restJson1DeleteTagsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteTagsCommandInput extends DeleteTagsRequest {}
|
|
22
|
-
export interface DeleteTagsCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated
|
|
26
|
-
*
|
|
27
|
-
* <note>
|
|
28
|
-
* <p>DEPRECATED - DeleteTags is deprecated and not maintained. Please use the
|
|
29
|
-
* API action to remove tags from EFS resources.</p>
|
|
30
|
-
* </note>
|
|
31
|
-
* <p>Deletes the specified tags from a file system. If the <code>DeleteTags</code> request
|
|
32
|
-
* includes a tag key that doesn't exist, Amazon EFS ignores it and doesn't cause an
|
|
33
|
-
* error. For more information about tags and related restrictions, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Tag restrictions</a> in the
|
|
34
|
-
* <i>Billing and Cost Management User Guide</i>.</p>
|
|
35
|
-
*
|
|
36
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:DeleteTags</code>
|
|
37
|
-
* action.</p>
|
|
38
|
-
* @example
|
|
39
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
-
* ```javascript
|
|
41
|
-
* import { EFSClient, DeleteTagsCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
42
|
-
* // const { EFSClient, DeleteTagsCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
43
|
-
* const client = new EFSClient(config);
|
|
44
|
-
* const command = new DeleteTagsCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link DeleteTagsCommandInput} for command's `input` shape.
|
|
49
|
-
* @see {@link DeleteTagsCommandOutput} for command's `response` shape.
|
|
50
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
export class DeleteTagsCommand extends $Command<
|
|
54
|
-
DeleteTagsCommandInput,
|
|
55
|
-
DeleteTagsCommandOutput,
|
|
56
|
-
EFSClientResolvedConfig
|
|
57
|
-
> {
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
|
-
|
|
61
|
-
constructor(readonly input: DeleteTagsCommandInput) {
|
|
62
|
-
// Start section: command_constructor
|
|
63
|
-
super();
|
|
64
|
-
// End section: command_constructor
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
resolveMiddleware(
|
|
71
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
72
|
-
configuration: EFSClientResolvedConfig,
|
|
73
|
-
options?: __HttpHandlerOptions
|
|
74
|
-
): Handler<DeleteTagsCommandInput, DeleteTagsCommandOutput> {
|
|
75
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
76
|
-
|
|
77
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
78
|
-
|
|
79
|
-
const { logger } = configuration;
|
|
80
|
-
const clientName = "EFSClient";
|
|
81
|
-
const commandName = "DeleteTagsCommand";
|
|
82
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
83
|
-
logger,
|
|
84
|
-
clientName,
|
|
85
|
-
commandName,
|
|
86
|
-
inputFilterSensitiveLog: DeleteTagsRequest.filterSensitiveLog,
|
|
87
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
88
|
-
};
|
|
89
|
-
const { requestHandler } = configuration;
|
|
90
|
-
return stack.resolve(
|
|
91
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
92
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
93
|
-
handlerExecutionContext
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private serialize(input: DeleteTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
98
|
-
return serializeAws_restJson1DeleteTagsCommand(input, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteTagsCommandOutput> {
|
|
102
|
-
return deserializeAws_restJson1DeleteTagsCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Start section: command_body_extra
|
|
106
|
-
// End section: command_body_extra
|
|
107
|
-
}
|
|
@@ -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 { DescribeAccessPointsRequest, DescribeAccessPointsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DescribeAccessPointsCommand,
|
|
18
|
-
serializeAws_restJson1DescribeAccessPointsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeAccessPointsCommandInput extends DescribeAccessPointsRequest {}
|
|
22
|
-
export interface DescribeAccessPointsCommandOutput extends DescribeAccessPointsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the description of a specific Amazon EFS access point if the <code>AccessPointId</code> is provided.
|
|
26
|
-
* If you provide an EFS <code>FileSystemId</code>, it returns descriptions of all access points for that file system.
|
|
27
|
-
* You can provide either an <code>AccessPointId</code> or a <code>FileSystemId</code> in the request, but not both. </p>
|
|
28
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:DescribeAccessPoints</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, DescribeAccessPointsCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
33
|
-
* // const { EFSClient, DescribeAccessPointsCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
34
|
-
* const client = new EFSClient(config);
|
|
35
|
-
* const command = new DescribeAccessPointsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DescribeAccessPointsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DescribeAccessPointsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DescribeAccessPointsCommand extends $Command<
|
|
45
|
-
DescribeAccessPointsCommandInput,
|
|
46
|
-
DescribeAccessPointsCommandOutput,
|
|
47
|
-
EFSClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DescribeAccessPointsCommandInput) {
|
|
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<DescribeAccessPointsCommandInput, DescribeAccessPointsCommandOutput> {
|
|
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 = "DescribeAccessPointsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DescribeAccessPointsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DescribeAccessPointsResponse.filterSensitiveLog,
|
|
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: DescribeAccessPointsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DescribeAccessPointsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeAccessPointsCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DescribeAccessPointsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,99 +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 { DescribeAccountPreferencesRequest, DescribeAccountPreferencesResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DescribeAccountPreferencesCommand,
|
|
18
|
-
serializeAws_restJson1DescribeAccountPreferencesCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeAccountPreferencesCommandInput extends DescribeAccountPreferencesRequest {}
|
|
22
|
-
export interface DescribeAccountPreferencesCommandOutput extends DescribeAccountPreferencesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the account preferences settings for the Amazon Web Services account associated with the user making the request, in the current Amazon Web Services Region.
|
|
26
|
-
* For more information, see <a href="efs/latest/ug/manage-efs-resource-ids.html">Managing Amazon EFS resource IDs</a>.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { EFSClient, DescribeAccountPreferencesCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
31
|
-
* // const { EFSClient, DescribeAccountPreferencesCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
32
|
-
* const client = new EFSClient(config);
|
|
33
|
-
* const command = new DescribeAccountPreferencesCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link DescribeAccountPreferencesCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link DescribeAccountPreferencesCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class DescribeAccountPreferencesCommand extends $Command<
|
|
43
|
-
DescribeAccountPreferencesCommandInput,
|
|
44
|
-
DescribeAccountPreferencesCommandOutput,
|
|
45
|
-
EFSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: DescribeAccountPreferencesCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: EFSClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<DescribeAccountPreferencesCommandInput, DescribeAccountPreferencesCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "EFSClient";
|
|
70
|
-
const commandName = "DescribeAccountPreferencesCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: DescribeAccountPreferencesRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: DescribeAccountPreferencesResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: DescribeAccountPreferencesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1DescribeAccountPreferencesCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<DescribeAccountPreferencesCommandOutput> {
|
|
94
|
-
return deserializeAws_restJson1DescribeAccountPreferencesCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,95 +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 { BackupPolicyDescription, DescribeBackupPolicyRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DescribeBackupPolicyCommand,
|
|
18
|
-
serializeAws_restJson1DescribeBackupPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeBackupPolicyCommandInput extends DescribeBackupPolicyRequest {}
|
|
22
|
-
export interface DescribeBackupPolicyCommandOutput extends BackupPolicyDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the backup policy for the specified EFS file system.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { EFSClient, DescribeBackupPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
30
|
-
* // const { EFSClient, DescribeBackupPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
31
|
-
* const client = new EFSClient(config);
|
|
32
|
-
* const command = new DescribeBackupPolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeBackupPolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeBackupPolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeBackupPolicyCommand extends $Command<
|
|
42
|
-
DescribeBackupPolicyCommandInput,
|
|
43
|
-
DescribeBackupPolicyCommandOutput,
|
|
44
|
-
EFSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeBackupPolicyCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: EFSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeBackupPolicyCommandInput, DescribeBackupPolicyCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "EFSClient";
|
|
69
|
-
const commandName = "DescribeBackupPolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeBackupPolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: BackupPolicyDescription.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeBackupPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1DescribeBackupPolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeBackupPolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1DescribeBackupPolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +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 { DescribeFileSystemPolicyRequest, FileSystemPolicyDescription } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DescribeFileSystemPolicyCommand,
|
|
18
|
-
serializeAws_restJson1DescribeFileSystemPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeFileSystemPolicyCommandInput extends DescribeFileSystemPolicyRequest {}
|
|
22
|
-
export interface DescribeFileSystemPolicyCommandOutput extends FileSystemPolicyDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the <code>FileSystemPolicy</code> for the specified EFS file system.</p>
|
|
26
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:DescribeFileSystemPolicy</code> action.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { EFSClient, DescribeFileSystemPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
31
|
-
* // const { EFSClient, DescribeFileSystemPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
32
|
-
* const client = new EFSClient(config);
|
|
33
|
-
* const command = new DescribeFileSystemPolicyCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link DescribeFileSystemPolicyCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link DescribeFileSystemPolicyCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class DescribeFileSystemPolicyCommand extends $Command<
|
|
43
|
-
DescribeFileSystemPolicyCommandInput,
|
|
44
|
-
DescribeFileSystemPolicyCommandOutput,
|
|
45
|
-
EFSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: DescribeFileSystemPolicyCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: EFSClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<DescribeFileSystemPolicyCommandInput, DescribeFileSystemPolicyCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "EFSClient";
|
|
70
|
-
const commandName = "DescribeFileSystemPolicyCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: DescribeFileSystemPolicyRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: FileSystemPolicyDescription.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: DescribeFileSystemPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1DescribeFileSystemPolicyCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeFileSystemPolicyCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1DescribeFileSystemPolicyCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|