aws.apigatewayv2.DomainName
Explore with Pulumi AI
Manages an Amazon API Gateway Version 2 domain name. More information can be found in the Amazon API Gateway Developer Guide.
Note: This resource establishes ownership of and the TLS settings for a particular domain name. An API stage can be associated with the domain name using the
aws.apigatewayv2.ApiMapping
resource.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apigatewayv2.DomainName("example", {
domainName: "ws-api.example.com",
domainNameConfiguration: {
certificateArn: exampleAwsAcmCertificate.arn,
endpointType: "REGIONAL",
securityPolicy: "TLS_1_2",
},
});
import pulumi
import pulumi_aws as aws
example = aws.apigatewayv2.DomainName("example",
domain_name="ws-api.example.com",
domain_name_configuration={
"certificate_arn": example_aws_acm_certificate["arn"],
"endpoint_type": "REGIONAL",
"security_policy": "TLS_1_2",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigatewayv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigatewayv2.NewDomainName(ctx, "example", &apigatewayv2.DomainNameArgs{
DomainName: pulumi.String("ws-api.example.com"),
DomainNameConfiguration: &apigatewayv2.DomainNameDomainNameConfigurationArgs{
CertificateArn: pulumi.Any(exampleAwsAcmCertificate.Arn),
EndpointType: pulumi.String("REGIONAL"),
SecurityPolicy: pulumi.String("TLS_1_2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ApiGatewayV2.DomainName("example", new()
{
Domain = "ws-api.example.com",
DomainNameConfiguration = new Aws.ApiGatewayV2.Inputs.DomainNameDomainNameConfigurationArgs
{
CertificateArn = exampleAwsAcmCertificate.Arn,
EndpointType = "REGIONAL",
SecurityPolicy = "TLS_1_2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.DomainName;
import com.pulumi.aws.apigatewayv2.DomainNameArgs;
import com.pulumi.aws.apigatewayv2.inputs.DomainNameDomainNameConfigurationArgs;
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) {
var example = new DomainName("example", DomainNameArgs.builder()
.domainName("ws-api.example.com")
.domainNameConfiguration(DomainNameDomainNameConfigurationArgs.builder()
.certificateArn(exampleAwsAcmCertificate.arn())
.endpointType("REGIONAL")
.securityPolicy("TLS_1_2")
.build())
.build());
}
}
resources:
example:
type: aws:apigatewayv2:DomainName
properties:
domainName: ws-api.example.com
domainNameConfiguration:
certificateArn: ${exampleAwsAcmCertificate.arn}
endpointType: REGIONAL
securityPolicy: TLS_1_2
Associated Route 53 Resource Record
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apigatewayv2.DomainName("example", {
domainName: "http-api.example.com",
domainNameConfiguration: {
certificateArn: exampleAwsAcmCertificate.arn,
endpointType: "REGIONAL",
securityPolicy: "TLS_1_2",
},
});
const exampleRecord = new aws.route53.Record("example", {
name: example.domainName,
type: aws.route53.RecordType.A,
zoneId: exampleAwsRoute53Zone.zoneId,
aliases: [{
name: example.domainNameConfiguration.apply(domainNameConfiguration => domainNameConfiguration.targetDomainName),
zoneId: example.domainNameConfiguration.apply(domainNameConfiguration => domainNameConfiguration.hostedZoneId),
evaluateTargetHealth: false,
}],
});
import pulumi
import pulumi_aws as aws
example = aws.apigatewayv2.DomainName("example",
domain_name="http-api.example.com",
domain_name_configuration={
"certificate_arn": example_aws_acm_certificate["arn"],
"endpoint_type": "REGIONAL",
"security_policy": "TLS_1_2",
})
example_record = aws.route53.Record("example",
name=example.domain_name,
type=aws.route53.RecordType.A,
zone_id=example_aws_route53_zone["zoneId"],
aliases=[{
"name": example.domain_name_configuration.target_domain_name,
"zone_id": example.domain_name_configuration.hosted_zone_id,
"evaluate_target_health": False,
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apigatewayv2"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apigatewayv2.NewDomainName(ctx, "example", &apigatewayv2.DomainNameArgs{
DomainName: pulumi.String("http-api.example.com"),
DomainNameConfiguration: &apigatewayv2.DomainNameDomainNameConfigurationArgs{
CertificateArn: pulumi.Any(exampleAwsAcmCertificate.Arn),
EndpointType: pulumi.String("REGIONAL"),
SecurityPolicy: pulumi.String("TLS_1_2"),
},
})
if err != nil {
return err
}
_, err = route53.NewRecord(ctx, "example", &route53.RecordArgs{
Name: example.DomainName,
Type: pulumi.String(route53.RecordTypeA),
ZoneId: pulumi.Any(exampleAwsRoute53Zone.ZoneId),
Aliases: route53.RecordAliasArray{
&route53.RecordAliasArgs{
Name: example.DomainNameConfiguration.ApplyT(func(domainNameConfiguration apigatewayv2.DomainNameDomainNameConfiguration) (*string, error) {
return &domainNameConfiguration.TargetDomainName, nil
}).(pulumi.StringPtrOutput),
ZoneId: example.DomainNameConfiguration.ApplyT(func(domainNameConfiguration apigatewayv2.DomainNameDomainNameConfiguration) (*string, error) {
return &domainNameConfiguration.HostedZoneId, nil
}).(pulumi.StringPtrOutput),
EvaluateTargetHealth: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ApiGatewayV2.DomainName("example", new()
{
Domain = "http-api.example.com",
DomainNameConfiguration = new Aws.ApiGatewayV2.Inputs.DomainNameDomainNameConfigurationArgs
{
CertificateArn = exampleAwsAcmCertificate.Arn,
EndpointType = "REGIONAL",
SecurityPolicy = "TLS_1_2",
},
});
var exampleRecord = new Aws.Route53.Record("example", new()
{
Name = example.Domain,
Type = Aws.Route53.RecordType.A,
ZoneId = exampleAwsRoute53Zone.ZoneId,
Aliases = new[]
{
new Aws.Route53.Inputs.RecordAliasArgs
{
Name = example.DomainNameConfiguration.Apply(domainNameConfiguration => domainNameConfiguration.TargetDomainName),
ZoneId = example.DomainNameConfiguration.Apply(domainNameConfiguration => domainNameConfiguration.HostedZoneId),
EvaluateTargetHealth = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigatewayv2.DomainName;
import com.pulumi.aws.apigatewayv2.DomainNameArgs;
import com.pulumi.aws.apigatewayv2.inputs.DomainNameDomainNameConfigurationArgs;
import com.pulumi.aws.route53.Record;
import com.pulumi.aws.route53.RecordArgs;
import com.pulumi.aws.route53.inputs.RecordAliasArgs;
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) {
var example = new DomainName("example", DomainNameArgs.builder()
.domainName("http-api.example.com")
.domainNameConfiguration(DomainNameDomainNameConfigurationArgs.builder()
.certificateArn(exampleAwsAcmCertificate.arn())
.endpointType("REGIONAL")
.securityPolicy("TLS_1_2")
.build())
.build());
var exampleRecord = new Record("exampleRecord", RecordArgs.builder()
.name(example.domainName())
.type("A")
.zoneId(exampleAwsRoute53Zone.zoneId())
.aliases(RecordAliasArgs.builder()
.name(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.targetDomainName()))
.zoneId(example.domainNameConfiguration().applyValue(domainNameConfiguration -> domainNameConfiguration.hostedZoneId()))
.evaluateTargetHealth(false)
.build())
.build());
}
}
resources:
example:
type: aws:apigatewayv2:DomainName
properties:
domainName: http-api.example.com
domainNameConfiguration:
certificateArn: ${exampleAwsAcmCertificate.arn}
endpointType: REGIONAL
securityPolicy: TLS_1_2
exampleRecord:
type: aws:route53:Record
name: example
properties:
name: ${example.domainName}
type: A
zoneId: ${exampleAwsRoute53Zone.zoneId}
aliases:
- name: ${example.domainNameConfiguration.targetDomainName}
zoneId: ${example.domainNameConfiguration.hostedZoneId}
evaluateTargetHealth: false
Create DomainName Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainName(name: string, args: DomainNameArgs, opts?: CustomResourceOptions);
@overload
def DomainName(resource_name: str,
args: DomainNameArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DomainName(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
domain_name_configuration: Optional[DomainNameDomainNameConfigurationArgs] = None,
mutual_tls_authentication: Optional[DomainNameMutualTlsAuthenticationArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDomainName(ctx *Context, name string, args DomainNameArgs, opts ...ResourceOption) (*DomainName, error)
public DomainName(string name, DomainNameArgs args, CustomResourceOptions? opts = null)
public DomainName(String name, DomainNameArgs args)
public DomainName(String name, DomainNameArgs args, CustomResourceOptions options)
type: aws:apigatewayv2:DomainName
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 DomainNameArgs
- 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 DomainNameArgs
- 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 DomainNameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainNameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainNameArgs
- 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 awsDomainNameResource = new Aws.ApiGatewayV2.DomainName("awsDomainNameResource", new()
{
Domain = "string",
DomainNameConfiguration = new Aws.ApiGatewayV2.Inputs.DomainNameDomainNameConfigurationArgs
{
CertificateArn = "string",
EndpointType = "string",
SecurityPolicy = "string",
HostedZoneId = "string",
OwnershipVerificationCertificateArn = "string",
TargetDomainName = "string",
},
MutualTlsAuthentication = new Aws.ApiGatewayV2.Inputs.DomainNameMutualTlsAuthenticationArgs
{
TruststoreUri = "string",
TruststoreVersion = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := apigatewayv2.NewDomainName(ctx, "awsDomainNameResource", &apigatewayv2.DomainNameArgs{
DomainName: pulumi.String("string"),
DomainNameConfiguration: &apigatewayv2.DomainNameDomainNameConfigurationArgs{
CertificateArn: pulumi.String("string"),
EndpointType: pulumi.String("string"),
SecurityPolicy: pulumi.String("string"),
HostedZoneId: pulumi.String("string"),
OwnershipVerificationCertificateArn: pulumi.String("string"),
TargetDomainName: pulumi.String("string"),
},
MutualTlsAuthentication: &apigatewayv2.DomainNameMutualTlsAuthenticationArgs{
TruststoreUri: pulumi.String("string"),
TruststoreVersion: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var awsDomainNameResource = new DomainName("awsDomainNameResource", DomainNameArgs.builder()
.domainName("string")
.domainNameConfiguration(DomainNameDomainNameConfigurationArgs.builder()
.certificateArn("string")
.endpointType("string")
.securityPolicy("string")
.hostedZoneId("string")
.ownershipVerificationCertificateArn("string")
.targetDomainName("string")
.build())
.mutualTlsAuthentication(DomainNameMutualTlsAuthenticationArgs.builder()
.truststoreUri("string")
.truststoreVersion("string")
.build())
.tags(Map.of("string", "string"))
.build());
aws_domain_name_resource = aws.apigatewayv2.DomainName("awsDomainNameResource",
domain_name="string",
domain_name_configuration={
"certificateArn": "string",
"endpointType": "string",
"securityPolicy": "string",
"hostedZoneId": "string",
"ownershipVerificationCertificateArn": "string",
"targetDomainName": "string",
},
mutual_tls_authentication={
"truststoreUri": "string",
"truststoreVersion": "string",
},
tags={
"string": "string",
})
const awsDomainNameResource = new aws.apigatewayv2.DomainName("awsDomainNameResource", {
domainName: "string",
domainNameConfiguration: {
certificateArn: "string",
endpointType: "string",
securityPolicy: "string",
hostedZoneId: "string",
ownershipVerificationCertificateArn: "string",
targetDomainName: "string",
},
mutualTlsAuthentication: {
truststoreUri: "string",
truststoreVersion: "string",
},
tags: {
string: "string",
},
});
type: aws:apigatewayv2:DomainName
properties:
domainName: string
domainNameConfiguration:
certificateArn: string
endpointType: string
hostedZoneId: string
ownershipVerificationCertificateArn: string
securityPolicy: string
targetDomainName: string
mutualTlsAuthentication:
truststoreUri: string
truststoreVersion: string
tags:
string: string
DomainName Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DomainName resource accepts the following input properties:
- Domain string
- Domain name. Must be between 1 and 512 characters in length.
- Domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- Mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- Dictionary<string, string>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Domain
Name string - Domain name. Must be between 1 and 512 characters in length.
- Domain
Name DomainConfiguration Name Domain Name Configuration Args - Domain name configuration. See below.
- Mutual
Tls DomainAuthentication Name Mutual Tls Authentication Args - Mutual TLS authentication configuration for the domain name.
- map[string]string
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Name String - Domain name. Must be between 1 and 512 characters in length.
- domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- Map<String,String>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Name string - Domain name. Must be between 1 and 512 characters in length.
- domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- {[key: string]: string}
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain_
name str - Domain name. Must be between 1 and 512 characters in length.
- domain_
name_ Domainconfiguration Name Domain Name Configuration Args - Domain name configuration. See below.
- mutual_
tls_ Domainauthentication Name Mutual Tls Authentication Args - Mutual TLS authentication configuration for the domain name.
- Mapping[str, str]
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- domain
Name String - Domain name. Must be between 1 and 512 characters in length.
- domain
Name Property MapConfiguration - Domain name configuration. See below.
- mutual
Tls Property MapAuthentication - Mutual TLS authentication configuration for the domain name.
- Map<String>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainName resource produces the following output properties:
- Api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- Arn string
- ARN of the domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- Arn string
- ARN of the domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping StringSelection Expression - API mapping selection expression for the domain name.
- arn String
- ARN of the domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- arn string
- ARN of the domain name.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api_
mapping_ strselection_ expression - API mapping selection expression for the domain name.
- arn str
- ARN of the domain name.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping StringSelection Expression - API mapping selection expression for the domain name.
- arn String
- ARN of the domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing DomainName Resource
Get an existing DomainName 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?: DomainNameState, opts?: CustomResourceOptions): DomainName
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_mapping_selection_expression: Optional[str] = None,
arn: Optional[str] = None,
domain_name: Optional[str] = None,
domain_name_configuration: Optional[DomainNameDomainNameConfigurationArgs] = None,
mutual_tls_authentication: Optional[DomainNameMutualTlsAuthenticationArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> DomainName
func GetDomainName(ctx *Context, name string, id IDInput, state *DomainNameState, opts ...ResourceOption) (*DomainName, error)
public static DomainName Get(string name, Input<string> id, DomainNameState? state, CustomResourceOptions? opts = null)
public static DomainName get(String name, Output<String> id, DomainNameState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- Arn string
- ARN of the domain name.
- Domain string
- Domain name. Must be between 1 and 512 characters in length.
- Domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- Mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- Dictionary<string, string>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- Arn string
- ARN of the domain name.
- Domain
Name string - Domain name. Must be between 1 and 512 characters in length.
- Domain
Name DomainConfiguration Name Domain Name Configuration Args - Domain name configuration. See below.
- Mutual
Tls DomainAuthentication Name Mutual Tls Authentication Args - Mutual TLS authentication configuration for the domain name.
- map[string]string
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping StringSelection Expression - API mapping selection expression for the domain name.
- arn String
- ARN of the domain name.
- domain
Name String - Domain name. Must be between 1 and 512 characters in length.
- domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- Map<String,String>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping stringSelection Expression - API mapping selection expression for the domain name.
- arn string
- ARN of the domain name.
- domain
Name string - Domain name. Must be between 1 and 512 characters in length.
- domain
Name DomainConfiguration Name Domain Name Configuration - Domain name configuration. See below.
- mutual
Tls DomainAuthentication Name Mutual Tls Authentication - Mutual TLS authentication configuration for the domain name.
- {[key: string]: string}
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api_
mapping_ strselection_ expression - API mapping selection expression for the domain name.
- arn str
- ARN of the domain name.
- domain_
name str - Domain name. Must be between 1 and 512 characters in length.
- domain_
name_ Domainconfiguration Name Domain Name Configuration Args - Domain name configuration. See below.
- mutual_
tls_ Domainauthentication Name Mutual Tls Authentication Args - Mutual TLS authentication configuration for the domain name.
- Mapping[str, str]
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- api
Mapping StringSelection Expression - API mapping selection expression for the domain name.
- arn String
- ARN of the domain name.
- domain
Name String - Domain name. Must be between 1 and 512 characters in length.
- domain
Name Property MapConfiguration - Domain name configuration. See below.
- mutual
Tls Property MapAuthentication - Mutual TLS authentication configuration for the domain name.
- Map<String>
- Map of tags to assign to the domain name. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
DomainNameDomainNameConfiguration, DomainNameDomainNameConfigurationArgs
- Certificate
Arn string - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - Endpoint
Type string - Endpoint type. Valid values:
REGIONAL
. - Security
Policy string - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - Hosted
Zone stringId - Amazon Route 53 Hosted Zone ID of the endpoint.
- Ownership
Verification stringCertificate Arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - Target
Domain stringName - Target domain name.
- Certificate
Arn string - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - Endpoint
Type string - Endpoint type. Valid values:
REGIONAL
. - Security
Policy string - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - Hosted
Zone stringId - Amazon Route 53 Hosted Zone ID of the endpoint.
- Ownership
Verification stringCertificate Arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - Target
Domain stringName - Target domain name.
- certificate
Arn String - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - endpoint
Type String - Endpoint type. Valid values:
REGIONAL
. - security
Policy String - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - hosted
Zone StringId - Amazon Route 53 Hosted Zone ID of the endpoint.
- ownership
Verification StringCertificate Arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - target
Domain StringName - Target domain name.
- certificate
Arn string - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - endpoint
Type string - Endpoint type. Valid values:
REGIONAL
. - security
Policy string - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - hosted
Zone stringId - Amazon Route 53 Hosted Zone ID of the endpoint.
- ownership
Verification stringCertificate Arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - target
Domain stringName - Target domain name.
- certificate_
arn str - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - endpoint_
type str - Endpoint type. Valid values:
REGIONAL
. - security_
policy str - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - hosted_
zone_ strid - Amazon Route 53 Hosted Zone ID of the endpoint.
- ownership_
verification_ strcertificate_ arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - target_
domain_ strname - Target domain name.
- certificate
Arn String - ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the
aws.acm.Certificate
resource to configure an ACM certificate. - endpoint
Type String - Endpoint type. Valid values:
REGIONAL
. - security
Policy String - Transport Layer Security (TLS) version of the security policy for the domain name. Valid values:
TLS_1_2
. - hosted
Zone StringId - Amazon Route 53 Hosted Zone ID of the endpoint.
- ownership
Verification StringCertificate Arn - ARN of the AWS-issued certificate used to validate custom domain ownership (when
certificate_arn
is issued via an ACM Private CA ormutual_tls_authentication
is configured with an ACM-imported certificate.) - target
Domain StringName - Target domain name.
DomainNameMutualTlsAuthentication, DomainNameMutualTlsAuthenticationArgs
- Truststore
Uri string - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - Truststore
Version string - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
- Truststore
Uri string - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - Truststore
Version string - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
- truststore
Uri String - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststore
Version String - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
- truststore
Uri string - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststore
Version string - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
- truststore_
uri str - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststore_
version str - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
- truststore
Uri String - Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3://bucket-name/key-name
. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. - truststore
Version String - Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
Import
Using pulumi import
, import aws_apigatewayv2_domain_name
using the domain name. For example:
$ pulumi import aws:apigatewayv2/domainName:DomainName example ws-api.example.com
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.