ServerCertificateArgs

data class ServerCertificateArgs(val alicloudCertifacteId: Output<String>? = null, val alicloudCertifacteName: Output<String>? = null, val alicloudCertificateId: Output<String>? = null, val alicloudCertificateName: Output<String>? = null, val alicloudCertificateRegionId: Output<String>? = null, val name: Output<String>? = null, val privateKey: Output<String>? = null, val resourceGroupId: Output<String>? = null, val serverCertificate: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<ServerCertificateArgs>

A Load Balancer Server Certificate is an ssl Certificate used by the listener of the protocol https. For information about slb and how to use it, see What is Server Load Balancer. For information about Server Certificate and how to use it, see Configure Server Certificate.

Example Usage

  • using server_certificate/private content as string example

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.ServerCertificate;
import com.pulumi.alicloud.slb.ServerCertificateArgs;
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 foo = new ServerCertificate("foo", ServerCertificateArgs.builder()
.privateKey("""
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDO0knDrlNdiys******ErVpjsckAaOW/JDG5PCSwkaMxk=
-----END RSA PRIVATE KEY-----
""")
.serverCertificate("""
-----BEGIN CERTIFICATE-----
MIIDRjCCAq+gAwIBAgI+OuMs******XTtI90EAxEG/bJJyOm5LqoiA=
-----END CERTIFICATE-----
""")
.build());
}
}

Import

Server Load balancer Server Certificate can be imported using the id, e.g.

$ pulumi import alicloud:slb/serverCertificate:ServerCertificate example abc123456

Constructors

Link copied to clipboard
fun ServerCertificateArgs(alicloudCertifacteId: Output<String>? = null, alicloudCertifacteName: Output<String>? = null, alicloudCertificateId: Output<String>? = null, alicloudCertificateName: Output<String>? = null, alicloudCertificateRegionId: Output<String>? = null, name: Output<String>? = null, privateKey: Output<String>? = null, resourceGroupId: Output<String>? = null, serverCertificate: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

Link copied to clipboard
val alicloudCertifacteId: Output<String>? = null
Link copied to clipboard
val alicloudCertifacteName: Output<String>? = null
Link copied to clipboard
val alicloudCertificateId: Output<String>? = null

an id of server certificate ssued/proxied by alibaba cloud. but it is not supported on the international site of alibaba cloud now.

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

the name of the certificate specified by alicloud_certificate_id.but it is not supported on the international site of alibaba cloud now.

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

the region of the certificate specified by alicloud_certificate_id. but it is not supported on the international site of alibaba cloud now.

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

Name of the Server Certificate.

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

the content of privat key of the ssl certificate specified by server_certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

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

The Id of resource group which the slb server certificate belongs.

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

the content of the ssl certificate. where alicloud_certificate_id is null, it is required, otherwise it is ignored.

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

A mapping of tags to assign to the resource.