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.
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 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 }) }
```
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.
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 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