gcp.certificatemanager.CertificateMap
Explore with Pulumi AI
CertificateMap defines a collection of certificate configurations, which are usable by any associated target proxies
Example Usage
Certificate Manager Certificate Map Basic
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()
{
Description = "My acceptance test certificate map",
Labels =
{
{ "terraform", "true" },
{ "acc-test", "true" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/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{
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()
.description("My acceptance test certificate map")
.labels(Map.ofEntries(
Map.entry("terraform", true),
Map.entry("acc-test", true)
))
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.certificatemanager.CertificateMap("default",
description="My acceptance test certificate map",
labels={
"terraform": "true",
"acc-test": "true",
})
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.certificatemanager.CertificateMap("default", {
description: "My acceptance test certificate map",
labels: {
terraform: "true",
"acc-test": "true",
},
});
resources:
default:
type: gcp:certificatemanager:CertificateMap
properties:
description: My acceptance test certificate map
labels:
terraform: true
acc-test: true
Create CertificateMap Resource
new CertificateMap(name: string, args?: CertificateMapArgs, opts?: CustomResourceOptions);
@overload
def CertificateMap(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
@overload
def CertificateMap(resource_name: str,
args: Optional[CertificateMapArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewCertificateMap(ctx *Context, name string, args *CertificateMapArgs, opts ...ResourceOption) (*CertificateMap, error)
public CertificateMap(string name, CertificateMapArgs? args = null, CustomResourceOptions? opts = null)
public CertificateMap(String name, CertificateMapArgs args)
public CertificateMap(String name, CertificateMapArgs args, CustomResourceOptions options)
type: gcp:certificatemanager:CertificateMap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateMapArgs
- 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 CertificateMapArgs
- 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 CertificateMapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateMapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateMapArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CertificateMap Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CertificateMap resource accepts the following input properties:
- Description string
A human-readable description of the resource.
- Labels Dictionary<string, string>
Set of labels associated with a Certificate Map resource.
- Name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Description string
A human-readable description of the resource.
- Labels map[string]string
Set of labels associated with a Certificate Map resource.
- Name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- description String
A human-readable description of the resource.
- labels Map<String,String>
Set of labels associated with a Certificate Map resource.
- name String
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- description string
A human-readable description of the resource.
- labels {[key: string]: string}
Set of labels associated with a Certificate Map resource.
- name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- description str
A human-readable description of the resource.
- labels Mapping[str, str]
Set of labels associated with a Certificate Map resource.
- name str
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- description String
A human-readable description of the resource.
- labels Map<String>
Set of labels associated with a Certificate Map resource.
- name String
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- 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 CertificateMap resource produces the following output properties:
- Create
Time 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".
- Gclb
Targets List<CertificateMap Gclb Target> A list of target proxies that use this Certificate Map Structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Update
Time 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".
- Create
Time 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".
- Gclb
Targets []CertificateMap Gclb Target A list of target proxies that use this Certificate Map Structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
- Update
Time 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".
- create
Time 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".
- gclb
Targets List<CertificateMap Gclb Target> A list of target proxies that use this Certificate Map Structure is documented below.
- id String
The provider-assigned unique ID for this managed resource.
- update
Time 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".
- create
Time 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".
- gclb
Targets CertificateMap Gclb Target[] A list of target proxies that use this Certificate Map Structure is documented below.
- id string
The provider-assigned unique ID for this managed resource.
- update
Time 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".
- create_
time str 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".
- gclb_
targets Sequence[CertificateMap Gclb Target] A list of target proxies that use this Certificate Map Structure is documented below.
- id str
The provider-assigned unique ID for this managed resource.
- update_
time str 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".
- create
Time 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".
- gclb
Targets List<Property Map> A list of target proxies that use this Certificate Map Structure is documented below.
- id String
The provider-assigned unique ID for this managed resource.
- update
Time 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".
Look up Existing CertificateMap Resource
Get an existing CertificateMap 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?: CertificateMapState, opts?: CustomResourceOptions): CertificateMap
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
gclb_targets: Optional[Sequence[CertificateMapGclbTargetArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
update_time: Optional[str] = None) -> CertificateMap
func GetCertificateMap(ctx *Context, name string, id IDInput, state *CertificateMapState, opts ...ResourceOption) (*CertificateMap, error)
public static CertificateMap Get(string name, Input<string> id, CertificateMapState? state, CustomResourceOptions? opts = null)
public static CertificateMap get(String name, Output<String> id, CertificateMapState 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.
- Create
Time 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".
- Description string
A human-readable description of the resource.
- Gclb
Targets List<CertificateMap Gclb Target Args> A list of target proxies that use this Certificate Map Structure is documented below.
- Labels Dictionary<string, string>
Set of labels associated with a Certificate Map resource.
- Name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time 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".
- Create
Time 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".
- Description string
A human-readable description of the resource.
- Gclb
Targets []CertificateMap Gclb Target Args A list of target proxies that use this Certificate Map Structure is documented below.
- Labels map[string]string
Set of labels associated with a Certificate Map resource.
- Name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time 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".
- create
Time 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".
- description String
A human-readable description of the resource.
- gclb
Targets List<CertificateMap Gclb Target Args> A list of target proxies that use this Certificate Map Structure is documented below.
- labels Map<String,String>
Set of labels associated with a Certificate Map resource.
- name String
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time 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".
- create
Time 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".
- description string
A human-readable description of the resource.
- gclb
Targets CertificateMap Gclb Target Args[] A list of target proxies that use this Certificate Map Structure is documented below.
- labels {[key: string]: string}
Set of labels associated with a Certificate Map resource.
- name string
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time 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".
- create_
time str 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".
- description str
A human-readable description of the resource.
- gclb_
targets Sequence[CertificateMap Gclb Target Args] A list of target proxies that use this Certificate Map Structure is documented below.
- labels Mapping[str, str]
Set of labels associated with a Certificate Map resource.
- name str
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time str 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".
- create
Time 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".
- description String
A human-readable description of the resource.
- gclb
Targets List<Property Map> A list of target proxies that use this Certificate Map Structure is documented below.
- labels Map<String>
Set of labels associated with a Certificate Map resource.
- name String
A user-defined name of the Certificate Map. Certificate Map names must be unique globally and match the pattern
projects/*/locations/*/certificateMaps/*
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time 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".
Supporting Types
CertificateMapGclbTarget
- Ip
Configs List<CertificateMap Gclb Target Ip Config> An IP configuration where this Certificate Map is serving Structure is documented below.
- Target
Https stringProxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- Target
Ssl stringProxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
- Ip
Configs []CertificateMap Gclb Target Ip Config An IP configuration where this Certificate Map is serving Structure is documented below.
- Target
Https stringProxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- Target
Ssl stringProxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
- ip
Configs List<CertificateMap Gclb Target Ip Config> An IP configuration where this Certificate Map is serving Structure is documented below.
- target
Https StringProxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- target
Ssl StringProxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
- ip
Configs CertificateMap Gclb Target Ip Config[] An IP configuration where this Certificate Map is serving Structure is documented below.
- target
Https stringProxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- target
Ssl stringProxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
- ip_
configs Sequence[CertificateMap Gclb Target Ip Config] An IP configuration where this Certificate Map is serving Structure is documented below.
- target_
https_ strproxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- target_
ssl_ strproxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
- ip
Configs List<Property Map> An IP configuration where this Certificate Map is serving Structure is documented below.
- target
Https StringProxy Proxy name must be in the format projects//locations//targetHttpsProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.- target
Ssl StringProxy Proxy name must be in the format projects//locations//targetSslProxies/*. This field is part of a union field
target_proxy
: Only one oftargetHttpsProxy
ortargetSslProxy
may be set.
CertificateMapGclbTargetIpConfig
- ip_
address str An external IP address
- ports Sequence[int]
A list of ports
Import
CertificateMap can be imported using any of these accepted formats
$ 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}}
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.