Skip to content

Commit

Permalink
feat(client-directory-service): Added new APIs for enabling, disablin…
Browse files Browse the repository at this point in the history
…g, and describing access to the AWS Directory Service Data API
  • Loading branch information
awstools committed Sep 18, 2024
1 parent b08130e commit cca80dd
Show file tree
Hide file tree
Showing 36 changed files with 948 additions and 73 deletions.
24 changes: 24 additions & 0 deletions clients/client-directory-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,14 @@ DescribeDirectories

[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/)

</details>
<details>
<summary>
DescribeDirectoryDataAccess
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -496,6 +504,14 @@ DisableClientAuthentication

[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/)

</details>
<details>
<summary>
DisableDirectoryDataAccess
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -528,6 +544,14 @@ EnableClientAuthentication

[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/)

</details>
<details>
<summary>
EnableDirectoryDataAccess
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
69 changes: 69 additions & 0 deletions clients/client-directory-service/src/DirectoryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ import {
DescribeDirectoriesCommandInput,
DescribeDirectoriesCommandOutput,
} from "./commands/DescribeDirectoriesCommand";
import {
DescribeDirectoryDataAccessCommand,
DescribeDirectoryDataAccessCommandInput,
DescribeDirectoryDataAccessCommandOutput,
} from "./commands/DescribeDirectoryDataAccessCommand";
import {
DescribeDomainControllersCommand,
DescribeDomainControllersCommandInput,
Expand Down Expand Up @@ -157,6 +162,11 @@ import {
DisableClientAuthenticationCommandInput,
DisableClientAuthenticationCommandOutput,
} from "./commands/DisableClientAuthenticationCommand";
import {
DisableDirectoryDataAccessCommand,
DisableDirectoryDataAccessCommandInput,
DisableDirectoryDataAccessCommandOutput,
} from "./commands/DisableDirectoryDataAccessCommand";
import {
DisableLDAPSCommand,
DisableLDAPSCommandInput,
Expand All @@ -173,6 +183,11 @@ import {
EnableClientAuthenticationCommandInput,
EnableClientAuthenticationCommandOutput,
} from "./commands/EnableClientAuthenticationCommand";
import {
EnableDirectoryDataAccessCommand,
EnableDirectoryDataAccessCommandInput,
EnableDirectoryDataAccessCommandOutput,
} from "./commands/EnableDirectoryDataAccessCommand";
import { EnableLDAPSCommand, EnableLDAPSCommandInput, EnableLDAPSCommandOutput } from "./commands/EnableLDAPSCommand";
import {
EnableRadiusCommand,
Expand Down Expand Up @@ -325,6 +340,7 @@ const commands = {
DescribeClientAuthenticationSettingsCommand,
DescribeConditionalForwardersCommand,
DescribeDirectoriesCommand,
DescribeDirectoryDataAccessCommand,
DescribeDomainControllersCommand,
DescribeEventTopicsCommand,
DescribeLDAPSSettingsCommand,
Expand All @@ -335,10 +351,12 @@ const commands = {
DescribeTrustsCommand,
DescribeUpdateDirectoryCommand,
DisableClientAuthenticationCommand,
DisableDirectoryDataAccessCommand,
DisableLDAPSCommand,
DisableRadiusCommand,
DisableSsoCommand,
EnableClientAuthenticationCommand,
EnableDirectoryDataAccessCommand,
EnableLDAPSCommand,
EnableRadiusCommand,
EnableSsoCommand,
Expand Down Expand Up @@ -751,6 +769,23 @@ export interface DirectoryService {
cb: (err: any, data?: DescribeDirectoriesCommandOutput) => void
): void;

/**
* @see {@link DescribeDirectoryDataAccessCommand}
*/
describeDirectoryDataAccess(
args: DescribeDirectoryDataAccessCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeDirectoryDataAccessCommandOutput>;
describeDirectoryDataAccess(
args: DescribeDirectoryDataAccessCommandInput,
cb: (err: any, data?: DescribeDirectoryDataAccessCommandOutput) => void
): void;
describeDirectoryDataAccess(
args: DescribeDirectoryDataAccessCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeDirectoryDataAccessCommandOutput) => void
): void;

/**
* @see {@link DescribeDomainControllersCommand}
*/
Expand Down Expand Up @@ -918,6 +953,23 @@ export interface DirectoryService {
cb: (err: any, data?: DisableClientAuthenticationCommandOutput) => void
): void;

/**
* @see {@link DisableDirectoryDataAccessCommand}
*/
disableDirectoryDataAccess(
args: DisableDirectoryDataAccessCommandInput,
options?: __HttpHandlerOptions
): Promise<DisableDirectoryDataAccessCommandOutput>;
disableDirectoryDataAccess(
args: DisableDirectoryDataAccessCommandInput,
cb: (err: any, data?: DisableDirectoryDataAccessCommandOutput) => void
): void;
disableDirectoryDataAccess(
args: DisableDirectoryDataAccessCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DisableDirectoryDataAccessCommandOutput) => void
): void;

/**
* @see {@link DisableLDAPSCommand}
*/
Expand Down Expand Up @@ -968,6 +1020,23 @@ export interface DirectoryService {
cb: (err: any, data?: EnableClientAuthenticationCommandOutput) => void
): void;

/**
* @see {@link EnableDirectoryDataAccessCommand}
*/
enableDirectoryDataAccess(
args: EnableDirectoryDataAccessCommandInput,
options?: __HttpHandlerOptions
): Promise<EnableDirectoryDataAccessCommandOutput>;
enableDirectoryDataAccess(
args: EnableDirectoryDataAccessCommandInput,
cb: (err: any, data?: EnableDirectoryDataAccessCommandOutput) => void
): void;
enableDirectoryDataAccess(
args: EnableDirectoryDataAccessCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: EnableDirectoryDataAccessCommandOutput) => void
): void;

/**
* @see {@link EnableLDAPSCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-directory-service/src/DirectoryServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ import {
DescribeDirectoriesCommandInput,
DescribeDirectoriesCommandOutput,
} from "./commands/DescribeDirectoriesCommand";
import {
DescribeDirectoryDataAccessCommandInput,
DescribeDirectoryDataAccessCommandOutput,
} from "./commands/DescribeDirectoryDataAccessCommand";
import {
DescribeDomainControllersCommandInput,
DescribeDomainControllersCommandOutput,
Expand Down Expand Up @@ -142,13 +146,21 @@ import {
DisableClientAuthenticationCommandInput,
DisableClientAuthenticationCommandOutput,
} from "./commands/DisableClientAuthenticationCommand";
import {
DisableDirectoryDataAccessCommandInput,
DisableDirectoryDataAccessCommandOutput,
} from "./commands/DisableDirectoryDataAccessCommand";
import { DisableLDAPSCommandInput, DisableLDAPSCommandOutput } from "./commands/DisableLDAPSCommand";
import { DisableRadiusCommandInput, DisableRadiusCommandOutput } from "./commands/DisableRadiusCommand";
import { DisableSsoCommandInput, DisableSsoCommandOutput } from "./commands/DisableSsoCommand";
import {
EnableClientAuthenticationCommandInput,
EnableClientAuthenticationCommandOutput,
} from "./commands/EnableClientAuthenticationCommand";
import {
EnableDirectoryDataAccessCommandInput,
EnableDirectoryDataAccessCommandOutput,
} from "./commands/EnableDirectoryDataAccessCommand";
import { EnableLDAPSCommandInput, EnableLDAPSCommandOutput } from "./commands/EnableLDAPSCommand";
import { EnableRadiusCommandInput, EnableRadiusCommandOutput } from "./commands/EnableRadiusCommand";
import { EnableSsoCommandInput, EnableSsoCommandOutput } from "./commands/EnableSsoCommand";
Expand Down Expand Up @@ -250,6 +262,7 @@ export type ServiceInputTypes =
| DescribeClientAuthenticationSettingsCommandInput
| DescribeConditionalForwardersCommandInput
| DescribeDirectoriesCommandInput
| DescribeDirectoryDataAccessCommandInput
| DescribeDomainControllersCommandInput
| DescribeEventTopicsCommandInput
| DescribeLDAPSSettingsCommandInput
Expand All @@ -260,10 +273,12 @@ export type ServiceInputTypes =
| DescribeTrustsCommandInput
| DescribeUpdateDirectoryCommandInput
| DisableClientAuthenticationCommandInput
| DisableDirectoryDataAccessCommandInput
| DisableLDAPSCommandInput
| DisableRadiusCommandInput
| DisableSsoCommandInput
| EnableClientAuthenticationCommandInput
| EnableDirectoryDataAccessCommandInput
| EnableLDAPSCommandInput
| EnableRadiusCommandInput
| EnableSsoCommandInput
Expand Down Expand Up @@ -322,6 +337,7 @@ export type ServiceOutputTypes =
| DescribeClientAuthenticationSettingsCommandOutput
| DescribeConditionalForwardersCommandOutput
| DescribeDirectoriesCommandOutput
| DescribeDirectoryDataAccessCommandOutput
| DescribeDomainControllersCommandOutput
| DescribeEventTopicsCommandOutput
| DescribeLDAPSSettingsCommandOutput
Expand All @@ -332,10 +348,12 @@ export type ServiceOutputTypes =
| DescribeTrustsCommandOutput
| DescribeUpdateDirectoryCommandOutput
| DisableClientAuthenticationCommandOutput
| DisableDirectoryDataAccessCommandOutput
| DisableLDAPSCommandOutput
| DisableRadiusCommandOutput
| DisableSsoCommandOutput
| EnableClientAuthenticationCommandOutput
| EnableDirectoryDataAccessCommandOutput
| EnableLDAPSCommandOutput
| EnableRadiusCommandOutput
| EnableSsoCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface AddIpRoutesCommandOutput extends AddIpRoutesResult, __MetadataB
* <p>A client exception has occurred.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityAlreadyExistsException} (client fault)
* <p>The specified entity already exists.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare
* @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>Client authentication is not available in this region at this time.</p>
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ClientException} (client fault)
* <p>A client exception has occurred.</p>
Expand All @@ -71,7 +71,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare
* <p>The specified directory does not exist in the system.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityDoesNotExistException} (client fault)
* <p>The specified entity could not be found.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface CreateComputerCommandOutput extends CreateComputerResult, __Met
* <p>A client exception has occurred.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityAlreadyExistsException} (client fault)
* <p>The specified entity already exists.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface CreateConditionalForwarderCommandOutput extends CreateCondition
* <p>A client exception has occurred.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityAlreadyExistsException} (client fault)
* <p>The specified entity already exists.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface DeleteConditionalForwarderCommandOutput extends DeleteCondition
* <p>A client exception has occurred.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityDoesNotExistException} (client fault)
* <p>The specified entity could not be found.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface DeregisterCertificateCommandOutput extends DeregisterCertificat
* <p>The specified directory does not exist in the system.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>One or more parameters are not valid.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface DescribeClientAuthenticationSettingsCommandOutput
* @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>Client authentication is not available in this region at this time.</p>
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ClientException} (client fault)
* <p>A client exception has occurred.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface DescribeConditionalForwardersCommandOutput
* <p>A client exception has occurred.</p>
*
* @throws {@link DirectoryUnavailableException} (client fault)
* <p>The specified directory is unavailable or could not be found.</p>
* <p>The specified directory is unavailable.</p>
*
* @throws {@link EntityDoesNotExistException} (client fault)
* <p>The specified entity could not be found.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface DescribeDirectoriesCommandOutput extends DescribeDirectoriesRes
* // DnsIpAddrs: [ // DnsIpAddrs
* // "STRING_VALUE",
* // ],
* // Stage: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed",
* // Stage: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed" || "Updating",
* // ShareStatus: "Shared" || "PendingAcceptance" || "Rejected" || "Rejecting" || "RejectFailed" || "Sharing" || "ShareFailed" || "Deleted" || "Deleting",
* // ShareMethod: "ORGANIZATIONS" || "HANDSHAKE",
* // ShareNotes: "STRING_VALUE",
Expand Down
Loading

0 comments on commit cca80dd

Please sign in to comment.