TrustConfigArgs

data class TrustConfigArgs(val description: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val trustStores: Output<List<TrustConfigTrustStoreArgs>>? = null) : ConvertibleToJava<TrustConfigArgs>

TrustConfig represents a resource that represents your Public Key Infrastructure (PKI) configuration in Certificate Manager for use in mutual TLS authentication scenarios. To get more information about TrustConfig, see:

Warning: All arguments including the following potentially sensitive values will be stored in the raw state as plain text: trust_stores.trust_stores.trust_anchors.trust_anchors.pem_certificate, trust_stores.trust_stores.intermediate_cas.intermediate_cas.pem_certificate. Read more about sensitive data in state.

Example Usage

Certificate Manager Trust Config

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.certificatemanager.TrustConfig;
import com.pulumi.gcp.certificatemanager.TrustConfigArgs;
import com.pulumi.gcp.certificatemanager.inputs.TrustConfigTrustStoreArgs;
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 default_ = new TrustConfig("default", TrustConfigArgs.builder()
.description("sample description for the trust config")
.location("us-central1")
.trustStores(TrustConfigTrustStoreArgs.builder()
.trustAnchors(TrustConfigTrustStoreTrustAnchorArgs.builder()
.pemCertificate(Files.readString(Paths.get("test-fixtures/cert.pem")))
.build())
.intermediateCas(TrustConfigTrustStoreIntermediateCaArgs.builder()
.pemCertificate(Files.readString(Paths.get("test-fixtures/cert.pem")))
.build())
.build())
.labels(Map.of("foo", "bar"))
.build());
}
}

Import

TrustConfig can be imported using any of these accepted formats

$ pulumi import gcp:certificatemanager/trustConfig:TrustConfig default projects/{{project}}/locations/{{location}}/trustConfigs/{{name}}
$ pulumi import gcp:certificatemanager/trustConfig:TrustConfig default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:certificatemanager/trustConfig:TrustConfig default {{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, trustStores: Output<List<TrustConfigTrustStoreArgs>>? = null)

Properties

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

One or more paragraphs of text description of a trust config.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Set of label tags associated with the trust config.

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

The trust config location.

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

A user-defined name of the trust config. Trust config names must be unique globally.

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard

Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Structure is documented below.

Functions

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