certificatemanager

package
v6.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	// A human-readable description of the resource.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// Configuration and state of a Managed Certificate.
	// Certificate Manager provisions and renews Managed Certificates
	// automatically, for as long as it's authorized to do so.
	// Structure is documented below.
	Managed CertificateManagedPtrOutput `pulumi:"managed"`
	// A user-defined name of the certificate. Certificate names must be unique
	// 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.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The scope of the certificate.
	// Certificates with default scope are served from core Google data centers.
	// If unsure, choose this option.
	// Certificates with scope EDGE_CACHE are special-purposed certificates,
	// served from non-core Google data centers.
	// Currently allowed only for managed certificates.
	// Default value is `DEFAULT`.
	// Possible values are `DEFAULT` and `EDGE_CACHE`.
	Scope pulumi.StringPtrOutput `pulumi:"scope"`
	// Certificate data for a SelfManaged Certificate.
	// SelfManaged Certificates are uploaded by the user. Updating such
	// certificates before they expire remains the user's responsibility.
	// Structure is documented below.
	SelfManaged CertificateSelfManagedPtrOutput `pulumi:"selfManaged"`
}

## Example Usage ### Certificate Manager Certificate Basic

```go 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 {
		instance, err := certificatemanager.NewDnsAuthorization(ctx, "instance", &certificatemanager.DnsAuthorizationArgs{
			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{
			Description: pulumi.String("The default dnss"),
			Domain:      pulumi.String("subdomain2.hashicorptest.com"),
		})
		if err != nil {
			return err
		}
		_, err = certificatemanager.NewCertificate(ctx, "default", &certificatemanager.CertificateArgs{
			Description: pulumi.String("The default cert"),
			Scope:       pulumi.String("EDGE_CACHE"),
			Managed: &certificatemanager.CertificateManagedArgs{
				Domains: pulumi.StringArray{
					instance.Domain,
					instance2.Domain,
				},
				DnsAuthorizations: pulumi.StringArray{
					instance.ID(),
					instance2.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Certificate can be imported using any of these accepted formats

```sh

$ pulumi import gcp:certificatemanager/certificate:Certificate default projects/{{project}}/locations/global/certificates/{{name}}

```

```sh

$ pulumi import gcp:certificatemanager/certificate:Certificate default {{project}}/{{name}}

```

```sh

$ pulumi import gcp:certificatemanager/certificate:Certificate default {{name}}

```

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

NewCertificate registers a new resource with the given unique name, arguments, and options.

func (*Certificate) ElementType

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs

type CertificateArgs struct {
	// A human-readable description of the resource.
	Description pulumi.StringPtrInput
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapInput
	// Configuration and state of a Managed Certificate.
	// Certificate Manager provisions and renews Managed Certificates
	// automatically, for as long as it's authorized to do so.
	// Structure is documented below.
	Managed CertificateManagedPtrInput
	// A user-defined name of the certificate. Certificate names must be unique
	// 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.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The scope of the certificate.
	// Certificates with default scope are served from core Google data centers.
	// If unsure, choose this option.
	// Certificates with scope EDGE_CACHE are special-purposed certificates,
	// served from non-core Google data centers.
	// Currently allowed only for managed certificates.
	// Default value is `DEFAULT`.
	// Possible values are `DEFAULT` and `EDGE_CACHE`.
	Scope pulumi.StringPtrInput
	// Certificate data for a SelfManaged Certificate.
	// SelfManaged Certificates are uploaded by the user. Updating such
	// certificates before they expire remains the user's responsibility.
	// Structure is documented below.
	SelfManaged CertificateSelfManagedPtrInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray

type CertificateArray []CertificateInput

func (CertificateArray) ElementType

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index

func (CertificateArrayOutput) ToCertificateArrayOutput

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateInput

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateManaged

type CertificateManaged struct {
	// Authorizations that will be used for performing domain authorization
	DnsAuthorizations []string `pulumi:"dnsAuthorizations"`
	// The domains for which a managed SSL certificate will be generated.
	// Wildcard domains are only supported with DNS challenge resolution
	Domains []string `pulumi:"domains"`
	// -
	// State of the managed certificate resource.
	State *string `pulumi:"state"`
}

type CertificateManagedArgs

type CertificateManagedArgs struct {
	// Authorizations that will be used for performing domain authorization
	DnsAuthorizations pulumi.StringArrayInput `pulumi:"dnsAuthorizations"`
	// The domains for which a managed SSL certificate will be generated.
	// Wildcard domains are only supported with DNS challenge resolution
	Domains pulumi.StringArrayInput `pulumi:"domains"`
	// -
	// State of the managed certificate resource.
	State pulumi.StringPtrInput `pulumi:"state"`
}

func (CertificateManagedArgs) ElementType

func (CertificateManagedArgs) ElementType() reflect.Type

func (CertificateManagedArgs) ToCertificateManagedOutput

func (i CertificateManagedArgs) ToCertificateManagedOutput() CertificateManagedOutput

func (CertificateManagedArgs) ToCertificateManagedOutputWithContext

func (i CertificateManagedArgs) ToCertificateManagedOutputWithContext(ctx context.Context) CertificateManagedOutput

func (CertificateManagedArgs) ToCertificateManagedPtrOutput

func (i CertificateManagedArgs) ToCertificateManagedPtrOutput() CertificateManagedPtrOutput

func (CertificateManagedArgs) ToCertificateManagedPtrOutputWithContext

func (i CertificateManagedArgs) ToCertificateManagedPtrOutputWithContext(ctx context.Context) CertificateManagedPtrOutput

type CertificateManagedInput

type CertificateManagedInput interface {
	pulumi.Input

	ToCertificateManagedOutput() CertificateManagedOutput
	ToCertificateManagedOutputWithContext(context.Context) CertificateManagedOutput
}

CertificateManagedInput is an input type that accepts CertificateManagedArgs and CertificateManagedOutput values. You can construct a concrete instance of `CertificateManagedInput` via:

CertificateManagedArgs{...}

type CertificateManagedOutput

type CertificateManagedOutput struct{ *pulumi.OutputState }

func (CertificateManagedOutput) DnsAuthorizations

func (o CertificateManagedOutput) DnsAuthorizations() pulumi.StringArrayOutput

Authorizations that will be used for performing domain authorization

func (CertificateManagedOutput) Domains

The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution

func (CertificateManagedOutput) ElementType

func (CertificateManagedOutput) ElementType() reflect.Type

func (CertificateManagedOutput) State

- State of the managed certificate resource.

func (CertificateManagedOutput) ToCertificateManagedOutput

func (o CertificateManagedOutput) ToCertificateManagedOutput() CertificateManagedOutput

func (CertificateManagedOutput) ToCertificateManagedOutputWithContext

func (o CertificateManagedOutput) ToCertificateManagedOutputWithContext(ctx context.Context) CertificateManagedOutput

func (CertificateManagedOutput) ToCertificateManagedPtrOutput

func (o CertificateManagedOutput) ToCertificateManagedPtrOutput() CertificateManagedPtrOutput

func (CertificateManagedOutput) ToCertificateManagedPtrOutputWithContext

func (o CertificateManagedOutput) ToCertificateManagedPtrOutputWithContext(ctx context.Context) CertificateManagedPtrOutput

type CertificateManagedPtrInput

type CertificateManagedPtrInput interface {
	pulumi.Input

	ToCertificateManagedPtrOutput() CertificateManagedPtrOutput
	ToCertificateManagedPtrOutputWithContext(context.Context) CertificateManagedPtrOutput
}

CertificateManagedPtrInput is an input type that accepts CertificateManagedArgs, CertificateManagedPtr and CertificateManagedPtrOutput values. You can construct a concrete instance of `CertificateManagedPtrInput` via:

        CertificateManagedArgs{...}

or:

        nil

type CertificateManagedPtrOutput

type CertificateManagedPtrOutput struct{ *pulumi.OutputState }

func (CertificateManagedPtrOutput) DnsAuthorizations

Authorizations that will be used for performing domain authorization

func (CertificateManagedPtrOutput) Domains

The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution

func (CertificateManagedPtrOutput) Elem

func (CertificateManagedPtrOutput) ElementType

func (CertificateManagedPtrOutput) State

- State of the managed certificate resource.

func (CertificateManagedPtrOutput) ToCertificateManagedPtrOutput

func (o CertificateManagedPtrOutput) ToCertificateManagedPtrOutput() CertificateManagedPtrOutput

func (CertificateManagedPtrOutput) ToCertificateManagedPtrOutputWithContext

func (o CertificateManagedPtrOutput) ToCertificateManagedPtrOutputWithContext(ctx context.Context) CertificateManagedPtrOutput

type CertificateMap

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex

func (CertificateMapOutput) ToCertificateMapOutput

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Description

func (o CertificateOutput) Description() pulumi.StringPtrOutput

A human-readable description of the resource.

func (CertificateOutput) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Labels

Set of label tags associated with the EdgeCache resource.

func (CertificateOutput) Managed

Configuration and state of a Managed Certificate. Certificate Manager provisions and renews Managed Certificates automatically, for as long as it's authorized to do so. Structure is documented below.

func (CertificateOutput) Name

A user-defined name of the certificate. Certificate names must be unique 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.

func (CertificateOutput) Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (CertificateOutput) Scope

The scope of the certificate. Certificates with default scope are served from core Google data centers. If unsure, choose this option. Certificates with scope EDGE_CACHE are special-purposed certificates, served from non-core Google data centers. Currently allowed only for managed certificates. Default value is `DEFAULT`. Possible values are `DEFAULT` and `EDGE_CACHE`.

func (CertificateOutput) SelfManaged

Certificate data for a SelfManaged Certificate. SelfManaged Certificates are uploaded by the user. Updating such certificates before they expire remains the user's responsibility. Structure is documented below.

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateSelfManaged

type CertificateSelfManaged struct {
	// The certificate chain in PEM-encoded form.
	// Leaf certificate comes first, followed by intermediate ones if any.
	// **Note**: This property is sensitive and will not be displayed in the plan.
	CertificatePem string `pulumi:"certificatePem"`
	// The private key of the leaf certificate in PEM-encoded form.
	// **Note**: This property is sensitive and will not be displayed in the plan.
	PrivateKeyPem string `pulumi:"privateKeyPem"`
}

type CertificateSelfManagedArgs

type CertificateSelfManagedArgs struct {
	// The certificate chain in PEM-encoded form.
	// Leaf certificate comes first, followed by intermediate ones if any.
	// **Note**: This property is sensitive and will not be displayed in the plan.
	CertificatePem pulumi.StringInput `pulumi:"certificatePem"`
	// The private key of the leaf certificate in PEM-encoded form.
	// **Note**: This property is sensitive and will not be displayed in the plan.
	PrivateKeyPem pulumi.StringInput `pulumi:"privateKeyPem"`
}

func (CertificateSelfManagedArgs) ElementType

func (CertificateSelfManagedArgs) ElementType() reflect.Type

func (CertificateSelfManagedArgs) ToCertificateSelfManagedOutput

func (i CertificateSelfManagedArgs) ToCertificateSelfManagedOutput() CertificateSelfManagedOutput

func (CertificateSelfManagedArgs) ToCertificateSelfManagedOutputWithContext

func (i CertificateSelfManagedArgs) ToCertificateSelfManagedOutputWithContext(ctx context.Context) CertificateSelfManagedOutput

func (CertificateSelfManagedArgs) ToCertificateSelfManagedPtrOutput

func (i CertificateSelfManagedArgs) ToCertificateSelfManagedPtrOutput() CertificateSelfManagedPtrOutput

func (CertificateSelfManagedArgs) ToCertificateSelfManagedPtrOutputWithContext

func (i CertificateSelfManagedArgs) ToCertificateSelfManagedPtrOutputWithContext(ctx context.Context) CertificateSelfManagedPtrOutput

type CertificateSelfManagedInput

type CertificateSelfManagedInput interface {
	pulumi.Input

	ToCertificateSelfManagedOutput() CertificateSelfManagedOutput
	ToCertificateSelfManagedOutputWithContext(context.Context) CertificateSelfManagedOutput
}

CertificateSelfManagedInput is an input type that accepts CertificateSelfManagedArgs and CertificateSelfManagedOutput values. You can construct a concrete instance of `CertificateSelfManagedInput` via:

CertificateSelfManagedArgs{...}

type CertificateSelfManagedOutput

type CertificateSelfManagedOutput struct{ *pulumi.OutputState }

func (CertificateSelfManagedOutput) CertificatePem

The certificate chain in PEM-encoded form. Leaf certificate comes first, followed by intermediate ones if any. **Note**: This property is sensitive and will not be displayed in the plan.

func (CertificateSelfManagedOutput) ElementType

func (CertificateSelfManagedOutput) PrivateKeyPem

The private key of the leaf certificate in PEM-encoded form. **Note**: This property is sensitive and will not be displayed in the plan.

func (CertificateSelfManagedOutput) ToCertificateSelfManagedOutput

func (o CertificateSelfManagedOutput) ToCertificateSelfManagedOutput() CertificateSelfManagedOutput

func (CertificateSelfManagedOutput) ToCertificateSelfManagedOutputWithContext

func (o CertificateSelfManagedOutput) ToCertificateSelfManagedOutputWithContext(ctx context.Context) CertificateSelfManagedOutput

func (CertificateSelfManagedOutput) ToCertificateSelfManagedPtrOutput

func (o CertificateSelfManagedOutput) ToCertificateSelfManagedPtrOutput() CertificateSelfManagedPtrOutput

func (CertificateSelfManagedOutput) ToCertificateSelfManagedPtrOutputWithContext

func (o CertificateSelfManagedOutput) ToCertificateSelfManagedPtrOutputWithContext(ctx context.Context) CertificateSelfManagedPtrOutput

type CertificateSelfManagedPtrInput

type CertificateSelfManagedPtrInput interface {
	pulumi.Input

	ToCertificateSelfManagedPtrOutput() CertificateSelfManagedPtrOutput
	ToCertificateSelfManagedPtrOutputWithContext(context.Context) CertificateSelfManagedPtrOutput
}

CertificateSelfManagedPtrInput is an input type that accepts CertificateSelfManagedArgs, CertificateSelfManagedPtr and CertificateSelfManagedPtrOutput values. You can construct a concrete instance of `CertificateSelfManagedPtrInput` via:

        CertificateSelfManagedArgs{...}

or:

        nil

type CertificateSelfManagedPtrOutput

type CertificateSelfManagedPtrOutput struct{ *pulumi.OutputState }

func (CertificateSelfManagedPtrOutput) CertificatePem

The certificate chain in PEM-encoded form. Leaf certificate comes first, followed by intermediate ones if any. **Note**: This property is sensitive and will not be displayed in the plan.

func (CertificateSelfManagedPtrOutput) Elem

func (CertificateSelfManagedPtrOutput) ElementType

func (CertificateSelfManagedPtrOutput) PrivateKeyPem

The private key of the leaf certificate in PEM-encoded form. **Note**: This property is sensitive and will not be displayed in the plan.

func (CertificateSelfManagedPtrOutput) ToCertificateSelfManagedPtrOutput

func (o CertificateSelfManagedPtrOutput) ToCertificateSelfManagedPtrOutput() CertificateSelfManagedPtrOutput

func (CertificateSelfManagedPtrOutput) ToCertificateSelfManagedPtrOutputWithContext

func (o CertificateSelfManagedPtrOutput) ToCertificateSelfManagedPtrOutputWithContext(ctx context.Context) CertificateSelfManagedPtrOutput

type CertificateState

type CertificateState struct {
	// A human-readable description of the resource.
	Description pulumi.StringPtrInput
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapInput
	// Configuration and state of a Managed Certificate.
	// Certificate Manager provisions and renews Managed Certificates
	// automatically, for as long as it's authorized to do so.
	// Structure is documented below.
	Managed CertificateManagedPtrInput
	// A user-defined name of the certificate. Certificate names must be unique
	// 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.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// The scope of the certificate.
	// Certificates with default scope are served from core Google data centers.
	// If unsure, choose this option.
	// Certificates with scope EDGE_CACHE are special-purposed certificates,
	// served from non-core Google data centers.
	// Currently allowed only for managed certificates.
	// Default value is `DEFAULT`.
	// Possible values are `DEFAULT` and `EDGE_CACHE`.
	Scope pulumi.StringPtrInput
	// Certificate data for a SelfManaged Certificate.
	// SelfManaged Certificates are uploaded by the user. Updating such
	// certificates before they expire remains the user's responsibility.
	// Structure is documented below.
	SelfManaged CertificateSelfManagedPtrInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type DnsAuthorization

type DnsAuthorization struct {
	pulumi.CustomResourceState

	// A human-readable description of the resource.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be
	// usable by certificate.
	DnsResourceRecords DnsAuthorizationDnsResourceRecordArrayOutput `pulumi:"dnsResourceRecords"`
	// 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".
	Domain pulumi.StringOutput `pulumi:"domain"`
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// 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.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
}

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

## Import

DnsAuthorization can be imported using any of these accepted formats

```sh

$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization default projects/{{project}}/locations/global/dnsAuthorizations/{{name}}

```

```sh

$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization default {{project}}/{{name}}

```

```sh

$ pulumi import gcp:certificatemanager/dnsAuthorization:DnsAuthorization default {{name}}

```

func GetDnsAuthorization

func GetDnsAuthorization(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DnsAuthorizationState, opts ...pulumi.ResourceOption) (*DnsAuthorization, error)

GetDnsAuthorization gets an existing DnsAuthorization resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDnsAuthorization

func NewDnsAuthorization(ctx *pulumi.Context,
	name string, args *DnsAuthorizationArgs, opts ...pulumi.ResourceOption) (*DnsAuthorization, error)

NewDnsAuthorization registers a new resource with the given unique name, arguments, and options.

func (*DnsAuthorization) ElementType

func (*DnsAuthorization) ElementType() reflect.Type

func (*DnsAuthorization) ToDnsAuthorizationOutput

func (i *DnsAuthorization) ToDnsAuthorizationOutput() DnsAuthorizationOutput

func (*DnsAuthorization) ToDnsAuthorizationOutputWithContext

func (i *DnsAuthorization) ToDnsAuthorizationOutputWithContext(ctx context.Context) DnsAuthorizationOutput

type DnsAuthorizationArgs

type DnsAuthorizationArgs struct {
	// A human-readable description of the resource.
	Description pulumi.StringPtrInput
	// 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".
	Domain pulumi.StringInput
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapInput
	// 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.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a DnsAuthorization resource.

func (DnsAuthorizationArgs) ElementType

func (DnsAuthorizationArgs) ElementType() reflect.Type

type DnsAuthorizationArray

type DnsAuthorizationArray []DnsAuthorizationInput

func (DnsAuthorizationArray) ElementType

func (DnsAuthorizationArray) ElementType() reflect.Type

func (DnsAuthorizationArray) ToDnsAuthorizationArrayOutput

func (i DnsAuthorizationArray) ToDnsAuthorizationArrayOutput() DnsAuthorizationArrayOutput

func (DnsAuthorizationArray) ToDnsAuthorizationArrayOutputWithContext

func (i DnsAuthorizationArray) ToDnsAuthorizationArrayOutputWithContext(ctx context.Context) DnsAuthorizationArrayOutput

type DnsAuthorizationArrayInput

type DnsAuthorizationArrayInput interface {
	pulumi.Input

	ToDnsAuthorizationArrayOutput() DnsAuthorizationArrayOutput
	ToDnsAuthorizationArrayOutputWithContext(context.Context) DnsAuthorizationArrayOutput
}

DnsAuthorizationArrayInput is an input type that accepts DnsAuthorizationArray and DnsAuthorizationArrayOutput values. You can construct a concrete instance of `DnsAuthorizationArrayInput` via:

DnsAuthorizationArray{ DnsAuthorizationArgs{...} }

type DnsAuthorizationArrayOutput

type DnsAuthorizationArrayOutput struct{ *pulumi.OutputState }

func (DnsAuthorizationArrayOutput) ElementType

func (DnsAuthorizationArrayOutput) Index

func (DnsAuthorizationArrayOutput) ToDnsAuthorizationArrayOutput

func (o DnsAuthorizationArrayOutput) ToDnsAuthorizationArrayOutput() DnsAuthorizationArrayOutput

func (DnsAuthorizationArrayOutput) ToDnsAuthorizationArrayOutputWithContext

func (o DnsAuthorizationArrayOutput) ToDnsAuthorizationArrayOutputWithContext(ctx context.Context) DnsAuthorizationArrayOutput

type DnsAuthorizationDnsResourceRecord

type DnsAuthorizationDnsResourceRecord struct {
	Data *string `pulumi:"data"`
	// 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.
	Name *string `pulumi:"name"`
	Type *string `pulumi:"type"`
}

type DnsAuthorizationDnsResourceRecordArgs

type DnsAuthorizationDnsResourceRecordArgs struct {
	Data pulumi.StringPtrInput `pulumi:"data"`
	// 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.
	Name pulumi.StringPtrInput `pulumi:"name"`
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (DnsAuthorizationDnsResourceRecordArgs) ElementType

func (DnsAuthorizationDnsResourceRecordArgs) ToDnsAuthorizationDnsResourceRecordOutput

func (i DnsAuthorizationDnsResourceRecordArgs) ToDnsAuthorizationDnsResourceRecordOutput() DnsAuthorizationDnsResourceRecordOutput

func (DnsAuthorizationDnsResourceRecordArgs) ToDnsAuthorizationDnsResourceRecordOutputWithContext

func (i DnsAuthorizationDnsResourceRecordArgs) ToDnsAuthorizationDnsResourceRecordOutputWithContext(ctx context.Context) DnsAuthorizationDnsResourceRecordOutput

type DnsAuthorizationDnsResourceRecordArray

type DnsAuthorizationDnsResourceRecordArray []DnsAuthorizationDnsResourceRecordInput

func (DnsAuthorizationDnsResourceRecordArray) ElementType

func (DnsAuthorizationDnsResourceRecordArray) ToDnsAuthorizationDnsResourceRecordArrayOutput

func (i DnsAuthorizationDnsResourceRecordArray) ToDnsAuthorizationDnsResourceRecordArrayOutput() DnsAuthorizationDnsResourceRecordArrayOutput

func (DnsAuthorizationDnsResourceRecordArray) ToDnsAuthorizationDnsResourceRecordArrayOutputWithContext

func (i DnsAuthorizationDnsResourceRecordArray) ToDnsAuthorizationDnsResourceRecordArrayOutputWithContext(ctx context.Context) DnsAuthorizationDnsResourceRecordArrayOutput

type DnsAuthorizationDnsResourceRecordArrayInput

type DnsAuthorizationDnsResourceRecordArrayInput interface {
	pulumi.Input

	ToDnsAuthorizationDnsResourceRecordArrayOutput() DnsAuthorizationDnsResourceRecordArrayOutput
	ToDnsAuthorizationDnsResourceRecordArrayOutputWithContext(context.Context) DnsAuthorizationDnsResourceRecordArrayOutput
}

DnsAuthorizationDnsResourceRecordArrayInput is an input type that accepts DnsAuthorizationDnsResourceRecordArray and DnsAuthorizationDnsResourceRecordArrayOutput values. You can construct a concrete instance of `DnsAuthorizationDnsResourceRecordArrayInput` via:

DnsAuthorizationDnsResourceRecordArray{ DnsAuthorizationDnsResourceRecordArgs{...} }

type DnsAuthorizationDnsResourceRecordArrayOutput

type DnsAuthorizationDnsResourceRecordArrayOutput struct{ *pulumi.OutputState }

func (DnsAuthorizationDnsResourceRecordArrayOutput) ElementType

func (DnsAuthorizationDnsResourceRecordArrayOutput) Index

func (DnsAuthorizationDnsResourceRecordArrayOutput) ToDnsAuthorizationDnsResourceRecordArrayOutput

func (o DnsAuthorizationDnsResourceRecordArrayOutput) ToDnsAuthorizationDnsResourceRecordArrayOutput() DnsAuthorizationDnsResourceRecordArrayOutput

func (DnsAuthorizationDnsResourceRecordArrayOutput) ToDnsAuthorizationDnsResourceRecordArrayOutputWithContext

func (o DnsAuthorizationDnsResourceRecordArrayOutput) ToDnsAuthorizationDnsResourceRecordArrayOutputWithContext(ctx context.Context) DnsAuthorizationDnsResourceRecordArrayOutput

type DnsAuthorizationDnsResourceRecordInput

type DnsAuthorizationDnsResourceRecordInput interface {
	pulumi.Input

	ToDnsAuthorizationDnsResourceRecordOutput() DnsAuthorizationDnsResourceRecordOutput
	ToDnsAuthorizationDnsResourceRecordOutputWithContext(context.Context) DnsAuthorizationDnsResourceRecordOutput
}

DnsAuthorizationDnsResourceRecordInput is an input type that accepts DnsAuthorizationDnsResourceRecordArgs and DnsAuthorizationDnsResourceRecordOutput values. You can construct a concrete instance of `DnsAuthorizationDnsResourceRecordInput` via:

DnsAuthorizationDnsResourceRecordArgs{...}

type DnsAuthorizationDnsResourceRecordOutput

type DnsAuthorizationDnsResourceRecordOutput struct{ *pulumi.OutputState }

func (DnsAuthorizationDnsResourceRecordOutput) Data

func (DnsAuthorizationDnsResourceRecordOutput) ElementType

func (DnsAuthorizationDnsResourceRecordOutput) Name

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.

func (DnsAuthorizationDnsResourceRecordOutput) ToDnsAuthorizationDnsResourceRecordOutput

func (o DnsAuthorizationDnsResourceRecordOutput) ToDnsAuthorizationDnsResourceRecordOutput() DnsAuthorizationDnsResourceRecordOutput

func (DnsAuthorizationDnsResourceRecordOutput) ToDnsAuthorizationDnsResourceRecordOutputWithContext

func (o DnsAuthorizationDnsResourceRecordOutput) ToDnsAuthorizationDnsResourceRecordOutputWithContext(ctx context.Context) DnsAuthorizationDnsResourceRecordOutput

func (DnsAuthorizationDnsResourceRecordOutput) Type

type DnsAuthorizationInput

type DnsAuthorizationInput interface {
	pulumi.Input

	ToDnsAuthorizationOutput() DnsAuthorizationOutput
	ToDnsAuthorizationOutputWithContext(ctx context.Context) DnsAuthorizationOutput
}

type DnsAuthorizationMap

type DnsAuthorizationMap map[string]DnsAuthorizationInput

func (DnsAuthorizationMap) ElementType

func (DnsAuthorizationMap) ElementType() reflect.Type

func (DnsAuthorizationMap) ToDnsAuthorizationMapOutput

func (i DnsAuthorizationMap) ToDnsAuthorizationMapOutput() DnsAuthorizationMapOutput

func (DnsAuthorizationMap) ToDnsAuthorizationMapOutputWithContext

func (i DnsAuthorizationMap) ToDnsAuthorizationMapOutputWithContext(ctx context.Context) DnsAuthorizationMapOutput

type DnsAuthorizationMapInput

type DnsAuthorizationMapInput interface {
	pulumi.Input

	ToDnsAuthorizationMapOutput() DnsAuthorizationMapOutput
	ToDnsAuthorizationMapOutputWithContext(context.Context) DnsAuthorizationMapOutput
}

DnsAuthorizationMapInput is an input type that accepts DnsAuthorizationMap and DnsAuthorizationMapOutput values. You can construct a concrete instance of `DnsAuthorizationMapInput` via:

DnsAuthorizationMap{ "key": DnsAuthorizationArgs{...} }

type DnsAuthorizationMapOutput

type DnsAuthorizationMapOutput struct{ *pulumi.OutputState }

func (DnsAuthorizationMapOutput) ElementType

func (DnsAuthorizationMapOutput) ElementType() reflect.Type

func (DnsAuthorizationMapOutput) MapIndex

func (DnsAuthorizationMapOutput) ToDnsAuthorizationMapOutput

func (o DnsAuthorizationMapOutput) ToDnsAuthorizationMapOutput() DnsAuthorizationMapOutput

func (DnsAuthorizationMapOutput) ToDnsAuthorizationMapOutputWithContext

func (o DnsAuthorizationMapOutput) ToDnsAuthorizationMapOutputWithContext(ctx context.Context) DnsAuthorizationMapOutput

type DnsAuthorizationOutput

type DnsAuthorizationOutput struct{ *pulumi.OutputState }

func (DnsAuthorizationOutput) Description

A human-readable description of the resource.

func (DnsAuthorizationOutput) DnsResourceRecords

The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be usable by certificate.

func (DnsAuthorizationOutput) Domain

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

func (DnsAuthorizationOutput) ElementType

func (DnsAuthorizationOutput) ElementType() reflect.Type

func (DnsAuthorizationOutput) Labels

Set of label tags associated with the EdgeCache resource.

func (DnsAuthorizationOutput) Name

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.

func (DnsAuthorizationOutput) Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (DnsAuthorizationOutput) ToDnsAuthorizationOutput

func (o DnsAuthorizationOutput) ToDnsAuthorizationOutput() DnsAuthorizationOutput

func (DnsAuthorizationOutput) ToDnsAuthorizationOutputWithContext

func (o DnsAuthorizationOutput) ToDnsAuthorizationOutputWithContext(ctx context.Context) DnsAuthorizationOutput

type DnsAuthorizationState

type DnsAuthorizationState struct {
	// A human-readable description of the resource.
	Description pulumi.StringPtrInput
	// The structure describing the DNS Resource Record that needs to be added to DNS configuration for the authorization to be
	// usable by certificate.
	DnsResourceRecords DnsAuthorizationDnsResourceRecordArrayInput
	// 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".
	Domain pulumi.StringPtrInput
	// Set of label tags associated with the EdgeCache resource.
	Labels pulumi.StringMapInput
	// 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.
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
}

func (DnsAuthorizationState) ElementType

func (DnsAuthorizationState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL