dnsimple

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing dnsimple cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

The provider type for the dnsimple package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (Provider) ElementType added in v2.4.2

func (Provider) ElementType() reflect.Type

func (Provider) ToProviderOutput added in v2.4.2

func (i Provider) ToProviderOutput() ProviderOutput

func (Provider) ToProviderOutputWithContext added in v2.4.2

func (i Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The account for API operations.
	Account pulumi.StringPtrInput
	// The API v2 token for API operations.
	Token pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput added in v2.4.2

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput added in v2.4.2

type ProviderOutput struct {
	*pulumi.OutputState
}

func (ProviderOutput) ElementType added in v2.4.2

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput added in v2.4.2

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext added in v2.4.2

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Record

type Record struct {
	pulumi.CustomResourceState

	// The domain to add the record to
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The domain ID of the record
	DomainId pulumi.StringOutput `pulumi:"domainId"`
	// The FQDN of the record
	Hostname pulumi.StringOutput `pulumi:"hostname"`
	// The name of the record
	Name pulumi.StringOutput `pulumi:"name"`
	// The priority of the record - only useful for some record types
	Priority pulumi.Float64Output `pulumi:"priority"`
	// The TTL of the record
	Ttl pulumi.Float64PtrOutput `pulumi:"ttl"`
	// The type of the record
	Type pulumi.StringOutput `pulumi:"type"`
	// The value of the record
	Value pulumi.StringOutput `pulumi:"value"`
}

Provides a DNSimple record resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-dnsimple/sdk/v2/go/dnsimple"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dnsimple.NewRecord(ctx, "foobar", &dnsimple.RecordArgs{
			Domain: pulumi.Any(_var.Dnsimple_domain),
			Name:   pulumi.String(""),
			Ttl:    pulumi.Float64(3600),
			Type:   pulumi.String("A"),
			Value:  pulumi.String("192.168.0.11"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

```go package main

import (

"github.com/pulumi/pulumi-dnsimple/sdk/v2/go/dnsimple"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dnsimple.NewRecord(ctx, "foobar", &dnsimple.RecordArgs{
			Domain: pulumi.Any(_var.Dnsimple_domain),
			Name:   pulumi.String("terraform"),
			Ttl:    pulumi.Float64(3600),
			Type:   pulumi.String("A"),
			Value:  pulumi.String("192.168.0.11"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DNSimple resources can be imported using their domain name and numeric ID, e.g.

```sh

$ pulumi import dnsimple:index/record:Record resource_name example.com_1234

```

The numeric ID can be found in the URL when editing a record on the dnsimple web dashboard.

func GetRecord

func GetRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RecordState, opts ...pulumi.ResourceOption) (*Record, error)

GetRecord gets an existing Record 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 NewRecord

func NewRecord(ctx *pulumi.Context,
	name string, args *RecordArgs, opts ...pulumi.ResourceOption) (*Record, error)

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

func (Record) ElementType added in v2.4.2

func (Record) ElementType() reflect.Type

func (Record) ToRecordOutput added in v2.4.2

func (i Record) ToRecordOutput() RecordOutput

func (Record) ToRecordOutputWithContext added in v2.4.2

func (i Record) ToRecordOutputWithContext(ctx context.Context) RecordOutput

type RecordArgs

type RecordArgs struct {
	// The domain to add the record to
	Domain pulumi.StringInput
	// The name of the record
	Name pulumi.StringInput
	// The priority of the record - only useful for some record types
	Priority pulumi.Float64PtrInput
	// The TTL of the record
	Ttl pulumi.Float64PtrInput
	// The type of the record
	Type pulumi.StringInput
	// The value of the record
	Value pulumi.StringInput
}

The set of arguments for constructing a Record resource.

func (RecordArgs) ElementType

func (RecordArgs) ElementType() reflect.Type

type RecordInput added in v2.4.2

type RecordInput interface {
	pulumi.Input

	ToRecordOutput() RecordOutput
	ToRecordOutputWithContext(ctx context.Context) RecordOutput
}

type RecordOutput added in v2.4.2

type RecordOutput struct {
	*pulumi.OutputState
}

func (RecordOutput) ElementType added in v2.4.2

func (RecordOutput) ElementType() reflect.Type

func (RecordOutput) ToRecordOutput added in v2.4.2

func (o RecordOutput) ToRecordOutput() RecordOutput

func (RecordOutput) ToRecordOutputWithContext added in v2.4.2

func (o RecordOutput) ToRecordOutputWithContext(ctx context.Context) RecordOutput

type RecordState

type RecordState struct {
	// The domain to add the record to
	Domain pulumi.StringPtrInput
	// The domain ID of the record
	DomainId pulumi.StringPtrInput
	// The FQDN of the record
	Hostname pulumi.StringPtrInput
	// The name of the record
	Name pulumi.StringPtrInput
	// The priority of the record - only useful for some record types
	Priority pulumi.Float64PtrInput
	// The TTL of the record
	Ttl pulumi.Float64PtrInput
	// The type of the record
	Type pulumi.StringPtrInput
	// The value of the record
	Value pulumi.StringPtrInput
}

func (RecordState) ElementType

func (RecordState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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