PagesDomain

class PagesDomain : KotlinCustomResource

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

Properties

Link copied to clipboard
val autoSslEnabled: Output<Boolean>

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>

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

Link copied to clipboard
val domain: Output<String>

The custom domain indicated by the user.

Link copied to clipboard
val expired: Output<Boolean>

Whether the certificate is expired.

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

The certificate key in PEM format.

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: Output<String>

The URL for the given domain.

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

The verification code for the domain.

Link copied to clipboard
val verified: Output<Boolean>

The certificate data.