-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-directory-service-data): Added new AWS Directory Service …
…Data API, enabling you to manage data stored in AWS Directory Service directories. This includes APIs for creating, reading, updating, and deleting directory users, groups, and group memberships.
- v3.747.0
- v3.746.0
- v3.745.0
- v3.744.0
- v3.743.0
- v3.742.1
- v3.742.0
- v3.741.0
- v3.740.0
- v3.739.0
- v3.738.0
- v3.737.0
- v3.736.0
- v3.735.0
- v3.734.0
- v3.733.0
- v3.732.0
- v3.731.1
- v3.731.0
- v3.730.0
- v3.729.0
- v3.728.0
- v3.727.0
- v3.726.1
- v3.726.0
- v3.725.0
- v3.724.0
- v3.723.0
- v3.722.0
- v3.721.0
- v3.720.0
- v3.719.1
- v3.719.0
- v3.718.0
- v3.717.0
- v3.716.0
- v3.715.0
- v3.714.0
- v3.713.0
- v3.712.0
- v3.711.0
- v3.710.0
- v3.709.0
- v3.708.0
- v3.707.0
- v3.706.0
- v3.705.0
- v3.704.0
- v3.703.0
- v3.702.0
- v3.701.0
- v3.700.0
- v3.699.0
- v3.698.0
- v3.697.0
- v3.696.0
- v3.695.0
- v3.694.0
- v3.693.0
- v3.692.0
- v3.691.0
- v3.690.0
- v3.689.0
- v3.688.0
- v3.687.0
- v3.686.0
- v3.685.0
- v3.684.0
- v3.683.0
- v3.682.0
- v3.681.0
- v3.680.0
- v3.679.0
- v3.678.0
- v3.677.0
- v3.676.0
- v3.675.0
- v3.674.0
- v3.673.0
- v3.672.0
- v3.671.0
- v3.670.0
- v3.669.0
- v3.668.0
- v3.667.0
- v3.666.0
- v3.665.0
- v3.664.0
- v3.663.0
- v3.662.0
- v3.661.0
- v3.660.0
- v3.659.0
- v3.658.1
- v3.658.0
- v3.657.0
- v3.656.0
- v3.655.0
- v3.654.0
awstools
committed
Sep 18, 2024
1 parent
cca80dd
commit 8c9372b
Showing
54 changed files
with
11,369 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/node_modules/ | ||
/build/ | ||
/coverage/ | ||
/docs/ | ||
/dist-* | ||
*.tsbuildinfo | ||
*.tgz | ||
*.log | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||
|
||
1. Definitions. | ||
|
||
"License" shall mean the terms and conditions for use, reproduction, | ||
and distribution as defined by Sections 1 through 9 of this document. | ||
|
||
"Licensor" shall mean the copyright owner or entity authorized by | ||
the copyright owner that is granting the License. | ||
|
||
"Legal Entity" shall mean the union of the acting entity and all | ||
other entities that control, are controlled by, or are under common | ||
control with that entity. For the purposes of this definition, | ||
"control" means (i) the power, direct or indirect, to cause the | ||
direction or management of such entity, whether by contract or | ||
otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||
outstanding shares, or (iii) beneficial ownership of such entity. | ||
|
||
"You" (or "Your") shall mean an individual or Legal Entity | ||
exercising permissions granted by this License. | ||
|
||
"Source" form shall mean the preferred form for making modifications, | ||
including but not limited to software source code, documentation | ||
source, and configuration files. | ||
|
||
"Object" form shall mean any form resulting from mechanical | ||
transformation or translation of a Source form, including but | ||
not limited to compiled object code, generated documentation, | ||
and conversions to other media types. | ||
|
||
"Work" shall mean the work of authorship, whether in Source or | ||
Object form, made available under the License, as indicated by a | ||
copyright notice that is included in or attached to the work | ||
(an example is provided in the Appendix below). | ||
|
||
"Derivative Works" shall mean any work, whether in Source or Object | ||
form, that is based on (or derived from) the Work and for which the | ||
editorial revisions, annotations, elaborations, or other modifications | ||
represent, as a whole, an original work of authorship. For the purposes | ||
of this License, Derivative Works shall not include works that remain | ||
separable from, or merely link (or bind by name) to the interfaces of, | ||
the Work and Derivative Works thereof. | ||
|
||
"Contribution" shall mean any work of authorship, including | ||
the original version of the Work and any modifications or additions | ||
to that Work or Derivative Works thereof, that is intentionally | ||
submitted to Licensor for inclusion in the Work by the copyright owner | ||
or by an individual or Legal Entity authorized to submit on behalf of | ||
the copyright owner. For the purposes of this definition, "submitted" | ||
means any form of electronic, verbal, or written communication sent | ||
to the Licensor or its representatives, including but not limited to | ||
communication on electronic mailing lists, source code control systems, | ||
and issue tracking systems that are managed by, or on behalf of, the | ||
Licensor for the purpose of discussing and improving the Work, but | ||
excluding communication that is conspicuously marked or otherwise | ||
designated in writing by the copyright owner as "Not a Contribution." | ||
|
||
"Contributor" shall mean Licensor and any individual or Legal Entity | ||
on behalf of whom a Contribution has been received by Licensor and | ||
subsequently incorporated within the Work. | ||
|
||
2. Grant of Copyright License. Subject to the terms and conditions of | ||
this License, each Contributor hereby grants to You a perpetual, | ||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
copyright license to reproduce, prepare Derivative Works of, | ||
publicly display, publicly perform, sublicense, and distribute the | ||
Work and such Derivative Works in Source or Object form. | ||
|
||
3. Grant of Patent License. Subject to the terms and conditions of | ||
this License, each Contributor hereby grants to You a perpetual, | ||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
(except as stated in this section) patent license to make, have made, | ||
use, offer to sell, sell, import, and otherwise transfer the Work, | ||
where such license applies only to those patent claims licensable | ||
by such Contributor that are necessarily infringed by their | ||
Contribution(s) alone or by combination of their Contribution(s) | ||
with the Work to which such Contribution(s) was submitted. If You | ||
institute patent litigation against any entity (including a | ||
cross-claim or counterclaim in a lawsuit) alleging that the Work | ||
or a Contribution incorporated within the Work constitutes direct | ||
or contributory patent infringement, then any patent licenses | ||
granted to You under this License for that Work shall terminate | ||
as of the date such litigation is filed. | ||
|
||
4. Redistribution. You may reproduce and distribute copies of the | ||
Work or Derivative Works thereof in any medium, with or without | ||
modifications, and in Source or Object form, provided that You | ||
meet the following conditions: | ||
|
||
(a) You must give any other recipients of the Work or | ||
Derivative Works a copy of this License; and | ||
|
||
(b) You must cause any modified files to carry prominent notices | ||
stating that You changed the files; and | ||
|
||
(c) You must retain, in the Source form of any Derivative Works | ||
that You distribute, all copyright, patent, trademark, and | ||
attribution notices from the Source form of the Work, | ||
excluding those notices that do not pertain to any part of | ||
the Derivative Works; and | ||
|
||
(d) If the Work includes a "NOTICE" text file as part of its | ||
distribution, then any Derivative Works that You distribute must | ||
include a readable copy of the attribution notices contained | ||
within such NOTICE file, excluding those notices that do not | ||
pertain to any part of the Derivative Works, in at least one | ||
of the following places: within a NOTICE text file distributed | ||
as part of the Derivative Works; within the Source form or | ||
documentation, if provided along with the Derivative Works; or, | ||
within a display generated by the Derivative Works, if and | ||
wherever such third-party notices normally appear. The contents | ||
of the NOTICE file are for informational purposes only and | ||
do not modify the License. You may add Your own attribution | ||
notices within Derivative Works that You distribute, alongside | ||
or as an addendum to the NOTICE text from the Work, provided | ||
that such additional attribution notices cannot be construed | ||
as modifying the License. | ||
|
||
You may add Your own copyright statement to Your modifications and | ||
may provide additional or different license terms and conditions | ||
for use, reproduction, or distribution of Your modifications, or | ||
for any such Derivative Works as a whole, provided Your use, | ||
reproduction, and distribution of the Work otherwise complies with | ||
the conditions stated in this License. | ||
|
||
5. Submission of Contributions. Unless You explicitly state otherwise, | ||
any Contribution intentionally submitted for inclusion in the Work | ||
by You to the Licensor shall be under the terms and conditions of | ||
this License, without any additional terms or conditions. | ||
Notwithstanding the above, nothing herein shall supersede or modify | ||
the terms of any separate license agreement you may have executed | ||
with Licensor regarding such Contributions. | ||
|
||
6. Trademarks. This License does not grant permission to use the trade | ||
names, trademarks, service marks, or product names of the Licensor, | ||
except as required for reasonable and customary use in describing the | ||
origin of the Work and reproducing the content of the NOTICE file. | ||
|
||
7. Disclaimer of Warranty. Unless required by applicable law or | ||
agreed to in writing, Licensor provides the Work (and each | ||
Contributor provides its Contributions) on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied, including, without limitation, any warranties or conditions | ||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||
PARTICULAR PURPOSE. You are solely responsible for determining the | ||
appropriateness of using or redistributing the Work and assume any | ||
risks associated with Your exercise of permissions under this License. | ||
|
||
8. Limitation of Liability. In no event and under no legal theory, | ||
whether in tort (including negligence), contract, or otherwise, | ||
unless required by applicable law (such as deliberate and grossly | ||
negligent acts) or agreed to in writing, shall any Contributor be | ||
liable to You for damages, including any direct, indirect, special, | ||
incidental, or consequential damages of any character arising as a | ||
result of this License or out of the use or inability to use the | ||
Work (including but not limited to damages for loss of goodwill, | ||
work stoppage, computer failure or malfunction, or any and all | ||
other commercial damages or losses), even if such Contributor | ||
has been advised of the possibility of such damages. | ||
|
||
9. Accepting Warranty or Additional Liability. While redistributing | ||
the Work or Derivative Works thereof, You may choose to offer, | ||
and charge a fee for, acceptance of support, warranty, indemnity, | ||
or other liability obligations and/or rights consistent with this | ||
License. However, in accepting such obligations, You may act only | ||
on Your own behalf and on Your sole responsibility, not on behalf | ||
of any other Contributor, and only if You agree to indemnify, | ||
defend, and hold each Contributor harmless for any liability | ||
incurred by, or claims asserted against, such Contributor by reason | ||
of your accepting any such warranty or additional liability. | ||
|
||
END OF TERMS AND CONDITIONS | ||
|
||
APPENDIX: How to apply the Apache License to your work. | ||
|
||
To apply the Apache License to your work, attach the following | ||
boilerplate notice, with the fields enclosed by brackets "{}" | ||
replaced with your own identifying information. (Don't include | ||
the brackets!) The text should be enclosed in the appropriate | ||
comment syntax for the file format. We also recommend that a | ||
file or class name and description of purpose be included on the | ||
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../api-extractor.json", | ||
"mainEntryPointFilePath": "<projectFolder>/dist-types/index.d.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"name": "@aws-sdk/client-directory-service-data", | ||
"description": "AWS SDK for JavaScript Directory Service Data Client for Node.js, Browser and React Native", | ||
"version": "3.0.0", | ||
"scripts": { | ||
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", | ||
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", | ||
"extract:docs": "api-extractor run --local", | ||
"generate:client": "node ../../scripts/generate-clients/single-service --solo directory-service-data" | ||
}, | ||
"main": "./dist-cjs/index.js", | ||
"types": "./dist-types/index.d.ts", | ||
"module": "./dist-es/index.js", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@aws-crypto/sha256-browser": "5.2.0", | ||
"@aws-crypto/sha256-js": "5.2.0", | ||
"@aws-sdk/client-sso-oidc": "*", | ||
"@aws-sdk/client-sts": "*", | ||
"@aws-sdk/core": "*", | ||
"@aws-sdk/credential-provider-node": "*", | ||
"@aws-sdk/middleware-host-header": "*", | ||
"@aws-sdk/middleware-logger": "*", | ||
"@aws-sdk/middleware-recursion-detection": "*", | ||
"@aws-sdk/middleware-user-agent": "*", | ||
"@aws-sdk/region-config-resolver": "*", | ||
"@aws-sdk/types": "*", | ||
"@aws-sdk/util-endpoints": "*", | ||
"@aws-sdk/util-user-agent-browser": "*", | ||
"@aws-sdk/util-user-agent-node": "*", | ||
"@smithy/config-resolver": "^3.0.8", | ||
"@smithy/core": "^2.4.3", | ||
"@smithy/fetch-http-handler": "^3.2.7", | ||
"@smithy/hash-node": "^3.0.6", | ||
"@smithy/invalid-dependency": "^3.0.6", | ||
"@smithy/middleware-content-length": "^3.0.8", | ||
"@smithy/middleware-endpoint": "^3.1.3", | ||
"@smithy/middleware-retry": "^3.0.18", | ||
"@smithy/middleware-serde": "^3.0.6", | ||
"@smithy/middleware-stack": "^3.0.6", | ||
"@smithy/node-config-provider": "^3.1.7", | ||
"@smithy/node-http-handler": "^3.2.2", | ||
"@smithy/protocol-http": "^4.1.3", | ||
"@smithy/smithy-client": "^3.3.2", | ||
"@smithy/types": "^3.4.2", | ||
"@smithy/url-parser": "^3.0.6", | ||
"@smithy/util-base64": "^3.0.0", | ||
"@smithy/util-body-length-browser": "^3.0.0", | ||
"@smithy/util-body-length-node": "^3.0.0", | ||
"@smithy/util-defaults-mode-browser": "^3.0.18", | ||
"@smithy/util-defaults-mode-node": "^3.0.18", | ||
"@smithy/util-endpoints": "^2.1.2", | ||
"@smithy/util-middleware": "^3.0.6", | ||
"@smithy/util-retry": "^3.0.6", | ||
"@smithy/util-utf8": "^3.0.0", | ||
"tslib": "^2.6.2", | ||
"uuid": "^9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node16": "16.1.3", | ||
"@types/node": "^16.18.96", | ||
"@types/uuid": "^9.0.4", | ||
"concurrently": "7.0.0", | ||
"downlevel-dts": "0.10.1", | ||
"rimraf": "3.0.2", | ||
"typescript": "~4.9.5" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
}, | ||
"typesVersions": { | ||
"<4.0": { | ||
"dist-types/*": [ | ||
"dist-types/ts3.4/*" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"dist-*/**" | ||
], | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"browser": { | ||
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" | ||
}, | ||
"react-native": { | ||
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" | ||
}, | ||
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-directory-service-data", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aws/aws-sdk-js-v3.git", | ||
"directory": "clients/client-directory-service-data" | ||
} | ||
} |
337 changes: 337 additions & 0 deletions
337
clients/client-directory-service-data/src/DirectoryServiceData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,337 @@ | ||
// smithy-typescript generated code | ||
import { createAggregatedClient } from "@smithy/smithy-client"; | ||
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; | ||
|
||
import { | ||
AddGroupMemberCommand, | ||
AddGroupMemberCommandInput, | ||
AddGroupMemberCommandOutput, | ||
} from "./commands/AddGroupMemberCommand"; | ||
import { CreateGroupCommand, CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand"; | ||
import { CreateUserCommand, CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand"; | ||
import { DeleteGroupCommand, DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand"; | ||
import { DeleteUserCommand, DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand"; | ||
import { | ||
DescribeGroupCommand, | ||
DescribeGroupCommandInput, | ||
DescribeGroupCommandOutput, | ||
} from "./commands/DescribeGroupCommand"; | ||
import { | ||
DescribeUserCommand, | ||
DescribeUserCommandInput, | ||
DescribeUserCommandOutput, | ||
} from "./commands/DescribeUserCommand"; | ||
import { DisableUserCommand, DisableUserCommandInput, DisableUserCommandOutput } from "./commands/DisableUserCommand"; | ||
import { | ||
ListGroupMembersCommand, | ||
ListGroupMembersCommandInput, | ||
ListGroupMembersCommandOutput, | ||
} from "./commands/ListGroupMembersCommand"; | ||
import { ListGroupsCommand, ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand"; | ||
import { | ||
ListGroupsForMemberCommand, | ||
ListGroupsForMemberCommandInput, | ||
ListGroupsForMemberCommandOutput, | ||
} from "./commands/ListGroupsForMemberCommand"; | ||
import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand"; | ||
import { | ||
RemoveGroupMemberCommand, | ||
RemoveGroupMemberCommandInput, | ||
RemoveGroupMemberCommandOutput, | ||
} from "./commands/RemoveGroupMemberCommand"; | ||
import { | ||
SearchGroupsCommand, | ||
SearchGroupsCommandInput, | ||
SearchGroupsCommandOutput, | ||
} from "./commands/SearchGroupsCommand"; | ||
import { SearchUsersCommand, SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand"; | ||
import { UpdateGroupCommand, UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand"; | ||
import { UpdateUserCommand, UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand"; | ||
import { DirectoryServiceDataClient, DirectoryServiceDataClientConfig } from "./DirectoryServiceDataClient"; | ||
|
||
const commands = { | ||
AddGroupMemberCommand, | ||
CreateGroupCommand, | ||
CreateUserCommand, | ||
DeleteGroupCommand, | ||
DeleteUserCommand, | ||
DescribeGroupCommand, | ||
DescribeUserCommand, | ||
DisableUserCommand, | ||
ListGroupMembersCommand, | ||
ListGroupsCommand, | ||
ListGroupsForMemberCommand, | ||
ListUsersCommand, | ||
RemoveGroupMemberCommand, | ||
SearchGroupsCommand, | ||
SearchUsersCommand, | ||
UpdateGroupCommand, | ||
UpdateUserCommand, | ||
}; | ||
|
||
export interface DirectoryServiceData { | ||
/** | ||
* @see {@link AddGroupMemberCommand} | ||
*/ | ||
addGroupMember( | ||
args: AddGroupMemberCommandInput, | ||
options?: __HttpHandlerOptions | ||
): Promise<AddGroupMemberCommandOutput>; | ||
addGroupMember(args: AddGroupMemberCommandInput, cb: (err: any, data?: AddGroupMemberCommandOutput) => void): void; | ||
addGroupMember( | ||
args: AddGroupMemberCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: AddGroupMemberCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link CreateGroupCommand} | ||
*/ | ||
createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>; | ||
createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void; | ||
createGroup( | ||
args: CreateGroupCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: CreateGroupCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link CreateUserCommand} | ||
*/ | ||
createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>; | ||
createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void; | ||
createUser( | ||
args: CreateUserCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: CreateUserCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link DeleteGroupCommand} | ||
*/ | ||
deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>; | ||
deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void; | ||
deleteGroup( | ||
args: DeleteGroupCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: DeleteGroupCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link DeleteUserCommand} | ||
*/ | ||
deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>; | ||
deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void; | ||
deleteUser( | ||
args: DeleteUserCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: DeleteUserCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link DescribeGroupCommand} | ||
*/ | ||
describeGroup(args: DescribeGroupCommandInput, options?: __HttpHandlerOptions): Promise<DescribeGroupCommandOutput>; | ||
describeGroup(args: DescribeGroupCommandInput, cb: (err: any, data?: DescribeGroupCommandOutput) => void): void; | ||
describeGroup( | ||
args: DescribeGroupCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: DescribeGroupCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link DescribeUserCommand} | ||
*/ | ||
describeUser(args: DescribeUserCommandInput, options?: __HttpHandlerOptions): Promise<DescribeUserCommandOutput>; | ||
describeUser(args: DescribeUserCommandInput, cb: (err: any, data?: DescribeUserCommandOutput) => void): void; | ||
describeUser( | ||
args: DescribeUserCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: DescribeUserCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link DisableUserCommand} | ||
*/ | ||
disableUser(args: DisableUserCommandInput, options?: __HttpHandlerOptions): Promise<DisableUserCommandOutput>; | ||
disableUser(args: DisableUserCommandInput, cb: (err: any, data?: DisableUserCommandOutput) => void): void; | ||
disableUser( | ||
args: DisableUserCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: DisableUserCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link ListGroupMembersCommand} | ||
*/ | ||
listGroupMembers( | ||
args: ListGroupMembersCommandInput, | ||
options?: __HttpHandlerOptions | ||
): Promise<ListGroupMembersCommandOutput>; | ||
listGroupMembers( | ||
args: ListGroupMembersCommandInput, | ||
cb: (err: any, data?: ListGroupMembersCommandOutput) => void | ||
): void; | ||
listGroupMembers( | ||
args: ListGroupMembersCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: ListGroupMembersCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link ListGroupsCommand} | ||
*/ | ||
listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>; | ||
listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void; | ||
listGroups( | ||
args: ListGroupsCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: ListGroupsCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link ListGroupsForMemberCommand} | ||
*/ | ||
listGroupsForMember( | ||
args: ListGroupsForMemberCommandInput, | ||
options?: __HttpHandlerOptions | ||
): Promise<ListGroupsForMemberCommandOutput>; | ||
listGroupsForMember( | ||
args: ListGroupsForMemberCommandInput, | ||
cb: (err: any, data?: ListGroupsForMemberCommandOutput) => void | ||
): void; | ||
listGroupsForMember( | ||
args: ListGroupsForMemberCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: ListGroupsForMemberCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link ListUsersCommand} | ||
*/ | ||
listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>; | ||
listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void; | ||
listUsers( | ||
args: ListUsersCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: ListUsersCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link RemoveGroupMemberCommand} | ||
*/ | ||
removeGroupMember( | ||
args: RemoveGroupMemberCommandInput, | ||
options?: __HttpHandlerOptions | ||
): Promise<RemoveGroupMemberCommandOutput>; | ||
removeGroupMember( | ||
args: RemoveGroupMemberCommandInput, | ||
cb: (err: any, data?: RemoveGroupMemberCommandOutput) => void | ||
): void; | ||
removeGroupMember( | ||
args: RemoveGroupMemberCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: RemoveGroupMemberCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link SearchGroupsCommand} | ||
*/ | ||
searchGroups(args: SearchGroupsCommandInput, options?: __HttpHandlerOptions): Promise<SearchGroupsCommandOutput>; | ||
searchGroups(args: SearchGroupsCommandInput, cb: (err: any, data?: SearchGroupsCommandOutput) => void): void; | ||
searchGroups( | ||
args: SearchGroupsCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: SearchGroupsCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link SearchUsersCommand} | ||
*/ | ||
searchUsers(args: SearchUsersCommandInput, options?: __HttpHandlerOptions): Promise<SearchUsersCommandOutput>; | ||
searchUsers(args: SearchUsersCommandInput, cb: (err: any, data?: SearchUsersCommandOutput) => void): void; | ||
searchUsers( | ||
args: SearchUsersCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: SearchUsersCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link UpdateGroupCommand} | ||
*/ | ||
updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>; | ||
updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void; | ||
updateGroup( | ||
args: UpdateGroupCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: UpdateGroupCommandOutput) => void | ||
): void; | ||
|
||
/** | ||
* @see {@link UpdateUserCommand} | ||
*/ | ||
updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>; | ||
updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void; | ||
updateUser( | ||
args: UpdateUserCommandInput, | ||
options: __HttpHandlerOptions, | ||
cb: (err: any, data?: UpdateUserCommandOutput) => void | ||
): void; | ||
} | ||
|
||
/** | ||
* <p> Amazon Web Services Directory Service Data is an extension of Directory Service. This API reference provides detailed information | ||
* about Directory Service Data operations and object types. </p> | ||
* <p> With Directory Service Data, you can create, read, update, and delete users, groups, and memberships from | ||
* your Managed Microsoft AD without additional costs and without deploying dedicated management | ||
* instances. You can also perform built-in object management tasks across directories without | ||
* direct network connectivity, which simplifies provisioning and access management to achieve | ||
* fully automated deployments. Directory Service Data supports user and group write operations, such as | ||
* <code>CreateUser</code> and <code>CreateGroup</code>, within the organizational unit (OU) of | ||
* your Managed Microsoft AD. Directory Service Data supports read operations, such as <code>ListUsers</code> and | ||
* <code>ListGroups</code>, on all users, groups, and group memberships within your | ||
* Managed Microsoft AD and across trusted realms. Directory Service Data supports adding and removing group members in | ||
* your OU and the Amazon Web Services Delegated Groups OU, so you can grant and deny access to specific roles | ||
* and permissions. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_manage_users_groups.html">Manage users and | ||
* groups</a> in the <i>Directory Service Administration Guide</i>. </p> | ||
* <note> | ||
* <p> Directory management operations and configuration changes made against the Directory Service | ||
* API will also reflect in Directory Service Data API with eventual consistency. You can expect a short delay | ||
* between management changes, such as adding a new directory trust and calling the Directory Service Data API | ||
* for the newly created trusted realm. </p> | ||
* </note> | ||
* <p> Directory Service Data connects to your Managed Microsoft AD domain controllers and performs operations on | ||
* underlying directory objects. When you create your Managed Microsoft AD, you choose subnets for domain | ||
* controllers that Directory Service creates on your behalf. If a domain controller is unavailable, Directory Service Data | ||
* uses an available domain controller. As a result, you might notice eventual consistency while | ||
* objects replicate from one domain controller to another domain controller. For more | ||
* information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_getting_started_what_gets_created.html">What | ||
* gets created</a> in the <i>Directory Service Administration Guide</i>. | ||
* Directory limits vary by Managed Microsoft AD edition: </p> | ||
* <ul> | ||
* <li> | ||
* <p> | ||
* <b>Standard edition</b> – Supports 8 transactions per | ||
* second (TPS) for read operations and 4 TPS for write operations per directory. There's a | ||
* concurrency limit of 10 concurrent requests. </p> | ||
* </li> | ||
* <li> | ||
* <p> | ||
* <b>Enterprise edition</b> – Supports 16 transactions per | ||
* second (TPS) for read operations and 8 TPS for write operations per directory. There's a | ||
* concurrency limit of 10 concurrent requests.</p> | ||
* </li> | ||
* <li> | ||
* <p> | ||
* <b>Amazon Web Services Account</b> - Supports a total of 100 TPS for | ||
* Directory Service Data operations across all directories.</p> | ||
* </li> | ||
* </ul> | ||
* <p> Directory Service Data only supports the Managed Microsoft AD directory type and is only available in the primary | ||
* Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html">Managed Microsoft AD</a> | ||
* and <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/multi-region-global-primary-additional.html">Primary vs additional Regions</a> in the <i>Directory Service Administration | ||
* Guide</i>. </p> | ||
* @public | ||
*/ | ||
export class DirectoryServiceData extends DirectoryServiceDataClient implements DirectoryServiceData {} | ||
createAggregatedClient(commands, DirectoryServiceData); |
405 changes: 405 additions & 0 deletions
405
clients/client-directory-service-data/src/DirectoryServiceDataClient.ts
Large diffs are not rendered by default.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
clients/client-directory-service-data/src/auth/httpAuthExtensionConfiguration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// smithy-typescript generated code | ||
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types"; | ||
|
||
import { DirectoryServiceDataHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface HttpAuthExtensionConfiguration { | ||
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void; | ||
httpAuthSchemes(): HttpAuthScheme[]; | ||
setHttpAuthSchemeProvider(httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider): void; | ||
httpAuthSchemeProvider(): DirectoryServiceDataHttpAuthSchemeProvider; | ||
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void; | ||
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export type HttpAuthRuntimeConfig = Partial<{ | ||
httpAuthSchemes: HttpAuthScheme[]; | ||
httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider; | ||
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider; | ||
}>; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const getHttpAuthExtensionConfiguration = ( | ||
runtimeConfig: HttpAuthRuntimeConfig | ||
): HttpAuthExtensionConfiguration => { | ||
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes!; | ||
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider!; | ||
let _credentials = runtimeConfig.credentials; | ||
return { | ||
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void { | ||
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); | ||
if (index === -1) { | ||
_httpAuthSchemes.push(httpAuthScheme); | ||
} else { | ||
_httpAuthSchemes.splice(index, 1, httpAuthScheme); | ||
} | ||
}, | ||
httpAuthSchemes(): HttpAuthScheme[] { | ||
return _httpAuthSchemes; | ||
}, | ||
setHttpAuthSchemeProvider(httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider): void { | ||
_httpAuthSchemeProvider = httpAuthSchemeProvider; | ||
}, | ||
httpAuthSchemeProvider(): DirectoryServiceDataHttpAuthSchemeProvider { | ||
return _httpAuthSchemeProvider; | ||
}, | ||
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void { | ||
_credentials = credentials; | ||
}, | ||
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined { | ||
return _credentials; | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveHttpAuthRuntimeConfig = (config: HttpAuthExtensionConfiguration): HttpAuthRuntimeConfig => { | ||
return { | ||
httpAuthSchemes: config.httpAuthSchemes(), | ||
httpAuthSchemeProvider: config.httpAuthSchemeProvider(), | ||
credentials: config.credentials(), | ||
}; | ||
}; |
145 changes: 145 additions & 0 deletions
145
clients/client-directory-service-data/src/auth/httpAuthSchemeProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
// smithy-typescript generated code | ||
import { | ||
AwsSdkSigV4AuthInputConfig, | ||
AwsSdkSigV4AuthResolvedConfig, | ||
AwsSdkSigV4PreviouslyResolved, | ||
resolveAwsSdkSigV4Config, | ||
} from "@aws-sdk/core"; | ||
import { | ||
HandlerExecutionContext, | ||
HttpAuthOption, | ||
HttpAuthScheme, | ||
HttpAuthSchemeParameters, | ||
HttpAuthSchemeParametersProvider, | ||
HttpAuthSchemeProvider, | ||
} from "@smithy/types"; | ||
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; | ||
|
||
import { | ||
DirectoryServiceDataClientConfig, | ||
DirectoryServiceDataClientResolvedConfig, | ||
} from "../DirectoryServiceDataClient"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface DirectoryServiceDataHttpAuthSchemeParameters extends HttpAuthSchemeParameters { | ||
region?: string; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface DirectoryServiceDataHttpAuthSchemeParametersProvider | ||
extends HttpAuthSchemeParametersProvider< | ||
DirectoryServiceDataClientResolvedConfig, | ||
HandlerExecutionContext, | ||
DirectoryServiceDataHttpAuthSchemeParameters, | ||
object | ||
> {} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const defaultDirectoryServiceDataHttpAuthSchemeParametersProvider = async ( | ||
config: DirectoryServiceDataClientResolvedConfig, | ||
context: HandlerExecutionContext, | ||
input: object | ||
): Promise<DirectoryServiceDataHttpAuthSchemeParameters> => { | ||
return { | ||
operation: getSmithyContext(context).operation as string, | ||
region: | ||
(await normalizeProvider(config.region)()) || | ||
(() => { | ||
throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
})(), | ||
}; | ||
}; | ||
|
||
function createAwsAuthSigv4HttpAuthOption( | ||
authParameters: DirectoryServiceDataHttpAuthSchemeParameters | ||
): HttpAuthOption { | ||
return { | ||
schemeId: "aws.auth#sigv4", | ||
signingProperties: { | ||
name: "ds-data", | ||
region: authParameters.region, | ||
}, | ||
propertiesExtractor: (config: Partial<DirectoryServiceDataClientConfig>, context) => ({ | ||
/** | ||
* @internal | ||
*/ | ||
signingProperties: { | ||
config, | ||
context, | ||
}, | ||
}), | ||
}; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface DirectoryServiceDataHttpAuthSchemeProvider | ||
extends HttpAuthSchemeProvider<DirectoryServiceDataHttpAuthSchemeParameters> {} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const defaultDirectoryServiceDataHttpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider = ( | ||
authParameters | ||
) => { | ||
const options: HttpAuthOption[] = []; | ||
switch (authParameters.operation) { | ||
default: { | ||
options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); | ||
} | ||
} | ||
return options; | ||
}; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
* @internal | ||
*/ | ||
httpAuthSchemes?: HttpAuthScheme[]; | ||
|
||
/** | ||
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. | ||
* @internal | ||
*/ | ||
httpAuthSchemeProvider?: DirectoryServiceDataHttpAuthSchemeProvider; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
* @internal | ||
*/ | ||
readonly httpAuthSchemes: HttpAuthScheme[]; | ||
|
||
/** | ||
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. | ||
* @internal | ||
*/ | ||
readonly httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveHttpAuthSchemeConfig = <T>( | ||
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved | ||
): T & HttpAuthSchemeResolvedConfig => { | ||
const config_0 = resolveAwsSdkSigV4Config(config); | ||
return { | ||
...config_0, | ||
} as T & HttpAuthSchemeResolvedConfig; | ||
}; |
132 changes: 132 additions & 0 deletions
132
clients/client-directory-service-data/src/commands/AddGroupMemberCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { AddGroupMemberRequest, AddGroupMemberResult } from "../models/models_0"; | ||
import { de_AddGroupMemberCommand, se_AddGroupMemberCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link AddGroupMemberCommand}. | ||
*/ | ||
export interface AddGroupMemberCommandInput extends AddGroupMemberRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link AddGroupMemberCommand}. | ||
*/ | ||
export interface AddGroupMemberCommandOutput extends AddGroupMemberResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Adds an existing user, group, or computer as a group member.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, AddGroupMemberCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, AddGroupMemberCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // AddGroupMemberRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* GroupName: "STRING_VALUE", // required | ||
* MemberName: "STRING_VALUE", // required | ||
* MemberRealm: "STRING_VALUE", | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new AddGroupMemberCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param AddGroupMemberCommandInput - {@link AddGroupMemberCommandInput} | ||
* @returns {@link AddGroupMemberCommandOutput} | ||
* @see {@link AddGroupMemberCommandInput} for command's `input` shape. | ||
* @see {@link AddGroupMemberCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class AddGroupMemberCommand extends $Command | ||
.classBuilder< | ||
AddGroupMemberCommandInput, | ||
AddGroupMemberCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "AddGroupMember", {}) | ||
.n("DirectoryServiceDataClient", "AddGroupMemberCommand") | ||
.f(void 0, void 0) | ||
.ser(se_AddGroupMemberCommand) | ||
.de(de_AddGroupMemberCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: AddGroupMemberRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: AddGroupMemberCommandInput; | ||
output: AddGroupMemberCommandOutput; | ||
}; | ||
}; | ||
} |
143 changes: 143 additions & 0 deletions
143
clients/client-directory-service-data/src/commands/CreateGroupCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { CreateGroupRequest, CreateGroupRequestFilterSensitiveLog, CreateGroupResult } from "../models/models_0"; | ||
import { de_CreateGroupCommand, se_CreateGroupCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link CreateGroupCommand}. | ||
*/ | ||
export interface CreateGroupCommandInput extends CreateGroupRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link CreateGroupCommand}. | ||
*/ | ||
export interface CreateGroupCommandOutput extends CreateGroupResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Creates a new group.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, CreateGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, CreateGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // CreateGroupRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* GroupType: "Distribution" || "Security", | ||
* GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal", | ||
* OtherAttributes: { // Attributes | ||
* "<keys>": { // AttributeValue Union: only one key present | ||
* S: "STRING_VALUE", | ||
* N: Number("long"), | ||
* BOOL: true || false, | ||
* SS: [ // StringSetAttributeValue | ||
* "STRING_VALUE", | ||
* ], | ||
* }, | ||
* }, | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new CreateGroupCommand(input); | ||
* const response = await client.send(command); | ||
* // { // CreateGroupResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // SAMAccountName: "STRING_VALUE", | ||
* // SID: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param CreateGroupCommandInput - {@link CreateGroupCommandInput} | ||
* @returns {@link CreateGroupCommandOutput} | ||
* @see {@link CreateGroupCommandInput} for command's `input` shape. | ||
* @see {@link CreateGroupCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class CreateGroupCommand extends $Command | ||
.classBuilder< | ||
CreateGroupCommandInput, | ||
CreateGroupCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "CreateGroup", {}) | ||
.n("DirectoryServiceDataClient", "CreateGroupCommand") | ||
.f(CreateGroupRequestFilterSensitiveLog, void 0) | ||
.ser(se_CreateGroupCommand) | ||
.de(de_CreateGroupCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: CreateGroupRequest; | ||
output: CreateGroupResult; | ||
}; | ||
sdk: { | ||
input: CreateGroupCommandInput; | ||
output: CreateGroupCommandOutput; | ||
}; | ||
}; | ||
} |
144 changes: 144 additions & 0 deletions
144
clients/client-directory-service-data/src/commands/CreateUserCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { CreateUserRequest, CreateUserRequestFilterSensitiveLog, CreateUserResult } from "../models/models_0"; | ||
import { de_CreateUserCommand, se_CreateUserCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link CreateUserCommand}. | ||
*/ | ||
export interface CreateUserCommandInput extends CreateUserRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link CreateUserCommand}. | ||
*/ | ||
export interface CreateUserCommandOutput extends CreateUserResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Creates a new user.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, CreateUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, CreateUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // CreateUserRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* EmailAddress: "STRING_VALUE", | ||
* GivenName: "STRING_VALUE", | ||
* Surname: "STRING_VALUE", | ||
* OtherAttributes: { // Attributes | ||
* "<keys>": { // AttributeValue Union: only one key present | ||
* S: "STRING_VALUE", | ||
* N: Number("long"), | ||
* BOOL: true || false, | ||
* SS: [ // StringSetAttributeValue | ||
* "STRING_VALUE", | ||
* ], | ||
* }, | ||
* }, | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new CreateUserCommand(input); | ||
* const response = await client.send(command); | ||
* // { // CreateUserResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // SID: "STRING_VALUE", | ||
* // SAMAccountName: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param CreateUserCommandInput - {@link CreateUserCommandInput} | ||
* @returns {@link CreateUserCommandOutput} | ||
* @see {@link CreateUserCommandInput} for command's `input` shape. | ||
* @see {@link CreateUserCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class CreateUserCommand extends $Command | ||
.classBuilder< | ||
CreateUserCommandInput, | ||
CreateUserCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "CreateUser", {}) | ||
.n("DirectoryServiceDataClient", "CreateUserCommand") | ||
.f(CreateUserRequestFilterSensitiveLog, void 0) | ||
.ser(se_CreateUserCommand) | ||
.de(de_CreateUserCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: CreateUserRequest; | ||
output: CreateUserResult; | ||
}; | ||
sdk: { | ||
input: CreateUserCommandInput; | ||
output: CreateUserCommandOutput; | ||
}; | ||
}; | ||
} |
130 changes: 130 additions & 0 deletions
130
clients/client-directory-service-data/src/commands/DeleteGroupCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DeleteGroupRequest, DeleteGroupResult } from "../models/models_0"; | ||
import { de_DeleteGroupCommand, se_DeleteGroupCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DeleteGroupCommand}. | ||
*/ | ||
export interface DeleteGroupCommandInput extends DeleteGroupRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DeleteGroupCommand}. | ||
*/ | ||
export interface DeleteGroupCommandOutput extends DeleteGroupResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Deletes a group.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, DeleteGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, DeleteGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // DeleteGroupRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new DeleteGroupCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param DeleteGroupCommandInput - {@link DeleteGroupCommandInput} | ||
* @returns {@link DeleteGroupCommandOutput} | ||
* @see {@link DeleteGroupCommandInput} for command's `input` shape. | ||
* @see {@link DeleteGroupCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DeleteGroupCommand extends $Command | ||
.classBuilder< | ||
DeleteGroupCommandInput, | ||
DeleteGroupCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "DeleteGroup", {}) | ||
.n("DirectoryServiceDataClient", "DeleteGroupCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DeleteGroupCommand) | ||
.de(de_DeleteGroupCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DeleteGroupRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: DeleteGroupCommandInput; | ||
output: DeleteGroupCommandOutput; | ||
}; | ||
}; | ||
} |
130 changes: 130 additions & 0 deletions
130
clients/client-directory-service-data/src/commands/DeleteUserCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DeleteUserRequest, DeleteUserResult } from "../models/models_0"; | ||
import { de_DeleteUserCommand, se_DeleteUserCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DeleteUserCommand}. | ||
*/ | ||
export interface DeleteUserCommandInput extends DeleteUserRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DeleteUserCommand}. | ||
*/ | ||
export interface DeleteUserCommandOutput extends DeleteUserResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Deletes a user.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, DeleteUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, DeleteUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // DeleteUserRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new DeleteUserCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param DeleteUserCommandInput - {@link DeleteUserCommandInput} | ||
* @returns {@link DeleteUserCommandOutput} | ||
* @see {@link DeleteUserCommandInput} for command's `input` shape. | ||
* @see {@link DeleteUserCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DeleteUserCommand extends $Command | ||
.classBuilder< | ||
DeleteUserCommandInput, | ||
DeleteUserCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "DeleteUser", {}) | ||
.n("DirectoryServiceDataClient", "DeleteUserCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DeleteUserCommand) | ||
.de(de_DeleteUserCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DeleteUserRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: DeleteUserCommandInput; | ||
output: DeleteUserCommandOutput; | ||
}; | ||
}; | ||
} |
142 changes: 142 additions & 0 deletions
142
clients/client-directory-service-data/src/commands/DescribeGroupCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DescribeGroupRequest, DescribeGroupResult, DescribeGroupResultFilterSensitiveLog } from "../models/models_0"; | ||
import { de_DescribeGroupCommand, se_DescribeGroupCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DescribeGroupCommand}. | ||
*/ | ||
export interface DescribeGroupCommandInput extends DescribeGroupRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DescribeGroupCommand}. | ||
*/ | ||
export interface DescribeGroupCommandOutput extends DescribeGroupResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Returns information about a specific group.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, DescribeGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, DescribeGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // DescribeGroupRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* Realm: "STRING_VALUE", | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* OtherAttributes: [ // LdapDisplayNameList | ||
* "STRING_VALUE", | ||
* ], | ||
* }; | ||
* const command = new DescribeGroupCommand(input); | ||
* const response = await client.send(command); | ||
* // { // DescribeGroupResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // SID: "STRING_VALUE", | ||
* // SAMAccountName: "STRING_VALUE", | ||
* // DistinguishedName: "STRING_VALUE", | ||
* // GroupType: "Distribution" || "Security", | ||
* // GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal", | ||
* // OtherAttributes: { // Attributes | ||
* // "<keys>": { // AttributeValue Union: only one key present | ||
* // S: "STRING_VALUE", | ||
* // N: Number("long"), | ||
* // BOOL: true || false, | ||
* // SS: [ // StringSetAttributeValue | ||
* // "STRING_VALUE", | ||
* // ], | ||
* // }, | ||
* // }, | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param DescribeGroupCommandInput - {@link DescribeGroupCommandInput} | ||
* @returns {@link DescribeGroupCommandOutput} | ||
* @see {@link DescribeGroupCommandInput} for command's `input` shape. | ||
* @see {@link DescribeGroupCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DescribeGroupCommand extends $Command | ||
.classBuilder< | ||
DescribeGroupCommandInput, | ||
DescribeGroupCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "DescribeGroup", {}) | ||
.n("DirectoryServiceDataClient", "DescribeGroupCommand") | ||
.f(void 0, DescribeGroupResultFilterSensitiveLog) | ||
.ser(se_DescribeGroupCommand) | ||
.de(de_DescribeGroupCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DescribeGroupRequest; | ||
output: DescribeGroupResult; | ||
}; | ||
sdk: { | ||
input: DescribeGroupCommandInput; | ||
output: DescribeGroupCommandOutput; | ||
}; | ||
}; | ||
} |
145 changes: 145 additions & 0 deletions
145
clients/client-directory-service-data/src/commands/DescribeUserCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DescribeUserRequest, DescribeUserResult, DescribeUserResultFilterSensitiveLog } from "../models/models_0"; | ||
import { de_DescribeUserCommand, se_DescribeUserCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DescribeUserCommand}. | ||
*/ | ||
export interface DescribeUserCommandInput extends DescribeUserRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DescribeUserCommand}. | ||
*/ | ||
export interface DescribeUserCommandOutput extends DescribeUserResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Returns information about a specific user.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, DescribeUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, DescribeUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // DescribeUserRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* OtherAttributes: [ // LdapDisplayNameList | ||
* "STRING_VALUE", | ||
* ], | ||
* Realm: "STRING_VALUE", | ||
* }; | ||
* const command = new DescribeUserCommand(input); | ||
* const response = await client.send(command); | ||
* // { // DescribeUserResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // SID: "STRING_VALUE", | ||
* // SAMAccountName: "STRING_VALUE", | ||
* // DistinguishedName: "STRING_VALUE", | ||
* // UserPrincipalName: "STRING_VALUE", | ||
* // EmailAddress: "STRING_VALUE", | ||
* // GivenName: "STRING_VALUE", | ||
* // Surname: "STRING_VALUE", | ||
* // Enabled: true || false, | ||
* // OtherAttributes: { // Attributes | ||
* // "<keys>": { // AttributeValue Union: only one key present | ||
* // S: "STRING_VALUE", | ||
* // N: Number("long"), | ||
* // BOOL: true || false, | ||
* // SS: [ // StringSetAttributeValue | ||
* // "STRING_VALUE", | ||
* // ], | ||
* // }, | ||
* // }, | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param DescribeUserCommandInput - {@link DescribeUserCommandInput} | ||
* @returns {@link DescribeUserCommandOutput} | ||
* @see {@link DescribeUserCommandInput} for command's `input` shape. | ||
* @see {@link DescribeUserCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DescribeUserCommand extends $Command | ||
.classBuilder< | ||
DescribeUserCommandInput, | ||
DescribeUserCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "DescribeUser", {}) | ||
.n("DirectoryServiceDataClient", "DescribeUserCommand") | ||
.f(void 0, DescribeUserResultFilterSensitiveLog) | ||
.ser(se_DescribeUserCommand) | ||
.de(de_DescribeUserCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DescribeUserRequest; | ||
output: DescribeUserResult; | ||
}; | ||
sdk: { | ||
input: DescribeUserCommandInput; | ||
output: DescribeUserCommandOutput; | ||
}; | ||
}; | ||
} |
132 changes: 132 additions & 0 deletions
132
clients/client-directory-service-data/src/commands/DisableUserCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DisableUserRequest, DisableUserResult } from "../models/models_0"; | ||
import { de_DisableUserCommand, se_DisableUserCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DisableUserCommand}. | ||
*/ | ||
export interface DisableUserCommandInput extends DisableUserRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DisableUserCommand}. | ||
*/ | ||
export interface DisableUserCommandOutput extends DisableUserResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Deactivates an active user account. For information about how to enable an inactive user | ||
* account, see <a href="https://docs.aws.amazon.com/directoryservice/latest/devguide/API_ResetUserPassword.html">ResetUserPassword</a> | ||
* in the <i>Directory Service API Reference</i>.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, DisableUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, DisableUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // DisableUserRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new DisableUserCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param DisableUserCommandInput - {@link DisableUserCommandInput} | ||
* @returns {@link DisableUserCommandOutput} | ||
* @see {@link DisableUserCommandInput} for command's `input` shape. | ||
* @see {@link DisableUserCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DisableUserCommand extends $Command | ||
.classBuilder< | ||
DisableUserCommandInput, | ||
DisableUserCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "DisableUser", {}) | ||
.n("DirectoryServiceDataClient", "DisableUserCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DisableUserCommand) | ||
.de(de_DisableUserCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: DisableUserRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: DisableUserCommandInput; | ||
output: DisableUserCommandOutput; | ||
}; | ||
}; | ||
} |
147 changes: 147 additions & 0 deletions
147
clients/client-directory-service-data/src/commands/ListGroupMembersCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
ListGroupMembersRequest, | ||
ListGroupMembersRequestFilterSensitiveLog, | ||
ListGroupMembersResult, | ||
ListGroupMembersResultFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { de_ListGroupMembersCommand, se_ListGroupMembersCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListGroupMembersCommand}. | ||
*/ | ||
export interface ListGroupMembersCommandInput extends ListGroupMembersRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListGroupMembersCommand}. | ||
*/ | ||
export interface ListGroupMembersCommandOutput extends ListGroupMembersResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Returns member information for the specified group. </p> | ||
* <p> This operation supports pagination with the use of the <code>NextToken</code> request and | ||
* response parameters. If more results are available, the | ||
* <code>ListGroupMembers.NextToken</code> member contains a token that you pass in the next | ||
* call to <code>ListGroupMembers</code>. This retrieves the next set of items. </p> | ||
* <p> You can also specify a maximum number of return results with the <code>MaxResults</code> | ||
* parameter. </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, ListGroupMembersCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, ListGroupMembersCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // ListGroupMembersRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* Realm: "STRING_VALUE", | ||
* MemberRealm: "STRING_VALUE", | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* NextToken: "STRING_VALUE", | ||
* MaxResults: Number("int"), | ||
* }; | ||
* const command = new ListGroupMembersCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListGroupMembersResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // MemberRealm: "STRING_VALUE", | ||
* // Members: [ // MemberList | ||
* // { // Member | ||
* // SID: "STRING_VALUE", // required | ||
* // SAMAccountName: "STRING_VALUE", // required | ||
* // MemberType: "USER" || "GROUP" || "COMPUTER", // required | ||
* // }, | ||
* // ], | ||
* // NextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListGroupMembersCommandInput - {@link ListGroupMembersCommandInput} | ||
* @returns {@link ListGroupMembersCommandOutput} | ||
* @see {@link ListGroupMembersCommandInput} for command's `input` shape. | ||
* @see {@link ListGroupMembersCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListGroupMembersCommand extends $Command | ||
.classBuilder< | ||
ListGroupMembersCommandInput, | ||
ListGroupMembersCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "ListGroupMembers", {}) | ||
.n("DirectoryServiceDataClient", "ListGroupMembersCommand") | ||
.f(ListGroupMembersRequestFilterSensitiveLog, ListGroupMembersResultFilterSensitiveLog) | ||
.ser(se_ListGroupMembersCommand) | ||
.de(de_ListGroupMembersCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListGroupMembersRequest; | ||
output: ListGroupMembersResult; | ||
}; | ||
sdk: { | ||
input: ListGroupMembersCommandInput; | ||
output: ListGroupMembersCommandOutput; | ||
}; | ||
}; | ||
} |
142 changes: 142 additions & 0 deletions
142
clients/client-directory-service-data/src/commands/ListGroupsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
ListGroupsRequest, | ||
ListGroupsRequestFilterSensitiveLog, | ||
ListGroupsResult, | ||
ListGroupsResultFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { de_ListGroupsCommand, se_ListGroupsCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListGroupsCommand}. | ||
*/ | ||
export interface ListGroupsCommandInput extends ListGroupsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListGroupsCommand}. | ||
*/ | ||
export interface ListGroupsCommandOutput extends ListGroupsResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Returns group information for the specified directory. </p> | ||
* <p> This operation supports pagination with the use of the <code>NextToken</code> request and | ||
* response parameters. If more results are available, the <code>ListGroups.NextToken</code> | ||
* member contains a token that you pass in the next call to <code>ListGroups</code>. This | ||
* retrieves the next set of items. </p> | ||
* <p> You can also specify a maximum number of return results with the <code>MaxResults</code> | ||
* parameter. </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, ListGroupsCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, ListGroupsCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // ListGroupsRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* Realm: "STRING_VALUE", | ||
* NextToken: "STRING_VALUE", | ||
* MaxResults: Number("int"), | ||
* }; | ||
* const command = new ListGroupsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListGroupsResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // Groups: [ // GroupSummaryList | ||
* // { // GroupSummary | ||
* // SID: "STRING_VALUE", // required | ||
* // SAMAccountName: "STRING_VALUE", // required | ||
* // GroupType: "Distribution" || "Security", // required | ||
* // GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal", // required | ||
* // }, | ||
* // ], | ||
* // NextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListGroupsCommandInput - {@link ListGroupsCommandInput} | ||
* @returns {@link ListGroupsCommandOutput} | ||
* @see {@link ListGroupsCommandInput} for command's `input` shape. | ||
* @see {@link ListGroupsCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListGroupsCommand extends $Command | ||
.classBuilder< | ||
ListGroupsCommandInput, | ||
ListGroupsCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "ListGroups", {}) | ||
.n("DirectoryServiceDataClient", "ListGroupsCommand") | ||
.f(ListGroupsRequestFilterSensitiveLog, ListGroupsResultFilterSensitiveLog) | ||
.ser(se_ListGroupsCommand) | ||
.de(de_ListGroupsCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListGroupsRequest; | ||
output: ListGroupsResult; | ||
}; | ||
sdk: { | ||
input: ListGroupsCommandInput; | ||
output: ListGroupsCommandOutput; | ||
}; | ||
}; | ||
} |
148 changes: 148 additions & 0 deletions
148
clients/client-directory-service-data/src/commands/ListGroupsForMemberCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
ListGroupsForMemberRequest, | ||
ListGroupsForMemberRequestFilterSensitiveLog, | ||
ListGroupsForMemberResult, | ||
ListGroupsForMemberResultFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { de_ListGroupsForMemberCommand, se_ListGroupsForMemberCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListGroupsForMemberCommand}. | ||
*/ | ||
export interface ListGroupsForMemberCommandInput extends ListGroupsForMemberRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListGroupsForMemberCommand}. | ||
*/ | ||
export interface ListGroupsForMemberCommandOutput extends ListGroupsForMemberResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Returns group information for the specified member. </p> | ||
* <p> This operation supports pagination with the use of the <code>NextToken</code> request and | ||
* response parameters. If more results are available, the | ||
* <code>ListGroupsForMember.NextToken</code> member contains a token that you pass in the next | ||
* call to <code>ListGroupsForMember</code>. This retrieves the next set of items. </p> | ||
* <p> You can also specify a maximum number of return results with the <code>MaxResults</code> | ||
* parameter. </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, ListGroupsForMemberCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, ListGroupsForMemberCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // ListGroupsForMemberRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* Realm: "STRING_VALUE", | ||
* MemberRealm: "STRING_VALUE", | ||
* SAMAccountName: "STRING_VALUE", // required | ||
* NextToken: "STRING_VALUE", | ||
* MaxResults: Number("int"), | ||
* }; | ||
* const command = new ListGroupsForMemberCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListGroupsForMemberResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // MemberRealm: "STRING_VALUE", | ||
* // Groups: [ // GroupSummaryList | ||
* // { // GroupSummary | ||
* // SID: "STRING_VALUE", // required | ||
* // SAMAccountName: "STRING_VALUE", // required | ||
* // GroupType: "Distribution" || "Security", // required | ||
* // GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal", // required | ||
* // }, | ||
* // ], | ||
* // NextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListGroupsForMemberCommandInput - {@link ListGroupsForMemberCommandInput} | ||
* @returns {@link ListGroupsForMemberCommandOutput} | ||
* @see {@link ListGroupsForMemberCommandInput} for command's `input` shape. | ||
* @see {@link ListGroupsForMemberCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListGroupsForMemberCommand extends $Command | ||
.classBuilder< | ||
ListGroupsForMemberCommandInput, | ||
ListGroupsForMemberCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "ListGroupsForMember", {}) | ||
.n("DirectoryServiceDataClient", "ListGroupsForMemberCommand") | ||
.f(ListGroupsForMemberRequestFilterSensitiveLog, ListGroupsForMemberResultFilterSensitiveLog) | ||
.ser(se_ListGroupsForMemberCommand) | ||
.de(de_ListGroupsForMemberCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListGroupsForMemberRequest; | ||
output: ListGroupsForMemberResult; | ||
}; | ||
sdk: { | ||
input: ListGroupsForMemberCommandInput; | ||
output: ListGroupsForMemberCommandOutput; | ||
}; | ||
}; | ||
} |
143 changes: 143 additions & 0 deletions
143
clients/client-directory-service-data/src/commands/ListUsersCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
ListUsersRequest, | ||
ListUsersRequestFilterSensitiveLog, | ||
ListUsersResult, | ||
ListUsersResultFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { de_ListUsersCommand, se_ListUsersCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListUsersCommand}. | ||
*/ | ||
export interface ListUsersCommandInput extends ListUsersRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListUsersCommand}. | ||
*/ | ||
export interface ListUsersCommandOutput extends ListUsersResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Returns user information for the specified directory. </p> | ||
* <p> This operation supports pagination with the use of the <code>NextToken</code> request and | ||
* response parameters. If more results are available, the <code>ListUsers.NextToken</code> | ||
* member contains a token that you pass in the next call to <code>ListUsers</code>. This | ||
* retrieves the next set of items. </p> | ||
* <p> You can also specify a maximum number of return results with the <code>MaxResults</code> | ||
* parameter. </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, ListUsersCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, ListUsersCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // ListUsersRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* Realm: "STRING_VALUE", | ||
* NextToken: "STRING_VALUE", | ||
* MaxResults: Number("int"), | ||
* }; | ||
* const command = new ListUsersCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListUsersResult | ||
* // DirectoryId: "STRING_VALUE", | ||
* // Realm: "STRING_VALUE", | ||
* // Users: [ // UserSummaryList | ||
* // { // UserSummary | ||
* // SID: "STRING_VALUE", // required | ||
* // SAMAccountName: "STRING_VALUE", // required | ||
* // GivenName: "STRING_VALUE", | ||
* // Surname: "STRING_VALUE", | ||
* // Enabled: true || false, // required | ||
* // }, | ||
* // ], | ||
* // NextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListUsersCommandInput - {@link ListUsersCommandInput} | ||
* @returns {@link ListUsersCommandOutput} | ||
* @see {@link ListUsersCommandInput} for command's `input` shape. | ||
* @see {@link ListUsersCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListUsersCommand extends $Command | ||
.classBuilder< | ||
ListUsersCommandInput, | ||
ListUsersCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "ListUsers", {}) | ||
.n("DirectoryServiceDataClient", "ListUsersCommand") | ||
.f(ListUsersRequestFilterSensitiveLog, ListUsersResultFilterSensitiveLog) | ||
.ser(se_ListUsersCommand) | ||
.de(de_ListUsersCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListUsersRequest; | ||
output: ListUsersResult; | ||
}; | ||
sdk: { | ||
input: ListUsersCommandInput; | ||
output: ListUsersCommandOutput; | ||
}; | ||
}; | ||
} |
132 changes: 132 additions & 0 deletions
132
clients/client-directory-service-data/src/commands/RemoveGroupMemberCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
} from "../DirectoryServiceDataClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { RemoveGroupMemberRequest, RemoveGroupMemberResult } from "../models/models_0"; | ||
import { de_RemoveGroupMemberCommand, se_RemoveGroupMemberCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link RemoveGroupMemberCommand}. | ||
*/ | ||
export interface RemoveGroupMemberCommandInput extends RemoveGroupMemberRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link RemoveGroupMemberCommand}. | ||
*/ | ||
export interface RemoveGroupMemberCommandOutput extends RemoveGroupMemberResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p> Removes a member from a group. </p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DirectoryServiceDataClient, RemoveGroupMemberCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import | ||
* // const { DirectoryServiceDataClient, RemoveGroupMemberCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import | ||
* const client = new DirectoryServiceDataClient(config); | ||
* const input = { // RemoveGroupMemberRequest | ||
* DirectoryId: "STRING_VALUE", // required | ||
* GroupName: "STRING_VALUE", // required | ||
* MemberName: "STRING_VALUE", // required | ||
* MemberRealm: "STRING_VALUE", | ||
* ClientToken: "STRING_VALUE", | ||
* }; | ||
* const command = new RemoveGroupMemberCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param RemoveGroupMemberCommandInput - {@link RemoveGroupMemberCommandInput} | ||
* @returns {@link RemoveGroupMemberCommandOutput} | ||
* @see {@link RemoveGroupMemberCommandInput} for command's `input` shape. | ||
* @see {@link RemoveGroupMemberCommandOutput} for command's `response` shape. | ||
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You don't have permission to perform the request or access the directory. It can also | ||
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be | ||
* outside of your organizational unit (OU). </p> | ||
* <p> Make sure that you have the authentication and authorization to perform the action. | ||
* Review the directory information in the request, and make sure that the object isn't outside | ||
* of your OU. </p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p> This error will occur when you try to create a resource that conflicts with an existing | ||
* object. It can also occur when adding a member to a group that the member is already | ||
* in.</p> | ||
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the | ||
* same client token but different input parameters. Client tokens should not be re-used across | ||
* different requests. After 8 hours, any request with the same client token is treated as a new | ||
* request. </p> | ||
* | ||
* @throws {@link DirectoryUnavailableException} (client fault) | ||
* <p> The request could not be completed due to a problem in the configuration or current state | ||
* of the specified directory. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p> The resource couldn't be found. </p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p> The limit on the number of requests per second has been exceeded. </p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p> The request isn't valid. Review the details in the error message to update the invalid | ||
* parameters or values in your request. </p> | ||
* | ||
* @throws {@link DirectoryServiceDataServiceException} | ||
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class RemoveGroupMemberCommand extends $Command | ||
.classBuilder< | ||
RemoveGroupMemberCommandInput, | ||
RemoveGroupMemberCommandOutput, | ||
DirectoryServiceDataClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DirectoryServiceDataClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DirectoryServiceData", "RemoveGroupMember", {}) | ||
.n("DirectoryServiceDataClient", "RemoveGroupMemberCommand") | ||
.f(void 0, void 0) | ||
.ser(se_RemoveGroupMemberCommand) | ||
.de(de_RemoveGroupMemberCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: RemoveGroupMemberRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: RemoveGroupMemberCommandInput; | ||
output: RemoveGroupMemberCommandOutput; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.