import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateIdentitySourceInput, UpdateIdentitySourceOutput } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateIdentitySourceCommand}. */ export interface UpdateIdentitySourceCommandInput extends UpdateIdentitySourceInput { } /** * @public * * The output of {@link UpdateIdentitySourceCommand}. */ export interface UpdateIdentitySourceCommandOutput extends UpdateIdentitySourceOutput, __MetadataBearer { } declare const UpdateIdentitySourceCommand_base: { new (input: UpdateIdentitySourceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateIdentitySourceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Updates the specified identity source to use a new identity provider (IdP), or to change the mapping of identities from the IdP to a different principal entity type.

Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { VerifiedPermissionsClient, UpdateIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import * // const { VerifiedPermissionsClient, UpdateIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import * // import type { VerifiedPermissionsClientConfig } from "@aws-sdk/client-verifiedpermissions"; * const config = {}; // type is VerifiedPermissionsClientConfig * const client = new VerifiedPermissionsClient(config); * const input = { // UpdateIdentitySourceInput * policyStoreId: "STRING_VALUE", // required * identitySourceId: "STRING_VALUE", // required * updateConfiguration: { // UpdateConfiguration Union: only one key present * cognitoUserPoolConfiguration: { // UpdateCognitoUserPoolConfiguration * userPoolArn: "STRING_VALUE", // required * clientIds: [ // ClientIds * "STRING_VALUE", * ], * groupConfiguration: { // UpdateCognitoGroupConfiguration * groupEntityType: "STRING_VALUE", // required * }, * }, * openIdConnectConfiguration: { // UpdateOpenIdConnectConfiguration * issuer: "STRING_VALUE", // required * entityIdPrefix: "STRING_VALUE", * groupConfiguration: { // UpdateOpenIdConnectGroupConfiguration * groupClaim: "STRING_VALUE", // required * groupEntityType: "STRING_VALUE", // required * }, * tokenSelection: { // UpdateOpenIdConnectTokenSelection Union: only one key present * accessTokenOnly: { // UpdateOpenIdConnectAccessTokenConfiguration * principalIdClaim: "STRING_VALUE", * audiences: [ // Audiences * "STRING_VALUE", * ], * }, * identityTokenOnly: { // UpdateOpenIdConnectIdentityTokenConfiguration * principalIdClaim: "STRING_VALUE", * clientIds: [ * "STRING_VALUE", * ], * }, * }, * }, * }, * principalEntityType: "STRING_VALUE", * }; * const command = new UpdateIdentitySourceCommand(input); * const response = await client.send(command); * // { // UpdateIdentitySourceOutput * // createdDate: new Date("TIMESTAMP"), // required * // identitySourceId: "STRING_VALUE", // required * // lastUpdatedDate: new Date("TIMESTAMP"), // required * // policyStoreId: "STRING_VALUE", // required * // }; * * ``` * * @param UpdateIdentitySourceCommandInput - {@link UpdateIdentitySourceCommandInput} * @returns {@link UpdateIdentitySourceCommandOutput} * @see {@link UpdateIdentitySourceCommandInput} for command's `input` shape. * @see {@link UpdateIdentitySourceCommandOutput} for command's `response` shape. * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request failed because another request to modify a resource occurred at the same time.

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

The request failed because it references a resource that doesn't exist.

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

You don't have sufficient access to perform this action.

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

The request failed because of an internal error. Try your request again later

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

The request failed because it exceeded a throttling quota.

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

The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.

The possible reasons include the following:

* * @throws {@link VerifiedPermissionsServiceException} *

Base exception class for all service exceptions from VerifiedPermissions service.

* * * @example UpdateIdentitySource * ```javascript * // The following example updates the configuration of the specified identity source with a new configuration. * const input = { * identitySourceId: "ISEXAMPLEabcdefg111111", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a", * updateConfiguration: { * cognitoUserPoolConfiguration: { * clientIds: [ * "a1b2c3d4e5f6g7h8i9j0kalbmc" * ], * userPoolArn: "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5" * } * } * }; * const command = new UpdateIdentitySourceCommand(input); * const response = await client.send(command); * /* response is * { * createdDate: "2023-05-19T20:30:28.173926Z", * identitySourceId: "ISEXAMPLEabcdefg111111", * lastUpdatedDate: "2023-05-22T20:45:59.962216Z", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a" * } * *\/ * ``` * * @public */ export declare class UpdateIdentitySourceCommand extends UpdateIdentitySourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateIdentitySourceInput; output: UpdateIdentitySourceOutput; }; sdk: { input: UpdateIdentitySourceCommandInput; output: UpdateIdentitySourceCommandOutput; }; }; }