Google Cloud (GCP) Classic
DnsAuthorization
DnsAuthorization represents a HTTP-reachable backend for an DnsAuthorization.
Warning: These resources require allow-listing to use, and are not openly available to all Cloud customers. Engage with your Cloud account team to discuss how to onboard.
Example Usage
Certificate Manager Dns Authorization Basic
Coming soon!
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultDnsAuthorization = new gcp.certificatemanager.DnsAuthorization("default", {
description: "The default dnss",
domain: "%{random_suffix}.hashicorptest.com",
});
export const recordNameToInsert = {
"google_certificate_manager_dns_authorization.default.dns_resource_record.0.name": [{}],
value: "",
};
export const recordTypeToInsert = {
"google_certificate_manager_dns_authorization.default.dns_resource_record.0.type": [{}],
value: "",
};
export const recordDataToInsert = {
"google_certificate_manager_dns_authorization.default.dns_resource_record.0.data": [{}],
value: "",
};
Coming soon!
Create a DnsAuthorization Resource
new DnsAuthorization(name: string, args: DnsAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def DnsAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
@overload
def DnsAuthorization(resource_name: str,
args: DnsAuthorizationArgs,
opts: Optional[ResourceOptions] = None)
func NewDnsAuthorization(ctx *Context, name string, args DnsAuthorizationArgs, opts ...ResourceOption) (*DnsAuthorization, error)
public DnsAuthorization(string name, DnsAuthorizationArgs args, CustomResourceOptions? opts = null)
public DnsAuthorization(String name, DnsAuthorizationArgs args)
public DnsAuthorization(String name, DnsAuthorizationArgs args, CustomResourceOptions options)
type: gcp:certificatemanager:DnsAuthorization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsAuthorizationArgs
- 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 DnsAuthorizationArgs
- 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 DnsAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsAuthorizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DnsAuthorization 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 DnsAuthorization resource accepts the following input properties:
- Domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- Description string
A human-readable description of the resource.
- Labels Dictionary<string, string>
Set of label tags associated with the EdgeCache resource.
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- Description string
A human-readable description of the resource.
- Labels map[string]string
Set of label tags associated with the EdgeCache resource.
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- domain String
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- description String
A human-readable description of the resource.
- labels Map<String,String>
Set of label tags associated with the EdgeCache resource.
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- description string
A human-readable description of the resource.
- labels {[key: string]: string}
Set of label tags associated with the EdgeCache resource.
- name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- domain str
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- description str
A human-readable description of the resource.
- labels Mapping[str, str]
Set of label tags associated with the EdgeCache resource.
- name str
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- domain String
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- description String
A human-readable description of the resource.
- labels Map<String>
Set of label tags associated with the EdgeCache resource.
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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 DnsAuthorization resource produces the following output properties:
- Dns
Resource List<DnsRecords Authorization Dns Resource Record> The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- Id string
The provider-assigned unique ID for this managed resource.
- Dns
Resource []DnsRecords Authorization Dns Resource Record The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- Id string
The provider-assigned unique ID for this managed resource.
- dns
Resource List<DnsRecords Authorization Dns Resource Record> The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- id String
The provider-assigned unique ID for this managed resource.
- dns
Resource DnsRecords Authorization Dns Resource Record[] The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- id string
The provider-assigned unique ID for this managed resource.
- dns_
resource_ Sequence[Dnsrecords Authorization Dns Resource Record] The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- id str
The provider-assigned unique ID for this managed resource.
- dns
Resource List<Property Map>Records The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing DnsAuthorization Resource
Get an existing DnsAuthorization 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?: DnsAuthorizationState, opts?: CustomResourceOptions): DnsAuthorization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dns_resource_records: Optional[Sequence[DnsAuthorizationDnsResourceRecordArgs]] = None,
domain: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None) -> DnsAuthorization
func GetDnsAuthorization(ctx *Context, name string, id IDInput, state *DnsAuthorizationState, opts ...ResourceOption) (*DnsAuthorization, error)
public static DnsAuthorization Get(string name, Input<string> id, DnsAuthorizationState? state, CustomResourceOptions? opts = null)
public static DnsAuthorization get(String name, Output<String> id, DnsAuthorizationState 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.
- Description string
A human-readable description of the resource.
- Dns
Resource List<DnsRecords Authorization Dns Resource Record Args> The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- Domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- Labels Dictionary<string, string>
Set of label tags associated with the EdgeCache resource.
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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.
- Dns
Resource []DnsRecords Authorization Dns Resource Record Args The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- Domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- Labels map[string]string
Set of label tags associated with the EdgeCache resource.
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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.
- dns
Resource List<DnsRecords Authorization Dns Resource Record Args> The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- domain String
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- labels Map<String,String>
Set of label tags associated with the EdgeCache resource.
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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.
- dns
Resource DnsRecords Authorization Dns Resource Record Args[] The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- domain string
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- labels {[key: string]: string}
Set of label tags associated with the EdgeCache resource.
- name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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.
- dns_
resource_ Sequence[Dnsrecords Authorization Dns Resource Record Args] The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- domain str
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- labels Mapping[str, str]
Set of label tags associated with the EdgeCache resource.
- name str
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- 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.
- dns
Resource List<Property Map>Records The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.
- domain String
A domain which is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for "example.com" can be used to issue certificates for "example.com" and "*.example.com".
- labels Map<String>
Set of label tags associated with the EdgeCache resource.
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Supporting Types
DnsAuthorizationDnsResourceRecord
- Data string
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- Type string
- Data string
- Name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- Type string
- data String
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- type String
- data string
- name string
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- type string
- data str
- name str
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- type str
- data String
- name String
Name of the resource; provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit.
- type String
Import
DnsAuthorization can be imported using any of these accepted formats
$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization default projects/{{project}}/locations/global/dnsAuthorizations/{{name}}
$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization default {{project}}/{{name}}
$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization 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.