AWS Native is in preview. AWS Classic is fully supported.
aws-native.amplify.getDomain
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.
Using getDomain
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>
function getDomainOutput(args: GetDomainOutputArgs, opts?: InvokeOptions): Output<GetDomainResult>
def get_domain(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainResult
def get_domain_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainResult]
func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)
func LookupDomainOutput(ctx *Context, args *LookupDomainOutputArgs, opts ...InvokeOption) LookupDomainResultOutput
> Note: This function is named LookupDomain
in the Go SDK.
public static class GetDomain
{
public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
public static Output<GetDomainResult> Invoke(GetDomainInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:amplify:getDomain
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- ARN for the Domain Association.
- Arn string
- ARN for the Domain Association.
- arn String
- ARN for the Domain Association.
- arn string
- ARN for the Domain Association.
- arn str
- ARN for the Domain Association.
- arn String
- ARN for the Domain Association.
getDomain Result
The following output properties are available:
- Arn string
- ARN for the Domain Association.
- Auto
Sub List<string>Domain Creation Patterns - Sets the branch patterns for automatic subdomain creation.
- Auto
Sub stringDomain Iam Role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- Certificate
Pulumi.
Aws Native. Amplify. Outputs. Domain Certificate - Certificate
Record string - DNS Record for certificate verification.
- Domain
Status string - Status for the Domain Association.
- Enable
Auto boolSub Domain - Enables the automated creation of subdomains for branches.
- Status
Reason string - Reason for the current status of the domain.
- Sub
Domain List<Pulumi.Settings Aws Native. Amplify. Outputs. Domain Sub Domain Setting> - The setting for the subdomain.
- Update
Status string - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
- Arn string
- ARN for the Domain Association.
- Auto
Sub []stringDomain Creation Patterns - Sets the branch patterns for automatic subdomain creation.
- Auto
Sub stringDomain Iam Role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- Certificate
Domain
Certificate - Certificate
Record string - DNS Record for certificate verification.
- Domain
Status string - Status for the Domain Association.
- Enable
Auto boolSub Domain - Enables the automated creation of subdomains for branches.
- Status
Reason string - Reason for the current status of the domain.
- Sub
Domain []DomainSettings Sub Domain Setting - The setting for the subdomain.
- Update
Status string - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
- arn String
- ARN for the Domain Association.
- auto
Sub List<String>Domain Creation Patterns - Sets the branch patterns for automatic subdomain creation.
- auto
Sub StringDomain Iam Role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- certificate
Domain
Certificate - certificate
Record String - DNS Record for certificate verification.
- domain
Status String - Status for the Domain Association.
- enable
Auto BooleanSub Domain - Enables the automated creation of subdomains for branches.
- status
Reason String - Reason for the current status of the domain.
- sub
Domain List<DomainSettings Sub Domain Setting> - The setting for the subdomain.
- update
Status String - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
- arn string
- ARN for the Domain Association.
- auto
Sub string[]Domain Creation Patterns - Sets the branch patterns for automatic subdomain creation.
- auto
Sub stringDomain Iam Role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- certificate
Domain
Certificate - certificate
Record string - DNS Record for certificate verification.
- domain
Status string - Status for the Domain Association.
- enable
Auto booleanSub Domain - Enables the automated creation of subdomains for branches.
- status
Reason string - Reason for the current status of the domain.
- sub
Domain DomainSettings Sub Domain Setting[] - The setting for the subdomain.
- update
Status string - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
- arn str
- ARN for the Domain Association.
- auto_
sub_ Sequence[str]domain_ creation_ patterns - Sets the branch patterns for automatic subdomain creation.
- auto_
sub_ strdomain_ iam_ role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- certificate
Domain
Certificate - certificate_
record str - DNS Record for certificate verification.
- domain_
status str - Status for the Domain Association.
- enable_
auto_ boolsub_ domain - Enables the automated creation of subdomains for branches.
- status_
reason str - Reason for the current status of the domain.
- sub_
domain_ Sequence[Domainsettings Sub Domain Setting] - The setting for the subdomain.
- update_
status str - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
- arn String
- ARN for the Domain Association.
- auto
Sub List<String>Domain Creation Patterns - Sets the branch patterns for automatic subdomain creation.
- auto
Sub StringDomain Iam Role - The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
- certificate Property Map
- certificate
Record String - DNS Record for certificate verification.
- domain
Status String - Status for the Domain Association.
- enable
Auto BooleanSub Domain - Enables the automated creation of subdomains for branches.
- status
Reason String - Reason for the current status of the domain.
- sub
Domain List<Property Map>Settings - The setting for the subdomain.
- update
Status String - The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
Supporting Types
DomainCertificate
- Certificate
Arn string The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- Certificate
Type Pulumi.Aws Native. Amplify. Domain Certificate Certificate Type The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- Certificate
Verification stringDns Record - The DNS record for certificate verification.
- Certificate
Arn string The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- Certificate
Type DomainCertificate Certificate Type The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- Certificate
Verification stringDns Record - The DNS record for certificate verification.
- certificate
Arn String The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- certificate
Type DomainCertificate Certificate Type The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- certificate
Verification StringDns Record - The DNS record for certificate verification.
- certificate
Arn string The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- certificate
Type DomainCertificate Certificate Type The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- certificate
Verification stringDns Record - The DNS record for certificate verification.
- certificate_
arn str The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- certificate_
type DomainCertificate Certificate Type The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- certificate_
verification_ strdns_ record - The DNS record for certificate verification.
- certificate
Arn String The Amazon resource name (ARN) for a custom certificate that you have already added to AWS Certificate Manager in your AWS account .
This field is required only when the certificate type is
CUSTOM
.- certificate
Type "AMPLIFY_MANAGED" | "CUSTOM" The type of SSL/TLS certificate that you want to use.
Specify
AMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- certificate
Verification StringDns Record - The DNS record for certificate verification.
DomainCertificateCertificateType
DomainSubDomainSetting
- Branch
Name string The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- Prefix string
- The prefix setting for the subdomain.
- Branch
Name string The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- Prefix string
- The prefix setting for the subdomain.
- branch
Name String The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- prefix String
- The prefix setting for the subdomain.
- branch
Name string The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- prefix string
- The prefix setting for the subdomain.
- branch_
name str The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- prefix str
- The prefix setting for the subdomain.
- branch
Name String The branch name setting for the subdomain.
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern: (?s).+
- prefix String
- The prefix setting for the subdomain.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.