create_domain_association
¶
create_domain_association(
app_id: AppId,
domain_name: DomainName,
sub_domain_settings: SubDomainSettings,
*,
config_overrides: Optional[AmplifyClientConfig] = None,
enable_auto_sub_domain: Optional[EnableAutoSubDomain] = None,
auto_sub_domain_creation_patterns: Optional[AutoSubDomainCreationPatterns] = None,
auto_sub_domain_iam_role: Optional[AutoSubDomainIAMRole] = None,
certificate_settings: Optional[CertificateSettings] = None,
) -> CreateDomainAssociationResult
Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app
Parameters:
-
app_id(AppId) –The unique ID for an Amplify app.
-
domain_name(DomainName) –The domain name for the domain association.
-
enable_auto_sub_domain(Optional[EnableAutoSubDomain], default:None) –Enables the automated creation of subdomains for branches.
-
sub_domain_settings(SubDomainSettings) –The setting for the subdomain.
-
auto_sub_domain_creation_patterns(Optional[AutoSubDomainCreationPatterns], default:None) –Sets the branch patterns for automatic subdomain creation.
-
auto_sub_domain_iam_role(Optional[AutoSubDomainIAMRole], default:None) –The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
-
certificate_settings(Optional[CertificateSettings], default:None) –The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
Raises:
-
BadRequestException–A request contains unexpected data.
-
DependentServiceFailureException–An operation failed because a dependent service threw an exception.
-
InternalFailureException–The service failed to perform an operation due to an internal issue.
-
LimitExceededException–A resource could not be created because service quotas were exceeded.
-
NotFoundException–An entity was not found during an operation.
-
UnauthorizedException–An operation failed due to a lack of access.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplify/_services/amplify.py
739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 | |