CertificateMap

class CertificateMap : KotlinCustomResource

CertificateMap defines a collection of certificate configurations, which are usable by any associated target proxies

Example Usage

Certificate Manager Certificate Map Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.certificatemanager.CertificateMap("default", {
name: "cert-map",
description: "My acceptance test certificate map",
labels: {
terraform: "true",
"acc-test": "true",
},
});
import pulumi
import pulumi_gcp as gcp
default = gcp.certificatemanager.CertificateMap("default",
name="cert-map",
description="My acceptance test certificate map",
labels={
"terraform": "true",
"acc-test": "true",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CertificateManager.CertificateMap("default", new()
{
Name = "cert-map",
Description = "My acceptance test certificate map",
Labels =
{
{ "terraform", "true" },
{ "acc-test", "true" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificatemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := certificatemanager.NewCertificateMap(ctx, "default", &certificatemanager.CertificateMapArgs{
Name: pulumi.String("cert-map"),
Description: pulumi.String("My acceptance test certificate map"),
Labels: pulumi.StringMap{
"terraform": pulumi.String("true"),
"acc-test": pulumi.String("true"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.certificatemanager.CertificateMap;
import com.pulumi.gcp.certificatemanager.CertificateMapArgs;
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 CertificateMap("default", CertificateMapArgs.builder()
.name("cert-map")
.description("My acceptance test certificate map")
.labels(Map.ofEntries(
Map.entry("terraform", true),
Map.entry("acc-test", true)
))
.build());
}
}
resources:
default:
type: gcp:certificatemanager:CertificateMap
properties:
name: cert-map
description: My acceptance test certificate map
labels:
terraform: true
acc-test: true

Import

CertificateMap can be imported using any of these accepted formats:

  • projects/{{project}}/locations/global/certificateMaps/{{name}}

  • {{project}}/{{name}}

  • {{name}} When using the pulumi import command, CertificateMap can be imported using one of the formats above. For example:

$ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default projects/{{project}}/locations/global/certificateMaps/{{name}}
$ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default {{project}}/{{name}}
$ pulumi import gcp:certificatemanager/certificateMap:CertificateMap default {{name}}

Properties

Link copied to clipboard
val createTime: Output<String>

Creation timestamp of a Certificate Map. Timestamp is in RFC3339 UTC "Zulu" format, accurate to nanoseconds with 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>?

A human-readable description of the resource.

Link copied to clipboard

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard

A list of target proxies that use this Certificate Map Structure is documented below.

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

Set of labels associated with a Certificate Map resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Link copied to clipboard
val name: Output<String>

A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern projects/*/locations/*/certificateMaps/*.

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
val pulumiLabels: Output<Map<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

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

Update timestamp of a Certificate Map. Timestamp is in RFC3339 UTC "Zulu" format, accurate to nanoseconds with 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>