propelauth.CustomDomain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as propelauth from "@pulumi/propelauth";
// Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
// You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
const myCustomDomain = new propelauth.CustomDomain("myCustomDomain", {
domain: "example.com",
environment: "Prod",
subdomain: "app",
});
import pulumi
import pulumi_propelauth as propelauth
# Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
# You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
my_custom_domain = propelauth.CustomDomain("myCustomDomain",
domain="example.com",
environment="Prod",
subdomain="app")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/propelauth/propelauth"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
// You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
_, err := propelauth.NewCustomDomain(ctx, "myCustomDomain", &propelauth.CustomDomainArgs{
Domain: pulumi.String("example.com"),
Environment: pulumi.String("Prod"),
Subdomain: pulumi.String("app"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Propelauth = Pulumi.Propelauth;
return await Deployment.RunAsync(() =>
{
// Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
// You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
var myCustomDomain = new Propelauth.CustomDomain("myCustomDomain", new()
{
Domain = "example.com",
Environment = "Prod",
Subdomain = "app",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.propelauth.CustomDomain;
import com.pulumi.propelauth.CustomDomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
// You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
var myCustomDomain = new CustomDomain("myCustomDomain", CustomDomainArgs.builder()
.domain("example.com")
.environment("Prod")
.subdomain("app")
.build());
}
}
resources:
# Initialize a custom domain with your PropelAuth environment. This does not verify the domain:
# // You will need a DNS provider and the `propelauth_custom_domain_verification` resource to verify the domain.
myCustomDomain:
type: propelauth:CustomDomain
properties:
domain: example.com
environment: Prod
subdomain: app
Create CustomDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomDomain(name: string, args: CustomDomainArgs, opts?: CustomResourceOptions);
@overload
def CustomDomain(resource_name: str,
args: CustomDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
environment: Optional[str] = None,
subdomain: Optional[str] = None)
func NewCustomDomain(ctx *Context, name string, args CustomDomainArgs, opts ...ResourceOption) (*CustomDomain, error)
public CustomDomain(string name, CustomDomainArgs args, CustomResourceOptions? opts = null)
public CustomDomain(String name, CustomDomainArgs args)
public CustomDomain(String name, CustomDomainArgs args, CustomResourceOptions options)
type: propelauth:CustomDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var customDomainResource = new Propelauth.CustomDomain("customDomainResource", new()
{
Domain = "string",
Environment = "string",
Subdomain = "string",
});
example, err := propelauth.NewCustomDomain(ctx, "customDomainResource", &propelauth.CustomDomainArgs{
Domain: pulumi.String("string"),
Environment: pulumi.String("string"),
Subdomain: pulumi.String("string"),
})
var customDomainResource = new CustomDomain("customDomainResource", CustomDomainArgs.builder()
.domain("string")
.environment("string")
.subdomain("string")
.build());
custom_domain_resource = propelauth.CustomDomain("customDomainResource",
domain="string",
environment="string",
subdomain="string")
const customDomainResource = new propelauth.CustomDomain("customDomainResource", {
domain: "string",
environment: "string",
subdomain: "string",
});
type: propelauth:CustomDomain
properties:
domain: string
environment: string
subdomain: string
CustomDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomDomain resource accepts the following input properties:
- Domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - Environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - Subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
- Domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - Environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - Subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
- domain String
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment String
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain String
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
- domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
- domain str
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment str
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain str
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
- domain String
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment String
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain String
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomDomain resource produces the following output properties:
- Cname
Record stringKey - The CNAME record key for the custom domain.
- Cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Cname
Record stringValue - The CNAME record value for the custom domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Txt
Record stringKey - The TXT record key for the custom domain.
- Txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Txt
Record stringValue - The TXT record value for the custom domain.
- Cname
Record stringKey - The CNAME record key for the custom domain.
- Cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Cname
Record stringValue - The CNAME record value for the custom domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Txt
Record stringKey - The TXT record key for the custom domain.
- Txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Txt
Record stringValue - The TXT record value for the custom domain.
- cname
Record StringKey - The CNAME record key for the custom domain.
- cname
Record StringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record StringValue - The CNAME record value for the custom domain.
- id String
- The provider-assigned unique ID for this managed resource.
- txt
Record StringKey - The TXT record key for the custom domain.
- txt
Record StringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record StringValue - The TXT record value for the custom domain.
- cname
Record stringKey - The CNAME record key for the custom domain.
- cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record stringValue - The CNAME record value for the custom domain.
- id string
- The provider-assigned unique ID for this managed resource.
- txt
Record stringKey - The TXT record key for the custom domain.
- txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record stringValue - The TXT record value for the custom domain.
- cname_
record_ strkey - The CNAME record key for the custom domain.
- cname_
record_ strkey_ without_ domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname_
record_ strvalue - The CNAME record value for the custom domain.
- id str
- The provider-assigned unique ID for this managed resource.
- txt_
record_ strkey - The TXT record key for the custom domain.
- txt_
record_ strkey_ without_ domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt_
record_ strvalue - The TXT record value for the custom domain.
- cname
Record StringKey - The CNAME record key for the custom domain.
- cname
Record StringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record StringValue - The CNAME record value for the custom domain.
- id String
- The provider-assigned unique ID for this managed resource.
- txt
Record StringKey - The TXT record key for the custom domain.
- txt
Record StringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record StringValue - The TXT record value for the custom domain.
Look up Existing CustomDomain Resource
Get an existing CustomDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CustomDomainState, opts?: CustomResourceOptions): CustomDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cname_record_key: Optional[str] = None,
cname_record_key_without_domain: Optional[str] = None,
cname_record_value: Optional[str] = None,
domain: Optional[str] = None,
environment: Optional[str] = None,
subdomain: Optional[str] = None,
txt_record_key: Optional[str] = None,
txt_record_key_without_domain: Optional[str] = None,
txt_record_value: Optional[str] = None) -> CustomDomain
func GetCustomDomain(ctx *Context, name string, id IDInput, state *CustomDomainState, opts ...ResourceOption) (*CustomDomain, error)
public static CustomDomain Get(string name, Input<string> id, CustomDomainState? state, CustomResourceOptions? opts = null)
public static CustomDomain get(String name, Output<String> id, CustomDomainState state, CustomResourceOptions options)
resources: _: type: propelauth:CustomDomain get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cname
Record stringKey - The CNAME record key for the custom domain.
- Cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Cname
Record stringValue - The CNAME record value for the custom domain.
- Domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - Environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - Subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - Txt
Record stringKey - The TXT record key for the custom domain.
- Txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Txt
Record stringValue - The TXT record value for the custom domain.
- Cname
Record stringKey - The CNAME record key for the custom domain.
- Cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Cname
Record stringValue - The CNAME record value for the custom domain.
- Domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - Environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - Subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - Txt
Record stringKey - The TXT record key for the custom domain.
- Txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- Txt
Record stringValue - The TXT record value for the custom domain.
- cname
Record StringKey - The CNAME record key for the custom domain.
- cname
Record StringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record StringValue - The CNAME record value for the custom domain.
- domain String
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment String
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain String
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - txt
Record StringKey - The TXT record key for the custom domain.
- txt
Record StringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record StringValue - The TXT record value for the custom domain.
- cname
Record stringKey - The CNAME record key for the custom domain.
- cname
Record stringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record stringValue - The CNAME record value for the custom domain.
- domain string
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment string
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain string
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - txt
Record stringKey - The TXT record key for the custom domain.
- txt
Record stringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record stringValue - The TXT record value for the custom domain.
- cname_
record_ strkey - The CNAME record key for the custom domain.
- cname_
record_ strkey_ without_ domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname_
record_ strvalue - The CNAME record value for the custom domain.
- domain str
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment str
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain str
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - txt_
record_ strkey - The TXT record key for the custom domain.
- txt_
record_ strkey_ without_ domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt_
record_ strvalue - The TXT record value for the custom domain.
- cname
Record StringKey - The CNAME record key for the custom domain.
- cname
Record StringKey Without Domain - The CNAME record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- cname
Record StringValue - The CNAME record value for the custom domain.
- domain String
- The domain name for the custom domain. Your resulting auth domain will be
auth.<domain>
. You can also specify a subdomain like prod.example.com which will result in auth.prod.example.com - environment String
- The environment for which you are configuring the custom domain. Accepted values are
Staging
andProd
. Note: Staging environments are only available on some pricing plans. - subdomain String
- The subdomain for the custom domain. This is optional, but recommended, as it will allow PropelAuth to automatically redirect users to your application after they login. Your resulting auth domain will be
auth.<subdomain>.<domain>
. The value must not begin or end with a period. - txt
Record StringKey - The TXT record key for the custom domain.
- txt
Record StringKey Without Domain - The TXT record key for the custom domain without the domain (e.g. just auth instead of auth.example.com) .
- txt
Record StringValue - The TXT record value for the custom domain.
Import
Custom domains can be imported by which environment they are in
$ pulumi import propelauth:index/customDomain:CustomDomain example Prod
or
$ pulumi import propelauth:index/customDomain:CustomDomain example Staging
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- propelauth propelauth/terraform-provider-propelauth
- License
- Notes
- This Pulumi package is based on the
propelauth
Terraform Provider.