TrustConfig

class TrustConfig : KotlinCustomResource

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}}

Properties

Link copied to clipboard
val createTime: Output<String>

The creation timestamp of a TrustConfig. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

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

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

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

Set of label tags associated with the trust config.

Link copied to clipboard
val location: Output<String>

The trust config location.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
val updateTime: Output<String>

The last update timestamp of a TrustConfig. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val urn: Output<String>