create_domain_name
¶
create_domain_name(
domain_name: String,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
certificate_name: Optional[String] = None,
certificate_body: Optional[String] = None,
certificate_private_key: Optional[String] = None,
certificate_chain: Optional[String] = None,
certificate_arn: Optional[String] = None,
regional_certificate_name: Optional[String] = None,
regional_certificate_arn: Optional[String] = None,
endpoint_configuration: Optional[EndpointConfiguration] = None,
tags: Optional[MapOfStringToString] = None,
security_policy: Optional[SecurityPolicy] = None,
endpoint_access_mode: Optional[EndpointAccessMode] = None,
mutual_tls_authentication: Optional[MutualTlsAuthenticationInput] = None,
ownership_verification_certificate_arn: Optional[String] = None,
policy: Optional[String] = None,
routing_mode: Optional[RoutingMode] = None,
) -> DomainName
Creates a new domain name.
Parameters:
-
domain_name(String) –The name of the DomainName resource.
-
certificate_name(Optional[String], default:None) –The user-friendly name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.
-
certificate_body(Optional[String], default:None) –[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(Optional[String], default:None) –[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
-
certificate_chain(Optional[String], default:None) –[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 authority. Do not include any intermediaries that are not in the chain of trust path.
-
certificate_arn(Optional[String], default:None) –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(Optional[String], default:None) –The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
-
regional_certificate_arn(Optional[String], default:None) –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(Optional[EndpointConfiguration], default:None) –The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name.
-
tags(Optional[MapOfStringToString], default:None) –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(Optional[SecurityPolicy], default:None) –The Transport Layer Security (TLS) version + cipher suite for this DomainName.
-
endpoint_access_mode(Optional[EndpointAccessMode], default:None) –The endpoint access mode of the DomainName. Only available for DomainNames that use security policies that start with
SecurityPolicy_. -
ownership_verification_certificate_arn(Optional[String], default:None) –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(Optional[String], default:None) –A stringified JSON policy document that applies to the
execute-apiservice for this DomainName regardless of the caller and Method configuration. Supported only for private custom domain names. -
routing_mode(Optional[RoutingMode], default:None) –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.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/api_gateway.py
804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 | |