This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a new CertificateMapEntry in a given project and location.
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,
certificate_map_entry_id: Optional[str] = None,
certificate_map_id: Optional[str] = None,
certificates: Optional[Sequence[str]] = None,
description: Optional[str] = None,
hostname: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
matcher: Optional[CertificateMapEntryMatcher] = 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: google-native:certificatemanager/v1:CertificateMapEntry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_certificatemanager_v1_certificate_map_entry" "name" {
# resource properties
}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 GoogleNative.CertificateManager.V1.CertificateMapEntry("certificateMapEntryResource", new()
{
CertificateMapEntryId = "string",
CertificateMapId = "string",
Certificates = new[]
{
"string",
},
Description = "string",
Hostname = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Matcher = GoogleNative.CertificateManager.V1.CertificateMapEntryMatcher.MatcherUnspecified,
Name = "string",
Project = "string",
});
example, err := certificatemanager.NewCertificateMapEntry(ctx, "certificateMapEntryResource", &certificatemanager.CertificateMapEntryArgs{
CertificateMapEntryId: pulumi.String("string"),
CertificateMapId: pulumi.String("string"),
Certificates: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Hostname: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Matcher: certificatemanager.CertificateMapEntryMatcherMatcherUnspecified,
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_certificatemanager_v1_certificate_map_entry" "certificateMapEntryResource" {
lifecycle {
create_before_destroy = true
}
certificate_map_entry_id = "string"
certificate_map_id = "string"
certificates = ["string"]
description = "string"
hostname = "string"
labels = {
"string" = "string"
}
location = "string"
matcher = "MATCHER_UNSPECIFIED"
name = "string"
project = "string"
}
var certificateMapEntryResource = new CertificateMapEntry("certificateMapEntryResource", CertificateMapEntryArgs.builder()
.certificateMapEntryId("string")
.certificateMapId("string")
.certificates("string")
.description("string")
.hostname("string")
.labels(Map.of("string", "string"))
.location("string")
.matcher(com.pulumi.googlenative.certificatemanager_v1.enums.CertificateMapEntryMatcher.MatcherUnspecified)
.name("string")
.project("string")
.build());
certificate_map_entry_resource = google_native.certificatemanager.v1.CertificateMapEntry("certificateMapEntryResource",
certificate_map_entry_id="string",
certificate_map_id="string",
certificates=["string"],
description="string",
hostname="string",
labels={
"string": "string",
},
location="string",
matcher=google_native.certificatemanager.v1.CertificateMapEntryMatcher.MATCHER_UNSPECIFIED,
name="string",
project="string")
const certificateMapEntryResource = new google_native.certificatemanager.v1.CertificateMapEntry("certificateMapEntryResource", {
certificateMapEntryId: "string",
certificateMapId: "string",
certificates: ["string"],
description: "string",
hostname: "string",
labels: {
string: "string",
},
location: "string",
matcher: google_native.certificatemanager.v1.CertificateMapEntryMatcher.MatcherUnspecified,
name: "string",
project: "string",
});
type: google-native:certificatemanager/v1:CertificateMapEntry
properties:
certificateMapEntryId: string
certificateMapId: string
certificates:
- string
description: string
hostname: string
labels:
string: string
location: string
matcher: MATCHER_UNSPECIFIED
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:
- Certificate
Map stringEntry Id - Required. A user-provided name of the certificate map entry.
- Certificate
Map stringId - Certificates List<string>
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - Description string
- One or more paragraphs of text description of a certificate map entry.
- 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.
- Location string
- Matcher
Pulumi.
Google Native. Certificate Manager. V1. Certificate Map Entry Matcher - 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
- Certificate
Map stringEntry Id - Required. A user-provided name of the certificate map entry.
- Certificate
Map stringId - Certificates []string
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - Description string
- One or more paragraphs of text description of a certificate map entry.
- 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.
- Location string
- Matcher
Certificate
Map Entry Matcher - 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
- certificate_
map_ stringentry_ id - Required. A user-provided name of the certificate map entry.
- certificate_
map_ stringid - certificates list(string)
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - description string
- One or more paragraphs of text description of a certificate map entry.
- 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.
- location string
- matcher "MATCHER_UNSPECIFIED" | "PRIMARY"
- 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
- certificate
Map StringEntry Id - Required. A user-provided name of the certificate map entry.
- certificate
Map StringId - certificates List<String>
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - description String
- One or more paragraphs of text description of a certificate map entry.
- 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.
- location String
- matcher
Certificate
Map Entry Matcher - 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
- certificate
Map stringEntry Id - Required. A user-provided name of the certificate map entry.
- certificate
Map stringId - certificates string[]
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - description string
- One or more paragraphs of text description of a certificate map entry.
- 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.
- location string
- matcher
Certificate
Map Entry Matcher - 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
- certificate_
map_ strentry_ id - Required. A user-provided name of the certificate map entry.
- certificate_
map_ strid - certificates Sequence[str]
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - description str
- One or more paragraphs of text description of a certificate map entry.
- 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.
- location str
- matcher
Certificate
Map Entry Matcher - 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
- certificate
Map StringEntry Id - Required. A user-provided name of the certificate map entry.
- certificate
Map StringId - certificates List<String>
- A set of Certificates defines for the given
hostname. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match patternprojects/*/locations/*/certificates/*. - description String
- One or more paragraphs of text description of a certificate map entry.
- 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.
- location String
- matcher "MATCHER_UNSPECIFIED" | "PRIMARY"
- 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
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateMapEntry resource produces the following output properties:
- Create
Time string - The creation timestamp of a Certificate Map Entry.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - The update timestamp of a Certificate Map Entry.
- Create
Time string - The creation timestamp of a Certificate Map Entry.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- A serving state of this Certificate Map Entry.
- Update
Time string - The update timestamp of a Certificate Map Entry.
- create_
time string - The creation timestamp of a Certificate Map Entry.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- A serving state of this Certificate Map Entry.
- update_
time string - The update timestamp of a Certificate Map Entry.
- create
Time String - The creation timestamp of a Certificate Map Entry.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - The update timestamp of a Certificate Map Entry.
- create
Time string - The creation timestamp of a Certificate Map Entry.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- A serving state of this Certificate Map Entry.
- update
Time string - The update timestamp of a Certificate Map Entry.
- create_
time str - The creation timestamp of a Certificate Map Entry.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- A serving state of this Certificate Map Entry.
- update_
time str - The update timestamp of a Certificate Map Entry.
- create
Time String - The creation timestamp of a Certificate Map Entry.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- A serving state of this Certificate Map Entry.
- update
Time String - The update timestamp of a Certificate Map Entry.
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>, opts?: CustomResourceOptions): CertificateMapEntry@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> CertificateMapEntryfunc GetCertificateMapEntry(ctx *Context, name string, id IDInput, state *CertificateMapEntryState, opts ...ResourceOption) (*CertificateMapEntry, error)public static CertificateMapEntry Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static CertificateMapEntry get(String name, Output<String> id, CustomResourceOptions options)resources: existingCertificateMapEntry: type: google-native:certificatemanager/v1:CertificateMapEntry get: id: ${id}import {
to = google-native_certificatemanager_v1_certificate_map_entry.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CertificateMapEntryState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
CertificateMapEntryMatcher, CertificateMapEntryMatcherArgs
A predefined matcher for particular cases, other than SNI selection.| Name | Value | Description |
|---|---|---|
| Matcher | MATCHER_UNSPECIFIED | A matcher has't been recognized. |
| Primary | PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Name | Value | Description |
|---|---|---|
| Certificate | MATCHER_UNSPECIFIED | A matcher has't been recognized. |
| Certificate | PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Value | Description |
|---|---|
MATCHER_UNSPECIFIED | A matcher has't been recognized. |
PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Name | Value | Description |
|---|---|---|
| Matcher | MATCHER_UNSPECIFIED | A matcher has't been recognized. |
| Primary | PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Name | Value | Description |
|---|---|---|
| Matcher | MATCHER_UNSPECIFIED | A matcher has't been recognized. |
| Primary | PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Name | Value | Description |
|---|---|---|
| MATCHER_UNSPECIFIED | MATCHER_UNSPECIFIED | A matcher has't been recognized. |
| PRIMARY | PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
| Value | Description |
|---|---|
MATCHER_UNSPECIFIED | A matcher has't been recognized. |
PRIMARY | A primary certificate that is served when SNI wasn't specified in the request or SNI couldn't be found in the map. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi