PagesDomainArgs

data class PagesDomainArgs(val autoSslEnabled: Output<Boolean>? = null, val certificate: Output<String>? = null, val domain: Output<String>? = null, val expired: Output<Boolean>? = null, val key: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<PagesDomainArgs>

The gitlab.PagesDomain resource allows connecting custom domains and TLS certificates in GitLab Pages. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.PagesDomain;
import com.pulumi.gitlab.PagesDomainArgs;
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 thisPagesDomain = new PagesDomain("thisPagesDomain", PagesDomainArgs.builder()
.project(123)
.domain("example.com")
.autoSslEnabled(true)
.build());
var thisIndex_pagesDomainPagesDomain = new PagesDomain("thisIndex/pagesDomainPagesDomain", PagesDomainArgs.builder()
.project(123)
.domain("example.com")
.key(Files.readString(Paths.get(String.format("%s/key.pem", path.module()))))
.certificate(Files.readString(Paths.get(String.format("%s/cert.pem", path.module()))))
.build());
}
}

Import

GitLab pages domain can be imported using an id made up of projectId:domain without the http protocol, e.g.

$ pulumi import gitlab:index/pagesDomain:PagesDomain this 123:example.com

Constructors

Link copied to clipboard
constructor(autoSslEnabled: Output<Boolean>? = null, certificate: Output<String>? = null, domain: Output<String>? = null, expired: Output<Boolean>? = null, key: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val autoSslEnabled: Output<Boolean>? = null

Enables automatic generation of SSL certificates issued by Let’s Encrypt for custom domains. When this is set to "true", certificate can't be provided.

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

The certificate in PEM format with intermediates following in most specific to least specific order.

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

The custom domain indicated by the user.

Link copied to clipboard
val expired: Output<Boolean>? = null

Whether the certificate is expired.

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

The certificate key in PEM format.

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

The ID or URL-encoded path of the project owned by the authenticated user.

Functions

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