Skip to content

BedrockAgentCoreControlClient.create_consent_portal

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new consent portal.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
    ConsentPortalIdpConfig,
    ConsentPortalSource,
    CreateConsentPortalOutput,
)

Signature

async def create_consent_portal(
    *,
    execution_role_arn: str,
    idp_config: ConsentPortalIdpConfig,
    name: str,
    sources: Sequence[ConsentPortalSource],
    description: str | None = None,
    tags: dict[str, str] | None = None,
) -> CreateConsentPortalOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
execution_role_arn Yes The Amazon Resource Name (ARN) of the IAM role that the consent portal assumes to access the resources defined in its sources.
idp_config Yes The identity provider configuration that the consent portal uses to authenticate end users.
name Yes The name of the consent portal. The name must be unique within your account.
sources Yes The resources served by the consent portal. Currently, we only support type agentcore-gateway .
description No The description of the consent portal.
tags No 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.

Output

CreateConsentPortalOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
sources list[ConsentPortalSourceOutput] Always present ConsentPortalSourceOutput
consent_portal_arn str Always present —
consent_portal_id str Always present —
created_at str Always present —
description str | None Always present —
execution_role_arn str Always present —
idp_config ConsentPortalIdpConfigOutput | None Always present ConsentPortalIdpConfigOutput
name str Always present —
portal_url str | None Always present —
status ConsentPortalStatusOutput Always present ConsentPortalStatusOutput
status_reason str | None Always present —
updated_at str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ConsentPortalIdpConfig, ConsentPortalSource, CreateConsentPortalOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore_control.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnauthorizedError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model