DomainConfiguration

class DomainConfiguration : KotlinCustomResource

Creates and manages an AWS IoT domain configuration.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const iot = new aws.iot.DomainConfiguration("iot", {
name: "iot-",
domainName: "iot.example.com",
serviceType: "DATA",
serverCertificateArns: [cert.arn],
});
import pulumi
import pulumi_aws as aws
iot = aws.iot.DomainConfiguration("iot",
name="iot-",
domain_name="iot.example.com",
service_type="DATA",
server_certificate_arns=[cert["arn"]])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var iot = new Aws.Iot.DomainConfiguration("iot", new()
{
Name = "iot-",
DomainName = "iot.example.com",
ServiceType = "DATA",
ServerCertificateArns = new[]
{
cert.Arn,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.NewDomainConfiguration(ctx, "iot", &iot.DomainConfigurationArgs{
Name: pulumi.String("iot-"),
DomainName: pulumi.String("iot.example.com"),
ServiceType: pulumi.String("DATA"),
ServerCertificateArns: pulumi.StringArray{
cert.Arn,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iot.DomainConfiguration;
import com.pulumi.aws.iot.DomainConfigurationArgs;
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 iot = new DomainConfiguration("iot", DomainConfigurationArgs.builder()
.name("iot-")
.domainName("iot.example.com")
.serviceType("DATA")
.serverCertificateArns(cert.arn())
.build());
}
}
resources:
iot:
type: aws:iot:DomainConfiguration
properties:
name: iot-
domainName: iot.example.com
serviceType: DATA
serverCertificateArns:
- ${cert.arn}

Import

Using pulumi import, import domain configurations using the name. For example:

$ pulumi import aws:iot/domainConfiguration:DomainConfiguration example example

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the domain configuration.

Link copied to clipboard

An object that specifies the authorization service for a domain. See the authorizer_config Block below for details.

Link copied to clipboard
val domainName: Output<String>

Fully-qualified domain name.

Link copied to clipboard
val domainType: Output<String>

The type of the domain.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the domain configuration. This value must be unique to a region.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ARNs of the certificates that IoT passes to the device during the TLS handshake. Currently you can specify only one certificate ARN. This value is not required for Amazon Web Services-managed domains. When using a custom domain_name, the cert must include it.

Link copied to clipboard
val serviceType: Output<String>?

The type of service delivered by the endpoint. Note: Amazon Web Services IoT Core currently supports only the DATA service type.

Link copied to clipboard
val status: Output<String>?

The status to which the domain configuration should be set. Valid values are ENABLED and DISABLED.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of tags to assign to this resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

An object that specifies the TLS configuration for a domain. See the tls_config Block below for details.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The certificate used to validate the server certificate and prove domain name ownership. This certificate must be signed by a public certificate authority. This value is not required for Amazon Web Services-managed domains.