LbCertificateAttachment

class LbCertificateAttachment : KotlinCustomResource

Attaches a Lightsail Load Balancer Certificate to a Lightsail Load Balancer.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Lb;
import com.pulumi.aws.lightsail.LbArgs;
import com.pulumi.aws.lightsail.LbCertificate;
import com.pulumi.aws.lightsail.LbCertificateArgs;
import com.pulumi.aws.lightsail.LbCertificateAttachment;
import com.pulumi.aws.lightsail.LbCertificateAttachmentArgs;
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 testLb = new Lb("testLb", LbArgs.builder()
.healthCheckPath("/")
.instancePort("80")
.tags(Map.of("foo", "bar"))
.build());
var testLbCertificate = new LbCertificate("testLbCertificate", LbCertificateArgs.builder()
.lbName(testLb.id())
.domainName("test.com")
.build());
var testLbCertificateAttachment = new LbCertificateAttachment("testLbCertificateAttachment", LbCertificateAttachmentArgs.builder()
.lbName(testLb.name())
.certificateName(testLbCertificate.name())
.build());
}
}

Import

aws_lightsail_lb_certificate_attachment can be imported by using the name attribute, e.g.,

$ pulumi import aws:lightsail/lbCertificateAttachment:LbCertificateAttachment test example-load-balancer,example-certificate

Properties

Link copied to clipboard
val certificateName: Output<String>

The name of your SSL/TLS certificate.

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

The name of the load balancer to which you want to associate the SSL/TLS certificate.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>