ServiceCertificate

Provides a SSL Certificates Certificate resource. For information about SSL Certificates Certificate and how to use it, see What is Certificate.

NOTE: Available in v1.129.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cas.ServiceCertificate;
import com.pulumi.alicloud.cas.ServiceCertificateArgs;
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 ServiceCertificate("example", ServiceCertificateArgs.builder()
.certificateName("test")
.cert(Files.readString(Paths.get(String.format("%s/test.crt", path.module()))))
.key(Files.readString(Paths.get(String.format("%s/test.key", path.module()))))
.build());
}
}

Import

SSL Certificates Certificate can be imported using the id, e.g.

$ pulumi import alicloud:cas/serviceCertificate:ServiceCertificate example <id>

Properties

Link copied to clipboard
val cert: Output<String>

Cert of the Certificate in which the Certificate will add.

Link copied to clipboard
val certificateName: Output<String>

Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported. NOTE: One of certificate_name and name must be specified.

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

Key of the Certificate in which the Certificate will add.

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

The lang.

Link copied to clipboard
val name: Output<String>

It has been deprecated from version 1.129.0 and using certificate_name instead.

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