CertificateArgs

data class CertificateArgs constructor(val cert: Output<String>? = null, val certificateName: Output<String>? = null, val key: Output<String>? = null, val lang: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<CertificateArgs>

DEPRECATED: This datasource has been deprecated from version 1.129.0. Please use new datasource alicloud_ssl_certificates_service_certificate. Provides a CAS Certificate resource. NOTE: The Certificate name which you want to add must be already registered and had not added by another account. Every Certificate name can only exist in a unique group. NOTE: The Cas Certificate region only support cn-hangzhou, ap-south-1, me-east-1, eu-central-1, ap-northeast-1, ap-southeast-2. NOTE: Available in 1.35.0+ .

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cas.Certificate;
import com.pulumi.alicloud.cas.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 cert = new Certificate("cert", CertificateArgs.builder()
.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());
}
}

Constructors

Link copied to clipboard
fun CertificateArgs(cert: Output<String>? = null, certificateName: Output<String>? = null, key: Output<String>? = null, lang: Output<String>? = null, name: Output<String>? = null)

Functions

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

Properties

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

Cert of the Certificate in which the Certificate will add.

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

Key of the Certificate in which the Certificate will add.

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

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.