CertificateArgs

data class CertificateArgs(val domainName: Output<String>? = null, val name: Output<String>? = null, val subjectAlternativeNames: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CertificateArgs>

Provides a lightsail certificate.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Certificate;
import com.pulumi.aws.lightsail.CertificateArgs;
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 test = new Certificate("test", CertificateArgs.builder()
.domainName("testdomain.com")
.subjectAlternativeNames("www.testdomain.com")
.build());
}
}

Import

aws_lightsail_certificate can be imported using the certificate name, e.g.

$ pulumi import aws:lightsail/certificate:Certificate test CertificateName

Constructors

Link copied to clipboard
constructor(domainName: Output<String>? = null, name: Output<String>? = null, subjectAlternativeNames: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val domainName: Output<String>? = null

A domain name for which the certificate should be issued.

Link copied to clipboard
val name: Output<String>? = null

The name of the Lightsail load balancer.

Link copied to clipboard
val subjectAlternativeNames: Output<List<String>>? = null

Set of domains that should be SANs in the issued certificate. domain_name attribute is automatically added as a Subject Alternative Name.

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

A map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs