@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,120 +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 { ModifyMountTargetSecurityGroupsRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand,
|
|
18
|
-
serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ModifyMountTargetSecurityGroupsCommandInput extends ModifyMountTargetSecurityGroupsRequest {}
|
|
22
|
-
export interface ModifyMountTargetSecurityGroupsCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Modifies the set of security groups in effect for a mount target.</p>
|
|
26
|
-
* <p>When you create a mount target, Amazon EFS also creates a new network interface. For
|
|
27
|
-
* more information, see <a>CreateMountTarget</a>. This operation replaces the security groups in effect for the
|
|
28
|
-
* network interface associated with a mount target, with the <code>SecurityGroups</code>
|
|
29
|
-
* provided in the request. This operation requires that the network interface of the mount
|
|
30
|
-
* target has been created and the lifecycle state of the mount target is not
|
|
31
|
-
* <code>deleted</code>. </p>
|
|
32
|
-
* <p>The operation requires permissions for the following actions:</p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <code>elasticfilesystem:ModifyMountTargetSecurityGroups</code> action on the mount
|
|
37
|
-
* target's file system. </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <code>ec2:ModifyNetworkInterfaceAttribute</code> action on the mount target's network
|
|
42
|
-
* interface. </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { EFSClient, ModifyMountTargetSecurityGroupsCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
49
|
-
* // const { EFSClient, ModifyMountTargetSecurityGroupsCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
50
|
-
* const client = new EFSClient(config);
|
|
51
|
-
* const command = new ModifyMountTargetSecurityGroupsCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link ModifyMountTargetSecurityGroupsCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link ModifyMountTargetSecurityGroupsCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export class ModifyMountTargetSecurityGroupsCommand extends $Command<
|
|
61
|
-
ModifyMountTargetSecurityGroupsCommandInput,
|
|
62
|
-
ModifyMountTargetSecurityGroupsCommandOutput,
|
|
63
|
-
EFSClientResolvedConfig
|
|
64
|
-
> {
|
|
65
|
-
// Start section: command_properties
|
|
66
|
-
// End section: command_properties
|
|
67
|
-
|
|
68
|
-
constructor(readonly input: ModifyMountTargetSecurityGroupsCommandInput) {
|
|
69
|
-
// Start section: command_constructor
|
|
70
|
-
super();
|
|
71
|
-
// End section: command_constructor
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
|
-
resolveMiddleware(
|
|
78
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
79
|
-
configuration: EFSClientResolvedConfig,
|
|
80
|
-
options?: __HttpHandlerOptions
|
|
81
|
-
): Handler<ModifyMountTargetSecurityGroupsCommandInput, ModifyMountTargetSecurityGroupsCommandOutput> {
|
|
82
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
|
-
|
|
84
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
85
|
-
|
|
86
|
-
const { logger } = configuration;
|
|
87
|
-
const clientName = "EFSClient";
|
|
88
|
-
const commandName = "ModifyMountTargetSecurityGroupsCommand";
|
|
89
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
90
|
-
logger,
|
|
91
|
-
clientName,
|
|
92
|
-
commandName,
|
|
93
|
-
inputFilterSensitiveLog: ModifyMountTargetSecurityGroupsRequest.filterSensitiveLog,
|
|
94
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
95
|
-
};
|
|
96
|
-
const { requestHandler } = configuration;
|
|
97
|
-
return stack.resolve(
|
|
98
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
99
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
100
|
-
handlerExecutionContext
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private serialize(
|
|
105
|
-
input: ModifyMountTargetSecurityGroupsCommandInput,
|
|
106
|
-
context: __SerdeContext
|
|
107
|
-
): Promise<__HttpRequest> {
|
|
108
|
-
return serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand(input, context);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private deserialize(
|
|
112
|
-
output: __HttpResponse,
|
|
113
|
-
context: __SerdeContext
|
|
114
|
-
): Promise<ModifyMountTargetSecurityGroupsCommandOutput> {
|
|
115
|
-
return deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand(output, context);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Start section: command_body_extra
|
|
119
|
-
// End section: command_body_extra
|
|
120
|
-
}
|
|
@@ -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 { PutAccountPreferencesRequest, PutAccountPreferencesResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PutAccountPreferencesCommand,
|
|
18
|
-
serializeAws_restJson1PutAccountPreferencesCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface PutAccountPreferencesCommandInput extends PutAccountPreferencesRequest {}
|
|
22
|
-
export interface PutAccountPreferencesCommandOutput extends PutAccountPreferencesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Use this operation to set the account preference in the current Amazon Web Services Region to use either long 17 character (63 bit) or short 8 character (32 bit) IDs for
|
|
26
|
-
* new EFS file systems and mount targets created. All existing resource IDs are not affected by any changes you make. You can set the ID preference during the
|
|
27
|
-
* opt-in period as EFS transitions to long resource IDs. For more information,
|
|
28
|
-
* see <a href="efs/latest/ug/manage-efs-resource-ids.html">Managing Amazon EFS resource IDs</a>.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { EFSClient, PutAccountPreferencesCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
33
|
-
* // const { EFSClient, PutAccountPreferencesCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
34
|
-
* const client = new EFSClient(config);
|
|
35
|
-
* const command = new PutAccountPreferencesCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link PutAccountPreferencesCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link PutAccountPreferencesCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class PutAccountPreferencesCommand extends $Command<
|
|
45
|
-
PutAccountPreferencesCommandInput,
|
|
46
|
-
PutAccountPreferencesCommandOutput,
|
|
47
|
-
EFSClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: PutAccountPreferencesCommandInput) {
|
|
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<PutAccountPreferencesCommandInput, PutAccountPreferencesCommandOutput> {
|
|
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 = "PutAccountPreferencesCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: PutAccountPreferencesRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: PutAccountPreferencesResponse.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: PutAccountPreferencesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1PutAccountPreferencesCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutAccountPreferencesCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1PutAccountPreferencesCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -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, PutBackupPolicyRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PutBackupPolicyCommand,
|
|
18
|
-
serializeAws_restJson1PutBackupPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface PutBackupPolicyCommandInput extends PutBackupPolicyRequest {}
|
|
22
|
-
export interface PutBackupPolicyCommandOutput extends BackupPolicyDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the file system's backup policy. Use this action to start or stop automatic backups of the 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, PutBackupPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
30
|
-
* // const { EFSClient, PutBackupPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
31
|
-
* const client = new EFSClient(config);
|
|
32
|
-
* const command = new PutBackupPolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link PutBackupPolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link PutBackupPolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class PutBackupPolicyCommand extends $Command<
|
|
42
|
-
PutBackupPolicyCommandInput,
|
|
43
|
-
PutBackupPolicyCommandOutput,
|
|
44
|
-
EFSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: PutBackupPolicyCommandInput) {
|
|
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<PutBackupPolicyCommandInput, PutBackupPolicyCommandOutput> {
|
|
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 = "PutBackupPolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: PutBackupPolicyRequest.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: PutBackupPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1PutBackupPolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutBackupPolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1PutBackupPolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,104 +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 { FileSystemPolicyDescription, PutFileSystemPolicyRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PutFileSystemPolicyCommand,
|
|
18
|
-
serializeAws_restJson1PutFileSystemPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface PutFileSystemPolicyCommandInput extends PutFileSystemPolicyRequest {}
|
|
22
|
-
export interface PutFileSystemPolicyCommandOutput extends FileSystemPolicyDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Applies an Amazon EFS <code>FileSystemPolicy</code> to an Amazon EFS file system.
|
|
26
|
-
* A file system policy is an IAM resource-based policy and can contain multiple policy statements.
|
|
27
|
-
* A file system always has exactly one file system policy, which can be the default policy or
|
|
28
|
-
* an explicit policy set or updated using this API operation.
|
|
29
|
-
* EFS file system policies have a 20,000 character limit.
|
|
30
|
-
* When an explicit policy is set, it overrides the default policy. For more information about the default file system policy, see
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html#default-filesystempolicy">Default EFS File System Policy</a>.
|
|
32
|
-
* </p>
|
|
33
|
-
* <p>EFS file system policies have a 20,000 character limit.</p>
|
|
34
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:PutFileSystemPolicy</code> action.</p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { EFSClient, PutFileSystemPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
39
|
-
* // const { EFSClient, PutFileSystemPolicyCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
40
|
-
* const client = new EFSClient(config);
|
|
41
|
-
* const command = new PutFileSystemPolicyCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link PutFileSystemPolicyCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link PutFileSystemPolicyCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class PutFileSystemPolicyCommand extends $Command<
|
|
51
|
-
PutFileSystemPolicyCommandInput,
|
|
52
|
-
PutFileSystemPolicyCommandOutput,
|
|
53
|
-
EFSClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: PutFileSystemPolicyCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: EFSClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<PutFileSystemPolicyCommandInput, PutFileSystemPolicyCommandOutput> {
|
|
72
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
-
|
|
74
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
-
|
|
76
|
-
const { logger } = configuration;
|
|
77
|
-
const clientName = "EFSClient";
|
|
78
|
-
const commandName = "PutFileSystemPolicyCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: PutFileSystemPolicyRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: FileSystemPolicyDescription.filterSensitiveLog,
|
|
85
|
-
};
|
|
86
|
-
const { requestHandler } = configuration;
|
|
87
|
-
return stack.resolve(
|
|
88
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
-
handlerExecutionContext
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private serialize(input: PutFileSystemPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_restJson1PutFileSystemPolicyCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutFileSystemPolicyCommandOutput> {
|
|
99
|
-
return deserializeAws_restJson1PutFileSystemPolicyCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -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 { LifecycleConfigurationDescription, PutLifecycleConfigurationRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PutLifecycleConfigurationCommand,
|
|
18
|
-
serializeAws_restJson1PutLifecycleConfigurationCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface PutLifecycleConfigurationCommandInput extends PutLifecycleConfigurationRequest {}
|
|
22
|
-
export interface PutLifecycleConfigurationCommandOutput extends LifecycleConfigurationDescription, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Enables lifecycle management by creating a new <code>LifecycleConfiguration</code>
|
|
26
|
-
* object. A <code>LifecycleConfiguration</code> object defines when files in an Amazon EFS file
|
|
27
|
-
* system are automatically transitioned to the lower-cost EFS Infrequent Access (IA) storage class.
|
|
28
|
-
* To enable EFS Intelligent Tiering, set the value of <code>TransitionToPrimaryStorageClass</code> to <code>AFTER_1_ACCESS</code>.
|
|
29
|
-
* For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html">EFS Lifecycle Management</a>.</p>
|
|
30
|
-
* <p>A <code>LifecycleConfiguration</code> applies to all files in a file system.</p>
|
|
31
|
-
* <p>Each Amazon EFS file system supports one lifecycle configuration, which applies to all files in the file system. If a
|
|
32
|
-
* <code>LifecycleConfiguration</code> object already exists for the specified file system, a
|
|
33
|
-
* <code>PutLifecycleConfiguration</code> call modifies the existing configuration. A
|
|
34
|
-
* <code>PutLifecycleConfiguration</code> call with an empty <code>LifecyclePolicies</code>
|
|
35
|
-
* array in the request body deletes any existing <code>LifecycleConfiguration</code> and
|
|
36
|
-
* disables lifecycle management.</p>
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* <p>In the request, specify the following: </p>
|
|
40
|
-
* <ul>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>The ID for the file system for which you are enabling, disabling, or modifying lifecycle management.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>A <code>LifecyclePolicies</code> array of <code>LifecyclePolicy</code> objects that
|
|
46
|
-
* define when files are moved to the IA storage class. The array can contain only one
|
|
47
|
-
* <code>LifecyclePolicy</code> item.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* </ul>
|
|
50
|
-
*
|
|
51
|
-
* <p>This operation requires permissions for the
|
|
52
|
-
* <code>elasticfilesystem:PutLifecycleConfiguration</code> operation.</p>
|
|
53
|
-
* <p>To apply a <code>LifecycleConfiguration</code> object to an encrypted file system, you
|
|
54
|
-
* need the same Key Management Service permissions as when you created the encrypted
|
|
55
|
-
* file system. </p>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { EFSClient, PutLifecycleConfigurationCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
60
|
-
* // const { EFSClient, PutLifecycleConfigurationCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
61
|
-
* const client = new EFSClient(config);
|
|
62
|
-
* const command = new PutLifecycleConfigurationCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link PutLifecycleConfigurationCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link PutLifecycleConfigurationCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class PutLifecycleConfigurationCommand extends $Command<
|
|
72
|
-
PutLifecycleConfigurationCommandInput,
|
|
73
|
-
PutLifecycleConfigurationCommandOutput,
|
|
74
|
-
EFSClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: PutLifecycleConfigurationCommandInput) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
super();
|
|
82
|
-
// End section: command_constructor
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(
|
|
89
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
90
|
-
configuration: EFSClientResolvedConfig,
|
|
91
|
-
options?: __HttpHandlerOptions
|
|
92
|
-
): Handler<PutLifecycleConfigurationCommandInput, PutLifecycleConfigurationCommandOutput> {
|
|
93
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
|
-
|
|
95
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
96
|
-
|
|
97
|
-
const { logger } = configuration;
|
|
98
|
-
const clientName = "EFSClient";
|
|
99
|
-
const commandName = "PutLifecycleConfigurationCommand";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: PutLifecycleConfigurationRequest.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: LifecycleConfigurationDescription.filterSensitiveLog,
|
|
106
|
-
};
|
|
107
|
-
const { requestHandler } = configuration;
|
|
108
|
-
return stack.resolve(
|
|
109
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
110
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
111
|
-
handlerExecutionContext
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private serialize(input: PutLifecycleConfigurationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_restJson1PutLifecycleConfigurationCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(
|
|
120
|
-
output: __HttpResponse,
|
|
121
|
-
context: __SerdeContext
|
|
122
|
-
): Promise<PutLifecycleConfigurationCommandOutput> {
|
|
123
|
-
return deserializeAws_restJson1PutLifecycleConfigurationCommand(output, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Start section: command_body_extra
|
|
127
|
-
// End section: command_body_extra
|
|
128
|
-
}
|
|
@@ -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 { TagResourceRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1TagResourceCommand,
|
|
18
|
-
serializeAws_restJson1TagResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
22
|
-
export interface TagResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a tag for an EFS resource. You can create tags for EFS file systems and access points using this API operation.</p>
|
|
26
|
-
* <p>This operation requires permissions for the <code>elasticfilesystem:TagResource</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, TagResourceCommand } from "@aws-sdk/client-efs"; // ES Modules import
|
|
31
|
-
* // const { EFSClient, TagResourceCommand } = require("@aws-sdk/client-efs"); // CommonJS import
|
|
32
|
-
* const client = new EFSClient(config);
|
|
33
|
-
* const command = new TagResourceCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class TagResourceCommand extends $Command<
|
|
43
|
-
TagResourceCommandInput,
|
|
44
|
-
TagResourceCommandOutput,
|
|
45
|
-
EFSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
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<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
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 = "TagResourceCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
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: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1TagResourceCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1TagResourceCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|