Skip to content

BedrockAgentClient.create_vpc_configuration

rboto-bedrock-agent==0.4.0 · Service index · Types

Model summary (excerpt): Creates a VPC configuration that lets a knowledge base connect to a resource in your private VPC. This operation is asynchronous: it returns a vpcConfigurationId with status CREATING . Poll GetVpcConfiguration until the status becomes CREATED or CREATE_FAILED .

Install and imports

python -m pip install "rboto[bedrock-agent]==0.4.0"
from rboto import BedrockAgentClient
from collections.abc import Sequence
from rboto_bedrock_agent.types import (
    CreateVpcConfigurationOutput,
    VpcProtocol,
    VpcResolutionMode,
)

Signature

async def create_vpc_configuration(
    *,
    knowledge_base_id: str,
    vpc_id: str,
    subnet_ids: Sequence[str],
    resource_target: str,
    port: int,
    protocol: VpcProtocol,
    resolution_mode: VpcResolutionMode,
    client_token: str | None = None,
    host_header: str | None = None,
    tls_server_name: str | None = None,
    name: str | None = None,
    description: str | None = None,
) -> CreateVpcConfigurationOutput: ...

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)
knowledge_base_id Yes The unique identifier of the knowledge base to associate this VPC configuration with.
vpc_id Yes The identifier of the VPC that the knowledge base connects through to reach the resource.
subnet_ids Yes The subnets, in the VPC identified by vpcId , that the knowledge base uses to connect to the resource.
resource_target Yes The private IPv4 address or DNS name of the resource you want the knowledge base to reach. The target must be privately reachable from inside your VPC, such as an internal load balancer or a private IP. The following are not supported: Internet-facing endpoints Loopback addresses Link-local addresses Wildcard addresses Multicast addresses IPv6 literals
port Yes The port on which to reach the resource.
protocol Yes The protocol used to connect to the resource. Specify HTTP for plaintext or HTTPS for TLS. When you specify HTTPS , you must also provide tlsServerName .
resolution_mode Yes Controls how a domain-name resourceTarget is resolved. This applies only when the target is a domain name; it has no effect for IP-address targets, which have no name to resolve. In all cases the resolved address must be reachable from inside your VPC. Valid values: IN_VPC (default, recommended) – The target domain name is resolved privately, using the DNS resolvers of the VPC, such as private...
client_token No A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
host_header No An optional HTTP Host header value to send when invoking the resource. Set this only if your resource (or an upstream router or ingress) routes by the Host header and that host differs from the target. This setting is independent of tlsServerName .
tls_server_name No The expected TLS server name. The service matches this value against the Subject Alternative Names on your resource's TLS certificate during invocation. This field is required when protocol is HTTPS . Set it to a hostname on your certificate, such as app.internal.example.com . You can use a single leftmost wildcard, such as *.example.com . The value must be a hostname without a port.
name No An optional human-readable name for the VPC configuration. If you don't specify a name, the VPC configuration has no name.
description No An optional description of the VPC configuration. If you don't specify a description, the VPC configuration has no description.

Output

CreateVpcConfigurationOutput.

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
vpc_configuration_id str Always present —
status VpcConfigurationStatusOutput Always present VpcConfigurationStatusOutput

| 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.

CreateVpcConfigurationOutput, VpcProtocol, VpcResolutionMode

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_agent.exceptions:

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

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

Service guide · Pinned model