create_consent_portal
¶
create_consent_portal(
execution_role_arn: ExecutionRoleArnType,
idp_config: ConsentPortalIdpConfig,
name: ConsentPortalNameType,
sources: ConsentPortalSources,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = 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/bedrock_agent_core_control.py
4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 | |