From cca80ddfd8df7ac58af6c067bcc98170a1cc5007 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 18 Sep 2024 18:19:00 +0000 Subject: [PATCH] feat(client-directory-service): Added new APIs for enabling, disabling, and describing access to the AWS Directory Service Data API --- clients/client-directory-service/README.md | 24 ++ .../src/DirectoryService.ts | 69 +++++ .../src/DirectoryServiceClient.ts | 18 ++ .../src/commands/AddIpRoutesCommand.ts | 2 +- .../src/commands/AddRegionCommand.ts | 4 +- .../src/commands/CreateComputerCommand.ts | 2 +- .../CreateConditionalForwarderCommand.ts | 2 +- .../DeleteConditionalForwarderCommand.ts | 2 +- .../commands/DeregisterCertificateCommand.ts | 2 +- ...ribeClientAuthenticationSettingsCommand.ts | 2 +- .../DescribeConditionalForwardersCommand.ts | 2 +- .../commands/DescribeDirectoriesCommand.ts | 2 +- .../DescribeDirectoryDataAccessCommand.ts | 107 ++++++++ .../DescribeDomainControllersCommand.ts | 2 +- .../src/commands/DescribeRegionsCommand.ts | 4 +- .../DescribeUpdateDirectoryCommand.ts | 2 +- .../DisableClientAuthenticationCommand.ts | 2 +- .../DisableDirectoryDataAccessCommand.ts | 113 ++++++++ .../src/commands/DisableLDAPSCommand.ts | 2 +- .../EnableClientAuthenticationCommand.ts | 2 +- .../EnableDirectoryDataAccessCommand.ts | 113 ++++++++ .../src/commands/EnableLDAPSCommand.ts | 2 +- .../commands/RegisterCertificateCommand.ts | 2 +- .../src/commands/RemoveIpRoutesCommand.ts | 2 +- .../src/commands/RemoveRegionCommand.ts | 4 +- .../src/commands/ResetUserPasswordCommand.ts | 4 +- .../src/commands/ShareDirectoryCommand.ts | 2 +- .../commands/StartSchemaExtensionCommand.ts | 2 +- .../UpdateConditionalForwarderCommand.ts | 2 +- .../commands/UpdateDirectorySetupCommand.ts | 4 +- .../UpdateNumberOfDomainControllersCommand.ts | 2 +- .../src/commands/UpdateSettingsCommand.ts | 2 +- .../src/commands/index.ts | 3 + .../src/models/models_0.ts | 128 +++++++-- .../src/protocols/Aws_json1_1.ts | 132 ++++++++- .../aws-models/directory-service.json | 252 +++++++++++++++++- 36 files changed, 948 insertions(+), 73 deletions(-) create mode 100644 clients/client-directory-service/src/commands/DescribeDirectoryDataAccessCommand.ts create mode 100644 clients/client-directory-service/src/commands/DisableDirectoryDataAccessCommand.ts create mode 100644 clients/client-directory-service/src/commands/EnableDirectoryDataAccessCommand.ts diff --git a/clients/client-directory-service/README.md b/clients/client-directory-service/README.md index 48fdbfcc822d..06bfba58f063 100644 --- a/clients/client-directory-service/README.md +++ b/clients/client-directory-service/README.md @@ -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/) + +
+ +DescribeDirectoryDataAccess + + +[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/) +
@@ -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/) +
+
+ +DisableDirectoryDataAccess + + +[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/) +
@@ -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/) +
+
+ +EnableDirectoryDataAccess + + +[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/) +
diff --git a/clients/client-directory-service/src/DirectoryService.ts b/clients/client-directory-service/src/DirectoryService.ts index 9d30c757d265..31c3255bfb4d 100644 --- a/clients/client-directory-service/src/DirectoryService.ts +++ b/clients/client-directory-service/src/DirectoryService.ts @@ -107,6 +107,11 @@ import { DescribeDirectoriesCommandInput, DescribeDirectoriesCommandOutput, } from "./commands/DescribeDirectoriesCommand"; +import { + DescribeDirectoryDataAccessCommand, + DescribeDirectoryDataAccessCommandInput, + DescribeDirectoryDataAccessCommandOutput, +} from "./commands/DescribeDirectoryDataAccessCommand"; import { DescribeDomainControllersCommand, DescribeDomainControllersCommandInput, @@ -157,6 +162,11 @@ import { DisableClientAuthenticationCommandInput, DisableClientAuthenticationCommandOutput, } from "./commands/DisableClientAuthenticationCommand"; +import { + DisableDirectoryDataAccessCommand, + DisableDirectoryDataAccessCommandInput, + DisableDirectoryDataAccessCommandOutput, +} from "./commands/DisableDirectoryDataAccessCommand"; import { DisableLDAPSCommand, DisableLDAPSCommandInput, @@ -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, @@ -325,6 +340,7 @@ const commands = { DescribeClientAuthenticationSettingsCommand, DescribeConditionalForwardersCommand, DescribeDirectoriesCommand, + DescribeDirectoryDataAccessCommand, DescribeDomainControllersCommand, DescribeEventTopicsCommand, DescribeLDAPSSettingsCommand, @@ -335,10 +351,12 @@ const commands = { DescribeTrustsCommand, DescribeUpdateDirectoryCommand, DisableClientAuthenticationCommand, + DisableDirectoryDataAccessCommand, DisableLDAPSCommand, DisableRadiusCommand, DisableSsoCommand, EnableClientAuthenticationCommand, + EnableDirectoryDataAccessCommand, EnableLDAPSCommand, EnableRadiusCommand, EnableSsoCommand, @@ -751,6 +769,23 @@ export interface DirectoryService { cb: (err: any, data?: DescribeDirectoriesCommandOutput) => void ): void; + /** + * @see {@link DescribeDirectoryDataAccessCommand} + */ + describeDirectoryDataAccess( + args: DescribeDirectoryDataAccessCommandInput, + options?: __HttpHandlerOptions + ): Promise; + 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} */ @@ -918,6 +953,23 @@ export interface DirectoryService { cb: (err: any, data?: DisableClientAuthenticationCommandOutput) => void ): void; + /** + * @see {@link DisableDirectoryDataAccessCommand} + */ + disableDirectoryDataAccess( + args: DisableDirectoryDataAccessCommandInput, + options?: __HttpHandlerOptions + ): Promise; + 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} */ @@ -968,6 +1020,23 @@ export interface DirectoryService { cb: (err: any, data?: EnableClientAuthenticationCommandOutput) => void ): void; + /** + * @see {@link EnableDirectoryDataAccessCommand} + */ + enableDirectoryDataAccess( + args: EnableDirectoryDataAccessCommandInput, + options?: __HttpHandlerOptions + ): Promise; + 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} */ diff --git a/clients/client-directory-service/src/DirectoryServiceClient.ts b/clients/client-directory-service/src/DirectoryServiceClient.ts index 2e43c1eb7dba..70d461267dce 100644 --- a/clients/client-directory-service/src/DirectoryServiceClient.ts +++ b/clients/client-directory-service/src/DirectoryServiceClient.ts @@ -114,6 +114,10 @@ import { DescribeDirectoriesCommandInput, DescribeDirectoriesCommandOutput, } from "./commands/DescribeDirectoriesCommand"; +import { + DescribeDirectoryDataAccessCommandInput, + DescribeDirectoryDataAccessCommandOutput, +} from "./commands/DescribeDirectoryDataAccessCommand"; import { DescribeDomainControllersCommandInput, DescribeDomainControllersCommandOutput, @@ -142,6 +146,10 @@ 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"; @@ -149,6 +157,10 @@ 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"; @@ -250,6 +262,7 @@ export type ServiceInputTypes = | DescribeClientAuthenticationSettingsCommandInput | DescribeConditionalForwardersCommandInput | DescribeDirectoriesCommandInput + | DescribeDirectoryDataAccessCommandInput | DescribeDomainControllersCommandInput | DescribeEventTopicsCommandInput | DescribeLDAPSSettingsCommandInput @@ -260,10 +273,12 @@ export type ServiceInputTypes = | DescribeTrustsCommandInput | DescribeUpdateDirectoryCommandInput | DisableClientAuthenticationCommandInput + | DisableDirectoryDataAccessCommandInput | DisableLDAPSCommandInput | DisableRadiusCommandInput | DisableSsoCommandInput | EnableClientAuthenticationCommandInput + | EnableDirectoryDataAccessCommandInput | EnableLDAPSCommandInput | EnableRadiusCommandInput | EnableSsoCommandInput @@ -322,6 +337,7 @@ export type ServiceOutputTypes = | DescribeClientAuthenticationSettingsCommandOutput | DescribeConditionalForwardersCommandOutput | DescribeDirectoriesCommandOutput + | DescribeDirectoryDataAccessCommandOutput | DescribeDomainControllersCommandOutput | DescribeEventTopicsCommandOutput | DescribeLDAPSSettingsCommandOutput @@ -332,10 +348,12 @@ export type ServiceOutputTypes = | DescribeTrustsCommandOutput | DescribeUpdateDirectoryCommandOutput | DisableClientAuthenticationCommandOutput + | DisableDirectoryDataAccessCommandOutput | DisableLDAPSCommandOutput | DisableRadiusCommandOutput | DisableSsoCommandOutput | EnableClientAuthenticationCommandOutput + | EnableDirectoryDataAccessCommandOutput | EnableLDAPSCommandOutput | EnableRadiusCommandOutput | EnableSsoCommandOutput diff --git a/clients/client-directory-service/src/commands/AddIpRoutesCommand.ts b/clients/client-directory-service/src/commands/AddIpRoutesCommand.ts index e8032fe20e92..dadd9aac4f15 100644 --- a/clients/client-directory-service/src/commands/AddIpRoutesCommand.ts +++ b/clients/client-directory-service/src/commands/AddIpRoutesCommand.ts @@ -68,7 +68,7 @@ export interface AddIpRoutesCommandOutput extends AddIpRoutesResult, __MetadataB *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityAlreadyExistsException} (client fault) *

The specified entity already exists.

diff --git a/clients/client-directory-service/src/commands/AddRegionCommand.ts b/clients/client-directory-service/src/commands/AddRegionCommand.ts index 5dd73de1bace..7f8b06cd2833 100644 --- a/clients/client-directory-service/src/commands/AddRegionCommand.ts +++ b/clients/client-directory-service/src/commands/AddRegionCommand.ts @@ -58,7 +58,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

@@ -71,7 +71,7 @@ export interface AddRegionCommandOutput extends AddRegionResult, __MetadataBeare *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityDoesNotExistException} (client fault) *

The specified entity could not be found.

diff --git a/clients/client-directory-service/src/commands/CreateComputerCommand.ts b/clients/client-directory-service/src/commands/CreateComputerCommand.ts index 5d9f6f20e474..d68272c691b4 100644 --- a/clients/client-directory-service/src/commands/CreateComputerCommand.ts +++ b/clients/client-directory-service/src/commands/CreateComputerCommand.ts @@ -81,7 +81,7 @@ export interface CreateComputerCommandOutput extends CreateComputerResult, __Met *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityAlreadyExistsException} (client fault) *

The specified entity already exists.

diff --git a/clients/client-directory-service/src/commands/CreateConditionalForwarderCommand.ts b/clients/client-directory-service/src/commands/CreateConditionalForwarderCommand.ts index bbb107624b7e..32d85ccd92c0 100644 --- a/clients/client-directory-service/src/commands/CreateConditionalForwarderCommand.ts +++ b/clients/client-directory-service/src/commands/CreateConditionalForwarderCommand.ts @@ -60,7 +60,7 @@ export interface CreateConditionalForwarderCommandOutput extends CreateCondition *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityAlreadyExistsException} (client fault) *

The specified entity already exists.

diff --git a/clients/client-directory-service/src/commands/DeleteConditionalForwarderCommand.ts b/clients/client-directory-service/src/commands/DeleteConditionalForwarderCommand.ts index 81a89a86cf4a..1d0d4caaec61 100644 --- a/clients/client-directory-service/src/commands/DeleteConditionalForwarderCommand.ts +++ b/clients/client-directory-service/src/commands/DeleteConditionalForwarderCommand.ts @@ -56,7 +56,7 @@ export interface DeleteConditionalForwarderCommandOutput extends DeleteCondition *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityDoesNotExistException} (client fault) *

The specified entity could not be found.

diff --git a/clients/client-directory-service/src/commands/DeregisterCertificateCommand.ts b/clients/client-directory-service/src/commands/DeregisterCertificateCommand.ts index b2f36e7f90d1..eabbc9c5c096 100644 --- a/clients/client-directory-service/src/commands/DeregisterCertificateCommand.ts +++ b/clients/client-directory-service/src/commands/DeregisterCertificateCommand.ts @@ -65,7 +65,7 @@ export interface DeregisterCertificateCommandOutput extends DeregisterCertificat *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link InvalidParameterException} (client fault) *

One or more parameters are not valid.

diff --git a/clients/client-directory-service/src/commands/DescribeClientAuthenticationSettingsCommand.ts b/clients/client-directory-service/src/commands/DescribeClientAuthenticationSettingsCommand.ts index 7d4a00eb7a41..54863e3056e4 100644 --- a/clients/client-directory-service/src/commands/DescribeClientAuthenticationSettingsCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeClientAuthenticationSettingsCommand.ts @@ -72,7 +72,7 @@ export interface DescribeClientAuthenticationSettingsCommandOutput * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

diff --git a/clients/client-directory-service/src/commands/DescribeConditionalForwardersCommand.ts b/clients/client-directory-service/src/commands/DescribeConditionalForwardersCommand.ts index f8fff32edeb7..4921d7b36e10 100644 --- a/clients/client-directory-service/src/commands/DescribeConditionalForwardersCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeConditionalForwardersCommand.ts @@ -74,7 +74,7 @@ export interface DescribeConditionalForwardersCommandOutput *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityDoesNotExistException} (client fault) *

The specified entity could not be found.

diff --git a/clients/client-directory-service/src/commands/DescribeDirectoriesCommand.ts b/clients/client-directory-service/src/commands/DescribeDirectoriesCommand.ts index 35dca180f61c..f44fbf3ca41b 100644 --- a/clients/client-directory-service/src/commands/DescribeDirectoriesCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeDirectoriesCommand.ts @@ -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", diff --git a/clients/client-directory-service/src/commands/DescribeDirectoryDataAccessCommand.ts b/clients/client-directory-service/src/commands/DescribeDirectoryDataAccessCommand.ts new file mode 100644 index 000000000000..8f3bd6a3fa40 --- /dev/null +++ b/clients/client-directory-service/src/commands/DescribeDirectoryDataAccessCommand.ts @@ -0,0 +1,107 @@ +// 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 { DirectoryServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { DescribeDirectoryDataAccessRequest, DescribeDirectoryDataAccessResult } from "../models/models_0"; +import { de_DescribeDirectoryDataAccessCommand, se_DescribeDirectoryDataAccessCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DescribeDirectoryDataAccessCommand}. + */ +export interface DescribeDirectoryDataAccessCommandInput extends DescribeDirectoryDataAccessRequest {} +/** + * @public + * + * The output of {@link DescribeDirectoryDataAccessCommand}. + */ +export interface DescribeDirectoryDataAccessCommandOutput extends DescribeDirectoryDataAccessResult, __MetadataBearer {} + +/** + *

Obtains status of directory data access enablement through the Directory Service Data API for the specified directory.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DirectoryServiceClient, DescribeDirectoryDataAccessCommand } from "@aws-sdk/client-directory-service"; // ES Modules import + * // const { DirectoryServiceClient, DescribeDirectoryDataAccessCommand } = require("@aws-sdk/client-directory-service"); // CommonJS import + * const client = new DirectoryServiceClient(config); + * const input = { // DescribeDirectoryDataAccessRequest + * DirectoryId: "STRING_VALUE", // required + * }; + * const command = new DescribeDirectoryDataAccessCommand(input); + * const response = await client.send(command); + * // { // DescribeDirectoryDataAccessResult + * // DataAccessStatus: "Disabled" || "Disabling" || "Enabled" || "Enabling" || "Failed", + * // }; + * + * ``` + * + * @param DescribeDirectoryDataAccessCommandInput - {@link DescribeDirectoryDataAccessCommandInput} + * @returns {@link DescribeDirectoryDataAccessCommandOutput} + * @see {@link DescribeDirectoryDataAccessCommandInput} for command's `input` shape. + * @see {@link DescribeDirectoryDataAccessCommandOutput} for command's `response` shape. + * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ClientException} (client fault) + *

A client exception has occurred.

+ * + * @throws {@link DirectoryDoesNotExistException} (client fault) + *

The specified directory does not exist in the system.

+ * + * @throws {@link ServiceException} (server fault) + *

An exception has occurred in Directory Service.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

The operation is not supported.

+ * + * @throws {@link DirectoryServiceServiceException} + *

Base exception class for all service exceptions from DirectoryService service.

+ * + * @public + */ +export class DescribeDirectoryDataAccessCommand extends $Command + .classBuilder< + DescribeDirectoryDataAccessCommandInput, + DescribeDirectoryDataAccessCommandOutput, + DirectoryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DirectoryServiceClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("DirectoryService_20150416", "DescribeDirectoryDataAccess", {}) + .n("DirectoryServiceClient", "DescribeDirectoryDataAccessCommand") + .f(void 0, void 0) + .ser(se_DescribeDirectoryDataAccessCommand) + .de(de_DescribeDirectoryDataAccessCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DescribeDirectoryDataAccessRequest; + output: DescribeDirectoryDataAccessResult; + }; + sdk: { + input: DescribeDirectoryDataAccessCommandInput; + output: DescribeDirectoryDataAccessCommandOutput; + }; + }; +} diff --git a/clients/client-directory-service/src/commands/DescribeDomainControllersCommand.ts b/clients/client-directory-service/src/commands/DescribeDomainControllersCommand.ts index ef5d5545a1fe..123661f047c7 100644 --- a/clients/client-directory-service/src/commands/DescribeDomainControllersCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeDomainControllersCommand.ts @@ -54,7 +54,7 @@ export interface DescribeDomainControllersCommandOutput extends DescribeDomainCo * // VpcId: "STRING_VALUE", * // SubnetId: "STRING_VALUE", * // AvailabilityZone: "STRING_VALUE", - * // Status: "Creating" || "Active" || "Impaired" || "Restoring" || "Deleting" || "Deleted" || "Failed", + * // Status: "Creating" || "Active" || "Impaired" || "Restoring" || "Deleting" || "Deleted" || "Failed" || "Updating", * // StatusReason: "STRING_VALUE", * // LaunchTime: new Date("TIMESTAMP"), * // StatusLastUpdatedDateTime: new Date("TIMESTAMP"), diff --git a/clients/client-directory-service/src/commands/DescribeRegionsCommand.ts b/clients/client-directory-service/src/commands/DescribeRegionsCommand.ts index c401efce98ad..bd7efb8cd579 100644 --- a/clients/client-directory-service/src/commands/DescribeRegionsCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeRegionsCommand.ts @@ -49,7 +49,7 @@ export interface DescribeRegionsCommandOutput extends DescribeRegionsResult, __M * // DirectoryId: "STRING_VALUE", * // RegionName: "STRING_VALUE", * // RegionType: "Primary" || "Additional", - * // Status: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed", + * // Status: "Requested" || "Creating" || "Created" || "Active" || "Inoperable" || "Impaired" || "Restoring" || "RestoreFailed" || "Deleting" || "Deleted" || "Failed" || "Updating", * // VpcSettings: { // DirectoryVpcSettings * // VpcId: "STRING_VALUE", // required * // SubnetIds: [ // SubnetIds // required @@ -74,7 +74,7 @@ export interface DescribeRegionsCommandOutput extends DescribeRegionsResult, __M * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

diff --git a/clients/client-directory-service/src/commands/DescribeUpdateDirectoryCommand.ts b/clients/client-directory-service/src/commands/DescribeUpdateDirectoryCommand.ts index 6a42196fce1a..04abec52caca 100644 --- a/clients/client-directory-service/src/commands/DescribeUpdateDirectoryCommand.ts +++ b/clients/client-directory-service/src/commands/DescribeUpdateDirectoryCommand.ts @@ -78,7 +78,7 @@ export interface DescribeUpdateDirectoryCommandOutput extends DescribeUpdateDire * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

diff --git a/clients/client-directory-service/src/commands/DisableClientAuthenticationCommand.ts b/clients/client-directory-service/src/commands/DisableClientAuthenticationCommand.ts index b3684c74174b..50f07b4c309d 100644 --- a/clients/client-directory-service/src/commands/DisableClientAuthenticationCommand.ts +++ b/clients/client-directory-service/src/commands/DisableClientAuthenticationCommand.ts @@ -52,7 +52,7 @@ export interface DisableClientAuthenticationCommandOutput extends DisableClientA * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

diff --git a/clients/client-directory-service/src/commands/DisableDirectoryDataAccessCommand.ts b/clients/client-directory-service/src/commands/DisableDirectoryDataAccessCommand.ts new file mode 100644 index 000000000000..c57ea4c62780 --- /dev/null +++ b/clients/client-directory-service/src/commands/DisableDirectoryDataAccessCommand.ts @@ -0,0 +1,113 @@ +// 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 { DirectoryServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { DisableDirectoryDataAccessRequest, DisableDirectoryDataAccessResult } from "../models/models_0"; +import { de_DisableDirectoryDataAccessCommand, se_DisableDirectoryDataAccessCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DisableDirectoryDataAccessCommand}. + */ +export interface DisableDirectoryDataAccessCommandInput extends DisableDirectoryDataAccessRequest {} +/** + * @public + * + * The output of {@link DisableDirectoryDataAccessCommand}. + */ +export interface DisableDirectoryDataAccessCommandOutput extends DisableDirectoryDataAccessResult, __MetadataBearer {} + +/** + *

Deactivates access to directory data via the Directory Service Data API for the specified directory.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DirectoryServiceClient, DisableDirectoryDataAccessCommand } from "@aws-sdk/client-directory-service"; // ES Modules import + * // const { DirectoryServiceClient, DisableDirectoryDataAccessCommand } = require("@aws-sdk/client-directory-service"); // CommonJS import + * const client = new DirectoryServiceClient(config); + * const input = { // DisableDirectoryDataAccessRequest + * DirectoryId: "STRING_VALUE", // required + * }; + * const command = new DisableDirectoryDataAccessCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DisableDirectoryDataAccessCommandInput - {@link DisableDirectoryDataAccessCommandInput} + * @returns {@link DisableDirectoryDataAccessCommandOutput} + * @see {@link DisableDirectoryDataAccessCommandInput} for command's `input` shape. + * @see {@link DisableDirectoryDataAccessCommandOutput} for command's `response` shape. + * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ClientException} (client fault) + *

A client exception has occurred.

+ * + * @throws {@link DirectoryDoesNotExistException} (client fault) + *

The specified directory does not exist in the system.

+ * + * @throws {@link DirectoryInDesiredStateException} (client fault) + *

+ * The directory is already updated to desired update type settings. + *

+ * + * @throws {@link DirectoryUnavailableException} (client fault) + *

The specified directory is unavailable.

+ * + * @throws {@link ServiceException} (server fault) + *

An exception has occurred in Directory Service.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

The operation is not supported.

+ * + * @throws {@link DirectoryServiceServiceException} + *

Base exception class for all service exceptions from DirectoryService service.

+ * + * @public + */ +export class DisableDirectoryDataAccessCommand extends $Command + .classBuilder< + DisableDirectoryDataAccessCommandInput, + DisableDirectoryDataAccessCommandOutput, + DirectoryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DirectoryServiceClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("DirectoryService_20150416", "DisableDirectoryDataAccess", {}) + .n("DirectoryServiceClient", "DisableDirectoryDataAccessCommand") + .f(void 0, void 0) + .ser(se_DisableDirectoryDataAccessCommand) + .de(de_DisableDirectoryDataAccessCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DisableDirectoryDataAccessRequest; + output: {}; + }; + sdk: { + input: DisableDirectoryDataAccessCommandInput; + output: DisableDirectoryDataAccessCommandOutput; + }; + }; +} diff --git a/clients/client-directory-service/src/commands/DisableLDAPSCommand.ts b/clients/client-directory-service/src/commands/DisableLDAPSCommand.ts index 43cc2719f88d..4e3e5f959661 100644 --- a/clients/client-directory-service/src/commands/DisableLDAPSCommand.ts +++ b/clients/client-directory-service/src/commands/DisableLDAPSCommand.ts @@ -58,7 +58,7 @@ export interface DisableLDAPSCommandOutput extends DisableLDAPSResult, __Metadat *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link InvalidLDAPSStatusException} (client fault) *

The LDAP activities could not be performed because they are limited by the LDAPS diff --git a/clients/client-directory-service/src/commands/EnableClientAuthenticationCommand.ts b/clients/client-directory-service/src/commands/EnableClientAuthenticationCommand.ts index 0d768544e8f5..1bf024e49fd7 100644 --- a/clients/client-directory-service/src/commands/EnableClientAuthenticationCommand.ts +++ b/clients/client-directory-service/src/commands/EnableClientAuthenticationCommand.ts @@ -52,7 +52,7 @@ export interface EnableClientAuthenticationCommandOutput extends EnableClientAut * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

diff --git a/clients/client-directory-service/src/commands/EnableDirectoryDataAccessCommand.ts b/clients/client-directory-service/src/commands/EnableDirectoryDataAccessCommand.ts new file mode 100644 index 000000000000..211453abd485 --- /dev/null +++ b/clients/client-directory-service/src/commands/EnableDirectoryDataAccessCommand.ts @@ -0,0 +1,113 @@ +// 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 { DirectoryServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { EnableDirectoryDataAccessRequest, EnableDirectoryDataAccessResult } from "../models/models_0"; +import { de_EnableDirectoryDataAccessCommand, se_EnableDirectoryDataAccessCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link EnableDirectoryDataAccessCommand}. + */ +export interface EnableDirectoryDataAccessCommandInput extends EnableDirectoryDataAccessRequest {} +/** + * @public + * + * The output of {@link EnableDirectoryDataAccessCommand}. + */ +export interface EnableDirectoryDataAccessCommandOutput extends EnableDirectoryDataAccessResult, __MetadataBearer {} + +/** + *

Enables access to directory data via the Directory Service Data API for the specified directory.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DirectoryServiceClient, EnableDirectoryDataAccessCommand } from "@aws-sdk/client-directory-service"; // ES Modules import + * // const { DirectoryServiceClient, EnableDirectoryDataAccessCommand } = require("@aws-sdk/client-directory-service"); // CommonJS import + * const client = new DirectoryServiceClient(config); + * const input = { // EnableDirectoryDataAccessRequest + * DirectoryId: "STRING_VALUE", // required + * }; + * const command = new EnableDirectoryDataAccessCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param EnableDirectoryDataAccessCommandInput - {@link EnableDirectoryDataAccessCommandInput} + * @returns {@link EnableDirectoryDataAccessCommandOutput} + * @see {@link EnableDirectoryDataAccessCommandInput} for command's `input` shape. + * @see {@link EnableDirectoryDataAccessCommandOutput} for command's `response` shape. + * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient access to perform this action.

+ * + * @throws {@link ClientException} (client fault) + *

A client exception has occurred.

+ * + * @throws {@link DirectoryDoesNotExistException} (client fault) + *

The specified directory does not exist in the system.

+ * + * @throws {@link DirectoryInDesiredStateException} (client fault) + *

+ * The directory is already updated to desired update type settings. + *

+ * + * @throws {@link DirectoryUnavailableException} (client fault) + *

The specified directory is unavailable.

+ * + * @throws {@link ServiceException} (server fault) + *

An exception has occurred in Directory Service.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

The operation is not supported.

+ * + * @throws {@link DirectoryServiceServiceException} + *

Base exception class for all service exceptions from DirectoryService service.

+ * + * @public + */ +export class EnableDirectoryDataAccessCommand extends $Command + .classBuilder< + EnableDirectoryDataAccessCommandInput, + EnableDirectoryDataAccessCommandOutput, + DirectoryServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DirectoryServiceClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("DirectoryService_20150416", "EnableDirectoryDataAccess", {}) + .n("DirectoryServiceClient", "EnableDirectoryDataAccessCommand") + .f(void 0, void 0) + .ser(se_EnableDirectoryDataAccessCommand) + .de(de_EnableDirectoryDataAccessCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: EnableDirectoryDataAccessRequest; + output: {}; + }; + sdk: { + input: EnableDirectoryDataAccessCommandInput; + output: EnableDirectoryDataAccessCommandOutput; + }; + }; +} diff --git a/clients/client-directory-service/src/commands/EnableLDAPSCommand.ts b/clients/client-directory-service/src/commands/EnableLDAPSCommand.ts index f4946986b2d8..6f22ae9a5bce 100644 --- a/clients/client-directory-service/src/commands/EnableLDAPSCommand.ts +++ b/clients/client-directory-service/src/commands/EnableLDAPSCommand.ts @@ -58,7 +58,7 @@ export interface EnableLDAPSCommandOutput extends EnableLDAPSResult, __MetadataB *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link InvalidLDAPSStatusException} (client fault) *

The LDAP activities could not be performed because they are limited by the LDAPS diff --git a/clients/client-directory-service/src/commands/RegisterCertificateCommand.ts b/clients/client-directory-service/src/commands/RegisterCertificateCommand.ts index 88ad730ca6a3..59f6d8ee67c9 100644 --- a/clients/client-directory-service/src/commands/RegisterCertificateCommand.ts +++ b/clients/client-directory-service/src/commands/RegisterCertificateCommand.ts @@ -70,7 +70,7 @@ export interface RegisterCertificateCommandOutput extends RegisterCertificateRes *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link InvalidCertificateException} (client fault) *

The certificate PEM that was provided has incorrect encoding.

diff --git a/clients/client-directory-service/src/commands/RemoveIpRoutesCommand.ts b/clients/client-directory-service/src/commands/RemoveIpRoutesCommand.ts index 475d79e8d63d..124b1070c86d 100644 --- a/clients/client-directory-service/src/commands/RemoveIpRoutesCommand.ts +++ b/clients/client-directory-service/src/commands/RemoveIpRoutesCommand.ts @@ -57,7 +57,7 @@ export interface RemoveIpRoutesCommandOutput extends RemoveIpRoutesResult, __Met *

A client exception has occurred.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link EntityDoesNotExistException} (client fault) *

The specified entity could not be found.

diff --git a/clients/client-directory-service/src/commands/RemoveRegionCommand.ts b/clients/client-directory-service/src/commands/RemoveRegionCommand.ts index a43b0c4414b4..7b14dae358df 100644 --- a/clients/client-directory-service/src/commands/RemoveRegionCommand.ts +++ b/clients/client-directory-service/src/commands/RemoveRegionCommand.ts @@ -53,7 +53,7 @@ export interface RemoveRegionCommandOutput extends RemoveRegionResult, __Metadat * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

Client authentication is not available in this region at this time.

+ *

You do not have sufficient access to perform this action.

* * @throws {@link ClientException} (client fault) *

A client exception has occurred.

@@ -62,7 +62,7 @@ export interface RemoveRegionCommandOutput extends RemoveRegionResult, __Metadat *

The specified directory does not exist in the system.

* * @throws {@link DirectoryUnavailableException} (client fault) - *

The specified directory is unavailable or could not be found.

+ *

The specified directory is unavailable.

* * @throws {@link ServiceException} (server fault) *

An exception has occurred in Directory Service.

diff --git a/clients/client-directory-service/src/commands/ResetUserPasswordCommand.ts b/clients/client-directory-service/src/commands/ResetUserPasswordCommand.ts index 3100c66e6573..f5cdff35c364 100644 --- a/clients/client-directory-service/src/commands/ResetUserPasswordCommand.ts +++ b/clients/client-directory-service/src/commands/ResetUserPasswordCommand.ts @@ -33,7 +33,7 @@ export interface ResetUserPasswordCommandOutput extends ResetUserPasswordResult, /** *

Resets the password for any user in your Managed Microsoft AD or Simple AD - * directory.

+ * directory. Disabled users will become enabled and can be authenticated following the API call.

*

You can reset the password for any user in your directory with the following * exceptions:

*
    @@ -77,7 +77,7 @@ export interface ResetUserPasswordCommandOutput extends ResetUserPasswordResult, *

    A client exception has occurred.

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link EntityDoesNotExistException} (client fault) *

    The specified entity could not be found.

    diff --git a/clients/client-directory-service/src/commands/ShareDirectoryCommand.ts b/clients/client-directory-service/src/commands/ShareDirectoryCommand.ts index 0d25e41a9981..924b25ce4309 100644 --- a/clients/client-directory-service/src/commands/ShareDirectoryCommand.ts +++ b/clients/client-directory-service/src/commands/ShareDirectoryCommand.ts @@ -75,7 +75,7 @@ export interface ShareDirectoryCommandOutput extends ShareDirectoryResult, __Met * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

    Client authentication is not available in this region at this time.

    + *

    You do not have sufficient access to perform this action.

    * * @throws {@link ClientException} (client fault) *

    A client exception has occurred.

    diff --git a/clients/client-directory-service/src/commands/StartSchemaExtensionCommand.ts b/clients/client-directory-service/src/commands/StartSchemaExtensionCommand.ts index 3ba3beb5f8cb..c2a3713ee9e9 100644 --- a/clients/client-directory-service/src/commands/StartSchemaExtensionCommand.ts +++ b/clients/client-directory-service/src/commands/StartSchemaExtensionCommand.ts @@ -59,7 +59,7 @@ export interface StartSchemaExtensionCommandOutput extends StartSchemaExtensionR *

    A client exception has occurred.

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link EntityDoesNotExistException} (client fault) *

    The specified entity could not be found.

    diff --git a/clients/client-directory-service/src/commands/UpdateConditionalForwarderCommand.ts b/clients/client-directory-service/src/commands/UpdateConditionalForwarderCommand.ts index 689c9e8959ec..616914848d66 100644 --- a/clients/client-directory-service/src/commands/UpdateConditionalForwarderCommand.ts +++ b/clients/client-directory-service/src/commands/UpdateConditionalForwarderCommand.ts @@ -59,7 +59,7 @@ export interface UpdateConditionalForwarderCommandOutput extends UpdateCondition *

    A client exception has occurred.

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link EntityDoesNotExistException} (client fault) *

    The specified entity could not be found.

    diff --git a/clients/client-directory-service/src/commands/UpdateDirectorySetupCommand.ts b/clients/client-directory-service/src/commands/UpdateDirectorySetupCommand.ts index ec210141a0f1..eaa7d16a3bec 100644 --- a/clients/client-directory-service/src/commands/UpdateDirectorySetupCommand.ts +++ b/clients/client-directory-service/src/commands/UpdateDirectorySetupCommand.ts @@ -58,7 +58,7 @@ export interface UpdateDirectorySetupCommandOutput extends UpdateDirectorySetupR * @see {@link DirectoryServiceClientResolvedConfig | config} for DirectoryServiceClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) - *

    Client authentication is not available in this region at this time.

    + *

    You do not have sufficient access to perform this action.

    * * @throws {@link ClientException} (client fault) *

    A client exception has occurred.

    @@ -72,7 +72,7 @@ export interface UpdateDirectorySetupCommandOutput extends UpdateDirectorySetupR *

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link InvalidParameterException} (client fault) *

    One or more parameters are not valid.

    diff --git a/clients/client-directory-service/src/commands/UpdateNumberOfDomainControllersCommand.ts b/clients/client-directory-service/src/commands/UpdateNumberOfDomainControllersCommand.ts index cf8369ae4e06..692a47279b32 100644 --- a/clients/client-directory-service/src/commands/UpdateNumberOfDomainControllersCommand.ts +++ b/clients/client-directory-service/src/commands/UpdateNumberOfDomainControllersCommand.ts @@ -64,7 +64,7 @@ export interface UpdateNumberOfDomainControllersCommandOutput *

    A client exception has occurred.

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link DomainControllerLimitExceededException} (client fault) *

    The maximum allowed number of domain controllers per directory was exceeded. The diff --git a/clients/client-directory-service/src/commands/UpdateSettingsCommand.ts b/clients/client-directory-service/src/commands/UpdateSettingsCommand.ts index 4346b7a75a63..e51729f13a34 100644 --- a/clients/client-directory-service/src/commands/UpdateSettingsCommand.ts +++ b/clients/client-directory-service/src/commands/UpdateSettingsCommand.ts @@ -65,7 +65,7 @@ export interface UpdateSettingsCommandOutput extends UpdateSettingsResult, __Met *

    The specified directory does not exist in the system.

    * * @throws {@link DirectoryUnavailableException} (client fault) - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * * @throws {@link IncompatibleSettingsException} (client fault) *

    The specified directory setting is not compatible with other settings.

    diff --git a/clients/client-directory-service/src/commands/index.ts b/clients/client-directory-service/src/commands/index.ts index 9b298438e241..6c890fb7b065 100644 --- a/clients/client-directory-service/src/commands/index.ts +++ b/clients/client-directory-service/src/commands/index.ts @@ -24,6 +24,7 @@ export * from "./DescribeCertificateCommand"; export * from "./DescribeClientAuthenticationSettingsCommand"; export * from "./DescribeConditionalForwardersCommand"; export * from "./DescribeDirectoriesCommand"; +export * from "./DescribeDirectoryDataAccessCommand"; export * from "./DescribeDomainControllersCommand"; export * from "./DescribeEventTopicsCommand"; export * from "./DescribeLDAPSSettingsCommand"; @@ -34,10 +35,12 @@ export * from "./DescribeSnapshotsCommand"; export * from "./DescribeTrustsCommand"; export * from "./DescribeUpdateDirectoryCommand"; export * from "./DisableClientAuthenticationCommand"; +export * from "./DisableDirectoryDataAccessCommand"; export * from "./DisableLDAPSCommand"; export * from "./DisableRadiusCommand"; export * from "./DisableSsoCommand"; export * from "./EnableClientAuthenticationCommand"; +export * from "./EnableDirectoryDataAccessCommand"; export * from "./EnableLDAPSCommand"; export * from "./EnableRadiusCommand"; export * from "./EnableSsoCommand"; diff --git a/clients/client-directory-service/src/models/models_0.ts b/clients/client-directory-service/src/models/models_0.ts index fb55fe496692..45d3293a415d 100644 --- a/clients/client-directory-service/src/models/models_0.ts +++ b/clients/client-directory-service/src/models/models_0.ts @@ -295,7 +295,7 @@ export class ServiceException extends __BaseException { } /** - *

    Client authentication is not available in this region at this time.

    + *

    You do not have sufficient access to perform this action.

    * @public */ export class AccessDeniedException extends __BaseException { @@ -372,57 +372,57 @@ export interface AddIpRoutesRequest { *

    Inbound:

    *
      *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

      + *

      Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

      + *

      Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

      + *

      Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

      + *

      Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0

      + *

      Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0

      + *

      Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • *

      Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: - * 0.0.0.0/0

      + * Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • *

      Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: - * 0.0.0.0/0

      + * Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0

      + *

      Type: DNS (UDP), Protocol: UDP, Range: 53, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0

      + *

      Type: DNS (TCP), Protocol: TCP, Range: 53, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0

      + *

      Type: LDAP, Protocol: TCP, Range: 389, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    • - *

      Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0

      + *

      Type: All ICMP, Protocol: All, Range: N/A, Source: Managed Microsoft AD VPC IPv4 CIDR

      *
    • *
    *

    @@ -445,7 +445,7 @@ export interface AddIpRoutesRequest { export interface AddIpRoutesResult {} /** - *

    The specified directory is unavailable or could not be found.

    + *

    The specified directory is unavailable.

    * @public */ export class DirectoryUnavailableException extends __BaseException { @@ -735,7 +735,7 @@ export interface Tag { /** *

    Required name of the tag. The string value can be Unicode characters and cannot be * prefixed with "aws:". The string can contain only the set of Unicode letters, digits, - * white-space, '_', '.', '/', '=', '+', '-' (Java regex: + * white-space, '_', '.', '/', '=', '+', '-', ':', '@'(Java regex: * "^([\\p\{L\}\\p\{Z\}\\p\{N\}_.:/=+\\-]*)$").

    * @public */ @@ -743,7 +743,7 @@ export interface Tag { /** *

    The optional value of the tag. The string value can be Unicode characters. The string - * can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' + * can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-', ':', '@' * (Java regex: "^([\\p\{L\}\\p\{Z\}\\p\{N\}_.:/=+\\-]*)$").

    * @public */ @@ -1901,7 +1901,7 @@ export interface CreateTrustRequest { RemoteDomainName: string | undefined; /** - *

    The trust password. The must be the same password that was used when creating the trust + *

    The trust password. The trust password must be the same password that was used when creating the trust * relationship on the external domain.

    * @public */ @@ -1944,6 +1944,23 @@ export interface CreateTrustResult { TrustId?: string; } +/** + * @public + * @enum + */ +export const DataAccessStatus = { + DISABLED: "Disabled", + DISABLING: "Disabling", + ENABLED: "Enabled", + ENABLING: "Enabling", + FAILED: "Failed", +} as const; + +/** + * @public + */ +export type DataAccessStatus = (typeof DataAccessStatus)[keyof typeof DataAccessStatus]; + /** *

    Deletes a conditional forwarder.

    * @public @@ -2349,8 +2366,7 @@ export interface RadiusSettings { RadiusTimeout?: number; /** - *

    The maximum number of times that communication with the RADIUS server is - * attempted.

    + *

    The maximum number of times that communication with the RADIUS server is retried after the initial attempt.

    * @public */ RadiusRetries?: number; @@ -2506,6 +2522,7 @@ export const DirectoryStage = { REQUESTED: "Requested", RESTOREFAILED: "RestoreFailed", RESTORING: "Restoring", + UPDATING: "Updating", } as const; /** @@ -2636,7 +2653,7 @@ export interface DirectoryDescription { StageLastUpdatedDateTime?: Date; /** - *

    The directory size.

    + *

    The directory type.

    * @public */ Type?: DirectoryType; @@ -2765,6 +2782,28 @@ export class InvalidNextTokenException extends __BaseException { } } +/** + * @public + */ +export interface DescribeDirectoryDataAccessRequest { + /** + *

    The directory identifier.

    + * @public + */ + DirectoryId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDirectoryDataAccessResult { + /** + *

    The current status of data access through the Directory Service Data API.

    + * @public + */ + DataAccessStatus?: DataAccessStatus; +} + /** * @public */ @@ -2810,6 +2849,7 @@ export const DomainControllerStatus = { FAILED: "Failed", IMPAIRED: "Impaired", RESTORING: "Restoring", + UPDATING: "Updating", } as const; /** @@ -3348,7 +3388,9 @@ export interface DescribeSettingsResult { SettingEntries?: SettingEntry[]; /** - *

    If not null, token that indicates that more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeSettings to retrieve the next set of items.

    + *

    If not null, token that indicates that more results are available. + * Pass this value for the NextToken parameter in a subsequent + * call to DescribeSettings to retrieve the next set of items.

    * @public */ NextToken?: string; @@ -4015,7 +4057,7 @@ export interface DisableClientAuthenticationRequest { DirectoryId: string | undefined; /** - *

    The type of client authentication to disable. Currently, only the parameter, SmartCard is supported.

    + *

    The type of client authentication to disable. Currently the only parameter "SmartCard" is supported.

    * @public */ Type: ClientAuthenticationType | undefined; @@ -4059,6 +4101,22 @@ export class InvalidClientAuthStatusException extends __BaseException { } } +/** + * @public + */ +export interface DisableDirectoryDataAccessRequest { + /** + *

    The directory identifier.

    + * @public + */ + DirectoryId: string | undefined; +} + +/** + * @public + */ +export interface DisableDirectoryDataAccessResult {} + /** * @public */ @@ -4232,6 +4290,22 @@ export class NoAvailableCertificateException extends __BaseException { } } +/** + * @public + */ +export interface EnableDirectoryDataAccessRequest { + /** + *

    The directory identifier.

    + * @public + */ + DirectoryId: string | undefined; +} + +/** + * @public + */ +export interface EnableDirectoryDataAccessResult {} + /** * @public */ diff --git a/clients/client-directory-service/src/protocols/Aws_json1_1.ts b/clients/client-directory-service/src/protocols/Aws_json1_1.ts index d20ce27284ae..416a153f21cf 100644 --- a/clients/client-directory-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-directory-service/src/protocols/Aws_json1_1.ts @@ -82,6 +82,10 @@ import { DescribeDirectoriesCommandInput, DescribeDirectoriesCommandOutput, } from "../commands/DescribeDirectoriesCommand"; +import { + DescribeDirectoryDataAccessCommandInput, + DescribeDirectoryDataAccessCommandOutput, +} from "../commands/DescribeDirectoryDataAccessCommand"; import { DescribeDomainControllersCommandInput, DescribeDomainControllersCommandOutput, @@ -110,6 +114,10 @@ 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"; @@ -117,6 +125,10 @@ 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"; @@ -221,6 +233,7 @@ import { DescribeConditionalForwardersRequest, DescribeDirectoriesRequest, DescribeDirectoriesResult, + DescribeDirectoryDataAccessRequest, DescribeDomainControllersRequest, DescribeDomainControllersResult, DescribeEventTopicsRequest, @@ -250,12 +263,14 @@ import { DirectoryUnavailableException, DirectoryVpcSettings, DisableClientAuthenticationRequest, + DisableDirectoryDataAccessRequest, DisableLDAPSRequest, DisableRadiusRequest, DisableSsoRequest, DomainController, DomainControllerLimitExceededException, EnableClientAuthenticationRequest, + EnableDirectoryDataAccessRequest, EnableLDAPSRequest, EnableRadiusRequest, EnableSsoRequest, @@ -655,6 +670,19 @@ export const se_DescribeDirectoriesCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1DescribeDirectoryDataAccessCommand + */ +export const se_DescribeDirectoryDataAccessCommand = async ( + input: DescribeDirectoryDataAccessCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DescribeDirectoryDataAccess"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1DescribeDomainControllersCommand */ @@ -785,6 +813,19 @@ export const se_DisableClientAuthenticationCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1DisableDirectoryDataAccessCommand + */ +export const se_DisableDirectoryDataAccessCommand = async ( + input: DisableDirectoryDataAccessCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DisableDirectoryDataAccess"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1DisableLDAPSCommand */ @@ -837,6 +878,19 @@ export const se_EnableClientAuthenticationCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1EnableDirectoryDataAccessCommand + */ +export const se_EnableDirectoryDataAccessCommand = async ( + input: EnableDirectoryDataAccessCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("EnableDirectoryDataAccess"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1EnableLDAPSCommand */ @@ -1701,6 +1755,26 @@ export const de_DescribeDirectoriesCommand = async ( return response; }; +/** + * deserializeAws_json1_1DescribeDirectoryDataAccessCommand + */ +export const de_DescribeDirectoryDataAccessCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DescribeDirectoryDataAccessCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_1DescribeDomainControllersCommand */ @@ -1901,6 +1975,26 @@ export const de_DisableClientAuthenticationCommand = async ( return response; }; +/** + * deserializeAws_json1_1DisableDirectoryDataAccessCommand + */ +export const de_DisableDirectoryDataAccessCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: DisableDirectoryDataAccessCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_1DisableLDAPSCommand */ @@ -1981,6 +2075,26 @@ export const de_EnableClientAuthenticationCommand = async ( return response; }; +/** + * deserializeAws_json1_1EnableDirectoryDataAccessCommand + */ +export const de_EnableDirectoryDataAccessCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: EnableDirectoryDataAccessCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_1EnableLDAPSCommand */ @@ -2617,6 +2731,9 @@ const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): case "InvalidClientAuthStatusException": case "com.amazonaws.directoryservice#InvalidClientAuthStatusException": throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context); + case "DirectoryInDesiredStateException": + case "com.amazonaws.directoryservice#DirectoryInDesiredStateException": + throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context); case "InvalidLDAPSStatusException": case "com.amazonaws.directoryservice#InvalidLDAPSStatusException": throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context); @@ -2650,9 +2767,6 @@ const de_CommandError = async (output: __HttpResponse, context: __SerdeContext): case "DirectoryNotSharedException": case "com.amazonaws.directoryservice#DirectoryNotSharedException": throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context); - case "DirectoryInDesiredStateException": - case "com.amazonaws.directoryservice#DirectoryInDesiredStateException": - throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context); case "DomainControllerLimitExceededException": case "com.amazonaws.directoryservice#DomainControllerLimitExceededException": throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context); @@ -3316,6 +3430,8 @@ const de_UserDoesNotExistExceptionRes = async ( // se_DescribeDirectoriesRequest omitted. +// se_DescribeDirectoryDataAccessRequest omitted. + // se_DescribeDomainControllersRequest omitted. // se_DescribeEventTopicsRequest omitted. @@ -3342,6 +3458,8 @@ const de_UserDoesNotExistExceptionRes = async ( // se_DisableClientAuthenticationRequest omitted. +// se_DisableDirectoryDataAccessRequest omitted. + // se_DisableLDAPSRequest omitted. // se_DisableRadiusRequest omitted. @@ -3354,6 +3472,8 @@ const de_UserDoesNotExistExceptionRes = async ( // se_EnableClientAuthenticationRequest omitted. +// se_EnableDirectoryDataAccessRequest omitted. + // se_EnableLDAPSRequest omitted. // se_EnableRadiusRequest omitted. @@ -3624,6 +3744,8 @@ const de_DescribeDirectoriesResult = (output: any, context: __SerdeContext): Des }) as any; }; +// de_DescribeDirectoryDataAccessResult omitted. + /** * deserializeAws_json1_1DescribeDomainControllersResult */ @@ -3786,6 +3908,8 @@ const de_DirectoryDescriptions = (output: any, context: __SerdeContext): Directo // de_DisableClientAuthenticationResult omitted. +// de_DisableDirectoryDataAccessResult omitted. + // de_DisableLDAPSResult omitted. // de_DisableRadiusResult omitted. @@ -3828,6 +3952,8 @@ const de_DomainControllers = (output: any, context: __SerdeContext): DomainContr // de_EnableClientAuthenticationResult omitted. +// de_EnableDirectoryDataAccessResult omitted. + // de_EnableLDAPSResult omitted. // de_EnableRadiusResult omitted. diff --git a/codegen/sdk-codegen/aws-models/directory-service.json b/codegen/sdk-codegen/aws-models/directory-service.json index 9a33113f5854..4a8cbceed78f 100644 --- a/codegen/sdk-codegen/aws-models/directory-service.json +++ b/codegen/sdk-codegen/aws-models/directory-service.json @@ -98,7 +98,7 @@ } }, "traits": { - "smithy.api#documentation": "

    Client authentication is not available in this region at this time.

    ", + "smithy.api#documentation": "

    You do not have sufficient access to perform this action.

    ", "smithy.api#error": "client" } }, @@ -167,7 +167,7 @@ "target": "com.amazonaws.directoryservice#UpdateSecurityGroupForDirectoryControllers", "traits": { "smithy.api#default": false, - "smithy.api#documentation": "

    If set to true, updates the inbound and outbound rules of the security group that has\n the description: \"Amazon Web Services created security group for directory ID\n directory controllers.\" Following are the new rules:

    \n

    Inbound:

    \n
      \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source:\n 0.0.0.0/0

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source:\n 0.0.0.0/0

      \n
    • \n
    • \n

      Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0

      \n
    • \n
    • \n

      Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0

      \n
    • \n
    \n

    \n

    Outbound:

    \n
      \n
    • \n

      Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0

      \n
    • \n
    \n

    These security rules impact an internal network interface that is not exposed\n publicly.

    " + "smithy.api#documentation": "

    If set to true, updates the inbound and outbound rules of the security group that has\n the description: \"Amazon Web Services created security group for directory ID\n directory controllers.\" Following are the new rules:

    \n

    Inbound:

    \n
      \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source:\n Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source:\n Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: DNS (UDP), Protocol: UDP, Range: 53, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: DNS (TCP), Protocol: TCP, Range: 53, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: LDAP, Protocol: TCP, Range: 389, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    • \n

      Type: All ICMP, Protocol: All, Range: N/A, Source: Managed Microsoft AD VPC IPv4 CIDR

      \n
    • \n
    \n

    \n

    Outbound:

    \n
      \n
    • \n

      Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0

      \n
    • \n
    \n

    These security rules impact an internal network interface that is not exposed\n publicly.

    " } } }, @@ -1630,7 +1630,7 @@ "TrustPassword": { "target": "com.amazonaws.directoryservice#TrustPassword", "traits": { - "smithy.api#documentation": "

    The trust password. The must be the same password that was used when creating the trust\n relationship on the external domain.

    ", + "smithy.api#documentation": "

    The trust password. The trust password must be the same password that was used when creating the trust\n relationship on the external domain.

    ", "smithy.api#required": {} } }, @@ -1699,6 +1699,41 @@ "smithy.api#pattern": "^(?!.*\\\\|.*\"|.*\\/|.*\\[|.*\\]|.*:|.*;|.*\\||.*=|.*,|.*\\+|.*\\*|.*\\?|.*<|.*>|.*@).*$" } }, + "com.amazonaws.directoryservice#DataAccessStatus": { + "type": "enum", + "members": { + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Disabled" + } + }, + "DISABLING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Disabling" + } + }, + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Enabled" + } + }, + "ENABLING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Enabling" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Failed" + } + } + } + }, "com.amazonaws.directoryservice#DeleteAssociatedConditionalForwarder": { "type": "boolean", "traits": { @@ -2442,6 +2477,64 @@ "smithy.api#output": {} } }, + "com.amazonaws.directoryservice#DescribeDirectoryDataAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.directoryservice#DescribeDirectoryDataAccessRequest" + }, + "output": { + "target": "com.amazonaws.directoryservice#DescribeDirectoryDataAccessResult" + }, + "errors": [ + { + "target": "com.amazonaws.directoryservice#AccessDeniedException" + }, + { + "target": "com.amazonaws.directoryservice#ClientException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryDoesNotExistException" + }, + { + "target": "com.amazonaws.directoryservice#ServiceException" + }, + { + "target": "com.amazonaws.directoryservice#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

    Obtains status of directory data access enablement through the Directory Service Data API for the specified directory.

    " + } + }, + "com.amazonaws.directoryservice#DescribeDirectoryDataAccessRequest": { + "type": "structure", + "members": { + "DirectoryId": { + "target": "com.amazonaws.directoryservice#DirectoryId", + "traits": { + "smithy.api#documentation": "

    The directory identifier.

    ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.directoryservice#DescribeDirectoryDataAccessResult": { + "type": "structure", + "members": { + "DataAccessStatus": { + "target": "com.amazonaws.directoryservice#DataAccessStatus", + "traits": { + "smithy.api#documentation": "

    The current status of data access through the Directory Service Data API.

    " + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.directoryservice#DescribeDomainControllers": { "type": "operation", "input": { @@ -2849,7 +2942,7 @@ "NextToken": { "target": "com.amazonaws.directoryservice#NextToken", "traits": { - "smithy.api#documentation": "

    If not null, token that indicates that more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeSettings to retrieve the next set of items.

    " + "smithy.api#documentation": "

    If not null, token that indicates that more results are available. \n Pass this value for the NextToken parameter in a subsequent \n call to DescribeSettings to retrieve the next set of items.

    " } } }, @@ -3526,7 +3619,7 @@ "Type": { "target": "com.amazonaws.directoryservice#DirectoryType", "traits": { - "smithy.api#documentation": "

    The directory size.

    " + "smithy.api#documentation": "

    The directory type.

    " } }, "VpcSettings": { @@ -3846,6 +3939,9 @@ { "target": "com.amazonaws.directoryservice#DescribeDirectories" }, + { + "target": "com.amazonaws.directoryservice#DescribeDirectoryDataAccess" + }, { "target": "com.amazonaws.directoryservice#DescribeDomainControllers" }, @@ -3876,6 +3972,9 @@ { "target": "com.amazonaws.directoryservice#DisableClientAuthentication" }, + { + "target": "com.amazonaws.directoryservice#DisableDirectoryDataAccess" + }, { "target": "com.amazonaws.directoryservice#DisableLDAPS" }, @@ -3888,6 +3987,9 @@ { "target": "com.amazonaws.directoryservice#EnableClientAuthentication" }, + { + "target": "com.amazonaws.directoryservice#EnableDirectoryDataAccess" + }, { "target": "com.amazonaws.directoryservice#EnableLDAPS" }, @@ -5063,6 +5165,12 @@ "traits": { "smithy.api#enumValue": "Failed" } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Updating" + } } } }, @@ -5106,7 +5214,7 @@ } }, "traits": { - "smithy.api#documentation": "

    The specified directory is unavailable or could not be found.

    ", + "smithy.api#documentation": "

    The specified directory is unavailable.

    ", "smithy.api#error": "client" } }, @@ -5209,7 +5317,7 @@ "Type": { "target": "com.amazonaws.directoryservice#ClientAuthenticationType", "traits": { - "smithy.api#documentation": "

    The type of client authentication to disable. Currently, only the parameter, SmartCard is supported.

    ", + "smithy.api#documentation": "

    The type of client authentication to disable. Currently the only parameter \"SmartCard\" is supported.

    ", "smithy.api#required": {} } } @@ -5225,6 +5333,63 @@ "smithy.api#output": {} } }, + "com.amazonaws.directoryservice#DisableDirectoryDataAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.directoryservice#DisableDirectoryDataAccessRequest" + }, + "output": { + "target": "com.amazonaws.directoryservice#DisableDirectoryDataAccessResult" + }, + "errors": [ + { + "target": "com.amazonaws.directoryservice#AccessDeniedException" + }, + { + "target": "com.amazonaws.directoryservice#ClientException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryDoesNotExistException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryInDesiredStateException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryUnavailableException" + }, + { + "target": "com.amazonaws.directoryservice#ServiceException" + }, + { + "target": "com.amazonaws.directoryservice#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

    Deactivates access to directory data via the Directory Service Data API for the specified directory.

    " + } + }, + "com.amazonaws.directoryservice#DisableDirectoryDataAccessRequest": { + "type": "structure", + "members": { + "DirectoryId": { + "target": "com.amazonaws.directoryservice#DirectoryId", + "traits": { + "smithy.api#documentation": "

    The directory identifier.

    ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.directoryservice#DisableDirectoryDataAccessResult": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.directoryservice#DisableLDAPS": { "type": "operation", "input": { @@ -5546,6 +5711,12 @@ "traits": { "smithy.api#enumValue": "Failed" } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Updating" + } } } }, @@ -5622,6 +5793,63 @@ "smithy.api#output": {} } }, + "com.amazonaws.directoryservice#EnableDirectoryDataAccess": { + "type": "operation", + "input": { + "target": "com.amazonaws.directoryservice#EnableDirectoryDataAccessRequest" + }, + "output": { + "target": "com.amazonaws.directoryservice#EnableDirectoryDataAccessResult" + }, + "errors": [ + { + "target": "com.amazonaws.directoryservice#AccessDeniedException" + }, + { + "target": "com.amazonaws.directoryservice#ClientException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryDoesNotExistException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryInDesiredStateException" + }, + { + "target": "com.amazonaws.directoryservice#DirectoryUnavailableException" + }, + { + "target": "com.amazonaws.directoryservice#ServiceException" + }, + { + "target": "com.amazonaws.directoryservice#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

    Enables access to directory data via the Directory Service Data API for the specified directory.

    " + } + }, + "com.amazonaws.directoryservice#EnableDirectoryDataAccessRequest": { + "type": "structure", + "members": { + "DirectoryId": { + "target": "com.amazonaws.directoryservice#DirectoryId", + "traits": { + "smithy.api#documentation": "

    The directory identifier.

    ", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.directoryservice#EnableDirectoryDataAccessResult": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.directoryservice#EnableLDAPS": { "type": "operation", "input": { @@ -7069,7 +7297,7 @@ "target": "com.amazonaws.directoryservice#RadiusRetries", "traits": { "smithy.api#default": 0, - "smithy.api#documentation": "

    The maximum number of times that communication with the RADIUS server is\n attempted.

    " + "smithy.api#documentation": "

    The maximum number of times that communication with the RADIUS server is retried after the initial attempt.

    " } }, "SharedSecret": { @@ -7141,7 +7369,7 @@ "traits": { "smithy.api#range": { "min": 1, - "max": 20 + "max": 50 } } }, @@ -7708,7 +7936,7 @@ } ], "traits": { - "smithy.api#documentation": "

    Resets the password for any user in your Managed Microsoft AD or Simple AD\n directory.

    \n

    You can reset the password for any user in your directory with the following\n exceptions:

    \n
      \n
    • \n

      For Simple AD, you cannot reset the password for any user that is a member of either\n the Domain Admins or Enterprise\n Admins group except for the administrator user.

      \n
    • \n
    • \n

      For Managed Microsoft AD, you can only reset the password for a user that is in an\n OU based off of the NetBIOS name that you typed when you created your directory. For\n example, you cannot reset the password for a user in the Amazon Web Services\n Reserved OU. For more information about the OU structure for an Managed Microsoft AD directory, see What Gets Created in the Directory Service Administration\n Guide.

      \n
    • \n
    " + "smithy.api#documentation": "

    Resets the password for any user in your Managed Microsoft AD or Simple AD\n directory. Disabled users will become enabled and can be authenticated following the API call.

    \n

    You can reset the password for any user in your directory with the following\n exceptions:

    \n
      \n
    • \n

      For Simple AD, you cannot reset the password for any user that is a member of either\n the Domain Admins or Enterprise\n Admins group except for the administrator user.

      \n
    • \n
    • \n

      For Managed Microsoft AD, you can only reset the password for a user that is in an\n OU based off of the NetBIOS name that you typed when you created your directory. For\n example, you cannot reset the password for a user in the Amazon Web Services\n Reserved OU. For more information about the OU structure for an Managed Microsoft AD directory, see What Gets Created in the Directory Service Administration\n Guide.

      \n
    • \n
    " } }, "com.amazonaws.directoryservice#ResetUserPasswordRequest": { @@ -8654,14 +8882,14 @@ "Key": { "target": "com.amazonaws.directoryservice#TagKey", "traits": { - "smithy.api#documentation": "

    Required name of the tag. The string value can be Unicode characters and cannot be\n prefixed with \"aws:\". The string can contain only the set of Unicode letters, digits,\n white-space, '_', '.', '/', '=', '+', '-' (Java regex:\n \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", + "smithy.api#documentation": "

    Required name of the tag. The string value can be Unicode characters and cannot be\n prefixed with \"aws:\". The string can contain only the set of Unicode letters, digits,\n white-space, '_', '.', '/', '=', '+', '-', ':', '@'(Java regex:\n \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.directoryservice#TagValue", "traits": { - "smithy.api#documentation": "

    The optional value of the tag. The string value can be Unicode characters. The string\n can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-'\n (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", + "smithy.api#documentation": "

    The optional value of the tag. The string value can be Unicode characters. The string\n can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-', ':', '@'\n (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", "smithy.api#required": {} } }