Google Cloud (GCP) Classic

v6.38.0 published on Thursday, Sep 22, 2022 by Pulumi

CertificateMap

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 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 a 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:

CreateTime 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".

GclbTargets List<CertificateMapGclbTarget>

A list of target proxies that use this Certificate Map

Id string

The provider-assigned unique ID for this managed resource.

UpdateTime 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".

CreateTime 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".

GclbTargets []CertificateMapGclbTarget

A list of target proxies that use this Certificate Map

Id string

The provider-assigned unique ID for this managed resource.

UpdateTime 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".

createTime 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".

gclbTargets List<CertificateMapGclbTarget>

A list of target proxies that use this Certificate Map

id String

The provider-assigned unique ID for this managed resource.

updateTime 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".

createTime 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".

gclbTargets CertificateMapGclbTarget[]

A list of target proxies that use this Certificate Map

id string

The provider-assigned unique ID for this managed resource.

updateTime 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[CertificateMapGclbTarget]

A list of target proxies that use this Certificate Map

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".

createTime 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".

gclbTargets List<Property Map>

A list of target proxies that use this Certificate Map

id String

The provider-assigned unique ID for this managed resource.

updateTime 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 an 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.
The following state arguments are supported:
CreateTime 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.

GclbTargets List<CertificateMapGclbTargetArgs>

A list of target proxies that use this Certificate Map

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.

UpdateTime 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".

CreateTime 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.

GclbTargets []CertificateMapGclbTargetArgs

A list of target proxies that use this Certificate Map

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.

UpdateTime 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".

createTime 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.

gclbTargets List<CertificateMapGclbTargetArgs>

A list of target proxies that use this Certificate Map

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.

updateTime 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".

createTime 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.

gclbTargets CertificateMapGclbTargetArgs[]

A list of target proxies that use this Certificate Map

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.

updateTime 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[CertificateMapGclbTargetArgs]

A list of target proxies that use this Certificate Map

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".

createTime 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.

gclbTargets List<Property Map>

A list of target proxies that use this Certificate Map

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.

updateTime 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

CertificateMapGclbTargetIpConfig

IpAddress string
Ports List<int>
IpAddress string
Ports []int
ipAddress String
ports List<Integer>
ipAddress string
ports number[]
ip_address str
ports Sequence[int]
ipAddress String
ports List<Number>

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
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.