diff --git a/clients/client-workmail/README.md b/clients/client-workmail/README.md index 4f49873e638b..9e6d58c5caa9 100644 --- a/clients/client-workmail/README.md +++ b/clients/client-workmail/README.md @@ -45,7 +45,7 @@ model.
## Installing -To install the this package, simply type add or install @aws-sdk/client-workmail +To install this package, simply type add or install @aws-sdk/client-workmail using your favorite package manager: - `npm install @aws-sdk/client-workmail` @@ -293,6 +293,14 @@ CreateGroup [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workmail/command/CreateGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workmail/Interface/CreateGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workmail/Interface/CreateGroupCommandOutput/) + ++ * Creates the WorkMail application in IAM Identity Center that can be used later in the WorkMail - IdC integration. For more information, see PutIdentityProviderConfiguration. This action does not affect the authentication settings for any WorkMail organizations. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, CreateIdentityCenterApplicationCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, CreateIdentityCenterApplicationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // CreateIdentityCenterApplicationRequest + * Name: "STRING_VALUE", // required + * InstanceArn: "STRING_VALUE", // required + * ClientToken: "STRING_VALUE", + * }; + * const command = new CreateIdentityCenterApplicationCommand(input); + * const response = await client.send(command); + * // { // CreateIdentityCenterApplicationResponse + * // ApplicationArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateIdentityCenterApplicationCommandInput - {@link CreateIdentityCenterApplicationCommandInput} + * @returns {@link CreateIdentityCenterApplicationCommandOutput} + * @see {@link CreateIdentityCenterApplicationCommandInput} for command's `input` shape. + * @see {@link CreateIdentityCenterApplicationCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class CreateIdentityCenterApplicationCommand extends $Command + .classBuilder< + CreateIdentityCenterApplicationCommandInput, + CreateIdentityCenterApplicationCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "CreateIdentityCenterApplication", {}) + .n("WorkMailClient", "CreateIdentityCenterApplicationCommand") + .f(void 0, void 0) + .ser(se_CreateIdentityCenterApplicationCommand) + .de(de_CreateIdentityCenterApplicationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CreateIdentityCenterApplicationRequest; + output: CreateIdentityCenterApplicationResponse; + }; + sdk: { + input: CreateIdentityCenterApplicationCommandInput; + output: CreateIdentityCenterApplicationCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/CreateResourceCommand.ts b/clients/client-workmail/src/commands/CreateResourceCommand.ts index 4302faa790eb..70f7b8438bf3 100644 --- a/clients/client-workmail/src/commands/CreateResourceCommand.ts +++ b/clients/client-workmail/src/commands/CreateResourceCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { CreateResourceRequest, CreateResourceResponse } from "../models/models_0"; +import { + CreateResourceRequest, + CreateResourceRequestFilterSensitiveLog, + CreateResourceResponse, +} from "../models/models_0"; import { de_CreateResourceCommand, se_CreateResourceCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; @@ -104,7 +108,7 @@ export class CreateResourceCommand extends $Command }) .s("WorkMailService", "CreateResource", {}) .n("WorkMailClient", "CreateResourceCommand") - .f(void 0, void 0) + .f(CreateResourceRequestFilterSensitiveLog, void 0) .ser(se_CreateResourceCommand) .de(de_CreateResourceCommand) .build() { diff --git a/clients/client-workmail/src/commands/CreateUserCommand.ts b/clients/client-workmail/src/commands/CreateUserCommand.ts index cc6ce9114b20..82b2b3322462 100644 --- a/clients/client-workmail/src/commands/CreateUserCommand.ts +++ b/clients/client-workmail/src/commands/CreateUserCommand.ts @@ -44,6 +44,7 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB * FirstName: "STRING_VALUE", * LastName: "STRING_VALUE", * HiddenFromGlobalAddressList: true || false, + * IdentityProviderUserId: "STRING_VALUE", * }; * const command = new CreateUserCommand(input); * const response = await client.send(command); diff --git a/clients/client-workmail/src/commands/DeleteIdentityCenterApplicationCommand.ts b/clients/client-workmail/src/commands/DeleteIdentityCenterApplicationCommand.ts new file mode 100644 index 000000000000..5dee2dc59dc0 --- /dev/null +++ b/clients/client-workmail/src/commands/DeleteIdentityCenterApplicationCommand.ts @@ -0,0 +1,104 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { DeleteIdentityCenterApplicationRequest, DeleteIdentityCenterApplicationResponse } from "../models/models_0"; +import { + de_DeleteIdentityCenterApplicationCommand, + se_DeleteIdentityCenterApplicationCommand, +} from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteIdentityCenterApplicationCommand}. + */ +export interface DeleteIdentityCenterApplicationCommandInput extends DeleteIdentityCenterApplicationRequest {} +/** + * @public + * + * The output of {@link DeleteIdentityCenterApplicationCommand}. + */ +export interface DeleteIdentityCenterApplicationCommandOutput + extends DeleteIdentityCenterApplicationResponse, + __MetadataBearer {} + +/** + *+ * Deletes the IAM Identity Center application from WorkMail. This action does not affect the authentication settings for any WorkMail organizations. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, DeleteIdentityCenterApplicationCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, DeleteIdentityCenterApplicationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // DeleteIdentityCenterApplicationRequest + * ApplicationArn: "STRING_VALUE", // required + * }; + * const command = new DeleteIdentityCenterApplicationCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DeleteIdentityCenterApplicationCommandInput - {@link DeleteIdentityCenterApplicationCommandInput} + * @returns {@link DeleteIdentityCenterApplicationCommandOutput} + * @see {@link DeleteIdentityCenterApplicationCommandInput} for command's `input` shape. + * @see {@link DeleteIdentityCenterApplicationCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class DeleteIdentityCenterApplicationCommand extends $Command + .classBuilder< + DeleteIdentityCenterApplicationCommandInput, + DeleteIdentityCenterApplicationCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "DeleteIdentityCenterApplication", {}) + .n("WorkMailClient", "DeleteIdentityCenterApplicationCommand") + .f(void 0, void 0) + .ser(se_DeleteIdentityCenterApplicationCommand) + .de(de_DeleteIdentityCenterApplicationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteIdentityCenterApplicationRequest; + output: {}; + }; + sdk: { + input: DeleteIdentityCenterApplicationCommandInput; + output: DeleteIdentityCenterApplicationCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/DeleteIdentityProviderConfigurationCommand.ts b/clients/client-workmail/src/commands/DeleteIdentityProviderConfigurationCommand.ts new file mode 100644 index 000000000000..05431be17569 --- /dev/null +++ b/clients/client-workmail/src/commands/DeleteIdentityProviderConfigurationCommand.ts @@ -0,0 +1,111 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { + DeleteIdentityProviderConfigurationRequest, + DeleteIdentityProviderConfigurationResponse, +} from "../models/models_0"; +import { + de_DeleteIdentityProviderConfigurationCommand, + se_DeleteIdentityProviderConfigurationCommand, +} from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeleteIdentityProviderConfigurationCommand}. + */ +export interface DeleteIdentityProviderConfigurationCommandInput extends DeleteIdentityProviderConfigurationRequest {} +/** + * @public + * + * The output of {@link DeleteIdentityProviderConfigurationCommand}. + */ +export interface DeleteIdentityProviderConfigurationCommandOutput + extends DeleteIdentityProviderConfigurationResponse, + __MetadataBearer {} + +/** + *+ * Disables the integration between IdC and WorkMail. Authentication will continue with the directory as it was before the IdC integration. You might have to reset your directory passwords and reconfigure your desktop and mobile email clients. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, DeleteIdentityProviderConfigurationCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, DeleteIdentityProviderConfigurationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // DeleteIdentityProviderConfigurationRequest + * OrganizationId: "STRING_VALUE", // required + * }; + * const command = new DeleteIdentityProviderConfigurationCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DeleteIdentityProviderConfigurationCommandInput - {@link DeleteIdentityProviderConfigurationCommandInput} + * @returns {@link DeleteIdentityProviderConfigurationCommandOutput} + * @see {@link DeleteIdentityProviderConfigurationCommandInput} for command's `input` shape. + * @see {@link DeleteIdentityProviderConfigurationCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class DeleteIdentityProviderConfigurationCommand extends $Command + .classBuilder< + DeleteIdentityProviderConfigurationCommandInput, + DeleteIdentityProviderConfigurationCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "DeleteIdentityProviderConfiguration", {}) + .n("WorkMailClient", "DeleteIdentityProviderConfigurationCommand") + .f(void 0, void 0) + .ser(se_DeleteIdentityProviderConfigurationCommand) + .de(de_DeleteIdentityProviderConfigurationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeleteIdentityProviderConfigurationRequest; + output: {}; + }; + sdk: { + input: DeleteIdentityProviderConfigurationCommandInput; + output: DeleteIdentityProviderConfigurationCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/DeleteOrganizationCommand.ts b/clients/client-workmail/src/commands/DeleteOrganizationCommand.ts index fbf9ce9ca10e..2596d6348285 100644 --- a/clients/client-workmail/src/commands/DeleteOrganizationCommand.ts +++ b/clients/client-workmail/src/commands/DeleteOrganizationCommand.ts @@ -40,6 +40,7 @@ export interface DeleteOrganizationCommandOutput extends DeleteOrganizationRespo * OrganizationId: "STRING_VALUE", // required * DeleteDirectory: true || false, // required * ForceDelete: true || false, + * DeleteIdentityCenterApplication: true || false, * }; * const command = new DeleteOrganizationCommand(input); * const response = await client.send(command); diff --git a/clients/client-workmail/src/commands/DeletePersonalAccessTokenCommand.ts b/clients/client-workmail/src/commands/DeletePersonalAccessTokenCommand.ts new file mode 100644 index 000000000000..287c97457a68 --- /dev/null +++ b/clients/client-workmail/src/commands/DeletePersonalAccessTokenCommand.ts @@ -0,0 +1,104 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { DeletePersonalAccessTokenRequest, DeletePersonalAccessTokenResponse } from "../models/models_0"; +import { de_DeletePersonalAccessTokenCommand, se_DeletePersonalAccessTokenCommand } from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DeletePersonalAccessTokenCommand}. + */ +export interface DeletePersonalAccessTokenCommandInput extends DeletePersonalAccessTokenRequest {} +/** + * @public + * + * The output of {@link DeletePersonalAccessTokenCommand}. + */ +export interface DeletePersonalAccessTokenCommandOutput extends DeletePersonalAccessTokenResponse, __MetadataBearer {} + +/** + *+ * Deletes the Personal Access Token from the provided WorkMail Organization. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, DeletePersonalAccessTokenCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, DeletePersonalAccessTokenCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // DeletePersonalAccessTokenRequest + * OrganizationId: "STRING_VALUE", // required + * PersonalAccessTokenId: "STRING_VALUE", // required + * }; + * const command = new DeletePersonalAccessTokenCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param DeletePersonalAccessTokenCommandInput - {@link DeletePersonalAccessTokenCommandInput} + * @returns {@link DeletePersonalAccessTokenCommandOutput} + * @see {@link DeletePersonalAccessTokenCommandInput} for command's `input` shape. + * @see {@link DeletePersonalAccessTokenCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class DeletePersonalAccessTokenCommand extends $Command + .classBuilder< + DeletePersonalAccessTokenCommandInput, + DeletePersonalAccessTokenCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "DeletePersonalAccessToken", {}) + .n("WorkMailClient", "DeletePersonalAccessTokenCommand") + .f(void 0, void 0) + .ser(se_DeletePersonalAccessTokenCommand) + .de(de_DeletePersonalAccessTokenCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DeletePersonalAccessTokenRequest; + output: {}; + }; + sdk: { + input: DeletePersonalAccessTokenCommandInput; + output: DeletePersonalAccessTokenCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/DescribeIdentityProviderConfigurationCommand.ts b/clients/client-workmail/src/commands/DescribeIdentityProviderConfigurationCommand.ts new file mode 100644 index 000000000000..4e25141c4649 --- /dev/null +++ b/clients/client-workmail/src/commands/DescribeIdentityProviderConfigurationCommand.ts @@ -0,0 +1,125 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { + DescribeIdentityProviderConfigurationRequest, + DescribeIdentityProviderConfigurationResponse, +} from "../models/models_0"; +import { + de_DescribeIdentityProviderConfigurationCommand, + se_DescribeIdentityProviderConfigurationCommand, +} from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link DescribeIdentityProviderConfigurationCommand}. + */ +export interface DescribeIdentityProviderConfigurationCommandInput + extends DescribeIdentityProviderConfigurationRequest {} +/** + * @public + * + * The output of {@link DescribeIdentityProviderConfigurationCommand}. + */ +export interface DescribeIdentityProviderConfigurationCommandOutput + extends DescribeIdentityProviderConfigurationResponse, + __MetadataBearer {} + +/** + *+ * Returns detailed information on the current IdC setup for the WorkMail organization. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, DescribeIdentityProviderConfigurationCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, DescribeIdentityProviderConfigurationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // DescribeIdentityProviderConfigurationRequest + * OrganizationId: "STRING_VALUE", // required + * }; + * const command = new DescribeIdentityProviderConfigurationCommand(input); + * const response = await client.send(command); + * // { // DescribeIdentityProviderConfigurationResponse + * // AuthenticationMode: "IDENTITY_PROVIDER_ONLY" || "IDENTITY_PROVIDER_AND_DIRECTORY", + * // IdentityCenterConfiguration: { // IdentityCenterConfiguration + * // InstanceArn: "STRING_VALUE", // required + * // ApplicationArn: "STRING_VALUE", // required + * // }, + * // PersonalAccessTokenConfiguration: { // PersonalAccessTokenConfiguration + * // Status: "ACTIVE" || "INACTIVE", // required + * // LifetimeInDays: Number("int"), + * // }, + * // }; + * + * ``` + * + * @param DescribeIdentityProviderConfigurationCommandInput - {@link DescribeIdentityProviderConfigurationCommandInput} + * @returns {@link DescribeIdentityProviderConfigurationCommandOutput} + * @see {@link DescribeIdentityProviderConfigurationCommandInput} for command's `input` shape. + * @see {@link DescribeIdentityProviderConfigurationCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *The resource cannot be found.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class DescribeIdentityProviderConfigurationCommand extends $Command + .classBuilder< + DescribeIdentityProviderConfigurationCommandInput, + DescribeIdentityProviderConfigurationCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "DescribeIdentityProviderConfiguration", {}) + .n("WorkMailClient", "DescribeIdentityProviderConfigurationCommand") + .f(void 0, void 0) + .ser(se_DescribeIdentityProviderConfigurationCommand) + .de(de_DescribeIdentityProviderConfigurationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DescribeIdentityProviderConfigurationRequest; + output: DescribeIdentityProviderConfigurationResponse; + }; + sdk: { + input: DescribeIdentityProviderConfigurationCommandInput; + output: DescribeIdentityProviderConfigurationCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/DescribeResourceCommand.ts b/clients/client-workmail/src/commands/DescribeResourceCommand.ts index afe2beee0c6d..4ef8e1a32836 100644 --- a/clients/client-workmail/src/commands/DescribeResourceCommand.ts +++ b/clients/client-workmail/src/commands/DescribeResourceCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DescribeResourceRequest, DescribeResourceResponse } from "../models/models_0"; +import { + DescribeResourceRequest, + DescribeResourceResponse, + DescribeResourceResponseFilterSensitiveLog, +} from "../models/models_0"; import { de_DescribeResourceCommand, se_DescribeResourceCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; @@ -106,7 +110,7 @@ export class DescribeResourceCommand extends $Command }) .s("WorkMailService", "DescribeResource", {}) .n("WorkMailClient", "DescribeResourceCommand") - .f(void 0, void 0) + .f(void 0, DescribeResourceResponseFilterSensitiveLog) .ser(se_DescribeResourceCommand) .de(de_DescribeResourceCommand) .build() { diff --git a/clients/client-workmail/src/commands/DescribeUserCommand.ts b/clients/client-workmail/src/commands/DescribeUserCommand.ts index 31be4b6c543f..e26498df28f6 100644 --- a/clients/client-workmail/src/commands/DescribeUserCommand.ts +++ b/clients/client-workmail/src/commands/DescribeUserCommand.ts @@ -65,6 +65,8 @@ export interface DescribeUserCommandOutput extends DescribeUserResponse, __Metad * // Department: "STRING_VALUE", * // Country: "STRING_VALUE", * // Office: "STRING_VALUE", + * // IdentityProviderUserId: "STRING_VALUE", + * // IdentityProviderIdentityStoreId: "STRING_VALUE", * // }; * * ``` @@ -75,6 +77,12 @@ export interface DescribeUserCommandOutput extends DescribeUserResponse, __Metad * @see {@link DescribeUserCommandOutput} for command's `response` shape. * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. * + * @throws {@link DirectoryServiceAuthenticationFailedException} (client fault) + *The directory service doesn't recognize the credentials supplied by WorkMail.
+ * + * @throws {@link DirectoryUnavailableException} (client fault) + *The directory is unavailable. It might be located in another Region or deleted.
+ * * @throws {@link EntityNotFoundException} (client fault) *The identifier supplied for the user, group, or resource does not exist in your * organization.
diff --git a/clients/client-workmail/src/commands/GetPersonalAccessTokenMetadataCommand.ts b/clients/client-workmail/src/commands/GetPersonalAccessTokenMetadataCommand.ts new file mode 100644 index 000000000000..f4020b782b43 --- /dev/null +++ b/clients/client-workmail/src/commands/GetPersonalAccessTokenMetadataCommand.ts @@ -0,0 +1,122 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { GetPersonalAccessTokenMetadataRequest, GetPersonalAccessTokenMetadataResponse } from "../models/models_0"; +import { + de_GetPersonalAccessTokenMetadataCommand, + se_GetPersonalAccessTokenMetadataCommand, +} from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetPersonalAccessTokenMetadataCommand}. + */ +export interface GetPersonalAccessTokenMetadataCommandInput extends GetPersonalAccessTokenMetadataRequest {} +/** + * @public + * + * The output of {@link GetPersonalAccessTokenMetadataCommand}. + */ +export interface GetPersonalAccessTokenMetadataCommandOutput + extends GetPersonalAccessTokenMetadataResponse, + __MetadataBearer {} + +/** + *+ * Requests details of a specific Personal Access Token within the WorkMail organization. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, GetPersonalAccessTokenMetadataCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, GetPersonalAccessTokenMetadataCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // GetPersonalAccessTokenMetadataRequest + * OrganizationId: "STRING_VALUE", // required + * PersonalAccessTokenId: "STRING_VALUE", // required + * }; + * const command = new GetPersonalAccessTokenMetadataCommand(input); + * const response = await client.send(command); + * // { // GetPersonalAccessTokenMetadataResponse + * // PersonalAccessTokenId: "STRING_VALUE", + * // UserId: "STRING_VALUE", + * // Name: "STRING_VALUE", + * // DateCreated: new Date("TIMESTAMP"), + * // DateLastUsed: new Date("TIMESTAMP"), + * // ExpiresTime: new Date("TIMESTAMP"), + * // Scopes: [ // PersonalAccessTokenScopeList + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param GetPersonalAccessTokenMetadataCommandInput - {@link GetPersonalAccessTokenMetadataCommandInput} + * @returns {@link GetPersonalAccessTokenMetadataCommandOutput} + * @see {@link GetPersonalAccessTokenMetadataCommandInput} for command's `input` shape. + * @see {@link GetPersonalAccessTokenMetadataCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *The resource cannot be found.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class GetPersonalAccessTokenMetadataCommand extends $Command + .classBuilder< + GetPersonalAccessTokenMetadataCommandInput, + GetPersonalAccessTokenMetadataCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "GetPersonalAccessTokenMetadata", {}) + .n("WorkMailClient", "GetPersonalAccessTokenMetadataCommand") + .f(void 0, void 0) + .ser(se_GetPersonalAccessTokenMetadataCommand) + .de(de_GetPersonalAccessTokenMetadataCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetPersonalAccessTokenMetadataRequest; + output: GetPersonalAccessTokenMetadataResponse; + }; + sdk: { + input: GetPersonalAccessTokenMetadataCommandInput; + output: GetPersonalAccessTokenMetadataCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/ListAvailabilityConfigurationsCommand.ts b/clients/client-workmail/src/commands/ListAvailabilityConfigurationsCommand.ts index a5023a64646e..790f14f8b5fe 100644 --- a/clients/client-workmail/src/commands/ListAvailabilityConfigurationsCommand.ts +++ b/clients/client-workmail/src/commands/ListAvailabilityConfigurationsCommand.ts @@ -74,6 +74,9 @@ export interface ListAvailabilityConfigurationsCommandOutput * @see {@link ListAvailabilityConfigurationsCommandOutput} for command's `response` shape. * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * * @throws {@link OrganizationNotFoundException} (client fault) *An operation received a valid organization identifier that either doesn't belong or * exist in the system.
diff --git a/clients/client-workmail/src/commands/ListPersonalAccessTokensCommand.ts b/clients/client-workmail/src/commands/ListPersonalAccessTokensCommand.ts new file mode 100644 index 000000000000..8521a53a08db --- /dev/null +++ b/clients/client-workmail/src/commands/ListPersonalAccessTokensCommand.ts @@ -0,0 +1,129 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { ListPersonalAccessTokensRequest, ListPersonalAccessTokensResponse } from "../models/models_0"; +import { de_ListPersonalAccessTokensCommand, se_ListPersonalAccessTokensCommand } from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListPersonalAccessTokensCommand}. + */ +export interface ListPersonalAccessTokensCommandInput extends ListPersonalAccessTokensRequest {} +/** + * @public + * + * The output of {@link ListPersonalAccessTokensCommand}. + */ +export interface ListPersonalAccessTokensCommandOutput extends ListPersonalAccessTokensResponse, __MetadataBearer {} + +/** + *+ * Returns a summary of your Personal Access Tokens. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, ListPersonalAccessTokensCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, ListPersonalAccessTokensCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // ListPersonalAccessTokensRequest + * OrganizationId: "STRING_VALUE", // required + * UserId: "STRING_VALUE", + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new ListPersonalAccessTokensCommand(input); + * const response = await client.send(command); + * // { // ListPersonalAccessTokensResponse + * // NextToken: "STRING_VALUE", + * // PersonalAccessTokenSummaries: [ // PersonalAccessTokenSummaryList + * // { // PersonalAccessTokenSummary + * // PersonalAccessTokenId: "STRING_VALUE", + * // UserId: "STRING_VALUE", + * // Name: "STRING_VALUE", + * // DateCreated: new Date("TIMESTAMP"), + * // DateLastUsed: new Date("TIMESTAMP"), + * // ExpiresTime: new Date("TIMESTAMP"), + * // Scopes: [ // PersonalAccessTokenScopeList + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListPersonalAccessTokensCommandInput - {@link ListPersonalAccessTokensCommandInput} + * @returns {@link ListPersonalAccessTokensCommandOutput} + * @see {@link ListPersonalAccessTokensCommandInput} for command's `input` shape. + * @see {@link ListPersonalAccessTokensCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link EntityNotFoundException} (client fault) + *The identifier supplied for the user, group, or resource does not exist in your + * organization.
+ * + * @throws {@link EntityStateException} (client fault) + *You are performing an operation on a user, group, or resource that isn't in the + * expected state, such as trying to delete an active user.
+ * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class ListPersonalAccessTokensCommand extends $Command + .classBuilder< + ListPersonalAccessTokensCommandInput, + ListPersonalAccessTokensCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "ListPersonalAccessTokens", {}) + .n("WorkMailClient", "ListPersonalAccessTokensCommand") + .f(void 0, void 0) + .ser(se_ListPersonalAccessTokensCommand) + .de(de_ListPersonalAccessTokensCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListPersonalAccessTokensRequest; + output: ListPersonalAccessTokensResponse; + }; + sdk: { + input: ListPersonalAccessTokensCommandInput; + output: ListPersonalAccessTokensCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/ListResourcesCommand.ts b/clients/client-workmail/src/commands/ListResourcesCommand.ts index 80438f12587a..1b75f8d7c26a 100644 --- a/clients/client-workmail/src/commands/ListResourcesCommand.ts +++ b/clients/client-workmail/src/commands/ListResourcesCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListResourcesRequest, ListResourcesResponse } from "../models/models_0"; +import { + ListResourcesRequest, + ListResourcesResponse, + ListResourcesResponseFilterSensitiveLog, +} from "../models/models_0"; import { de_ListResourcesCommand, se_ListResourcesCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; @@ -107,7 +111,7 @@ export class ListResourcesCommand extends $Command }) .s("WorkMailService", "ListResources", {}) .n("WorkMailClient", "ListResourcesCommand") - .f(void 0, void 0) + .f(void 0, ListResourcesResponseFilterSensitiveLog) .ser(se_ListResourcesCommand) .de(de_ListResourcesCommand) .build() { diff --git a/clients/client-workmail/src/commands/ListUsersCommand.ts b/clients/client-workmail/src/commands/ListUsersCommand.ts index fe3b592372c9..8def45e04778 100644 --- a/clients/client-workmail/src/commands/ListUsersCommand.ts +++ b/clients/client-workmail/src/commands/ListUsersCommand.ts @@ -44,6 +44,7 @@ export interface ListUsersCommandOutput extends ListUsersResponse, __MetadataBea * DisplayNamePrefix: "STRING_VALUE", * PrimaryEmailPrefix: "STRING_VALUE", * State: "ENABLED" || "DISABLED" || "DELETED", + * IdentityProviderUserIdPrefix: "STRING_VALUE", * }, * }; * const command = new ListUsersCommand(input); @@ -59,6 +60,8 @@ export interface ListUsersCommandOutput extends ListUsersResponse, __MetadataBea * // UserRole: "USER" || "RESOURCE" || "SYSTEM_USER" || "REMOTE_USER", * // EnabledDate: new Date("TIMESTAMP"), * // DisabledDate: new Date("TIMESTAMP"), + * // IdentityProviderUserId: "STRING_VALUE", + * // IdentityProviderIdentityStoreId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-workmail/src/commands/PutIdentityProviderConfigurationCommand.ts b/clients/client-workmail/src/commands/PutIdentityProviderConfigurationCommand.ts new file mode 100644 index 000000000000..ae157d92b954 --- /dev/null +++ b/clients/client-workmail/src/commands/PutIdentityProviderConfigurationCommand.ts @@ -0,0 +1,122 @@ +// 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 { commonParams } from "../endpoint/EndpointParameters"; +import { PutIdentityProviderConfigurationRequest, PutIdentityProviderConfigurationResponse } from "../models/models_0"; +import { + de_PutIdentityProviderConfigurationCommand, + se_PutIdentityProviderConfigurationCommand, +} from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link PutIdentityProviderConfigurationCommand}. + */ +export interface PutIdentityProviderConfigurationCommandInput extends PutIdentityProviderConfigurationRequest {} +/** + * @public + * + * The output of {@link PutIdentityProviderConfigurationCommand}. + */ +export interface PutIdentityProviderConfigurationCommandOutput + extends PutIdentityProviderConfigurationResponse, + __MetadataBearer {} + +/** + *+ * Enables integration between IAM Identity Center (IdC) and WorkMail to proxy authentication requests for mailbox users. You can connect your IdC directory or your external directory to WorkMail through + * IdC and manage access to WorkMail mailboxes in a single place. For enhanced protection, you could enable Multifactor Authentication (MFA) and Personal Access Tokens. + * + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { WorkMailClient, PutIdentityProviderConfigurationCommand } from "@aws-sdk/client-workmail"; // ES Modules import + * // const { WorkMailClient, PutIdentityProviderConfigurationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import + * const client = new WorkMailClient(config); + * const input = { // PutIdentityProviderConfigurationRequest + * OrganizationId: "STRING_VALUE", // required + * AuthenticationMode: "IDENTITY_PROVIDER_ONLY" || "IDENTITY_PROVIDER_AND_DIRECTORY", // required + * IdentityCenterConfiguration: { // IdentityCenterConfiguration + * InstanceArn: "STRING_VALUE", // required + * ApplicationArn: "STRING_VALUE", // required + * }, + * PersonalAccessTokenConfiguration: { // PersonalAccessTokenConfiguration + * Status: "ACTIVE" || "INACTIVE", // required + * LifetimeInDays: Number("int"), + * }, + * }; + * const command = new PutIdentityProviderConfigurationCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param PutIdentityProviderConfigurationCommandInput - {@link PutIdentityProviderConfigurationCommandInput} + * @returns {@link PutIdentityProviderConfigurationCommandOutput} + * @see {@link PutIdentityProviderConfigurationCommandInput} for command's `input` shape. + * @see {@link PutIdentityProviderConfigurationCommandOutput} for command's `response` shape. + * @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape. + * + * @throws {@link InvalidParameterException} (client fault) + *One or more of the input parameters don't match the service's restrictions.
+ * + * @throws {@link OrganizationNotFoundException} (client fault) + *An operation received a valid organization identifier that either doesn't belong or + * exist in the system.
+ * + * @throws {@link OrganizationStateException} (client fault) + *The organization must have a valid state to perform certain + * operations on the organization or its members.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *The resource cannot be found.
+ * + * @throws {@link WorkMailServiceException} + *Base exception class for all service exceptions from WorkMail service.
+ * + * @public + */ +export class PutIdentityProviderConfigurationCommand extends $Command + .classBuilder< + PutIdentityProviderConfigurationCommandInput, + PutIdentityProviderConfigurationCommandOutput, + WorkMailClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: WorkMailClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("WorkMailService", "PutIdentityProviderConfiguration", {}) + .n("WorkMailClient", "PutIdentityProviderConfigurationCommand") + .f(void 0, void 0) + .ser(se_PutIdentityProviderConfigurationCommand) + .de(de_PutIdentityProviderConfigurationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: PutIdentityProviderConfigurationRequest; + output: {}; + }; + sdk: { + input: PutIdentityProviderConfigurationCommandInput; + output: PutIdentityProviderConfigurationCommandOutput; + }; + }; +} diff --git a/clients/client-workmail/src/commands/UpdateGroupCommand.ts b/clients/client-workmail/src/commands/UpdateGroupCommand.ts index 1e97e912f481..207788012936 100644 --- a/clients/client-workmail/src/commands/UpdateGroupCommand.ts +++ b/clients/client-workmail/src/commands/UpdateGroupCommand.ts @@ -28,7 +28,7 @@ export interface UpdateGroupCommandInput extends UpdateGroupRequest {} export interface UpdateGroupCommandOutput extends UpdateGroupResponse, __MetadataBearer {} /** - *Updates attibutes in a group.
+ *Updates attributes in a group.
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-workmail/src/commands/UpdateResourceCommand.ts b/clients/client-workmail/src/commands/UpdateResourceCommand.ts index db2f6a2640aa..f8fa35122264 100644 --- a/clients/client-workmail/src/commands/UpdateResourceCommand.ts +++ b/clients/client-workmail/src/commands/UpdateResourceCommand.ts @@ -5,7 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateResourceRequest, UpdateResourceResponse } from "../models/models_0"; +import { + UpdateResourceRequest, + UpdateResourceRequestFilterSensitiveLog, + UpdateResourceResponse, +} from "../models/models_0"; import { de_UpdateResourceCommand, se_UpdateResourceCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient"; @@ -128,7 +132,7 @@ export class UpdateResourceCommand extends $Command }) .s("WorkMailService", "UpdateResource", {}) .n("WorkMailClient", "UpdateResourceCommand") - .f(void 0, void 0) + .f(UpdateResourceRequestFilterSensitiveLog, void 0) .ser(se_UpdateResourceCommand) .de(de_UpdateResourceCommand) .build() { diff --git a/clients/client-workmail/src/commands/UpdateUserCommand.ts b/clients/client-workmail/src/commands/UpdateUserCommand.ts index 9a87efd24706..18104228fa3e 100644 --- a/clients/client-workmail/src/commands/UpdateUserCommand.ts +++ b/clients/client-workmail/src/commands/UpdateUserCommand.ts @@ -55,6 +55,7 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB * Department: "STRING_VALUE", * Country: "STRING_VALUE", * Office: "STRING_VALUE", + * IdentityProviderUserId: "STRING_VALUE", * }; * const command = new UpdateUserCommand(input); * const response = await client.send(command); diff --git a/clients/client-workmail/src/commands/index.ts b/clients/client-workmail/src/commands/index.ts index 51fa34b66426..1ccbe3190919 100644 --- a/clients/client-workmail/src/commands/index.ts +++ b/clients/client-workmail/src/commands/index.ts @@ -6,6 +6,7 @@ export * from "./CancelMailboxExportJobCommand"; export * from "./CreateAliasCommand"; export * from "./CreateAvailabilityConfigurationCommand"; export * from "./CreateGroupCommand"; +export * from "./CreateIdentityCenterApplicationCommand"; export * from "./CreateImpersonationRoleCommand"; export * from "./CreateMobileDeviceAccessRuleCommand"; export * from "./CreateOrganizationCommand"; @@ -16,11 +17,14 @@ export * from "./DeleteAliasCommand"; export * from "./DeleteAvailabilityConfigurationCommand"; export * from "./DeleteEmailMonitoringConfigurationCommand"; export * from "./DeleteGroupCommand"; +export * from "./DeleteIdentityCenterApplicationCommand"; +export * from "./DeleteIdentityProviderConfigurationCommand"; export * from "./DeleteImpersonationRoleCommand"; export * from "./DeleteMailboxPermissionsCommand"; export * from "./DeleteMobileDeviceAccessOverrideCommand"; export * from "./DeleteMobileDeviceAccessRuleCommand"; export * from "./DeleteOrganizationCommand"; +export * from "./DeletePersonalAccessTokenCommand"; export * from "./DeleteResourceCommand"; export * from "./DeleteRetentionPolicyCommand"; export * from "./DeleteUserCommand"; @@ -29,6 +33,7 @@ export * from "./DeregisterMailDomainCommand"; export * from "./DescribeEmailMonitoringConfigurationCommand"; export * from "./DescribeEntityCommand"; export * from "./DescribeGroupCommand"; +export * from "./DescribeIdentityProviderConfigurationCommand"; export * from "./DescribeInboundDmarcSettingsCommand"; export * from "./DescribeMailboxExportJobCommand"; export * from "./DescribeOrganizationCommand"; @@ -44,6 +49,7 @@ export * from "./GetMailDomainCommand"; export * from "./GetMailboxDetailsCommand"; export * from "./GetMobileDeviceAccessEffectCommand"; export * from "./GetMobileDeviceAccessOverrideCommand"; +export * from "./GetPersonalAccessTokenMetadataCommand"; export * from "./ListAccessControlRulesCommand"; export * from "./ListAliasesCommand"; export * from "./ListAvailabilityConfigurationsCommand"; @@ -57,12 +63,14 @@ export * from "./ListMailboxPermissionsCommand"; export * from "./ListMobileDeviceAccessOverridesCommand"; export * from "./ListMobileDeviceAccessRulesCommand"; export * from "./ListOrganizationsCommand"; +export * from "./ListPersonalAccessTokensCommand"; export * from "./ListResourceDelegatesCommand"; export * from "./ListResourcesCommand"; export * from "./ListTagsForResourceCommand"; export * from "./ListUsersCommand"; export * from "./PutAccessControlRuleCommand"; export * from "./PutEmailMonitoringConfigurationCommand"; +export * from "./PutIdentityProviderConfigurationCommand"; export * from "./PutInboundDmarcSettingsCommand"; export * from "./PutMailboxPermissionsCommand"; export * from "./PutMobileDeviceAccessOverrideCommand"; diff --git a/clients/client-workmail/src/models/models_0.ts b/clients/client-workmail/src/models/models_0.ts index 6b8b5f89c227..a0f10ab77fb8 100644 --- a/clients/client-workmail/src/models/models_0.ts +++ b/clients/client-workmail/src/models/models_0.ts @@ -863,6 +863,52 @@ export class ReservedNameException extends __BaseException { } } +/** + * @public + */ +export interface CreateIdentityCenterApplicationRequest { + /** + *+ * The name of the IAM Identity Center application. + * + * + *
+ * @public + */ + Name: string | undefined; + + /** + *+ * The Amazon Resource Name (ARN) of the instance. + *
+ * @public + */ + InstanceArn: string | undefined; + + /** + *+ * The idempotency token associated with the request. + * + * + *
+ * @public + */ + ClientToken?: string; +} + +/** + * @public + */ +export interface CreateIdentityCenterApplicationResponse { + /** + *+ * The Amazon Resource Name (ARN) of the application. + *
+ * @public + */ + ApplicationArn?: string; +} + /** *The rules for the given impersonation role.
* @public @@ -1307,6 +1353,12 @@ export interface CreateUserRequest { * @public */ HiddenFromGlobalAddressList?: boolean; + + /** + *User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
+ * @public + */ + IdentityProviderUserId?: string; } /** @@ -1497,6 +1549,41 @@ export interface DeleteGroupRequest { */ export interface DeleteGroupResponse {} +/** + * @public + */ +export interface DeleteIdentityCenterApplicationRequest { + /** + *+ * The Amazon Resource Name (ARN) of the application. + *
+ * @public + */ + ApplicationArn: string | undefined; +} + +/** + * @public + */ +export interface DeleteIdentityCenterApplicationResponse {} + +/** + * @public + */ +export interface DeleteIdentityProviderConfigurationRequest { + /** + *+ * The Organization ID.
+ * @public + */ + OrganizationId: string | undefined; +} + +/** + * @public + */ +export interface DeleteIdentityProviderConfigurationResponse {} + /** * @public */ @@ -1663,6 +1750,12 @@ export interface DeleteOrganizationRequest { * @public */ ForceDelete?: boolean; + + /** + *Deletes IAM Identity Center application for WorkMail. This action does not affect authentication settings for any organization.
+ * @public + */ + DeleteIdentityCenterApplication?: boolean; } /** @@ -1682,6 +1775,30 @@ export interface DeleteOrganizationResponse { State?: string; } +/** + * @public + */ +export interface DeletePersonalAccessTokenRequest { + /** + *+ * The Organization ID.
+ * @public + */ + OrganizationId: string | undefined; + + /** + *+ * The Personal Access Token ID.
+ * @public + */ + PersonalAccessTokenId: string | undefined; +} + +/** + * @public + */ +export interface DeletePersonalAccessTokenResponse {} + /** * @public */ @@ -2045,6 +2162,134 @@ export interface DescribeGroupResponse { HiddenFromGlobalAddressList?: boolean; } +/** + * @public + */ +export interface DescribeIdentityProviderConfigurationRequest { + /** + *+ * The Organization ID.
+ * @public + */ + OrganizationId: string | undefined; +} + +/** + * @public + * @enum + */ +export const IdentityProviderAuthenticationMode = { + IDENTITY_PROVIDER_AND_DIRECTORY: "IDENTITY_PROVIDER_AND_DIRECTORY", + IDENTITY_PROVIDER_ONLY: "IDENTITY_PROVIDER_ONLY", +} as const; + +/** + * @public + */ +export type IdentityProviderAuthenticationMode = + (typeof IdentityProviderAuthenticationMode)[keyof typeof IdentityProviderAuthenticationMode]; + +/** + *+ * The IAM Identity Center configuration. + *
+ * @public + */ +export interface IdentityCenterConfiguration { + /** + *+ * The Amazon Resource Name (ARN) of the of IAM Identity Center instance. Must be in the same AWS account and region as WorkMail organization.
+ * @public + */ + InstanceArn: string | undefined; + + /** + *+ * The Amazon Resource Name (ARN) of IAMIdentity Center Application for WorkMail. Must be created by the WorkMail API, see CreateIdentityCenterApplication.
+ * @public + */ + ApplicationArn: string | undefined; +} + +/** + * @public + * @enum + */ +export const PersonalAccessTokenConfigurationStatus = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +} as const; + +/** + * @public + */ +export type PersonalAccessTokenConfigurationStatus = + (typeof PersonalAccessTokenConfigurationStatus)[keyof typeof PersonalAccessTokenConfigurationStatus]; + +/** + *+ * Displays the Personal Access Token status. + *
+ * @public + */ +export interface PersonalAccessTokenConfiguration { + /** + *+ * The status of the Personal Access Token allowed for the organization. + *
+ *+ * Active - Mailbox users can login to the web application and choose Settings to see the new Personal Access Tokens page to + * create and delete the Personal Access Tokens. Mailbox users can use the Personal Access Tokens to set up mailbox connection from desktop or mobile email clients.
+ *+ * Inactive - Personal Access Tokens are disabled for your organization. Mailbox users can’t create, list, or delete Personal Access Tokens and can’t use them to connect to + * their mailboxes from desktop or mobile email clients.
+ *+ * The validity of the Personal Access Token status in days. + *
+ * @public + */ + LifetimeInDays?: number; +} + +/** + * @public + */ +export interface DescribeIdentityProviderConfigurationResponse { + /** + *+ * The authentication mode used in WorkMail.
+ * @public + */ + AuthenticationMode?: IdentityProviderAuthenticationMode; + + /** + *+ * The details of the IAM Identity Center configuration. + *
+ * @public + */ + IdentityCenterConfiguration?: IdentityCenterConfiguration; + + /** + *+ * The details of the Personal Access Token configuration. + *
+ * @public + */ + PersonalAccessTokenConfiguration?: PersonalAccessTokenConfiguration; +} + /** * @public */ @@ -2540,6 +2785,20 @@ export interface DescribeUserResponse { * @public */ Office?: string; + + /** + *User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
+ * @public + */ + IdentityProviderUserId?: string; + + /** + *+ * Identity Store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail. + *
+ * @public + */ + IdentityProviderIdentityStoreId?: string; } /** @@ -3257,6 +3516,85 @@ export interface GetMobileDeviceAccessOverrideResponse { DateModified?: Date; } +/** + * @public + */ +export interface GetPersonalAccessTokenMetadataRequest { + /** + *+ * The Organization ID.
+ * @public + */ + OrganizationId: string | undefined; + + /** + *+ * The Personal Access Token ID.
+ * @public + */ + PersonalAccessTokenId: string | undefined; +} + +/** + * @public + */ +export interface GetPersonalAccessTokenMetadataResponse { + /** + *+ * The Personal Access Token ID.
+ * @public + */ + PersonalAccessTokenId?: string; + + /** + *+ * The WorkMail User ID. + *
+ * @public + */ + UserId?: string; + + /** + *+ * The Personal Access Token name. + *
+ * @public + */ + Name?: string; + + /** + *+ * The date when the Personal Access Token ID was created. + *
+ * @public + */ + DateCreated?: Date; + + /** + *+ * The date when the Personal Access Token ID was last used. + *
+ * @public + */ + DateLastUsed?: Date; + + /** + *+ * The time when the Personal Access Token ID will expire. + *
+ * @public + */ + ExpiresTime?: Date; + + /** + *+ * Lists all the Personal Access Token permissions for a mailbox. + *
+ * @public + */ + Scopes?: string[]; +} + /** *The representation of an WorkMail group.
* @public @@ -4343,6 +4681,125 @@ export interface ListOrganizationsResponse { NextToken?: string; } +/** + * @public + */ +export interface ListPersonalAccessTokensRequest { + /** + *+ * The Organization ID.
+ * @public + */ + OrganizationId: string | undefined; + + /** + *+ * The WorkMail User ID. + *
+ * @public + */ + UserId?: string; + + /** + *+ * The token from the previous response to query the next page.
+ * @public + */ + NextToken?: string; + + /** + *+ * The maximum amount of items that should be returned in a response. + *
+ * @public + */ + MaxResults?: number; +} + +/** + *+ * The summary of the Personal Access Token. + *
+ * @public + */ +export interface PersonalAccessTokenSummary { + /** + *+ * The ID of the Personal Access Token. + *
+ * @public + */ + PersonalAccessTokenId?: string; + + /** + *+ * The user ID of the WorkMail user associated with the Personal Access Token. + *
+ * @public + */ + UserId?: string; + + /** + *+ * The name of the Personal Access Token. + *
+ * @public + */ + Name?: string; + + /** + *+ * The date when the Personal Access Token was created. + *
+ * @public + */ + DateCreated?: Date; + + /** + *+ * The date when the Personal Access Token was last used. + *
+ * @public + */ + DateLastUsed?: Date; + + /** + *+ * The date when the Personal Access Token will expire. + *
+ * @public + */ + ExpiresTime?: Date; + + /** + *+ * Lists all the Personal Access Token permissions for a mailbox. + *
+ * @public + */ + Scopes?: string[]; +} + +/** + * @public + */ +export interface ListPersonalAccessTokensResponse { + /** + *+ * The token from the previous response to query the next page.
+ * @public + */ + NextToken?: string; + + /** + *+ * Lists all the personal tokens in an organization or user, if user ID is provided. + *
+ * @public + */ + PersonalAccessTokenSummaries?: PersonalAccessTokenSummary[]; +} + /** * @public */ @@ -4600,6 +5057,12 @@ export interface ListUsersFilters { * @public */ State?: EntityState; + + /** + *Filters only users with the ID from the IAM Identity Center.
+ * @public + */ + IdentityProviderUserIdPrefix?: string; } /** @@ -4684,6 +5147,18 @@ export interface User { * @public */ DisabledDate?: Date; + + /** + *User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
+ * @public + */ + IdentityProviderUserId?: string; + + /** + *Identity store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
+ * @public + */ + IdentityProviderIdentityStoreId?: string; } /** @@ -4818,6 +5293,45 @@ export interface PutEmailMonitoringConfigurationRequest { */ export interface PutEmailMonitoringConfigurationResponse {} +/** + * @public + */ +export interface PutIdentityProviderConfigurationRequest { + /** + *+ * The ID of the WorkMail Organization.
+ * @public + */ + OrganizationId: string | undefined; + + /** + *+ * The authentication mode used in WorkMail.
+ * @public + */ + AuthenticationMode: IdentityProviderAuthenticationMode | undefined; + + /** + *+ * The details of the IAM Identity Center configuration.
+ * @public + */ + IdentityCenterConfiguration: IdentityCenterConfiguration | undefined; + + /** + *+ * The details of the Personal Access Token configuration. + *
+ * @public + */ + PersonalAccessTokenConfiguration: PersonalAccessTokenConfiguration | undefined; +} + +/** + * @public + */ +export interface PutIdentityProviderConfigurationResponse {} + /** * @public */ @@ -5763,7 +6277,7 @@ export interface UpdateUserRequest { Company?: string; /** - *Updates the user's zipcode.
+ *Updates the user's zip code.
* @public */ ZipCode?: string; @@ -5785,6 +6299,12 @@ export interface UpdateUserRequest { * @public */ Office?: string; + + /** + *User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
+ * @public + */ + IdentityProviderUserId?: string; } /** @@ -5810,6 +6330,14 @@ export const CreateAvailabilityConfigurationRequestFilterSensitiveLog = ( ...(obj.EwsProvider && { EwsProvider: EwsAvailabilityProviderFilterSensitiveLog(obj.EwsProvider) }), }); +/** + * @internal + */ +export const CreateResourceRequestFilterSensitiveLog = (obj: CreateResourceRequest): any => ({ + ...obj, + ...(obj.Description && { Description: SENSITIVE_STRING }), +}); + /** * @internal */ @@ -5821,6 +6349,14 @@ export const CreateUserRequestFilterSensitiveLog = (obj: CreateUserRequest): any ...(obj.LastName && { LastName: SENSITIVE_STRING }), }); +/** + * @internal + */ +export const DescribeResourceResponseFilterSensitiveLog = (obj: DescribeResourceResponse): any => ({ + ...obj, + ...(obj.Description && { Description: SENSITIVE_STRING }), +}); + /** * @internal */ @@ -5841,6 +6377,22 @@ export const DescribeUserResponseFilterSensitiveLog = (obj: DescribeUserResponse ...(obj.Office && { Office: SENSITIVE_STRING }), }); +/** + * @internal + */ +export const ResourceFilterSensitiveLog = (obj: Resource): any => ({ + ...obj, + ...(obj.Description && { Description: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const ListResourcesResponseFilterSensitiveLog = (obj: ListResourcesResponse): any => ({ + ...obj, + ...(obj.Resources && { Resources: obj.Resources.map((item) => ResourceFilterSensitiveLog(item)) }), +}); + /** * @internal */ @@ -5893,6 +6445,14 @@ export const UpdateAvailabilityConfigurationRequestFilterSensitiveLog = ( ...(obj.EwsProvider && { EwsProvider: EwsAvailabilityProviderFilterSensitiveLog(obj.EwsProvider) }), }); +/** + * @internal + */ +export const UpdateResourceRequestFilterSensitiveLog = (obj: UpdateResourceRequest): any => ({ + ...obj, + ...(obj.Description && { Description: SENSITIVE_STRING }), +}); + /** * @internal */ diff --git a/clients/client-workmail/src/pagination/ListPersonalAccessTokensPaginator.ts b/clients/client-workmail/src/pagination/ListPersonalAccessTokensPaginator.ts new file mode 100644 index 000000000000..2f81a0d3b730 --- /dev/null +++ b/clients/client-workmail/src/pagination/ListPersonalAccessTokensPaginator.ts @@ -0,0 +1,24 @@ +// smithy-typescript generated code +import { createPaginator } from "@smithy/core"; +import { Paginator } from "@smithy/types"; + +import { + ListPersonalAccessTokensCommand, + ListPersonalAccessTokensCommandInput, + ListPersonalAccessTokensCommandOutput, +} from "../commands/ListPersonalAccessTokensCommand"; +import { WorkMailClient } from "../WorkMailClient"; +import { WorkMailPaginationConfiguration } from "./Interfaces"; + +/** + * @public + */ +export const paginateListPersonalAccessTokens: ( + config: WorkMailPaginationConfiguration, + input: ListPersonalAccessTokensCommandInput, + ...rest: any[] +) => Paginator\n Creates the WorkMail application in IAM Identity Center that can be used later in the WorkMail - IdC integration. For more information, see PutIdentityProviderConfiguration. This action does not affect the authentication settings for any WorkMail organizations.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#CreateIdentityCenterApplicationRequest": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.workmail#IdentityCenterApplicationName", + "traits": { + "smithy.api#documentation": "\n The name of the IAM Identity Center application.\n \n \n
", + "smithy.api#required": {} + } + }, + "InstanceArn": { + "target": "com.amazonaws.workmail#InstanceArn", + "traits": { + "smithy.api#documentation": "\n The Amazon Resource Name (ARN) of the instance.\n
", + "smithy.api#required": {} + } + }, + "ClientToken": { + "target": "com.amazonaws.workmail#IdempotencyClientToken", + "traits": { + "smithy.api#documentation": "\n The idempotency token associated with the request.\n \n \n
", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#CreateIdentityCenterApplicationResponse": { + "type": "structure", + "members": { + "ApplicationArn": { + "target": "com.amazonaws.workmail#ApplicationArn", + "traits": { + "smithy.api#documentation": "\n The Amazon Resource Name (ARN) of the application.\n
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#CreateImpersonationRole": { "type": "operation", "input": { @@ -1357,6 +1428,12 @@ "smithy.api#default": false, "smithy.api#documentation": "If this parameter is enabled, the user will be hidden from the address book.
" } + }, + "IdentityProviderUserId": { + "target": "com.amazonaws.workmail#IdentityProviderUserId", + "traits": { + "smithy.api#documentation": "User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
" + } } }, "traits": { @@ -1675,6 +1752,95 @@ "smithy.api#output": {} } }, + "com.amazonaws.workmail#DeleteIdentityCenterApplication": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#DeleteIdentityCenterApplicationRequest" + }, + "output": { + "target": "com.amazonaws.workmail#DeleteIdentityCenterApplicationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + } + ], + "traits": { + "smithy.api#documentation": "\n Deletes the IAM Identity Center application from WorkMail. This action does not affect the authentication settings for any WorkMail organizations.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#DeleteIdentityCenterApplicationRequest": { + "type": "structure", + "members": { + "ApplicationArn": { + "target": "com.amazonaws.workmail#ApplicationArn", + "traits": { + "smithy.api#documentation": "\n The Amazon Resource Name (ARN) of the application.\n
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#DeleteIdentityCenterApplicationResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.workmail#DeleteIdentityProviderConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#DeleteIdentityProviderConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.workmail#DeleteIdentityProviderConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + } + ], + "traits": { + "smithy.api#documentation": "\n Disables the integration between IdC and WorkMail. Authentication will continue with the directory as it was before the IdC integration. You might have to reset your directory passwords and reconfigure your desktop and mobile email clients.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#DeleteIdentityProviderConfigurationRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\nThe Organization ID.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#DeleteIdentityProviderConfigurationResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#DeleteImpersonationRole": { "type": "operation", "input": { @@ -1962,6 +2128,13 @@ "smithy.api#default": false, "smithy.api#documentation": "Deletes a WorkMail organization even if the organization has enabled users.
" } + }, + "DeleteIdentityCenterApplication": { + "target": "com.amazonaws.workmail#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "Deletes IAM Identity Center application for WorkMail. This action does not affect authentication settings for any organization.
" + } } }, "traits": { @@ -1988,6 +2161,59 @@ "smithy.api#output": {} } }, + "com.amazonaws.workmail#DeletePersonalAccessToken": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#DeletePersonalAccessTokenRequest" + }, + "output": { + "target": "com.amazonaws.workmail#DeletePersonalAccessTokenResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + } + ], + "traits": { + "smithy.api#documentation": "\n Deletes the Personal Access Token from the provided WorkMail Organization.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#DeletePersonalAccessTokenRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\n The Organization ID.
", + "smithy.api#required": {} + } + }, + "PersonalAccessTokenId": { + "target": "com.amazonaws.workmail#PersonalAccessTokenId", + "traits": { + "smithy.api#documentation": "\n The Personal Access Token ID.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#DeletePersonalAccessTokenResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#DeleteResource": { "type": "operation", "input": { @@ -2520,6 +2746,74 @@ "smithy.api#output": {} } }, + "com.amazonaws.workmail#DescribeIdentityProviderConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#DescribeIdentityProviderConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.workmail#DescribeIdentityProviderConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + }, + { + "target": "com.amazonaws.workmail#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "\n Returns detailed information on the current IdC setup for the WorkMail organization.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#DescribeIdentityProviderConfigurationRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\n The Organization ID.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#DescribeIdentityProviderConfigurationResponse": { + "type": "structure", + "members": { + "AuthenticationMode": { + "target": "com.amazonaws.workmail#IdentityProviderAuthenticationMode", + "traits": { + "smithy.api#documentation": "\nThe authentication mode used in WorkMail.
" + } + }, + "IdentityCenterConfiguration": { + "target": "com.amazonaws.workmail#IdentityCenterConfiguration", + "traits": { + "smithy.api#documentation": "\n The details of the IAM Identity Center configuration. \n
" + } + }, + "PersonalAccessTokenConfiguration": { + "target": "com.amazonaws.workmail#PersonalAccessTokenConfiguration", + "traits": { + "smithy.api#documentation": "\n The details of the Personal Access Token configuration.\n
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#DescribeInboundDmarcSettings": { "type": "operation", "input": { @@ -2942,6 +3236,12 @@ "target": "com.amazonaws.workmail#DescribeUserResponse" }, "errors": [ + { + "target": "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException" + }, + { + "target": "com.amazonaws.workmail#DirectoryUnavailableException" + }, { "target": "com.amazonaws.workmail#EntityNotFoundException" }, @@ -3123,6 +3423,18 @@ "traits": { "smithy.api#documentation": "Office where the user is located.
" } + }, + "IdentityProviderUserId": { + "target": "com.amazonaws.workmail#IdentityProviderUserId", + "traits": { + "smithy.api#documentation": "User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
" + } + }, + "IdentityProviderIdentityStoreId": { + "target": "com.amazonaws.workmail#IdentityProviderIdentityStoreId", + "traits": { + "smithy.api#documentation": "\n Identity Store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.\n
" + } } }, "traits": { @@ -4442,14 +4754,113 @@ "smithy.api#output": {} } }, - "com.amazonaws.workmail#Group": { - "type": "structure", - "members": { - "Id": { - "target": "com.amazonaws.workmail#WorkMailIdentifier", - "traits": { - "smithy.api#documentation": "The identifier of the group.
" - } + "com.amazonaws.workmail#GetPersonalAccessTokenMetadata": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#GetPersonalAccessTokenMetadataRequest" + }, + "output": { + "target": "com.amazonaws.workmail#GetPersonalAccessTokenMetadataResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + }, + { + "target": "com.amazonaws.workmail#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "\n Requests details of a specific Personal Access Token within the WorkMail organization.\n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#GetPersonalAccessTokenMetadataRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\n The Organization ID.
", + "smithy.api#required": {} + } + }, + "PersonalAccessTokenId": { + "target": "com.amazonaws.workmail#PersonalAccessTokenId", + "traits": { + "smithy.api#documentation": "\n The Personal Access Token ID.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#GetPersonalAccessTokenMetadataResponse": { + "type": "structure", + "members": { + "PersonalAccessTokenId": { + "target": "com.amazonaws.workmail#PersonalAccessTokenId", + "traits": { + "smithy.api#documentation": "\n The Personal Access Token ID.
" + } + }, + "UserId": { + "target": "com.amazonaws.workmail#WorkMailIdentifier", + "traits": { + "smithy.api#documentation": "\n The WorkMail User ID. \n
" + } + }, + "Name": { + "target": "com.amazonaws.workmail#PersonalAccessTokenName", + "traits": { + "smithy.api#documentation": "\n The Personal Access Token name.\n
" + } + }, + "DateCreated": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The date when the Personal Access Token ID was created.\n
" + } + }, + "DateLastUsed": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The date when the Personal Access Token ID was last used.\n
" + } + }, + "ExpiresTime": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The time when the Personal Access Token ID will expire.\n
" + } + }, + "Scopes": { + "target": "com.amazonaws.workmail#PersonalAccessTokenScopeList", + "traits": { + "smithy.api#documentation": "\n Lists all the Personal Access Token permissions for a mailbox.\n
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.workmail#Group": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.workmail#WorkMailIdentifier", + "traits": { + "smithy.api#documentation": "The identifier of the group.
" + } }, "Email": { "target": "com.amazonaws.workmail#EmailAddress", @@ -4548,6 +4959,95 @@ "smithy.api#pattern": "^[\\x21-\\x7e]+$" } }, + "com.amazonaws.workmail#IdentityCenterApplicationName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 255 + }, + "smithy.api#pattern": "^[\\w+=,.@-]+$" + } + }, + "com.amazonaws.workmail#IdentityCenterConfiguration": { + "type": "structure", + "members": { + "InstanceArn": { + "target": "com.amazonaws.workmail#InstanceArn", + "traits": { + "smithy.api#documentation": "\n The Amazon Resource Name (ARN) of the of IAM Identity Center instance. Must be in the same AWS account and region as WorkMail organization.
", + "smithy.api#required": {} + } + }, + "ApplicationArn": { + "target": "com.amazonaws.workmail#ApplicationArn", + "traits": { + "smithy.api#documentation": "\n The Amazon Resource Name (ARN) of IAMIdentity Center Application for WorkMail. Must be created by the WorkMail API, see CreateIdentityCenterApplication.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "\n The IAM Identity Center configuration.\n
" + } + }, + "com.amazonaws.workmail#IdentityProviderAuthenticationMode": { + "type": "enum", + "members": { + "IDENTITY_PROVIDER_ONLY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IDENTITY_PROVIDER_ONLY" + } + }, + "IDENTITY_PROVIDER_AND_DIRECTORY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IDENTITY_PROVIDER_AND_DIRECTORY" + } + } + } + }, + "com.amazonaws.workmail#IdentityProviderIdentityStoreId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 36 + }, + "smithy.api#pattern": "^d-[0-9a-f]{10}$|^[0-9a-f]{8}\\\\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\\\\b[0-9a-f]{12}$" + } + }, + "com.amazonaws.workmail#IdentityProviderUserId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 47 + }, + "smithy.api#pattern": "^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" + } + }, + "com.amazonaws.workmail#IdentityProviderUserIdForUpdate": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 47 + }, + "smithy.api#pattern": "^$|^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" + } + }, + "com.amazonaws.workmail#IdentityProviderUserIdPrefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 47 + }, + "smithy.api#pattern": "^[A-Fa-f0-9-]+$" + } + }, "com.amazonaws.workmail#ImpersonationMatchedRule": { "type": "structure", "members": { @@ -4787,6 +5287,16 @@ "smithy.api#pattern": "^[\\x21-\\x7e]+$" } }, + "com.amazonaws.workmail#InstanceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 1124 + }, + "smithy.api#pattern": "^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$" + } + }, "com.amazonaws.workmail#InvalidConfigurationException": { "type": "structure", "members": { @@ -5067,6 +5577,9 @@ "target": "com.amazonaws.workmail#ListAvailabilityConfigurationsResponse" }, "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, { "target": "com.amazonaws.workmail#OrganizationNotFoundException" }, @@ -5958,6 +6471,95 @@ "smithy.api#output": {} } }, + "com.amazonaws.workmail#ListPersonalAccessTokens": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#ListPersonalAccessTokensRequest" + }, + "output": { + "target": "com.amazonaws.workmail#ListPersonalAccessTokensResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#EntityNotFoundException" + }, + { + "target": "com.amazonaws.workmail#EntityStateException" + }, + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + } + ], + "traits": { + "smithy.api#documentation": "\n Returns a summary of your Personal Access Tokens.\n
", + "smithy.api#idempotent": {}, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "PersonalAccessTokenSummaries", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.workmail#ListPersonalAccessTokensRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\n The Organization ID.
", + "smithy.api#required": {} + } + }, + "UserId": { + "target": "com.amazonaws.workmail#EntityIdentifier", + "traits": { + "smithy.api#documentation": "\n The WorkMail User ID. \n
" + } + }, + "NextToken": { + "target": "com.amazonaws.workmail#NextToken", + "traits": { + "smithy.api#documentation": "\n The token from the previous response to query the next page.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.workmail#MaxResults", + "traits": { + "smithy.api#documentation": "\n The maximum amount of items that should be returned in a response.\n
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#ListPersonalAccessTokensResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.workmail#NextToken", + "traits": { + "smithy.api#documentation": "\n The token from the previous response to query the next page.
" + } + }, + "PersonalAccessTokenSummaries": { + "target": "com.amazonaws.workmail#PersonalAccessTokenSummaryList", + "traits": { + "smithy.api#documentation": "\n Lists all the personal tokens in an organization or user, if user ID is provided. \n
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#ListResourceDelegates": { "type": "operation", "input": { @@ -6262,6 +6864,12 @@ "traits": { "smithy.api#documentation": "Filters only users with the provided state.
" } + }, + "IdentityProviderUserIdPrefix": { + "target": "com.amazonaws.workmail#IdentityProviderUserIdPrefix", + "traits": { + "smithy.api#documentation": "Filters only users with the ID from the IAM Identity Center.
" + } } }, "traits": { @@ -6850,7 +7458,8 @@ "smithy.api#length": { "min": 0, "max": 64 - } + }, + "smithy.api#sensitive": {} } }, "com.amazonaws.workmail#NextToken": { @@ -7036,6 +7645,151 @@ "target": "com.amazonaws.workmail#Permission" } }, + "com.amazonaws.workmail#PersonalAccessTokenConfiguration": { + "type": "structure", + "members": { + "Status": { + "target": "com.amazonaws.workmail#PersonalAccessTokenConfigurationStatus", + "traits": { + "smithy.api#documentation": "\n The status of the Personal Access Token allowed for the organization.\n
\n\n Active - Mailbox users can login to the web application and choose Settings to see the new Personal Access Tokens page to \n create and delete the Personal Access Tokens. Mailbox users can use the Personal Access Tokens to set up mailbox connection from desktop or mobile email clients.
\n\n Inactive - Personal Access Tokens are disabled for your organization. Mailbox users can’t create, list, or delete Personal Access Tokens and can’t use them to connect to \n their mailboxes from desktop or mobile email clients.
\n\n The validity of the Personal Access Token status in days.\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "\n Displays the Personal Access Token status.\n
" + } + }, + "com.amazonaws.workmail#PersonalAccessTokenConfigurationStatus": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "INACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INACTIVE" + } + } + } + }, + "com.amazonaws.workmail#PersonalAccessTokenId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9_-]+$" + } + }, + "com.amazonaws.workmail#PersonalAccessTokenLifetimeInDays": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 3653 + } + } + }, + "com.amazonaws.workmail#PersonalAccessTokenName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[^\\x00-\\x1F\\x7F\\x3C\\x3E\\x5C]+$" + } + }, + "com.amazonaws.workmail#PersonalAccessTokenScope": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[^\\x00-\\x1F\\x7F\\x3C\\x3E\\x5C]+$" + } + }, + "com.amazonaws.workmail#PersonalAccessTokenScopeList": { + "type": "list", + "member": { + "target": "com.amazonaws.workmail#PersonalAccessTokenScope" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.workmail#PersonalAccessTokenSummary": { + "type": "structure", + "members": { + "PersonalAccessTokenId": { + "target": "com.amazonaws.workmail#PersonalAccessTokenId", + "traits": { + "smithy.api#documentation": "\n The ID of the Personal Access Token.\n
" + } + }, + "UserId": { + "target": "com.amazonaws.workmail#WorkMailIdentifier", + "traits": { + "smithy.api#documentation": "\n The user ID of the WorkMail user associated with the Personal Access Token.\n
" + } + }, + "Name": { + "target": "com.amazonaws.workmail#PersonalAccessTokenName", + "traits": { + "smithy.api#documentation": "\n The name of the Personal Access Token.\n
" + } + }, + "DateCreated": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The date when the Personal Access Token was created.\n
" + } + }, + "DateLastUsed": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The date when the Personal Access Token was last used.\n
" + } + }, + "ExpiresTime": { + "target": "com.amazonaws.workmail#Timestamp", + "traits": { + "smithy.api#documentation": "\n The date when the Personal Access Token will expire.\n
" + } + }, + "Scopes": { + "target": "com.amazonaws.workmail#PersonalAccessTokenScopeList", + "traits": { + "smithy.api#documentation": "\n Lists all the Personal Access Token permissions for a mailbox.\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "\n The summary of the Personal Access Token.\n
" + } + }, + "com.amazonaws.workmail#PersonalAccessTokenSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.workmail#PersonalAccessTokenSummary" + } + }, "com.amazonaws.workmail#PolicyDescription": { "type": "string", "traits": { @@ -7233,6 +7987,76 @@ "smithy.api#output": {} } }, + "com.amazonaws.workmail#PutIdentityProviderConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.workmail#PutIdentityProviderConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.workmail#PutIdentityProviderConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workmail#InvalidParameterException" + }, + { + "target": "com.amazonaws.workmail#OrganizationNotFoundException" + }, + { + "target": "com.amazonaws.workmail#OrganizationStateException" + }, + { + "target": "com.amazonaws.workmail#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "\n Enables integration between IAM Identity Center (IdC) and WorkMail to proxy authentication requests for mailbox users. You can connect your IdC directory or your external directory to WorkMail through \n IdC and manage access to WorkMail mailboxes in a single place. For enhanced protection, you could enable Multifactor Authentication (MFA) and Personal Access Tokens.\n \n
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workmail#PutIdentityProviderConfigurationRequest": { + "type": "structure", + "members": { + "OrganizationId": { + "target": "com.amazonaws.workmail#OrganizationId", + "traits": { + "smithy.api#documentation": "\n The ID of the WorkMail Organization.
", + "smithy.api#required": {} + } + }, + "AuthenticationMode": { + "target": "com.amazonaws.workmail#IdentityProviderAuthenticationMode", + "traits": { + "smithy.api#documentation": "\n The authentication mode used in WorkMail.
", + "smithy.api#required": {} + } + }, + "IdentityCenterConfiguration": { + "target": "com.amazonaws.workmail#IdentityCenterConfiguration", + "traits": { + "smithy.api#documentation": "\n The details of the IAM Identity Center configuration.
", + "smithy.api#required": {} + } + }, + "PersonalAccessTokenConfiguration": { + "target": "com.amazonaws.workmail#PersonalAccessTokenConfiguration", + "traits": { + "smithy.api#documentation": "\n The details of the Personal Access Token configuration. \n
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.workmail#PutIdentityProviderConfigurationResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.workmail#PutInboundDmarcSettings": { "type": "operation", "input": { @@ -7837,7 +8661,8 @@ "smithy.api#length": { "min": 1, "max": 64 - } + }, + "smithy.api#sensitive": {} } }, "com.amazonaws.workmail#ResourceId": { @@ -8520,7 +9345,7 @@ } ], "traits": { - "smithy.api#documentation": "Updates attibutes in a group.
", + "smithy.api#documentation": "Updates attributes in a group.
", "smithy.api#idempotent": {} } }, @@ -9158,7 +9983,7 @@ "ZipCode": { "target": "com.amazonaws.workmail#UserAttribute", "traits": { - "smithy.api#documentation": "Updates the user's zipcode.
" + "smithy.api#documentation": "Updates the user's zip code.
" } }, "Department": { @@ -9178,6 +10003,12 @@ "traits": { "smithy.api#documentation": "Updates the user's office.
" } + }, + "IdentityProviderUserId": { + "target": "com.amazonaws.workmail#IdentityProviderUserIdForUpdate", + "traits": { + "smithy.api#documentation": "User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
" + } } }, "traits": { @@ -9251,6 +10082,18 @@ "traits": { "smithy.api#documentation": "The date indicating when the user was disabled from WorkMail use.
" } + }, + "IdentityProviderUserId": { + "target": "com.amazonaws.workmail#IdentityProviderUserId", + "traits": { + "smithy.api#documentation": "User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
" + } + }, + "IdentityProviderIdentityStoreId": { + "target": "com.amazonaws.workmail#IdentityProviderIdentityStoreId", + "traits": { + "smithy.api#documentation": "Identity store ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when the user logs in for the first time to the mailbox associated with WorkMail.
" + } } }, "traits": { @@ -9368,6 +10211,9 @@ { "target": "com.amazonaws.workmail#CreateGroup" }, + { + "target": "com.amazonaws.workmail#CreateIdentityCenterApplication" + }, { "target": "com.amazonaws.workmail#CreateImpersonationRole" }, @@ -9398,6 +10244,12 @@ { "target": "com.amazonaws.workmail#DeleteGroup" }, + { + "target": "com.amazonaws.workmail#DeleteIdentityCenterApplication" + }, + { + "target": "com.amazonaws.workmail#DeleteIdentityProviderConfiguration" + }, { "target": "com.amazonaws.workmail#DeleteImpersonationRole" }, @@ -9413,6 +10265,9 @@ { "target": "com.amazonaws.workmail#DeleteOrganization" }, + { + "target": "com.amazonaws.workmail#DeletePersonalAccessToken" + }, { "target": "com.amazonaws.workmail#DeleteResource" }, @@ -9437,6 +10292,9 @@ { "target": "com.amazonaws.workmail#DescribeGroup" }, + { + "target": "com.amazonaws.workmail#DescribeIdentityProviderConfiguration" + }, { "target": "com.amazonaws.workmail#DescribeInboundDmarcSettings" }, @@ -9482,6 +10340,9 @@ { "target": "com.amazonaws.workmail#GetMobileDeviceAccessOverride" }, + { + "target": "com.amazonaws.workmail#GetPersonalAccessTokenMetadata" + }, { "target": "com.amazonaws.workmail#ListAccessControlRules" }, @@ -9521,6 +10382,9 @@ { "target": "com.amazonaws.workmail#ListOrganizations" }, + { + "target": "com.amazonaws.workmail#ListPersonalAccessTokens" + }, { "target": "com.amazonaws.workmail#ListResourceDelegates" }, @@ -9539,6 +10403,9 @@ { "target": "com.amazonaws.workmail#PutEmailMonitoringConfiguration" }, + { + "target": "com.amazonaws.workmail#PutIdentityProviderConfiguration" + }, { "target": "com.amazonaws.workmail#PutInboundDmarcSettings" },