Service Certificate Args
data class ServiceCertificateArgs(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<ServiceCertificateArgs>
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());
}
}
Content copied to clipboard
Import
SSL Certificates Certificate can be imported using the id, e.g.
$ pulumi import alicloud:cas/serviceCertificate:ServiceCertificate example <id>
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
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.