Skip to content

Commit cca80dd

Browse files
author
awstools
committed
feat(client-directory-service): Added new APIs for enabling, disabling, and describing access to the AWS Directory Service Data API
1 parent b08130e commit cca80dd

36 files changed

+948
-73
lines changed

clients/client-directory-service/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,14 @@ DescribeDirectories
416416

417417
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/DescribeDirectoriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DescribeDirectoriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DescribeDirectoriesCommandOutput/)
418418

419+
</details>
420+
<details>
421+
<summary>
422+
DescribeDirectoryDataAccess
423+
</summary>
424+
425+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/DescribeDirectoryDataAccessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DescribeDirectoryDataAccessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DescribeDirectoryDataAccessCommandOutput/)
426+
419427
</details>
420428
<details>
421429
<summary>
@@ -496,6 +504,14 @@ DisableClientAuthentication
496504

497505
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/DisableClientAuthenticationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DisableClientAuthenticationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DisableClientAuthenticationCommandOutput/)
498506

507+
</details>
508+
<details>
509+
<summary>
510+
DisableDirectoryDataAccess
511+
</summary>
512+
513+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/DisableDirectoryDataAccessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DisableDirectoryDataAccessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/DisableDirectoryDataAccessCommandOutput/)
514+
499515
</details>
500516
<details>
501517
<summary>
@@ -528,6 +544,14 @@ EnableClientAuthentication
528544

529545
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/EnableClientAuthenticationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/EnableClientAuthenticationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/EnableClientAuthenticationCommandOutput/)
530546

547+
</details>
548+
<details>
549+
<summary>
550+
EnableDirectoryDataAccess
551+
</summary>
552+
553+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/directory-service/command/EnableDirectoryDataAccessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/EnableDirectoryDataAccessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-directory-service/Interface/EnableDirectoryDataAccessCommandOutput/)
554+
531555
</details>
532556
<details>
533557
<summary>

clients/client-directory-service/src/DirectoryService.ts

+69
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ import {
107107
DescribeDirectoriesCommandInput,
108108
DescribeDirectoriesCommandOutput,
109109
} from "./commands/DescribeDirectoriesCommand";
110+
import {
111+
DescribeDirectoryDataAccessCommand,
112+
DescribeDirectoryDataAccessCommandInput,
113+
DescribeDirectoryDataAccessCommandOutput,
114+
} from "./commands/DescribeDirectoryDataAccessCommand";
110115
import {
111116
DescribeDomainControllersCommand,
112117
DescribeDomainControllersCommandInput,
@@ -157,6 +162,11 @@ import {
157162
DisableClientAuthenticationCommandInput,
158163
DisableClientAuthenticationCommandOutput,
159164
} from "./commands/DisableClientAuthenticationCommand";
165+
import {
166+
DisableDirectoryDataAccessCommand,
167+
DisableDirectoryDataAccessCommandInput,
168+
DisableDirectoryDataAccessCommandOutput,
169+
} from "./commands/DisableDirectoryDataAccessCommand";
160170
import {
161171
DisableLDAPSCommand,
162172
DisableLDAPSCommandInput,
@@ -173,6 +183,11 @@ import {
173183
EnableClientAuthenticationCommandInput,
174184
EnableClientAuthenticationCommandOutput,
175185
} from "./commands/EnableClientAuthenticationCommand";
186+
import {
187+
EnableDirectoryDataAccessCommand,
188+
EnableDirectoryDataAccessCommandInput,
189+
EnableDirectoryDataAccessCommandOutput,
190+
} from "./commands/EnableDirectoryDataAccessCommand";
176191
import { EnableLDAPSCommand, EnableLDAPSCommandInput, EnableLDAPSCommandOutput } from "./commands/EnableLDAPSCommand";
177192
import {
178193
EnableRadiusCommand,
@@ -325,6 +340,7 @@ const commands = {
325340
DescribeClientAuthenticationSettingsCommand,
326341
DescribeConditionalForwardersCommand,
327342
DescribeDirectoriesCommand,
343+
DescribeDirectoryDataAccessCommand,
328344
DescribeDomainControllersCommand,
329345
DescribeEventTopicsCommand,
330346
DescribeLDAPSSettingsCommand,
@@ -335,10 +351,12 @@ const commands = {
335351
DescribeTrustsCommand,
336352
DescribeUpdateDirectoryCommand,
337353
DisableClientAuthenticationCommand,
354+
DisableDirectoryDataAccessCommand,
338355
DisableLDAPSCommand,
339356
DisableRadiusCommand,
340357
DisableSsoCommand,
341358
EnableClientAuthenticationCommand,
359+
EnableDirectoryDataAccessCommand,
342360
EnableLDAPSCommand,
343361
EnableRadiusCommand,
344362
EnableSsoCommand,
@@ -751,6 +769,23 @@ export interface DirectoryService {
751769
cb: (err: any, data?: DescribeDirectoriesCommandOutput) => void
752770
): void;
753771

772+
/**
773+
* @see {@link DescribeDirectoryDataAccessCommand}
774+
*/
775+
describeDirectoryDataAccess(
776+
args: DescribeDirectoryDataAccessCommandInput,
777+
options?: __HttpHandlerOptions
778+
): Promise<DescribeDirectoryDataAccessCommandOutput>;
779+
describeDirectoryDataAccess(
780+
args: DescribeDirectoryDataAccessCommandInput,
781+
cb: (err: any, data?: DescribeDirectoryDataAccessCommandOutput) => void
782+
): void;
783+
describeDirectoryDataAccess(
784+
args: DescribeDirectoryDataAccessCommandInput,
785+
options: __HttpHandlerOptions,
786+
cb: (err: any, data?: DescribeDirectoryDataAccessCommandOutput) => void
787+
): void;
788+
754789
/**
755790
* @see {@link DescribeDomainControllersCommand}
756791
*/
@@ -918,6 +953,23 @@ export interface DirectoryService {
918953
cb: (err: any, data?: DisableClientAuthenticationCommandOutput) => void
919954
): void;
920955

956+
/**
957+
* @see {@link DisableDirectoryDataAccessCommand}
958+
*/
959+
disableDirectoryDataAccess(
960+
args: DisableDirectoryDataAccessCommandInput,
961+
options?: __HttpHandlerOptions
962+
): Promise<DisableDirectoryDataAccessCommandOutput>;
963+
disableDirectoryDataAccess(
964+
args: DisableDirectoryDataAccessCommandInput,
965+
cb: (err: any, data?: DisableDirectoryDataAccessCommandOutput) => void
966+
): void;
967+
disableDirectoryDataAccess(
968+
args: DisableDirectoryDataAccessCommandInput,
969+
options: __HttpHandlerOptions,
970+
cb: (err: any, data?: DisableDirectoryDataAccessCommandOutput) => void
971+
): void;
972+
921973
/**
922974
* @see {@link DisableLDAPSCommand}
923975
*/
@@ -968,6 +1020,23 @@ export interface DirectoryService {
9681020
cb: (err: any, data?: EnableClientAuthenticationCommandOutput) => void
9691021
): void;
9701022

1023+
/**
1024+
* @see {@link EnableDirectoryDataAccessCommand}
1025+
*/
1026+
enableDirectoryDataAccess(
1027+
args: EnableDirectoryDataAccessCommandInput,
1028+
options?: __HttpHandlerOptions
1029+
): Promise<EnableDirectoryDataAccessCommandOutput>;
1030+
enableDirectoryDataAccess(
1031+
args: EnableDirectoryDataAccessCommandInput,
1032+
cb: (err: any, data?: EnableDirectoryDataAccessCommandOutput) => void
1033+
): void;
1034+
enableDirectoryDataAccess(
1035+
args: EnableDirectoryDataAccessCommandInput,
1036+
options: __HttpHandlerOptions,
1037+
cb: (err: any, data?: EnableDirectoryDataAccessCommandOutput) => void
1038+
): void;
1039+
9711040
/**
9721041
* @see {@link EnableLDAPSCommand}
9731042
*/

clients/client-directory-service/src/DirectoryServiceClient.ts

+18
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ import {
114114
DescribeDirectoriesCommandInput,
115115
DescribeDirectoriesCommandOutput,
116116
} from "./commands/DescribeDirectoriesCommand";
117+
import {
118+
DescribeDirectoryDataAccessCommandInput,
119+
DescribeDirectoryDataAccessCommandOutput,
120+
} from "./commands/DescribeDirectoryDataAccessCommand";
117121
import {
118122
DescribeDomainControllersCommandInput,
119123
DescribeDomainControllersCommandOutput,
@@ -142,13 +146,21 @@ import {
142146
DisableClientAuthenticationCommandInput,
143147
DisableClientAuthenticationCommandOutput,
144148
} from "./commands/DisableClientAuthenticationCommand";
149+
import {
150+
DisableDirectoryDataAccessCommandInput,
151+
DisableDirectoryDataAccessCommandOutput,
152+
} from "./commands/DisableDirectoryDataAccessCommand";
145153
import { DisableLDAPSCommandInput, DisableLDAPSCommandOutput } from "./commands/DisableLDAPSCommand";
146154
import { DisableRadiusCommandInput, DisableRadiusCommandOutput } from "./commands/DisableRadiusCommand";
147155
import { DisableSsoCommandInput, DisableSsoCommandOutput } from "./commands/DisableSsoCommand";
148156
import {
149157
EnableClientAuthenticationCommandInput,
150158
EnableClientAuthenticationCommandOutput,
151159
} from "./commands/EnableClientAuthenticationCommand";
160+
import {
161+
EnableDirectoryDataAccessCommandInput,
162+
EnableDirectoryDataAccessCommandOutput,
163+
} from "./commands/EnableDirectoryDataAccessCommand";
152164
import { EnableLDAPSCommandInput, EnableLDAPSCommandOutput } from "./commands/EnableLDAPSCommand";
153165
import { EnableRadiusCommandInput, EnableRadiusCommandOutput } from "./commands/EnableRadiusCommand";
154166
import { EnableSsoCommandInput, EnableSsoCommandOutput } from "./commands/EnableSsoCommand";
@@ -250,6 +262,7 @@ export type ServiceInputTypes =
250262
| DescribeClientAuthenticationSettingsCommandInput
251263
| DescribeConditionalForwardersCommandInput
252264
| DescribeDirectoriesCommandInput
265+
| DescribeDirectoryDataAccessCommandInput
253266
| DescribeDomainControllersCommandInput
254267
| DescribeEventTopicsCommandInput
255268
| DescribeLDAPSSettingsCommandInput
@@ -260,10 +273,12 @@ export type ServiceInputTypes =
260273
| DescribeTrustsCommandInput
261274
| DescribeUpdateDirectoryCommandInput
262275
| DisableClientAuthenticationCommandInput
276+
| DisableDirectoryDataAccessCommandInput
263277
| DisableLDAPSCommandInput
264278
| DisableRadiusCommandInput
265279
| DisableSsoCommandInput
266280
| EnableClientAuthenticationCommandInput
281+
| EnableDirectoryDataAccessCommandInput
267282
| EnableLDAPSCommandInput
268283
| EnableRadiusCommandInput
269284
| EnableSsoCommandInput
@@ -322,6 +337,7 @@ export type ServiceOutputTypes =
322337
| DescribeClientAuthenticationSettingsCommandOutput
323338
| DescribeConditionalForwardersCommandOutput
324339
| DescribeDirectoriesCommandOutput
340+
| DescribeDirectoryDataAccessCommandOutput
325341
| DescribeDomainControllersCommandOutput
326342
| DescribeEventTopicsCommandOutput
327343
| DescribeLDAPSSettingsCommandOutput
@@ -332,10 +348,12 @@ export type ServiceOutputTypes =
332348
| DescribeTrustsCommandOutput
333349
| DescribeUpdateDirectoryCommandOutput
334350
| DisableClientAuthenticationCommandOutput
351+
| DisableDirectoryDataAccessCommandOutput
335352
| DisableLDAPSCommandOutput
336353
| DisableRadiusCommandOutput
337354
| DisableSsoCommandOutput
338355
| EnableClientAuthenticationCommandOutput
356+
| EnableDirectoryDataAccessCommandOutput
339357
| EnableLDAPSCommandOutput
340358
| EnableRadiusCommandOutput
341359
| EnableSsoCommandOutput

clients/client-directory-service/src/commands/AddIpRoutesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface AddIpRoutesCommandOutput extends AddIpRoutesResult, __MetadataB
6868
* <p>A client exception has occurred.</p>
6969
*
7070
* @throws {@link DirectoryUnavailableException} (client fault)
71-
* <p>The specified directory is unavailable or could not be found.</p>
71+
* <p>The specified directory is unavailable.</p>
7272
*
7373
* @throws {@link EntityAlreadyExistsException} (client fault)
7474
* <p>The specified entity already exists.</p>

clients/client-directory-service/src/commands/AddRegionCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare
5858
* @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
5959
*
6060
* @throws {@link AccessDeniedException} (client fault)
61-
* <p>Client authentication is not available in this region at this time.</p>
61+
* <p>You do not have sufficient access to perform this action.</p>
6262
*
6363
* @throws {@link ClientException} (client fault)
6464
* <p>A client exception has occurred.</p>
@@ -71,7 +71,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare
7171
* <p>The specified directory does not exist in the system.</p>
7272
*
7373
* @throws {@link DirectoryUnavailableException} (client fault)
74-
* <p>The specified directory is unavailable or could not be found.</p>
74+
* <p>The specified directory is unavailable.</p>
7575
*
7676
* @throws {@link EntityDoesNotExistException} (client fault)
7777
* <p>The specified entity could not be found.</p>

clients/client-directory-service/src/commands/CreateComputerCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface CreateComputerCommandOutput extends CreateComputerResult, __Met
8181
* <p>A client exception has occurred.</p>
8282
*
8383
* @throws {@link DirectoryUnavailableException} (client fault)
84-
* <p>The specified directory is unavailable or could not be found.</p>
84+
* <p>The specified directory is unavailable.</p>
8585
*
8686
* @throws {@link EntityAlreadyExistsException} (client fault)
8787
* <p>The specified entity already exists.</p>

clients/client-directory-service/src/commands/CreateConditionalForwarderCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface CreateConditionalForwarderCommandOutput extends CreateCondition
6060
* <p>A client exception has occurred.</p>
6161
*
6262
* @throws {@link DirectoryUnavailableException} (client fault)
63-
* <p>The specified directory is unavailable or could not be found.</p>
63+
* <p>The specified directory is unavailable.</p>
6464
*
6565
* @throws {@link EntityAlreadyExistsException} (client fault)
6666
* <p>The specified entity already exists.</p>

clients/client-directory-service/src/commands/DeleteConditionalForwarderCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface DeleteConditionalForwarderCommandOutput extends DeleteCondition
5656
* <p>A client exception has occurred.</p>
5757
*
5858
* @throws {@link DirectoryUnavailableException} (client fault)
59-
* <p>The specified directory is unavailable or could not be found.</p>
59+
* <p>The specified directory is unavailable.</p>
6060
*
6161
* @throws {@link EntityDoesNotExistException} (client fault)
6262
* <p>The specified entity could not be found.</p>

clients/client-directory-service/src/commands/DeregisterCertificateCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface DeregisterCertificateCommandOutput extends DeregisterCertificat
6565
* <p>The specified directory does not exist in the system.</p>
6666
*
6767
* @throws {@link DirectoryUnavailableException} (client fault)
68-
* <p>The specified directory is unavailable or could not be found.</p>
68+
* <p>The specified directory is unavailable.</p>
6969
*
7070
* @throws {@link InvalidParameterException} (client fault)
7171
* <p>One or more parameters are not valid.</p>

clients/client-directory-service/src/commands/DescribeClientAuthenticationSettingsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface DescribeClientAuthenticationSettingsCommandOutput
7272
* @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
7373
*
7474
* @throws {@link AccessDeniedException} (client fault)
75-
* <p>Client authentication is not available in this region at this time.</p>
75+
* <p>You do not have sufficient access to perform this action.</p>
7676
*
7777
* @throws {@link ClientException} (client fault)
7878
* <p>A client exception has occurred.</p>

clients/client-directory-service/src/commands/DescribeConditionalForwardersCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export interface DescribeConditionalForwardersCommandOutput
7474
* <p>A client exception has occurred.</p>
7575
*
7676
* @throws {@link DirectoryUnavailableException} (client fault)
77-
* <p>The specified directory is unavailable or could not be found.</p>
77+
* <p>The specified directory is unavailable.</p>
7878
*
7979
* @throws {@link EntityDoesNotExistException} (client fault)
8080
* <p>The specified entity could not be found.</p>

clients/client-directory-service/src/commands/DescribeDirectoriesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface DescribeDirectoriesCommandOutput extends DescribeDirectoriesRes
7272
* // DnsIpAddrs: [ // DnsIpAddrs
7373
* // "STRING_VALUE",
7474
* // ],
75-
* // Stage: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed",
75+
* // Stage: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed" || "Updating",
7676
* // ShareStatus: "Shared" || "PendingAcceptance" || "Rejected" || "Rejecting" || "RejectFailed" || "Sharing" || "ShareFailed" || "Deleted" || "Deleting",
7777
* // ShareMethod: "ORGANIZATIONS" || "HANDSHAKE",
7878
* // ShareNotes: "STRING_VALUE",

0 commit comments

Comments
 (0)