Class Domain
Creates a domain resource for the specified domain (e.g., example.com). You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain.
Note: Lightsail is currently only supported in a limited number of AWS Regions, please see "Regions and Availability Zones in Amazon Lightsail" for more details
Example Usage, creating a new domain
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var domainTest = new Aws.LightSail.Domain("domainTest", new Aws.LightSail.DomainArgs
{
DomainName = "mydomain.com",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.LightSail
Assembly: Pulumi.Aws.dll
Syntax
public class Domain : CustomResource
Constructors
View SourceDomain(String, DomainArgs, CustomResourceOptions)
Create a Domain resource with the given unique name, arguments, and options.
Declaration
public Domain(string name, DomainArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DomainArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the Lightsail domain
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DomainName
The name of the Lightsail domain to manage
Declaration
public Output<string> DomainName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, DomainState, CustomResourceOptions)
Get an existing Domain resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Domain Get(string name, Input<string> id, DomainState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| DomainState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Domain |