Skip to content

APIGatewayClient.create_domain_name

rboto-api-gateway==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new domain name.

Install and imports

python -m pip install "rboto[api-gateway]==0.4.0"
from rboto import APIGatewayClient
from rboto_api_gateway.types import (
    CreateDomainNameOutput,
    EndpointAccessMode,
    EndpointConfiguration,
    MutualTlsAuthenticationInput,
    RoutingMode,
    SecurityPolicy,
)

Signature

async def create_domain_name(
    *,
    domain_name: str,
    certificate_name: str | None = None,
    certificate_body: str | None = None,
    certificate_private_key: str | None = None,
    certificate_chain: str | None = None,
    certificate_arn: str | None = None,
    regional_certificate_name: str | None = None,
    regional_certificate_arn: str | None = None,
    endpoint_configuration: EndpointConfiguration | None = None,
    tags: dict[str, str] | None = None,
    security_policy: SecurityPolicy | None = None,
    endpoint_access_mode: EndpointAccessMode | None = None,
    mutual_tls_authentication: MutualTlsAuthenticationInput | None = None,
    ownership_verification_certificate_arn: str | None = None,
    policy: str | None = None,
    routing_mode: RoutingMode | None = None,
) -> CreateDomainNameOutput: ...

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 Yes The name of the DomainName resource.
certificate_name No The user-friendly name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.
certificate_body No [Deprecated] The body of the server certificate that will be used by edge-optimized endpoint or private endpoint for this domain name provided by your certificate authority.
certificate_private_key No [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
certificate_chain No [Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate...
certificate_arn No The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. Certificate Manager is the only supported source.
regional_certificate_name No The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
regional_certificate_arn No The reference to an Amazon Web Services-managed certificate that will be used by regional endpoint for this domain name. Certificate Manager is the only supported source.
endpoint_configuration No The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name.
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.
security_policy No The Transport Layer Security (TLS) version + cipher suite for this DomainName.
endpoint_access_mode No The endpoint access mode of the DomainName. Only available for DomainNames that use security policies that start with SecurityPolicy_ .
mutual_tls_authentication No
ownership_verification_certificate_arn No The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
policy No A stringified JSON policy document that applies to the execute-api service for this DomainName regardless of the caller and Method configuration. Supported only for private custom domain names.
routing_mode No The routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.

Output

CreateDomainNameOutput.

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 str | None Always present —
domain_name_id str | None Always present —
domain_name_arn str | None Always present —
certificate_name str | None Always present —
certificate_arn str | None Always present —
certificate_upload_date str | None Always present —
regional_domain_name str | None Always present —
regional_hosted_zone_id str | None Always present —
regional_certificate_name str | None Always present —
regional_certificate_arn str | None Always present —
distribution_domain_name str | None Always present —
distribution_hosted_zone_id str | None Always present —
endpoint_configuration EndpointConfigurationOutput | None Always present EndpointConfigurationOutput
domain_name_status DomainNameStatusOutput | None Always present DomainNameStatusOutput
domain_name_status_message str | None Always present —
security_policy SecurityPolicyOutput | None Always present SecurityPolicyOutput
endpoint_access_mode EndpointAccessModeOutput | None Always present EndpointAccessModeOutput
tags dict[str, str] | None Always present —
mutual_tls_authentication MutualTlsAuthenticationOutput | None Always present MutualTlsAuthenticationOutput
ownership_verification_certificate_arn str | None Always present —
management_policy str | None Always present —
policy str | None Always present —
routing_mode RoutingModeOutput | None Always present RoutingModeOutput

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

CreateDomainNameOutput, EndpointAccessMode, EndpointConfiguration, MutualTlsAuthenticationInput, RoutingMode, SecurityPolicy

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.

Service guide · Pinned model