gcp.certificatemanager.CertificateMapEntry
Explore with Pulumi AI
CertificateMapEntry is a list of certificate configurations, that have been issued for a particular hostname
Example Usage
Certificate Manager Certificate Map Entry Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const certificateMap = new gcp.certificatemanager.CertificateMap("certificate_map", {
name: "cert-map-entry",
description: "My acceptance test certificate map",
labels: {
terraform: "true",
"acc-test": "true",
},
});
const instance = new gcp.certificatemanager.DnsAuthorization("instance", {
name: "dns-auth",
description: "The default dnss",
domain: "subdomain.hashicorptest.com",
});
const instance2 = new gcp.certificatemanager.DnsAuthorization("instance2", {
name: "dns-auth2",
description: "The default dnss",
domain: "subdomain2.hashicorptest.com",
});
const certificate = new gcp.certificatemanager.Certificate("certificate", {
name: "cert-map-entry",
description: "The default cert",
scope: "DEFAULT",
managed: {
domains: [
instance.domain,
instance2.domain,
],
dnsAuthorizations: [
instance.id,
instance2.id,
],
},
});
const _default = new gcp.certificatemanager.CertificateMapEntry("default", {
name: "cert-map-entry",
description: "My acceptance test certificate map entry",
map: certificateMap.name,
labels: {
terraform: "true",
"acc-test": "true",
},
certificates: [certificate.id],
matcher: "PRIMARY",
});
import pulumi
import pulumi_gcp as gcp
certificate_map = gcp.certificatemanager.CertificateMap("certificate_map",
name="cert-map-entry",
description="My acceptance test certificate map",
labels={
"terraform": "true",
"acc-test": "true",
})
instance = gcp.certificatemanager.DnsAuthorization("instance",
name="dns-auth",
description="The default dnss",
domain="subdomain.hashicorptest.com")
instance2 = gcp.certificatemanager.DnsAuthorization("instance2",
name="dns-auth2",
description="The default dnss",
domain="subdomain2.hashicorptest.com")
certificate = gcp.certificatemanager.Certificate("certificate",
name="cert-map-entry",
description="The default cert",
scope="DEFAULT",
managed={
"domains": [
instance.domain,
instance2.domain,
],
"dns_authorizations": [
instance.id,
instance2.id,
],
})
default = gcp.certificatemanager.CertificateMapEntry("default",
name="cert-map-entry",
description="My acceptance test certificate map entry",
map=certificate_map.name,
labels={
"terraform": "true",
"acc-test": "true",
},
certificates=[certificate.id],
matcher="PRIMARY")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/certificatemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
certificateMap, err := certificatemanager.NewCertificateMap(ctx, "certificate_map", &certificatemanager.CertificateMapArgs{
Name: pulumi.String("cert-map-entry"),
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
}
instance, err := certificatemanager.NewDnsAuthorization(ctx, "instance", &certificatemanager.DnsAuthorizationArgs{
Name: pulumi.String("dns-auth"),
Description: pulumi.String("The default dnss"),
Domain: pulumi.String("subdomain.hashicorptest.com"),
})
if err != nil {
return err
}
instance2, err := certificatemanager.NewDnsAuthorization(ctx, "instance2", &certificatemanager.DnsAuthorizationArgs{
Name: pulumi.String("dns-auth2"),
Description: pulumi.String("The default dnss"),
Domain: pulumi.String("subdomain2.hashicorptest.com"),
})
if err != nil {
return err
}
certificate, err := certificatemanager.NewCertificate(ctx, "certificate", &certificatemanager.CertificateArgs{
Name: pulumi.String("cert-map-entry"),
Description: pulumi.String("The default cert"),
Scope: pulumi.String("DEFAULT"),
Managed: &certificatemanager.CertificateManagedArgs{
Domains: pulumi.StringArray{
instance.Domain,
instance2.Domain,
},
DnsAuthorizations: pulumi.StringArray{
instance.ID(),
instance2.ID(),
},
},
})
if err != nil {
return err
}
_, err = certificatemanager.NewCertificateMapEntry(ctx, "default", &certificatemanager.CertificateMapEntryArgs{
Name: pulumi.String("cert-map-entry"),
Description: pulumi.String("My acceptance test certificate map entry"),
Map: certificateMap.Name,
Labels: pulumi.StringMap{
"terraform": pulumi.String("true"),
"acc-test": pulumi.String("true"),
},
Certificates: pulumi.StringArray{
certificate.ID(),
},
Matcher: pulumi.String("PRIMARY"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var certificateMap = new Gcp.CertificateManager.CertificateMap("certificate_map", new()
{
Name = "cert-map-entry",
Description = "My acceptance test certificate map",
Labels =
{
{ "terraform", "true" },
{ "acc-test", "true" },
},
});
var instance = new Gcp.CertificateManager.DnsAuthorization("instance", new()
{
Name = "dns-auth",
Description = "The default dnss",
Domain = "subdomain.hashicorptest.com",
});
var instance2 = new Gcp.CertificateManager.DnsAuthorization("instance2", new()
{
Name = "dns-auth2",
Description = "The default dnss",
Domain = "subdomain2.hashicorptest.com",
});
var certificate = new Gcp.CertificateManager.Certificate("certificate", new()
{
Name = "cert-map-entry",
Description = "The default cert",
Scope = "DEFAULT",
Managed = new Gcp.CertificateManager.Inputs.CertificateManagedArgs
{
Domains = new[]
{
instance.Domain,
instance2.Domain,
},
DnsAuthorizations = new[]
{
instance.Id,
instance2.Id,
},
},
});
var @default = new Gcp.CertificateManager.CertificateMapEntry("default", new()
{
Name = "cert-map-entry",
Description = "My acceptance test certificate map entry",
Map = certificateMap.Name,
Labels =
{
{ "terraform", "true" },
{ "acc-test", "true" },
},
Certificates = new[]
{
certificate.Id,
},
Matcher = "PRIMARY",
});
});
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 com.pulumi.gcp.certificatemanager.DnsAuthorization;
import com.pulumi.gcp.certificatemanager.DnsAuthorizationArgs;
import com.pulumi.gcp.certificatemanager.Certificate;
import com.pulumi.gcp.certificatemanager.CertificateArgs;
import com.pulumi.gcp.certificatemanager.inputs.CertificateManagedArgs;
import com.pulumi.gcp.certificatemanager.CertificateMapEntry;
import com.pulumi.gcp.certificatemanager.CertificateMapEntryArgs;
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 certificateMap = new CertificateMap("certificateMap", CertificateMapArgs.builder()
.name("cert-map-entry")
.description("My acceptance test certificate map")
.labels(Map.ofEntries(
Map.entry("terraform", true),
Map.entry("acc-test", true)
))
.build());
var instance = new DnsAuthorization("instance", DnsAuthorizationArgs.builder()
.name("dns-auth")
.description("The default dnss")
.domain("subdomain.hashicorptest.com")
.build());
var instance2 = new DnsAuthorization("instance2", DnsAuthorizationArgs.builder()
.name("dns-auth2")
.description("The default dnss")
.domain("subdomain2.hashicorptest.com")
.build());
var certificate = new Certificate("certificate", CertificateArgs.builder()
.name("cert-map-entry")
.description("The default cert")
.scope("DEFAULT")
.managed(CertificateManagedArgs.builder()
.domains(
instance.domain(),
instance2.domain())
.dnsAuthorizations(
instance.id(),
instance2.id())
.build())
.build());
var default_ = new CertificateMapEntry("default", CertificateMapEntryArgs.builder()
.name("cert-map-entry")
.description("My acceptance test certificate map entry")
.map(certificateMap.name())
.labels(Map.ofEntries(
Map.entry("terraform", true),
Map.entry("acc-test", true)
))
.certificates(certificate.id())
.matcher("PRIMARY")
.build());
}
}
resources:
certificateMap:
type: gcp:certificatemanager:CertificateMap
name: certificate_map
properties:
name: cert-map-entry
description: My acceptance test certificate map
labels:
terraform: true
acc-test: true
default:
type: gcp:certificatemanager:CertificateMapEntry
properties:
name: cert-map-entry
description: My acceptance test certificate map entry
map: ${certificateMap.name}
labels:
terraform: true
acc-test: true
certificates:
- ${certificate.id}
matcher: PRIMARY
certificate:
type: gcp:certificatemanager:Certificate
properties:
name: cert-map-entry
description: The default cert
scope: DEFAULT
managed:
domains:
- ${instance.domain}
- ${instance2.domain}
dnsAuthorizations:
- ${instance.id}
- ${instance2.id}
instance:
type: gcp:certificatemanager:DnsAuthorization
properties:
name: dns-auth
description: The default dnss
domain: subdomain.hashicorptest.com
instance2:
type: gcp:certificatemanager:DnsAuthorization
properties:
name: dns-auth2
description: The default dnss
domain: subdomain2.hashicorptest.com
Create CertificateMapEntry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertificateMapEntry(name: string, args: CertificateMapEntryArgs, opts?: CustomResourceOptions);
@overload
def CertificateMapEntry(resource_name: str,
args: CertificateMapEntryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertificateMapEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificates: Optional[Sequence[str]] = None,
map: Optional[str] = None,
description: Optional[str] = None,
hostname: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
matcher: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewCertificateMapEntry(ctx *Context, name string, args CertificateMapEntryArgs, opts ...ResourceOption) (*CertificateMapEntry, error)
public CertificateMapEntry(string name, CertificateMapEntryArgs args, CustomResourceOptions? opts = null)
public CertificateMapEntry(String name, CertificateMapEntryArgs args)
public CertificateMapEntry(String name, CertificateMapEntryArgs args, CustomResourceOptions options)
type: gcp:certificatemanager:CertificateMapEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CertificateMapEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CertificateMapEntryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateMapEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateMapEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateMapEntryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var certificateMapEntryResource = new Gcp.CertificateManager.CertificateMapEntry("certificateMapEntryResource", new()
{
Certificates = new[]
{
"string",
},
Map = "string",
Description = "string",
Hostname = "string",
Labels =
{
{ "string", "string" },
},
Matcher = "string",
Name = "string",
Project = "string",
});
example, err := certificatemanager.NewCertificateMapEntry(ctx, "certificateMapEntryResource", &certificatemanager.CertificateMapEntryArgs{
Certificates: pulumi.StringArray{
pulumi.String("string"),
},
Map: pulumi.String("string"),
Description: pulumi.String("string"),
Hostname: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Matcher: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var certificateMapEntryResource = new CertificateMapEntry("certificateMapEntryResource", CertificateMapEntryArgs.builder()
.certificates("string")
.map("string")
.description("string")
.hostname("string")
.labels(Map.of("string", "string"))
.matcher("string")
.name("string")
.project("string")
.build());
certificate_map_entry_resource = gcp.certificatemanager.CertificateMapEntry("certificateMapEntryResource",
certificates=["string"],
map="string",
description="string",
hostname="string",
labels={
"string": "string",
},
matcher="string",
name="string",
project="string")
const certificateMapEntryResource = new gcp.certificatemanager.CertificateMapEntry("certificateMapEntryResource", {
certificates: ["string"],
map: "string",
description: "string",
hostname: "string",
labels: {
string: "string",
},
matcher: "string",
name: "string",
project: "string",
});
type: gcp:certificatemanager:CertificateMapEntry
properties:
certificates:
- string
description: string
hostname: string
labels:
string: string
map: string
matcher: string
name: string
project: string
CertificateMapEntry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CertificateMapEntry resource accepts the following input properties:
- Certificates List<string>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- Map string
- A map entry that is inputted into the cetrificate map
- Description string
- A human-readable description of the resource.
- Hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- Labels Dictionary<string, string>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- Matcher string
- A predefined matcher for particular cases, other than SNI selection
- Name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Certificates []string
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- Map string
- A map entry that is inputted into the cetrificate map
- Description string
- A human-readable description of the resource.
- Hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- Labels map[string]string
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- Matcher string
- A predefined matcher for particular cases, other than SNI selection
- Name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- certificates List<String>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- map String
- A map entry that is inputted into the cetrificate map
- description String
- A human-readable description of the resource.
- hostname String
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Map<String,String>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- matcher String
- A predefined matcher for particular cases, other than SNI selection
- name String
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- certificates string[]
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- map string
- A map entry that is inputted into the cetrificate map
- description string
- A human-readable description of the resource.
- hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels {[key: string]: string}
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- matcher string
- A predefined matcher for particular cases, other than SNI selection
- name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- certificates Sequence[str]
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- map str
- A map entry that is inputted into the cetrificate map
- description str
- A human-readable description of the resource.
- hostname str
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Mapping[str, str]
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- matcher str
- A predefined matcher for particular cases, other than SNI selection
- name str
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- certificates List<String>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- map String
- A map entry that is inputted into the cetrificate map
- description String
- A human-readable description of the resource.
- hostname String
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Map<String>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- matcher String
- A predefined matcher for particular cases, other than SNI selection
- name String
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateMapEntry resource produces the following output properties:
- Create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - Update timestamp of a Certificate Map Entry. 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".
- Create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - Update timestamp of a Certificate Map Entry. 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".
- create
Time String - Creation timestamp of a Certificate Map Entry. 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".
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - Update timestamp of a Certificate Map Entry. 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".
- create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- A serving state of this Certificate Map Entry.
- update
Time string - Update timestamp of a Certificate Map Entry. 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".
- create_
time str - Creation timestamp of a Certificate Map Entry. 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".
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- A serving state of this Certificate Map Entry.
- update_
time str - Update timestamp of a Certificate Map Entry. 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".
- create
Time String - Creation timestamp of a Certificate Map Entry. 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".
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - Update timestamp of a Certificate Map Entry. 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".
Look up Existing CertificateMapEntry Resource
Get an existing CertificateMapEntry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CertificateMapEntryState, opts?: CustomResourceOptions): CertificateMapEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificates: Optional[Sequence[str]] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
hostname: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
map: Optional[str] = None,
matcher: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
update_time: Optional[str] = None) -> CertificateMapEntry
func GetCertificateMapEntry(ctx *Context, name string, id IDInput, state *CertificateMapEntryState, opts ...ResourceOption) (*CertificateMapEntry, error)
public static CertificateMapEntry Get(string name, Input<string> id, CertificateMapEntryState? state, CustomResourceOptions? opts = null)
public static CertificateMapEntry get(String name, Output<String> id, CertificateMapEntryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Certificates List<string>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- Create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- Description string
- A human-readable description of the resource.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- Labels Dictionary<string, string>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- Map string
- A map entry that is inputted into the cetrificate map
- Matcher string
- A predefined matcher for particular cases, other than SNI selection
- Name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - Update timestamp of a Certificate Map Entry. 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".
- Certificates []string
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- Create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- Description string
- A human-readable description of the resource.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- Labels map[string]string
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- Map string
- A map entry that is inputted into the cetrificate map
- Matcher string
- A predefined matcher for particular cases, other than SNI selection
- Name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - Update timestamp of a Certificate Map Entry. 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".
- certificates List<String>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- create
Time String - Creation timestamp of a Certificate Map Entry. 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".
- description String
- A human-readable description of the resource.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hostname String
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Map<String,String>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- map String
- A map entry that is inputted into the cetrificate map
- matcher String
- A predefined matcher for particular cases, other than SNI selection
- name String
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - Update timestamp of a Certificate Map Entry. 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".
- certificates string[]
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- create
Time string - Creation timestamp of a Certificate Map Entry. 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".
- description string
- A human-readable description of the resource.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hostname string
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels {[key: string]: string}
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- map string
- A map entry that is inputted into the cetrificate map
- matcher string
- A predefined matcher for particular cases, other than SNI selection
- name string
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- A serving state of this Certificate Map Entry.
- update
Time string - Update timestamp of a Certificate Map Entry. 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".
- certificates Sequence[str]
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- create_
time str - Creation timestamp of a Certificate Map Entry. 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".
- description str
- A human-readable description of the resource.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hostname str
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Mapping[str, str]
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- map str
- A map entry that is inputted into the cetrificate map
- matcher str
- A predefined matcher for particular cases, other than SNI selection
- name str
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- A serving state of this Certificate Map Entry.
- update_
time str - Update timestamp of a Certificate Map Entry. 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".
- certificates List<String>
- A set of Certificates defines for the given hostname. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern projects//locations//certificates/*.
- create
Time String - Creation timestamp of a Certificate Map Entry. 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".
- description String
- A human-readable description of the resource.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- hostname String
- A Hostname (FQDN, e.g. example.com) or a wildcard hostname expression (*.example.com) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
- labels Map<String>
Set of labels associated with a Certificate Map Entry. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
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.- map String
- A map entry that is inputted into the cetrificate map
- matcher String
- A predefined matcher for particular cases, other than SNI selection
- name String
- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern 'projects//locations//certificateMaps//certificateMapEntries/'
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - Update timestamp of a Certificate Map Entry. 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".
Import
CertificateMapEntry can be imported using any of these accepted formats:
projects/{{project}}/locations/global/certificateMaps/{{map}}/certificateMapEntries/{{name}}
{{project}}/{{map}}/{{name}}
{{map}}/{{name}}
When using the pulumi import
command, CertificateMapEntry can be imported using one of the formats above. For example:
$ pulumi import gcp:certificatemanager/certificateMapEntry:CertificateMapEntry default projects/{{project}}/locations/global/certificateMaps/{{map}}/certificateMapEntries/{{name}}
$ pulumi import gcp:certificatemanager/certificateMapEntry:CertificateMapEntry default {{project}}/{{map}}/{{name}}
$ pulumi import gcp:certificatemanager/certificateMapEntry:CertificateMapEntry default {{map}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.