create_consent_portal
async
¶
create_consent_portal(
execution_role_arn: ExecutionRoleArnType,
idp_config: ConsentPortalIdpConfig,
name: ConsentPortalNameType,
sources: ConsentPortalSources,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
description: Optional[ConsentPortalDescriptionType] = None,
tags: Optional[TagsMap] = None,
) -> CreateConsentPortalResponse
Creates a new consent portal.
Parameters:
-
execution_role_arn(ExecutionRoleArnType) –The Amazon Resource Name (ARN) of the IAM role that the consent portal assumes to access the resources defined in its sources.
-
idp_config(ConsentPortalIdpConfig) –The identity provider configuration that the consent portal uses to authenticate end users.
-
name(ConsentPortalNameType) –The name of the consent portal. The name must be unique within your account.
-
sources(ConsentPortalSources) –The resources served by the consent portal. Currently, we only support type
agentcore-gateway. -
description(Optional[ConsentPortalDescriptionType], default:None) –The description of the consent portal.
-
tags(Optional[TagsMap], default:None) –A map of tag keys and values to assign to the consent portal. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
UnauthorizedException–This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/async_bedrock_agent_core_control.py
4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 | |