@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,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
DescribeNotificationSubscriptionsRequest,
|
|
16
|
-
DescribeNotificationSubscriptionsResponse,
|
|
17
|
-
} from "../models/models_0";
|
|
18
|
-
import {
|
|
19
|
-
deserializeAws_restJson1DescribeNotificationSubscriptionsCommand,
|
|
20
|
-
serializeAws_restJson1DescribeNotificationSubscriptionsCommand,
|
|
21
|
-
} from "../protocols/Aws_restJson1";
|
|
22
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
23
|
-
|
|
24
|
-
export interface DescribeNotificationSubscriptionsCommandInput extends DescribeNotificationSubscriptionsRequest {}
|
|
25
|
-
export interface DescribeNotificationSubscriptionsCommandOutput
|
|
26
|
-
extends DescribeNotificationSubscriptionsResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>Lists the specified notification subscriptions.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { WorkDocsClient, DescribeNotificationSubscriptionsCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
35
|
-
* // const { WorkDocsClient, DescribeNotificationSubscriptionsCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
36
|
-
* const client = new WorkDocsClient(config);
|
|
37
|
-
* const command = new DescribeNotificationSubscriptionsCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeNotificationSubscriptionsCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeNotificationSubscriptionsCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DescribeNotificationSubscriptionsCommand extends $Command<
|
|
47
|
-
DescribeNotificationSubscriptionsCommandInput,
|
|
48
|
-
DescribeNotificationSubscriptionsCommandOutput,
|
|
49
|
-
WorkDocsClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DescribeNotificationSubscriptionsCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DescribeNotificationSubscriptionsCommandInput, DescribeNotificationSubscriptionsCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "WorkDocsClient";
|
|
74
|
-
const commandName = "DescribeNotificationSubscriptionsCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DescribeNotificationSubscriptionsRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DescribeNotificationSubscriptionsResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(
|
|
91
|
-
input: DescribeNotificationSubscriptionsCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_restJson1DescribeNotificationSubscriptionsCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<DescribeNotificationSubscriptionsCommandOutput> {
|
|
101
|
-
return deserializeAws_restJson1DescribeNotificationSubscriptionsCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,100 +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 { DescribeResourcePermissionsRequest, DescribeResourcePermissionsResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1DescribeResourcePermissionsCommand,
|
|
17
|
-
serializeAws_restJson1DescribeResourcePermissionsCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface DescribeResourcePermissionsCommandInput extends DescribeResourcePermissionsRequest {}
|
|
22
|
-
export interface DescribeResourcePermissionsCommandOutput
|
|
23
|
-
extends DescribeResourcePermissionsResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Describes the permissions of a specified resource.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { WorkDocsClient, DescribeResourcePermissionsCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
32
|
-
* // const { WorkDocsClient, DescribeResourcePermissionsCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
33
|
-
* const client = new WorkDocsClient(config);
|
|
34
|
-
* const command = new DescribeResourcePermissionsCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link DescribeResourcePermissionsCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link DescribeResourcePermissionsCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class DescribeResourcePermissionsCommand extends $Command<
|
|
44
|
-
DescribeResourcePermissionsCommandInput,
|
|
45
|
-
DescribeResourcePermissionsCommandOutput,
|
|
46
|
-
WorkDocsClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: DescribeResourcePermissionsCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<DescribeResourcePermissionsCommandInput, DescribeResourcePermissionsCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "WorkDocsClient";
|
|
71
|
-
const commandName = "DescribeResourcePermissionsCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: DescribeResourcePermissionsRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: DescribeResourcePermissionsResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: DescribeResourcePermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_restJson1DescribeResourcePermissionsCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<DescribeResourcePermissionsCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1DescribeResourcePermissionsCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,103 +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 { DescribeRootFoldersRequest, DescribeRootFoldersResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1DescribeRootFoldersCommand,
|
|
17
|
-
serializeAws_restJson1DescribeRootFoldersCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface DescribeRootFoldersCommandInput extends DescribeRootFoldersRequest {}
|
|
22
|
-
export interface DescribeRootFoldersCommandOutput extends DescribeRootFoldersResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Describes the current user's special folders; the <code>RootFolder</code> and the
|
|
26
|
-
* <code>RecycleBin</code>. <code>RootFolder</code> is the root of user's files and
|
|
27
|
-
* folders and <code>RecycleBin</code> is the root of recycled items. This is not a valid
|
|
28
|
-
* action for SigV4 (administrative API) clients.</p>
|
|
29
|
-
* <p>This action requires an authentication token. To get an authentication token,
|
|
30
|
-
* register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
|
|
31
|
-
* Control for User Applications</a> in the
|
|
32
|
-
* <i>Amazon
|
|
33
|
-
* WorkDocs Developer Guide</i>.</p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { WorkDocsClient, DescribeRootFoldersCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
38
|
-
* // const { WorkDocsClient, DescribeRootFoldersCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
39
|
-
* const client = new WorkDocsClient(config);
|
|
40
|
-
* const command = new DescribeRootFoldersCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link DescribeRootFoldersCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link DescribeRootFoldersCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class DescribeRootFoldersCommand extends $Command<
|
|
50
|
-
DescribeRootFoldersCommandInput,
|
|
51
|
-
DescribeRootFoldersCommandOutput,
|
|
52
|
-
WorkDocsClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: DescribeRootFoldersCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<DescribeRootFoldersCommandInput, DescribeRootFoldersCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "WorkDocsClient";
|
|
77
|
-
const commandName = "DescribeRootFoldersCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: DescribeRootFoldersRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: DescribeRootFoldersResponse.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(input: DescribeRootFoldersCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_restJson1DescribeRootFoldersCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeRootFoldersCommandOutput> {
|
|
98
|
-
return deserializeAws_restJson1DescribeRootFoldersCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { DescribeUsersRequest, DescribeUsersResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1DescribeUsersCommand,
|
|
17
|
-
serializeAws_restJson1DescribeUsersCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface DescribeUsersCommandInput extends DescribeUsersRequest {}
|
|
22
|
-
export interface DescribeUsersCommandOutput extends DescribeUsersResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Describes the specified users. You can describe all users or filter the results
|
|
26
|
-
* (for example, by status or organization).</p>
|
|
27
|
-
* <p>By default, Amazon WorkDocs returns the first 24 active or pending users. If there
|
|
28
|
-
* are more results, the response includes a marker that you can use to request the next
|
|
29
|
-
* set of results.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { WorkDocsClient, DescribeUsersCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
34
|
-
* // const { WorkDocsClient, DescribeUsersCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
35
|
-
* const client = new WorkDocsClient(config);
|
|
36
|
-
* const command = new DescribeUsersCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link DescribeUsersCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link DescribeUsersCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class DescribeUsersCommand extends $Command<
|
|
46
|
-
DescribeUsersCommandInput,
|
|
47
|
-
DescribeUsersCommandOutput,
|
|
48
|
-
WorkDocsClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: DescribeUsersCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<DescribeUsersCommandInput, DescribeUsersCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "WorkDocsClient";
|
|
73
|
-
const commandName = "DescribeUsersCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: DescribeUsersRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: DescribeUsersResponse.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: DescribeUsersCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_restJson1DescribeUsersCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeUsersCommandOutput> {
|
|
94
|
-
return deserializeAws_restJson1DescribeUsersCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,101 +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 { GetCurrentUserRequest, GetCurrentUserResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1GetCurrentUserCommand,
|
|
17
|
-
serializeAws_restJson1GetCurrentUserCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface GetCurrentUserCommandInput extends GetCurrentUserRequest {}
|
|
22
|
-
export interface GetCurrentUserCommandOutput extends GetCurrentUserResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves details of the current user for whom the authentication token was
|
|
26
|
-
* generated. This is not a valid action for SigV4 (administrative API) clients.</p>
|
|
27
|
-
* <p>This action requires an authentication token. To get an authentication token,
|
|
28
|
-
* register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
|
|
29
|
-
* Control for User Applications</a> in the
|
|
30
|
-
* <i>Amazon
|
|
31
|
-
* WorkDocs Developer Guide</i>.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { WorkDocsClient, GetCurrentUserCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
36
|
-
* // const { WorkDocsClient, GetCurrentUserCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
37
|
-
* const client = new WorkDocsClient(config);
|
|
38
|
-
* const command = new GetCurrentUserCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link GetCurrentUserCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link GetCurrentUserCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class GetCurrentUserCommand extends $Command<
|
|
48
|
-
GetCurrentUserCommandInput,
|
|
49
|
-
GetCurrentUserCommandOutput,
|
|
50
|
-
WorkDocsClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: GetCurrentUserCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: WorkDocsClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<GetCurrentUserCommandInput, GetCurrentUserCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "WorkDocsClient";
|
|
75
|
-
const commandName = "GetCurrentUserCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: GetCurrentUserRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: GetCurrentUserResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: GetCurrentUserCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_restJson1GetCurrentUserCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetCurrentUserCommandOutput> {
|
|
96
|
-
return deserializeAws_restJson1GetCurrentUserCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -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 { GetDocumentRequest, GetDocumentResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1GetDocumentCommand,
|
|
17
|
-
serializeAws_restJson1GetDocumentCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
|
|
20
|
-
|
|
21
|
-
export interface GetDocumentCommandInput extends GetDocumentRequest {}
|
|
22
|
-
export interface GetDocumentCommandOutput extends GetDocumentResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves details of a document.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { WorkDocsClient, GetDocumentCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
|
|
30
|
-
* // const { WorkDocsClient, GetDocumentCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
|
|
31
|
-
* const client = new WorkDocsClient(config);
|
|
32
|
-
* const command = new GetDocumentCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetDocumentCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetDocumentCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetDocumentCommand extends $Command<
|
|
42
|
-
GetDocumentCommandInput,
|
|
43
|
-
GetDocumentCommandOutput,
|
|
44
|
-
WorkDocsClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetDocumentCommandInput) {
|
|
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<GetDocumentCommandInput, GetDocumentCommandOutput> {
|
|
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 = "GetDocumentCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetDocumentRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetDocumentResponse.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: GetDocumentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1GetDocumentCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDocumentCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1GetDocumentCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|