1. Packages
  2. DNSimple
DNSimple v3.4.0 published on Wednesday, Nov 30, 2022 by Pulumi

DNSimple

dnsimple logo
DNSimple v3.4.0 published on Wednesday, Nov 30, 2022 by Pulumi

    The DNSimple provider for Pulumi can be used to provision any of the cloud resources available in DNSimple. The DNSimple provider must be configured with credentials to deploy and update resources in DNSimple.

    Example

    import * as dnsimple from "@pulumi/dnsimple";
    
    const record = new dnsimple.Record("test", {
      name: "test",
      domain: "mydomain.dev",
      type: dnsimple.RecordTypes.CNAME,
      value: "api.devflix.watch.herokudns.com"
    });
    
    import pulumi_dnsimple as dnsimple
    
    record = dnsimple.Record("test",
      name="test",
      domain="mydomain.dev",
      type="CNAME",
      value="api.devflix.watch.herokudns.com"
    )
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	dnsimple "github.com/pulumi/pulumi-dnsimple/sdk/v3/go/dnsimple"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		record, err := dnsimple.NewRecord(ctx, "test", &dnsimple.RecordArgs{
    			Name:   pulumi.String("test"),
    			Domain: pulumi.String("mydomain.dev"),
    			Type:   pulumi.String("CNAME"),
    			Value:  pulumi.String("api.devflix.watch.herokudns.com"),
    		})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Dnsimple;
    
    class Program
    {
        static Task Main() =>
            Deployment.Run(() => {
                var record = new Record("test", new RecordArgs
                {
                    Name = "test",
                    Domain = "mydomain.dev",
                    Type = "CNAME",
                    Value = "api.devflix.watch.herokudns.com",
                });
            });
    }
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dnsimple.Record;
    import com.pulumi.dnsimple.RecordArgs;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var record = new Record("record", RecordArgs.builder()
                    .name("test")
                    .domain("mydomain.dev")
                    .type("CNAME")
                    .value("api.devflix.watch.herokudns.com")
                    .build());
    
        }
    }
    
    resources:
      record:
        type: dnsimple:Record
        properties:
          name: test
          domain: mydomain.dev
          type: CNAME
          value: api.devflix.watch.herokudns.com
    
    dnsimple logo
    DNSimple v3.4.0 published on Wednesday, Nov 30, 2022 by Pulumi