@aws-sdk/client-workdocs 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 +13 -0
- package/dist-cjs/WorkDocs.js +0 -1
- package/dist-cjs/WorkDocsClient.js +0 -1
- package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +0 -1
- package/dist-cjs/commands/ActivateUserCommand.js +0 -1
- package/dist-cjs/commands/AddResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/CreateCommentCommand.js +0 -1
- package/dist-cjs/commands/CreateCustomMetadataCommand.js +0 -1
- package/dist-cjs/commands/CreateFolderCommand.js +0 -1
- package/dist-cjs/commands/CreateLabelsCommand.js +0 -1
- package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/CreateUserCommand.js +0 -1
- package/dist-cjs/commands/DeactivateUserCommand.js +0 -1
- package/dist-cjs/commands/DeleteCommentCommand.js +0 -1
- package/dist-cjs/commands/DeleteCustomMetadataCommand.js +0 -1
- package/dist-cjs/commands/DeleteDocumentCommand.js +0 -1
- package/dist-cjs/commands/DeleteFolderCommand.js +0 -1
- package/dist-cjs/commands/DeleteFolderContentsCommand.js +0 -1
- package/dist-cjs/commands/DeleteLabelsCommand.js +0 -1
- package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DeleteUserCommand.js +0 -1
- package/dist-cjs/commands/DescribeActivitiesCommand.js +0 -1
- package/dist-cjs/commands/DescribeCommentsCommand.js +0 -1
- package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFolderContentsCommand.js +0 -1
- package/dist-cjs/commands/DescribeGroupsCommand.js +0 -1
- package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeRootFoldersCommand.js +0 -1
- package/dist-cjs/commands/DescribeUsersCommand.js +0 -1
- package/dist-cjs/commands/GetCurrentUserCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentPathCommand.js +0 -1
- package/dist-cjs/commands/GetDocumentVersionCommand.js +0 -1
- package/dist-cjs/commands/GetFolderCommand.js +0 -1
- package/dist-cjs/commands/GetFolderPathCommand.js +0 -1
- package/dist-cjs/commands/GetResourcesCommand.js +0 -1
- package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +0 -1
- package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +0 -1
- package/dist-cjs/commands/RemoveResourcePermissionCommand.js +0 -1
- package/dist-cjs/commands/UpdateDocumentCommand.js +0 -1
- package/dist-cjs/commands/UpdateDocumentVersionCommand.js +0 -1
- package/dist-cjs/commands/UpdateFolderCommand.js +0 -1
- package/dist-cjs/commands/UpdateUserCommand.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/DescribeDocumentVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeFolderContentsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeUsersPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -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/WorkDocs.js +0 -1
- package/dist-es/WorkDocsClient.js +0 -1
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js +0 -1
- package/dist-es/commands/ActivateUserCommand.js +0 -1
- package/dist-es/commands/AddResourcePermissionsCommand.js +0 -1
- package/dist-es/commands/CreateCommentCommand.js +0 -1
- package/dist-es/commands/CreateCustomMetadataCommand.js +0 -1
- package/dist-es/commands/CreateFolderCommand.js +0 -1
- package/dist-es/commands/CreateLabelsCommand.js +0 -1
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js +0 -1
- package/dist-es/commands/CreateUserCommand.js +0 -1
- package/dist-es/commands/DeactivateUserCommand.js +0 -1
- package/dist-es/commands/DeleteCommentCommand.js +0 -1
- package/dist-es/commands/DeleteCustomMetadataCommand.js +0 -1
- package/dist-es/commands/DeleteDocumentCommand.js +0 -1
- package/dist-es/commands/DeleteFolderCommand.js +0 -1
- package/dist-es/commands/DeleteFolderContentsCommand.js +0 -1
- package/dist-es/commands/DeleteLabelsCommand.js +0 -1
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +0 -1
- package/dist-es/commands/DeleteUserCommand.js +0 -1
- package/dist-es/commands/DescribeActivitiesCommand.js +0 -1
- package/dist-es/commands/DescribeCommentsCommand.js +0 -1
- package/dist-es/commands/DescribeDocumentVersionsCommand.js +0 -1
- package/dist-es/commands/DescribeFolderContentsCommand.js +0 -1
- package/dist-es/commands/DescribeGroupsCommand.js +0 -1
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +0 -1
- package/dist-es/commands/DescribeResourcePermissionsCommand.js +0 -1
- package/dist-es/commands/DescribeRootFoldersCommand.js +0 -1
- package/dist-es/commands/DescribeUsersCommand.js +0 -1
- package/dist-es/commands/GetCurrentUserCommand.js +0 -1
- package/dist-es/commands/GetDocumentCommand.js +0 -1
- package/dist-es/commands/GetDocumentPathCommand.js +0 -1
- package/dist-es/commands/GetDocumentVersionCommand.js +0 -1
- package/dist-es/commands/GetFolderCommand.js +0 -1
- package/dist-es/commands/GetFolderPathCommand.js +0 -1
- package/dist-es/commands/GetResourcesCommand.js +0 -1
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +0 -1
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +0 -1
- package/dist-es/commands/RemoveResourcePermissionCommand.js +0 -1
- package/dist-es/commands/UpdateDocumentCommand.js +0 -1
- package/dist-es/commands/UpdateDocumentVersionCommand.js +0 -1
- package/dist-es/commands/UpdateFolderCommand.js +0 -1
- package/dist-es/commands/UpdateUserCommand.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/DescribeDocumentVersionsPaginator.js +0 -1
- package/dist-es/pagination/DescribeFolderContentsPaginator.js +0 -1
- package/dist-es/pagination/DescribeUsersPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- 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/WorkDocs.js.map +0 -1
- package/dist-cjs/WorkDocsClient.js.map +0 -1
- package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
- package/dist-cjs/commands/ActivateUserCommand.js.map +0 -1
- package/dist-cjs/commands/AddResourcePermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCommentCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCustomMetadataCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFolderCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLabelsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateUserCommand.js.map +0 -1
- package/dist-cjs/commands/DeactivateUserCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCommentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCustomMetadataCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDocumentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFolderCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFolderContentsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLabelsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeActivitiesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCommentsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDocumentVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFolderContentsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeResourcePermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRootFoldersCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeUsersCommand.js.map +0 -1
- package/dist-cjs/commands/GetCurrentUserCommand.js.map +0 -1
- package/dist-cjs/commands/GetDocumentCommand.js.map +0 -1
- package/dist-cjs/commands/GetDocumentPathCommand.js.map +0 -1
- package/dist-cjs/commands/GetDocumentVersionCommand.js.map +0 -1
- package/dist-cjs/commands/GetFolderCommand.js.map +0 -1
- package/dist-cjs/commands/GetFolderPathCommand.js.map +0 -1
- package/dist-cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveResourcePermissionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDocumentCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDocumentVersionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFolderCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateUserCommand.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/DescribeDocumentVersionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeFolderContentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeUsersPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.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/WorkDocs.js.map +0 -1
- package/dist-es/WorkDocsClient.js.map +0 -1
- package/dist-es/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
- package/dist-es/commands/ActivateUserCommand.js.map +0 -1
- package/dist-es/commands/AddResourcePermissionsCommand.js.map +0 -1
- package/dist-es/commands/CreateCommentCommand.js.map +0 -1
- package/dist-es/commands/CreateCustomMetadataCommand.js.map +0 -1
- package/dist-es/commands/CreateFolderCommand.js.map +0 -1
- package/dist-es/commands/CreateLabelsCommand.js.map +0 -1
- package/dist-es/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/CreateUserCommand.js.map +0 -1
- package/dist-es/commands/DeactivateUserCommand.js.map +0 -1
- package/dist-es/commands/DeleteCommentCommand.js.map +0 -1
- package/dist-es/commands/DeleteCustomMetadataCommand.js.map +0 -1
- package/dist-es/commands/DeleteDocumentCommand.js.map +0 -1
- package/dist-es/commands/DeleteFolderCommand.js.map +0 -1
- package/dist-es/commands/DeleteFolderContentsCommand.js.map +0 -1
- package/dist-es/commands/DeleteLabelsCommand.js.map +0 -1
- package/dist-es/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/DeleteUserCommand.js.map +0 -1
- package/dist-es/commands/DescribeActivitiesCommand.js.map +0 -1
- package/dist-es/commands/DescribeCommentsCommand.js.map +0 -1
- package/dist-es/commands/DescribeDocumentVersionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeFolderContentsCommand.js.map +0 -1
- package/dist-es/commands/DescribeGroupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeResourcePermissionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeRootFoldersCommand.js.map +0 -1
- package/dist-es/commands/DescribeUsersCommand.js.map +0 -1
- package/dist-es/commands/GetCurrentUserCommand.js.map +0 -1
- package/dist-es/commands/GetDocumentCommand.js.map +0 -1
- package/dist-es/commands/GetDocumentPathCommand.js.map +0 -1
- package/dist-es/commands/GetDocumentVersionCommand.js.map +0 -1
- package/dist-es/commands/GetFolderCommand.js.map +0 -1
- package/dist-es/commands/GetFolderPathCommand.js.map +0 -1
- package/dist-es/commands/GetResourcesCommand.js.map +0 -1
- package/dist-es/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
- package/dist-es/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
- package/dist-es/commands/RemoveResourcePermissionCommand.js.map +0 -1
- package/dist-es/commands/UpdateDocumentCommand.js.map +0 -1
- package/dist-es/commands/UpdateDocumentVersionCommand.js.map +0 -1
- package/dist-es/commands/UpdateFolderCommand.js.map +0 -1
- package/dist-es/commands/UpdateUserCommand.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/DescribeDocumentVersionsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeFolderContentsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeUsersPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.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/WorkDocs.ts +0 -1548
- package/src/WorkDocsClient.ts +0 -439
- package/src/commands/AbortDocumentVersionUploadCommand.ts +0 -101
- package/src/commands/ActivateUserCommand.ts +0 -96
- package/src/commands/AddResourcePermissionsCommand.ts +0 -97
- package/src/commands/CreateCommentCommand.ts +0 -95
- package/src/commands/CreateCustomMetadataCommand.ts +0 -96
- package/src/commands/CreateFolderCommand.ts +0 -95
- package/src/commands/CreateLabelsCommand.ts +0 -96
- package/src/commands/CreateNotificationSubscriptionCommand.ts +0 -107
- package/src/commands/CreateUserCommand.ts +0 -96
- package/src/commands/DeactivateUserCommand.ts +0 -96
- package/src/commands/DeleteCommentCommand.ts +0 -95
- package/src/commands/DeleteCustomMetadataCommand.ts +0 -95
- package/src/commands/DeleteDocumentCommand.ts +0 -95
- package/src/commands/DeleteFolderCommand.ts +0 -95
- package/src/commands/DeleteFolderContentsCommand.ts +0 -95
- package/src/commands/DeleteLabelsCommand.ts +0 -95
- package/src/commands/DeleteNotificationSubscriptionCommand.ts +0 -101
- package/src/commands/DeleteUserCommand.ts +0 -95
- package/src/commands/DescribeActivitiesCommand.ts +0 -95
- package/src/commands/DescribeCommentsCommand.ts +0 -95
- package/src/commands/DescribeDocumentVersionsCommand.ts +0 -96
- package/src/commands/DescribeFolderContentsCommand.ts +0 -100
- package/src/commands/DescribeGroupsCommand.ts +0 -96
- package/src/commands/DescribeNotificationSubscriptionsCommand.ts +0 -106
- package/src/commands/DescribeResourcePermissionsCommand.ts +0 -100
- package/src/commands/DescribeRootFoldersCommand.ts +0 -103
- package/src/commands/DescribeUsersCommand.ts +0 -99
- package/src/commands/GetCurrentUserCommand.ts +0 -101
- package/src/commands/GetDocumentCommand.ts +0 -95
- package/src/commands/GetDocumentPathCommand.ts +0 -100
- package/src/commands/GetDocumentVersionCommand.ts +0 -95
- package/src/commands/GetFolderCommand.ts +0 -95
- package/src/commands/GetFolderPathCommand.ts +0 -100
- package/src/commands/GetResourcesCommand.ts +0 -96
- package/src/commands/InitiateDocumentVersionUploadCommand.ts +0 -105
- package/src/commands/RemoveAllResourcePermissionsCommand.ts +0 -98
- package/src/commands/RemoveResourcePermissionCommand.ts +0 -96
- package/src/commands/UpdateDocumentCommand.ts +0 -96
- package/src/commands/UpdateDocumentVersionCommand.ts +0 -98
- package/src/commands/UpdateFolderCommand.ts +0 -96
- package/src/commands/UpdateUserCommand.ts +0 -96
- package/src/endpoints.ts +0 -68
- package/src/index.ts +0 -48
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3531
- package/src/pagination/DescribeDocumentVersionsPaginator.ts +0 -59
- package/src/pagination/DescribeFolderContentsPaginator.ts +0 -59
- package/src/pagination/DescribeUsersPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_restJson1.ts +0 -6692
- 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,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 { RemoveAllResourcePermissionsRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1RemoveAllResourcePermissionsCommand,
|
|
17
|
-
serializeAws_restJson1RemoveAllResourcePermissionsCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface RemoveAllResourcePermissionsCommandInput extends RemoveAllResourcePermissionsRequest {}
|
|
22
|
-
export interface RemoveAllResourcePermissionsCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Removes all the permissions from the specified resource.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { WorkDocsClient, RemoveAllResourcePermissionsCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
30
|
-
* // const { WorkDocsClient, RemoveAllResourcePermissionsCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
31
|
-
* const client = new WorkDocsClient(config);
|
|
32
|
-
* const command = new RemoveAllResourcePermissionsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link RemoveAllResourcePermissionsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link RemoveAllResourcePermissionsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class RemoveAllResourcePermissionsCommand extends $Command<
|
|
42
|
-
RemoveAllResourcePermissionsCommandInput,
|
|
43
|
-
RemoveAllResourcePermissionsCommandOutput,
|
|
44
|
-
WorkDocsClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: RemoveAllResourcePermissionsCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<RemoveAllResourcePermissionsCommandInput, RemoveAllResourcePermissionsCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
69
|
-
const commandName = "RemoveAllResourcePermissionsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: RemoveAllResourcePermissionsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
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: RemoveAllResourcePermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1RemoveAllResourcePermissionsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(
|
|
90
|
-
output: __HttpResponse,
|
|
91
|
-
context: __SerdeContext
|
|
92
|
-
): Promise<RemoveAllResourcePermissionsCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1RemoveAllResourcePermissionsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -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 { RemoveResourcePermissionRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1RemoveResourcePermissionCommand,
|
|
17
|
-
serializeAws_restJson1RemoveResourcePermissionCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface RemoveResourcePermissionCommandInput extends RemoveResourcePermissionRequest {}
|
|
22
|
-
export interface RemoveResourcePermissionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Removes the permission for the specified principal from the specified
|
|
26
|
-
* resource.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { WorkDocsClient, RemoveResourcePermissionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
31
|
-
* // const { WorkDocsClient, RemoveResourcePermissionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
32
|
-
* const client = new WorkDocsClient(config);
|
|
33
|
-
* const command = new RemoveResourcePermissionCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link RemoveResourcePermissionCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link RemoveResourcePermissionCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class RemoveResourcePermissionCommand extends $Command<
|
|
43
|
-
RemoveResourcePermissionCommandInput,
|
|
44
|
-
RemoveResourcePermissionCommandOutput,
|
|
45
|
-
WorkDocsClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: RemoveResourcePermissionCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<RemoveResourcePermissionCommandInput, RemoveResourcePermissionCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
70
|
-
const commandName = "RemoveResourcePermissionCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: RemoveResourcePermissionRequest.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: RemoveResourcePermissionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1RemoveResourcePermissionCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RemoveResourcePermissionCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1RemoveResourcePermissionCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { UpdateDocumentRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1UpdateDocumentCommand,
|
|
17
|
-
serializeAws_restJson1UpdateDocumentCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface UpdateDocumentCommandInput extends UpdateDocumentRequest {}
|
|
22
|
-
export interface UpdateDocumentCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the specified attributes of a document. The user must have access to both
|
|
26
|
-
* the document and its parent folder, if applicable.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { WorkDocsClient, UpdateDocumentCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
31
|
-
* // const { WorkDocsClient, UpdateDocumentCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
32
|
-
* const client = new WorkDocsClient(config);
|
|
33
|
-
* const command = new UpdateDocumentCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateDocumentCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateDocumentCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class UpdateDocumentCommand extends $Command<
|
|
43
|
-
UpdateDocumentCommandInput,
|
|
44
|
-
UpdateDocumentCommandOutput,
|
|
45
|
-
WorkDocsClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: UpdateDocumentCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<UpdateDocumentCommandInput, UpdateDocumentCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
70
|
-
const commandName = "UpdateDocumentCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: UpdateDocumentRequest.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: UpdateDocumentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1UpdateDocumentCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDocumentCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1UpdateDocumentCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { UpdateDocumentVersionRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1UpdateDocumentVersionCommand,
|
|
17
|
-
serializeAws_restJson1UpdateDocumentVersionCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface UpdateDocumentVersionCommandInput extends UpdateDocumentVersionRequest {}
|
|
22
|
-
export interface UpdateDocumentVersionCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Changes the status of the document version to ACTIVE. </p>
|
|
26
|
-
* <p>Amazon WorkDocs also sets its document container to ACTIVE. This is the last step
|
|
27
|
-
* in a document upload, after the client uploads the document to an S3-presigned URL
|
|
28
|
-
* returned by <a>InitiateDocumentVersionUpload</a>. </p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { WorkDocsClient, UpdateDocumentVersionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
33
|
-
* // const { WorkDocsClient, UpdateDocumentVersionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
34
|
-
* const client = new WorkDocsClient(config);
|
|
35
|
-
* const command = new UpdateDocumentVersionCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link UpdateDocumentVersionCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link UpdateDocumentVersionCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class UpdateDocumentVersionCommand extends $Command<
|
|
45
|
-
UpdateDocumentVersionCommandInput,
|
|
46
|
-
UpdateDocumentVersionCommandOutput,
|
|
47
|
-
WorkDocsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: UpdateDocumentVersionCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<UpdateDocumentVersionCommandInput, UpdateDocumentVersionCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
72
|
-
const commandName = "UpdateDocumentVersionCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: UpdateDocumentVersionRequest.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: UpdateDocumentVersionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1UpdateDocumentVersionCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDocumentVersionCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1UpdateDocumentVersionCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -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 { UpdateFolderRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1UpdateFolderCommand,
|
|
17
|
-
serializeAws_restJson1UpdateFolderCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface UpdateFolderCommandInput extends UpdateFolderRequest {}
|
|
22
|
-
export interface UpdateFolderCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the specified attributes of the specified folder. The user must have access
|
|
26
|
-
* to both the folder and its parent folder, if applicable.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { WorkDocsClient, UpdateFolderCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
31
|
-
* // const { WorkDocsClient, UpdateFolderCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
32
|
-
* const client = new WorkDocsClient(config);
|
|
33
|
-
* const command = new UpdateFolderCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateFolderCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateFolderCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class UpdateFolderCommand extends $Command<
|
|
43
|
-
UpdateFolderCommandInput,
|
|
44
|
-
UpdateFolderCommandOutput,
|
|
45
|
-
WorkDocsClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: UpdateFolderCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<UpdateFolderCommandInput, UpdateFolderCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
70
|
-
const commandName = "UpdateFolderCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: UpdateFolderRequest.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: UpdateFolderCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1UpdateFolderCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateFolderCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1UpdateFolderCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { UpdateUserRequest, UpdateUserResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1UpdateUserCommand,
|
|
17
|
-
serializeAws_restJson1UpdateUserCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface UpdateUserCommandInput extends UpdateUserRequest {}
|
|
22
|
-
export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Updates the specified attributes of the specified user, and grants or revokes
|
|
26
|
-
* administrative privileges to the Amazon WorkDocs site.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { WorkDocsClient, UpdateUserCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
31
|
-
* // const { WorkDocsClient, UpdateUserCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
32
|
-
* const client = new WorkDocsClient(config);
|
|
33
|
-
* const command = new UpdateUserCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link UpdateUserCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link UpdateUserCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class UpdateUserCommand extends $Command<
|
|
43
|
-
UpdateUserCommandInput,
|
|
44
|
-
UpdateUserCommandOutput,
|
|
45
|
-
WorkDocsClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: UpdateUserCommandInput) {
|
|
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: WorkDocsClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<UpdateUserCommandInput, UpdateUserCommandOutput> {
|
|
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 = "WorkDocsClient";
|
|
70
|
-
const commandName = "UpdateUserCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: UpdateUserRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: UpdateUserResponse.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: UpdateUserCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1UpdateUserCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateUserCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1UpdateUserCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {
|
|
5
|
-
"fips-us-east-1": {
|
|
6
|
-
hostname: "workdocs-fips.us-east-1.amazonaws.com",
|
|
7
|
-
signingRegion: "us-east-1",
|
|
8
|
-
},
|
|
9
|
-
"fips-us-west-2": {
|
|
10
|
-
hostname: "workdocs-fips.us-west-2.amazonaws.com",
|
|
11
|
-
signingRegion: "us-west-2",
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const partitionHash: PartitionHash = {
|
|
16
|
-
aws: {
|
|
17
|
-
regions: [
|
|
18
|
-
"af-south-1",
|
|
19
|
-
"ap-east-1",
|
|
20
|
-
"ap-northeast-1",
|
|
21
|
-
"ap-northeast-2",
|
|
22
|
-
"ap-northeast-3",
|
|
23
|
-
"ap-south-1",
|
|
24
|
-
"ap-southeast-1",
|
|
25
|
-
"ap-southeast-2",
|
|
26
|
-
"ca-central-1",
|
|
27
|
-
"eu-central-1",
|
|
28
|
-
"eu-north-1",
|
|
29
|
-
"eu-south-1",
|
|
30
|
-
"eu-west-1",
|
|
31
|
-
"eu-west-2",
|
|
32
|
-
"eu-west-3",
|
|
33
|
-
"fips-us-east-1",
|
|
34
|
-
"fips-us-west-2",
|
|
35
|
-
"me-south-1",
|
|
36
|
-
"sa-east-1",
|
|
37
|
-
"us-east-1",
|
|
38
|
-
"us-east-2",
|
|
39
|
-
"us-west-1",
|
|
40
|
-
"us-west-2",
|
|
41
|
-
],
|
|
42
|
-
hostname: "workdocs.{region}.amazonaws.com",
|
|
43
|
-
},
|
|
44
|
-
"aws-cn": {
|
|
45
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
46
|
-
hostname: "workdocs.{region}.amazonaws.com.cn",
|
|
47
|
-
},
|
|
48
|
-
"aws-iso": {
|
|
49
|
-
regions: ["us-iso-east-1"],
|
|
50
|
-
hostname: "workdocs.{region}.c2s.ic.gov",
|
|
51
|
-
},
|
|
52
|
-
"aws-iso-b": {
|
|
53
|
-
regions: ["us-isob-east-1"],
|
|
54
|
-
hostname: "workdocs.{region}.sc2s.sgov.gov",
|
|
55
|
-
},
|
|
56
|
-
"aws-us-gov": {
|
|
57
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
58
|
-
hostname: "workdocs.{region}.amazonaws.com",
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
63
|
-
getRegionInfo(region, {
|
|
64
|
-
...options,
|
|
65
|
-
signingService: "workdocs",
|
|
66
|
-
regionHash,
|
|
67
|
-
partitionHash,
|
|
68
|
-
});
|