APIGatewayClient.create_domain_name_access_association
rboto-api-gateway==0.4.0 · Service index · Types
Model summary (excerpt): Creates a domain name access association resource between an access association source and a private custom domain name.
Install and imports
from rboto import APIGatewayClient
from rboto_api_gateway.types import (
AccessAssociationSourceType,
CreateDomainNameAccessAssociationOutput,
)
Signature
async def create_domain_name_access_association(
*,
domain_name_arn: str,
access_association_source_type: AccessAssociationSourceType,
access_association_source: str,
tags: dict[str, str] | None = None,
) -> CreateDomainNameAccessAssociationOutput: ...
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) |
|---|---|---|
domain_name_arn |
Yes | The ARN of the domain name. |
access_association_source_type |
Yes | The type of the domain name access association source. |
access_association_source |
Yes | The identifier of the domain name access association source. For a VPCE, the value is the VPC endpoint ID. |
tags |
No | The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws: . The tag value can be up to 256 characters. |
Output
CreateDomainNameAccessAssociationOutput.
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 |
|---|---|---|---|
domain_name_access_association_arn |
str | None |
Always present | — |
domain_name_arn |
str | None |
Always present | — |
access_association_source_type |
AccessAssociationSourceTypeOutput | None |
Always present | AccessAssociationSourceTypeOutput |
access_association_source |
str | None |
Always present | — |
tags |
dict[str, str] | None |
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.
Related types
AccessAssociationSourceType, CreateDomainNameAccessAssociationOutput
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_api_gateway.exceptions:
BadRequestError, ConflictError, LimitExceededError, TooManyRequestsError, UnauthorizedError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.