diff --git a/sdk/dotnet/Domain.cs b/sdk/dotnet/Domain.cs
index 322fc332..3c912f85 100644
--- a/sdk/dotnet/Domain.cs
+++ b/sdk/dotnet/Domain.cs
@@ -35,13 +35,17 @@ namespace Pulumi.DNSimple
///
/// DNSimple domains can be imported using their numeric record ID.
///
+ /// bash
+ ///
/// ```sh
/// $ pulumi import dnsimple:index/domain:Domain resource_name 5678
/// ```
///
/// The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
///
- /// $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
+ /// bash
+ ///
+ /// curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
///
/// {
///
@@ -94,27 +98,47 @@ namespace Pulumi.DNSimple
[DNSimpleResourceType("dnsimple:index/domain:Domain")]
public partial class Domain : global::Pulumi.CustomResource
{
+ ///
+ /// The account ID for the domain.
+ ///
[Output("accountId")]
public Output AccountId { get; private set; } = null!;
+ ///
+ /// Whether the domain is set to auto-renew.
+ ///
[Output("autoRenew")]
public Output AutoRenew { get; private set; } = null!;
///
/// The domain name to be created
+ ///
+ /// # Attributes Reference
///
[Output("name")]
public Output Name { get; private set; } = null!;
+ ///
+ /// Whether the domain has WhoIs privacy enabled.
+ ///
[Output("privateWhois")]
public Output PrivateWhois { get; private set; } = null!;
+ ///
+ /// The ID of the registrant (contact) for the domain.
+ ///
[Output("registrantId")]
public Output RegistrantId { get; private set; } = null!;
+ ///
+ /// The state of the domain.
+ ///
[Output("state")]
public Output State { get; private set; } = null!;
+ ///
+ /// The domain name in Unicode format.
+ ///
[Output("unicodeName")]
public Output UnicodeName { get; private set; } = null!;
@@ -166,6 +190,8 @@ public sealed class DomainArgs : global::Pulumi.ResourceArgs
{
///
/// The domain name to be created
+ ///
+ /// # Attributes Reference
///
[Input("name", required: true)]
public Input Name { get; set; } = null!;
@@ -178,27 +204,47 @@ public DomainArgs()
public sealed class DomainState : global::Pulumi.ResourceArgs
{
+ ///
+ /// The account ID for the domain.
+ ///
[Input("accountId")]
public Input? AccountId { get; set; }
+ ///
+ /// Whether the domain is set to auto-renew.
+ ///
[Input("autoRenew")]
public Input? AutoRenew { get; set; }
///
/// The domain name to be created
+ ///
+ /// # Attributes Reference
///
[Input("name")]
public Input? Name { get; set; }
+ ///
+ /// Whether the domain has WhoIs privacy enabled.
+ ///
[Input("privateWhois")]
public Input? PrivateWhois { get; set; }
+ ///
+ /// The ID of the registrant (contact) for the domain.
+ ///
[Input("registrantId")]
public Input? RegistrantId { get; set; }
+ ///
+ /// The state of the domain.
+ ///
[Input("state")]
public Input? State { get; set; }
+ ///
+ /// The domain name in Unicode format.
+ ///
[Input("unicodeName")]
public Input? UnicodeName { get; set; }
diff --git a/sdk/dotnet/EmailForward.cs b/sdk/dotnet/EmailForward.cs
index 387a3008..78aecb12 100644
--- a/sdk/dotnet/EmailForward.cs
+++ b/sdk/dotnet/EmailForward.cs
@@ -25,19 +25,31 @@ namespace Pulumi.DNSimple
/// // Add an email forwarding rule to the domain
/// var foobar = new DNSimple.EmailForward("foobar", new()
/// {
- /// Domain = dnsimpleDomain,
+ /// Domain = dnsimpleDomain.Name,
/// AliasName = "sales",
- /// DestinationEmail = "jane.doe@example.com",
+ /// DestinationEmail = "alice.appleseed@example.com",
/// });
///
/// });
/// ```
+ ///
+ /// ## Import
+ ///
+ /// DNSimple resources can be imported using the domain name and numeric email forward ID.
+ ///
+ /// **Importing email forward for example.com with email forward ID 1234**
+ ///
+ /// bash
+ ///
+ /// ```sh
+ /// $ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
+ /// ```
///
[DNSimpleResourceType("dnsimple:index/emailForward:EmailForward")]
public partial class EmailForward : global::Pulumi.CustomResource
{
///
- /// The source email address on the domain
+ /// The source email address on the domain, in full form. This is a computed attribute.
///
[Output("aliasEmail")]
public Output AliasEmail { get; private set; } = null!;
@@ -49,13 +61,13 @@ public partial class EmailForward : global::Pulumi.CustomResource
public Output AliasName { get; private set; } = null!;
///
- /// The destination email address on another domain
+ /// The destination email address
///
[Output("destinationEmail")]
public Output DestinationEmail { get; private set; } = null!;
///
- /// The domain to add the email forwarding rule to
+ /// The domain name to add the email forwarding rule to
///
[Output("domain")]
public Output Domain { get; private set; } = null!;
@@ -113,13 +125,13 @@ public sealed class EmailForwardArgs : global::Pulumi.ResourceArgs
public Input AliasName { get; set; } = null!;
///
- /// The destination email address on another domain
+ /// The destination email address
///
[Input("destinationEmail", required: true)]
public Input DestinationEmail { get; set; } = null!;
///
- /// The domain to add the email forwarding rule to
+ /// The domain name to add the email forwarding rule to
///
[Input("domain", required: true)]
public Input Domain { get; set; } = null!;
@@ -133,7 +145,7 @@ public EmailForwardArgs()
public sealed class EmailForwardState : global::Pulumi.ResourceArgs
{
///
- /// The source email address on the domain
+ /// The source email address on the domain, in full form. This is a computed attribute.
///
[Input("aliasEmail")]
public Input? AliasEmail { get; set; }
@@ -145,13 +157,13 @@ public sealed class EmailForwardState : global::Pulumi.ResourceArgs
public Input? AliasName { get; set; }
///
- /// The destination email address on another domain
+ /// The destination email address
///
[Input("destinationEmail")]
public Input? DestinationEmail { get; set; }
///
- /// The domain to add the email forwarding rule to
+ /// The domain name to add the email forwarding rule to
///
[Input("domain")]
public Input? Domain { get; set; }
diff --git a/sdk/dotnet/GetCertificate.cs b/sdk/dotnet/GetCertificate.cs
index 5ce0fe14..e303f94a 100644
--- a/sdk/dotnet/GetCertificate.cs
+++ b/sdk/dotnet/GetCertificate.cs
@@ -69,7 +69,7 @@ public sealed class GetCertificateArgs : global::Pulumi.InvokeArgs
/// The ID of the SSL Certificate
///
[Input("certificateId", required: true)]
- public string CertificateId { get; set; } = null!;
+ public int CertificateId { get; set; }
///
/// The domain of the SSL Certificate
@@ -89,7 +89,7 @@ public sealed class GetCertificateInvokeArgs : global::Pulumi.InvokeArgs
/// The ID of the SSL Certificate
///
[Input("certificateId", required: true)]
- public Input CertificateId { get; set; } = null!;
+ public Input CertificateId { get; set; } = null!;
///
/// The domain of the SSL Certificate
@@ -111,11 +111,8 @@ public sealed class GetCertificateResult
/// A list of certificates that make up the chain
///
public readonly ImmutableArray CertificateChains;
- public readonly string CertificateId;
+ public readonly int CertificateId;
public readonly string Domain;
- ///
- /// The provider-assigned unique ID for this managed resource.
- ///
public readonly string Id;
///
/// The corresponding Private Key for the SSL Certificate
@@ -134,7 +131,7 @@ public sealed class GetCertificateResult
private GetCertificateResult(
ImmutableArray certificateChains,
- string certificateId,
+ int certificateId,
string domain,
diff --git a/sdk/dotnet/GetZone.cs b/sdk/dotnet/GetZone.cs
index 6d49b216..c60c44fe 100644
--- a/sdk/dotnet/GetZone.cs
+++ b/sdk/dotnet/GetZone.cs
@@ -36,11 +36,10 @@ public static class GetZone
///
/// * `name` - (Required) The name of the zone
///
- /// The following attributes are exported:
+ /// The following additional attributes are exported:
///
/// * `id` - The zone ID
/// * `account_id` - The account ID
- /// * `name` - The name of the zone
/// * `reverse` - True for a reverse zone, false for a forward zone.
///
public static Task InvokeAsync(GetZoneArgs args, InvokeOptions? options = null)
@@ -71,11 +70,10 @@ public static Task InvokeAsync(GetZoneArgs args, InvokeOptions? o
///
/// * `name` - (Required) The name of the zone
///
- /// The following attributes are exported:
+ /// The following additional attributes are exported:
///
/// * `id` - The zone ID
/// * `account_id` - The account ID
- /// * `name` - The name of the zone
/// * `reverse` - True for a reverse zone, false for a forward zone.
///
public static Output Invoke(GetZoneInvokeArgs args, InvokeOptions? options = null)
diff --git a/sdk/dotnet/LetsEncryptCertificate.cs b/sdk/dotnet/LetsEncryptCertificate.cs
index 24de5515..753088aa 100644
--- a/sdk/dotnet/LetsEncryptCertificate.cs
+++ b/sdk/dotnet/LetsEncryptCertificate.cs
@@ -42,17 +42,14 @@ public partial class LetsEncryptCertificate : global::Pulumi.CustomResource
public Output AuthorityIdentifier { get; private set; } = null!;
///
- /// Set to true if the certificate will auto-renew
+ /// True if the certificate should auto-renew
///
[Output("autoRenew")]
public Output AutoRenew { get; private set; } = null!;
///
- /// The contact id for the certificate
+ /// The datetime the certificate was created
///
- [Output("contactId")]
- public Output ContactId { get; private set; } = null!;
-
[Output("createdAt")]
public Output CreatedAt { get; private set; } = null!;
@@ -66,10 +63,13 @@ public partial class LetsEncryptCertificate : global::Pulumi.CustomResource
/// The domain to be issued the certificate for
///
[Output("domainId")]
- public Output DomainId { get; private set; } = null!;
+ public Output DomainId { get; private set; } = null!;
- [Output("expiresOn")]
- public Output ExpiresOn { get; private set; } = null!;
+ ///
+ /// The datetime the certificate will expire
+ ///
+ [Output("expiresAt")]
+ public Output ExpiresAt { get; private set; } = null!;
///
/// The certificate name
@@ -77,12 +77,21 @@ public partial class LetsEncryptCertificate : global::Pulumi.CustomResource
[Output("name")]
public Output Name { get; private set; } = null!;
+ ///
+ /// The signature algorithm to use for the certificate
+ ///
+ [Output("signatureAlgorithm")]
+ public Output SignatureAlgorithm { get; private set; } = null!;
+
///
/// The state of the certificate
///
[Output("state")]
public Output State { get; private set; } = null!;
+ ///
+ /// The datetime the certificate was last updated
+ ///
[Output("updatedAt")]
public Output UpdatedAt { get; private set; } = null!;
@@ -139,22 +148,16 @@ public static LetsEncryptCertificate Get(string name, Input id, LetsEncr
public sealed class LetsEncryptCertificateArgs : global::Pulumi.ResourceArgs
{
///
- /// Set to true if the certificate will auto-renew
+ /// True if the certificate should auto-renew
///
[Input("autoRenew", required: true)]
public Input AutoRenew { get; set; } = null!;
- ///
- /// The contact id for the certificate
- ///
- [Input("contactId")]
- public Input? ContactId { get; set; }
-
///
/// The domain to be issued the certificate for
///
- [Input("domainId")]
- public Input? DomainId { get; set; }
+ [Input("domainId", required: true)]
+ public Input DomainId { get; set; } = null!;
///
/// The certificate name
@@ -162,6 +165,12 @@ public sealed class LetsEncryptCertificateArgs : global::Pulumi.ResourceArgs
[Input("name", required: true)]
public Input Name { get; set; } = null!;
+ ///
+ /// The signature algorithm to use for the certificate
+ ///
+ [Input("signatureAlgorithm")]
+ public Input? SignatureAlgorithm { get; set; }
+
public LetsEncryptCertificateArgs()
{
}
@@ -177,17 +186,14 @@ public sealed class LetsEncryptCertificateState : global::Pulumi.ResourceArgs
public Input? AuthorityIdentifier { get; set; }
///
- /// Set to true if the certificate will auto-renew
+ /// True if the certificate should auto-renew
///
[Input("autoRenew")]
public Input? AutoRenew { get; set; }
///
- /// The contact id for the certificate
+ /// The datetime the certificate was created
///
- [Input("contactId")]
- public Input? ContactId { get; set; }
-
[Input("createdAt")]
public Input? CreatedAt { get; set; }
@@ -203,8 +209,11 @@ public sealed class LetsEncryptCertificateState : global::Pulumi.ResourceArgs
[Input("domainId")]
public Input? DomainId { get; set; }
- [Input("expiresOn")]
- public Input? ExpiresOn { get; set; }
+ ///
+ /// The datetime the certificate will expire
+ ///
+ [Input("expiresAt")]
+ public Input? ExpiresAt { get; set; }
///
/// The certificate name
@@ -212,12 +221,21 @@ public sealed class LetsEncryptCertificateState : global::Pulumi.ResourceArgs
[Input("name")]
public Input? Name { get; set; }
+ ///
+ /// The signature algorithm to use for the certificate
+ ///
+ [Input("signatureAlgorithm")]
+ public Input? SignatureAlgorithm { get; set; }
+
///
/// The state of the certificate
///
[Input("state")]
public Input? State { get; set; }
+ ///
+ /// The datetime the certificate was last updated
+ ///
[Input("updatedAt")]
public Input? UpdatedAt { get; set; }
diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs
index 213a17c3..96d4cce0 100644
--- a/sdk/dotnet/Provider.cs
+++ b/sdk/dotnet/Provider.cs
@@ -22,13 +22,13 @@ public partial class Provider : global::Pulumi.ProviderResource
/// The account for API operations.
///
[Output("account")]
- public Output Account { get; private set; } = null!;
+ public Output Account { get; private set; } = null!;
///
/// The API v2 token for API operations.
///
[Output("token")]
- public Output Token { get; private set; } = null!;
+ public Output Token { get; private set; } = null!;
///
/// Custom string to append to the user agent used for sending HTTP requests to the API.
@@ -44,7 +44,7 @@ public partial class Provider : global::Pulumi.ProviderResource
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
- public Provider(string name, ProviderArgs args, CustomResourceOptions? options = null)
+ public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
: base("dnsimple", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
{
}
@@ -71,8 +71,8 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
///
/// The account for API operations.
///
- [Input("account", required: true)]
- public Input Account { get; set; } = null!;
+ [Input("account")]
+ public Input? Account { get; set; }
///
/// Flag to enable the prefetch of zone records.
@@ -86,7 +86,7 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
[Input("sandbox", json: true)]
public Input? Sandbox { get; set; }
- [Input("token", required: true)]
+ [Input("token")]
private Input? _token;
///
diff --git a/sdk/dotnet/Record.cs b/sdk/dotnet/Record.cs
deleted file mode 100644
index 2a48d2e0..00000000
--- a/sdk/dotnet/Record.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
-// *** Do not edit by hand unless you're certain you know what you are doing! ***
-
-using System;
-using System.Collections.Generic;
-using System.Collections.Immutable;
-using System.Threading.Tasks;
-using Pulumi.Serialization;
-
-namespace Pulumi.DNSimple
-{
- [Obsolete(@"This resource is deprecated.
-It will be removed in the next major version.")]
- [DNSimpleResourceType("dnsimple:index/record:Record")]
- public partial class Record : global::Pulumi.CustomResource
- {
- [Output("domain")]
- public Output Domain { get; private set; } = null!;
-
- [Output("domainId")]
- public Output DomainId { get; private set; } = null!;
-
- [Output("hostname")]
- public Output Hostname { get; private set; } = null!;
-
- [Output("name")]
- public Output Name { get; private set; } = null!;
-
- [Output("priority")]
- public Output Priority { get; private set; } = null!;
-
- [Output("ttl")]
- public Output Ttl { get; private set; } = null!;
-
- [Output("type")]
- public Output Type { get; private set; } = null!;
-
- [Output("value")]
- public Output Value { get; private set; } = null!;
-
-
- ///
- /// Create a Record resource with the given unique name, arguments, and options.
- ///
- ///
- /// The unique name of the resource
- /// The arguments used to populate this resource's properties
- /// A bag of options that control this resource's behavior
- public Record(string name, RecordArgs args, CustomResourceOptions? options = null)
- : base("dnsimple:index/record:Record", name, args ?? new RecordArgs(), MakeResourceOptions(options, ""))
- {
- }
-
- private Record(string name, Input id, RecordState? state = null, CustomResourceOptions? options = null)
- : base("dnsimple:index/record:Record", name, state, MakeResourceOptions(options, id))
- {
- }
-
- private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
- {
- var defaultOptions = new CustomResourceOptions
- {
- Version = Utilities.Version,
- };
- var merged = CustomResourceOptions.Merge(defaultOptions, options);
- // Override the ID if one was specified for consistency with other language SDKs.
- merged.Id = id ?? merged.Id;
- return merged;
- }
- ///
- /// Get an existing Record resource's state with the given name, ID, and optional extra
- /// properties used to qualify the lookup.
- ///
- ///
- /// The unique name of the resulting resource.
- /// The unique provider ID of the resource to lookup.
- /// Any extra arguments used during the lookup.
- /// A bag of options that control this resource's behavior
- public static Record Get(string name, Input id, RecordState? state = null, CustomResourceOptions? options = null)
- {
- return new Record(name, id, state, options);
- }
- }
-
- public sealed class RecordArgs : global::Pulumi.ResourceArgs
- {
- [Input("domain", required: true)]
- public Input Domain { get; set; } = null!;
-
- [Input("name", required: true)]
- public Input Name { get; set; } = null!;
-
- [Input("priority")]
- public Input? Priority { get; set; }
-
- [Input("ttl")]
- public Input? Ttl { get; set; }
-
- [Input("type", required: true)]
- public Input Type { get; set; } = null!;
-
- [Input("value", required: true)]
- public Input Value { get; set; } = null!;
-
- public RecordArgs()
- {
- }
- public static new RecordArgs Empty => new RecordArgs();
- }
-
- public sealed class RecordState : global::Pulumi.ResourceArgs
- {
- [Input("domain")]
- public Input? Domain { get; set; }
-
- [Input("domainId")]
- public Input? DomainId { get; set; }
-
- [Input("hostname")]
- public Input? Hostname { get; set; }
-
- [Input("name")]
- public Input? Name { get; set; }
-
- [Input("priority")]
- public Input? Priority { get; set; }
-
- [Input("ttl")]
- public Input? Ttl { get; set; }
-
- [Input("type")]
- public Input? Type { get; set; }
-
- [Input("value")]
- public Input? Value { get; set; }
-
- public RecordState()
- {
- }
- public static new RecordState Empty => new RecordState();
- }
-}
diff --git a/sdk/dotnet/ZoneRecord.cs b/sdk/dotnet/ZoneRecord.cs
index b9b7d2b6..0d5b0c8f 100644
--- a/sdk/dotnet/ZoneRecord.cs
+++ b/sdk/dotnet/ZoneRecord.cs
@@ -12,11 +12,6 @@ namespace Pulumi.DNSimple
///
/// Provides a DNSimple zone record resource.
///
- /// ## Deprecation warning
- ///
- /// You can still use the _deprecated_ `dnsimple.Record` configuration, but be aware that it will be removed in the
- /// upcoming 1.0.0 release.
- ///
/// ## Example Usage
///
/// ```csharp
@@ -34,7 +29,7 @@ namespace Pulumi.DNSimple
/// Name = "",
/// Value = "192.168.0.11",
/// Type = "A",
- /// Ttl = "3600",
+ /// Ttl = 3600,
/// });
///
/// });
@@ -55,7 +50,7 @@ namespace Pulumi.DNSimple
/// Name = "terraform",
/// Value = "192.168.0.11",
/// Type = "A",
- /// Ttl = "3600",
+ /// Ttl = 3600,
/// });
///
/// });
@@ -65,16 +60,22 @@ namespace Pulumi.DNSimple
///
/// DNSimple resources can be imported using their parent zone name (domain name) and numeric record ID.
///
- /// __Importing record example.com with record ID 1234__
+ /// **Importing record example.com with record ID 1234**
+ ///
+ /// bash
///
/// ```sh
/// $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
/// ```
- /// __Importing record www.example.com with record ID 1234__
+ ///
+ /// **Importing record www.example.com with record ID 1234**
+ ///
+ /// bash
///
/// ```sh
/// $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
/// ```
+ ///
/// The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
///
[DNSimpleResourceType("dnsimple:index/zoneRecord:ZoneRecord")]
@@ -90,7 +91,7 @@ public partial class ZoneRecord : global::Pulumi.CustomResource
/// The priority of the record - only useful for some record types
///
[Output("priority")]
- public Output Priority { get; private set; } = null!;
+ public Output Priority { get; private set; } = null!;
///
/// The FQDN of the record
@@ -99,10 +100,10 @@ public partial class ZoneRecord : global::Pulumi.CustomResource
public Output QualifiedName { get; private set; } = null!;
///
- /// The TTL of the record
+ /// The TTL of the record - defaults to 3600
///
[Output("ttl")]
- public Output Ttl { get; private set; } = null!;
+ public Output Ttl { get; private set; } = null!;
///
/// The type of the record
@@ -184,13 +185,13 @@ public sealed class ZoneRecordArgs : global::Pulumi.ResourceArgs
/// The priority of the record - only useful for some record types
///
[Input("priority")]
- public Input? Priority { get; set; }
+ public Input? Priority { get; set; }
///
- /// The TTL of the record
+ /// The TTL of the record - defaults to 3600
///
[Input("ttl")]
- public Input? Ttl { get; set; }
+ public Input? Ttl { get; set; }
///
/// The type of the record
@@ -228,7 +229,7 @@ public sealed class ZoneRecordState : global::Pulumi.ResourceArgs
/// The priority of the record - only useful for some record types
///
[Input("priority")]
- public Input? Priority { get; set; }
+ public Input? Priority { get; set; }
///
/// The FQDN of the record
@@ -237,10 +238,10 @@ public sealed class ZoneRecordState : global::Pulumi.ResourceArgs
public Input? QualifiedName { get; set; }
///
- /// The TTL of the record
+ /// The TTL of the record - defaults to 3600
///
[Input("ttl")]
- public Input? Ttl { get; set; }
+ public Input? Ttl { get; set; }
///
/// The type of the record
diff --git a/sdk/go/dnsimple/domain.go b/sdk/go/dnsimple/domain.go
index 94a7aa94..f4e88754 100644
--- a/sdk/go/dnsimple/domain.go
+++ b/sdk/go/dnsimple/domain.go
@@ -45,13 +45,17 @@ import (
//
// DNSimple domains can be imported using their numeric record ID.
//
+// bash
+//
// ```sh
// $ pulumi import dnsimple:index/domain:Domain resource_name 5678
// ```
//
// The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
//
-// $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
+// bash
+//
+// curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
//
// {
//
@@ -103,14 +107,22 @@ import (
type Domain struct {
pulumi.CustomResourceState
- AccountId pulumi.IntOutput `pulumi:"accountId"`
+ // The account ID for the domain.
+ AccountId pulumi.IntOutput `pulumi:"accountId"`
+ // Whether the domain is set to auto-renew.
AutoRenew pulumi.BoolOutput `pulumi:"autoRenew"`
// The domain name to be created
- Name pulumi.StringOutput `pulumi:"name"`
- PrivateWhois pulumi.BoolOutput `pulumi:"privateWhois"`
- RegistrantId pulumi.IntOutput `pulumi:"registrantId"`
- State pulumi.StringOutput `pulumi:"state"`
- UnicodeName pulumi.StringOutput `pulumi:"unicodeName"`
+ //
+ // # Attributes Reference
+ Name pulumi.StringOutput `pulumi:"name"`
+ // Whether the domain has WhoIs privacy enabled.
+ PrivateWhois pulumi.BoolOutput `pulumi:"privateWhois"`
+ // The ID of the registrant (contact) for the domain.
+ RegistrantId pulumi.IntOutput `pulumi:"registrantId"`
+ // The state of the domain.
+ State pulumi.StringOutput `pulumi:"state"`
+ // The domain name in Unicode format.
+ UnicodeName pulumi.StringOutput `pulumi:"unicodeName"`
}
// NewDomain registers a new resource with the given unique name, arguments, and options.
@@ -146,25 +158,41 @@ func GetDomain(ctx *pulumi.Context,
// Input properties used for looking up and filtering Domain resources.
type domainState struct {
- AccountId *int `pulumi:"accountId"`
+ // The account ID for the domain.
+ AccountId *int `pulumi:"accountId"`
+ // Whether the domain is set to auto-renew.
AutoRenew *bool `pulumi:"autoRenew"`
// The domain name to be created
- Name *string `pulumi:"name"`
- PrivateWhois *bool `pulumi:"privateWhois"`
- RegistrantId *int `pulumi:"registrantId"`
- State *string `pulumi:"state"`
- UnicodeName *string `pulumi:"unicodeName"`
+ //
+ // # Attributes Reference
+ Name *string `pulumi:"name"`
+ // Whether the domain has WhoIs privacy enabled.
+ PrivateWhois *bool `pulumi:"privateWhois"`
+ // The ID of the registrant (contact) for the domain.
+ RegistrantId *int `pulumi:"registrantId"`
+ // The state of the domain.
+ State *string `pulumi:"state"`
+ // The domain name in Unicode format.
+ UnicodeName *string `pulumi:"unicodeName"`
}
type DomainState struct {
+ // The account ID for the domain.
AccountId pulumi.IntPtrInput
+ // Whether the domain is set to auto-renew.
AutoRenew pulumi.BoolPtrInput
// The domain name to be created
- Name pulumi.StringPtrInput
+ //
+ // # Attributes Reference
+ Name pulumi.StringPtrInput
+ // Whether the domain has WhoIs privacy enabled.
PrivateWhois pulumi.BoolPtrInput
+ // The ID of the registrant (contact) for the domain.
RegistrantId pulumi.IntPtrInput
- State pulumi.StringPtrInput
- UnicodeName pulumi.StringPtrInput
+ // The state of the domain.
+ State pulumi.StringPtrInput
+ // The domain name in Unicode format.
+ UnicodeName pulumi.StringPtrInput
}
func (DomainState) ElementType() reflect.Type {
@@ -173,12 +201,16 @@ func (DomainState) ElementType() reflect.Type {
type domainArgs struct {
// The domain name to be created
+ //
+ // # Attributes Reference
Name string `pulumi:"name"`
}
// The set of arguments for constructing a Domain resource.
type DomainArgs struct {
// The domain name to be created
+ //
+ // # Attributes Reference
Name pulumi.StringInput
}
@@ -269,31 +301,39 @@ func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutpu
return o
}
+// The account ID for the domain.
func (o DomainOutput) AccountId() pulumi.IntOutput {
return o.ApplyT(func(v *Domain) pulumi.IntOutput { return v.AccountId }).(pulumi.IntOutput)
}
+// Whether the domain is set to auto-renew.
func (o DomainOutput) AutoRenew() pulumi.BoolOutput {
return o.ApplyT(func(v *Domain) pulumi.BoolOutput { return v.AutoRenew }).(pulumi.BoolOutput)
}
// The domain name to be created
+//
+// # Attributes Reference
func (o DomainOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Domain) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
+// Whether the domain has WhoIs privacy enabled.
func (o DomainOutput) PrivateWhois() pulumi.BoolOutput {
return o.ApplyT(func(v *Domain) pulumi.BoolOutput { return v.PrivateWhois }).(pulumi.BoolOutput)
}
+// The ID of the registrant (contact) for the domain.
func (o DomainOutput) RegistrantId() pulumi.IntOutput {
return o.ApplyT(func(v *Domain) pulumi.IntOutput { return v.RegistrantId }).(pulumi.IntOutput)
}
+// The state of the domain.
func (o DomainOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *Domain) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
+// The domain name in Unicode format.
func (o DomainOutput) UnicodeName() pulumi.StringOutput {
return o.ApplyT(func(v *Domain) pulumi.StringOutput { return v.UnicodeName }).(pulumi.StringOutput)
}
diff --git a/sdk/go/dnsimple/emailForward.go b/sdk/go/dnsimple/emailForward.go
index 56faab37..4c34c3c1 100644
--- a/sdk/go/dnsimple/emailForward.go
+++ b/sdk/go/dnsimple/emailForward.go
@@ -30,9 +30,9 @@ import (
// pulumi.Run(func(ctx *pulumi.Context) error {
// // Add an email forwarding rule to the domain
// _, err := dnsimple.NewEmailForward(ctx, "foobar", &dnsimple.EmailForwardArgs{
-// Domain: pulumi.Any(dnsimpleDomain),
+// Domain: pulumi.Any(dnsimpleDomain.Name),
// AliasName: pulumi.String("sales"),
-// DestinationEmail: pulumi.String("jane.doe@example.com"),
+// DestinationEmail: pulumi.String("alice.appleseed@example.com"),
// })
// if err != nil {
// return err
@@ -42,16 +42,28 @@ import (
// }
//
// ```
+//
+// ## Import
+//
+// DNSimple resources can be imported using the domain name and numeric email forward ID.
+//
+// **Importing email forward for example.com with email forward ID 1234**
+//
+// bash
+//
+// ```sh
+// $ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
+// ```
type EmailForward struct {
pulumi.CustomResourceState
- // The source email address on the domain
+ // The source email address on the domain, in full form. This is a computed attribute.
AliasEmail pulumi.StringOutput `pulumi:"aliasEmail"`
// The name part (the part before the @) of the source email address on the domain
AliasName pulumi.StringOutput `pulumi:"aliasName"`
- // The destination email address on another domain
+ // The destination email address
DestinationEmail pulumi.StringOutput `pulumi:"destinationEmail"`
- // The domain to add the email forwarding rule to
+ // The domain name to add the email forwarding rule to
Domain pulumi.StringOutput `pulumi:"domain"`
}
@@ -94,24 +106,24 @@ func GetEmailForward(ctx *pulumi.Context,
// Input properties used for looking up and filtering EmailForward resources.
type emailForwardState struct {
- // The source email address on the domain
+ // The source email address on the domain, in full form. This is a computed attribute.
AliasEmail *string `pulumi:"aliasEmail"`
// The name part (the part before the @) of the source email address on the domain
AliasName *string `pulumi:"aliasName"`
- // The destination email address on another domain
+ // The destination email address
DestinationEmail *string `pulumi:"destinationEmail"`
- // The domain to add the email forwarding rule to
+ // The domain name to add the email forwarding rule to
Domain *string `pulumi:"domain"`
}
type EmailForwardState struct {
- // The source email address on the domain
+ // The source email address on the domain, in full form. This is a computed attribute.
AliasEmail pulumi.StringPtrInput
// The name part (the part before the @) of the source email address on the domain
AliasName pulumi.StringPtrInput
- // The destination email address on another domain
+ // The destination email address
DestinationEmail pulumi.StringPtrInput
- // The domain to add the email forwarding rule to
+ // The domain name to add the email forwarding rule to
Domain pulumi.StringPtrInput
}
@@ -122,9 +134,9 @@ func (EmailForwardState) ElementType() reflect.Type {
type emailForwardArgs struct {
// The name part (the part before the @) of the source email address on the domain
AliasName string `pulumi:"aliasName"`
- // The destination email address on another domain
+ // The destination email address
DestinationEmail string `pulumi:"destinationEmail"`
- // The domain to add the email forwarding rule to
+ // The domain name to add the email forwarding rule to
Domain string `pulumi:"domain"`
}
@@ -132,9 +144,9 @@ type emailForwardArgs struct {
type EmailForwardArgs struct {
// The name part (the part before the @) of the source email address on the domain
AliasName pulumi.StringInput
- // The destination email address on another domain
+ // The destination email address
DestinationEmail pulumi.StringInput
- // The domain to add the email forwarding rule to
+ // The domain name to add the email forwarding rule to
Domain pulumi.StringInput
}
@@ -225,7 +237,7 @@ func (o EmailForwardOutput) ToEmailForwardOutputWithContext(ctx context.Context)
return o
}
-// The source email address on the domain
+// The source email address on the domain, in full form. This is a computed attribute.
func (o EmailForwardOutput) AliasEmail() pulumi.StringOutput {
return o.ApplyT(func(v *EmailForward) pulumi.StringOutput { return v.AliasEmail }).(pulumi.StringOutput)
}
@@ -235,12 +247,12 @@ func (o EmailForwardOutput) AliasName() pulumi.StringOutput {
return o.ApplyT(func(v *EmailForward) pulumi.StringOutput { return v.AliasName }).(pulumi.StringOutput)
}
-// The destination email address on another domain
+// The destination email address
func (o EmailForwardOutput) DestinationEmail() pulumi.StringOutput {
return o.ApplyT(func(v *EmailForward) pulumi.StringOutput { return v.DestinationEmail }).(pulumi.StringOutput)
}
-// The domain to add the email forwarding rule to
+// The domain name to add the email forwarding rule to
func (o EmailForwardOutput) Domain() pulumi.StringOutput {
return o.ApplyT(func(v *EmailForward) pulumi.StringOutput { return v.Domain }).(pulumi.StringOutput)
}
diff --git a/sdk/go/dnsimple/getCertificate.go b/sdk/go/dnsimple/getCertificate.go
index f8a785bd..63273e29 100644
--- a/sdk/go/dnsimple/getCertificate.go
+++ b/sdk/go/dnsimple/getCertificate.go
@@ -52,7 +52,7 @@ func GetCertificate(ctx *pulumi.Context, args *GetCertificateArgs, opts ...pulum
// A collection of arguments for invoking getCertificate.
type GetCertificateArgs struct {
// The ID of the SSL Certificate
- CertificateId string `pulumi:"certificateId"`
+ CertificateId int `pulumi:"certificateId"`
// The domain of the SSL Certificate
Domain string `pulumi:"domain"`
}
@@ -61,10 +61,9 @@ type GetCertificateArgs struct {
type GetCertificateResult struct {
// A list of certificates that make up the chain
CertificateChains []string `pulumi:"certificateChains"`
- CertificateId string `pulumi:"certificateId"`
+ CertificateId int `pulumi:"certificateId"`
Domain string `pulumi:"domain"`
- // The provider-assigned unique ID for this managed resource.
- Id string `pulumi:"id"`
+ Id string `pulumi:"id"`
// The corresponding Private Key for the SSL Certificate
PrivateKey string `pulumi:"privateKey"`
// The Root Certificate of the issuing CA
@@ -89,7 +88,7 @@ func GetCertificateOutput(ctx *pulumi.Context, args GetCertificateOutputArgs, op
// A collection of arguments for invoking getCertificate.
type GetCertificateOutputArgs struct {
// The ID of the SSL Certificate
- CertificateId pulumi.StringInput `pulumi:"certificateId"`
+ CertificateId pulumi.IntInput `pulumi:"certificateId"`
// The domain of the SSL Certificate
Domain pulumi.StringInput `pulumi:"domain"`
}
@@ -118,15 +117,14 @@ func (o GetCertificateResultOutput) CertificateChains() pulumi.StringArrayOutput
return o.ApplyT(func(v GetCertificateResult) []string { return v.CertificateChains }).(pulumi.StringArrayOutput)
}
-func (o GetCertificateResultOutput) CertificateId() pulumi.StringOutput {
- return o.ApplyT(func(v GetCertificateResult) string { return v.CertificateId }).(pulumi.StringOutput)
+func (o GetCertificateResultOutput) CertificateId() pulumi.IntOutput {
+ return o.ApplyT(func(v GetCertificateResult) int { return v.CertificateId }).(pulumi.IntOutput)
}
func (o GetCertificateResultOutput) Domain() pulumi.StringOutput {
return o.ApplyT(func(v GetCertificateResult) string { return v.Domain }).(pulumi.StringOutput)
}
-// The provider-assigned unique ID for this managed resource.
func (o GetCertificateResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetCertificateResult) string { return v.Id }).(pulumi.StringOutput)
}
diff --git a/sdk/go/dnsimple/getZone.go b/sdk/go/dnsimple/getZone.go
index 776c4384..18b682b7 100644
--- a/sdk/go/dnsimple/getZone.go
+++ b/sdk/go/dnsimple/getZone.go
@@ -43,11 +43,10 @@ import (
//
// * `name` - (Required) The name of the zone
//
-// The following attributes are exported:
+// The following additional attributes are exported:
//
// * `id` - The zone ID
// * `accountId` - The account ID
-// * `name` - The name of the zone
// * `reverse` - True for a reverse zone, false for a forward zone.
func GetZone(ctx *pulumi.Context, args *GetZoneArgs, opts ...pulumi.InvokeOption) (*GetZoneResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
diff --git a/sdk/go/dnsimple/init.go b/sdk/go/dnsimple/init.go
index 1960a6f0..01af774a 100644
--- a/sdk/go/dnsimple/init.go
+++ b/sdk/go/dnsimple/init.go
@@ -27,8 +27,6 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &EmailForward{}
case "dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate":
r = &LetsEncryptCertificate{}
- case "dnsimple:index/record:Record":
- r = &Record{}
case "dnsimple:index/zoneRecord:ZoneRecord":
r = &ZoneRecord{}
default:
@@ -77,11 +75,6 @@ func init() {
"index/letsEncryptCertificate",
&module{version},
)
- pulumi.RegisterResourceModule(
- "dnsimple",
- "index/record",
- &module{version},
- )
pulumi.RegisterResourceModule(
"dnsimple",
"index/zoneRecord",
diff --git a/sdk/go/dnsimple/letsEncryptCertificate.go b/sdk/go/dnsimple/letsEncryptCertificate.go
index e2540c01..15e98092 100644
--- a/sdk/go/dnsimple/letsEncryptCertificate.go
+++ b/sdk/go/dnsimple/letsEncryptCertificate.go
@@ -46,22 +46,23 @@ type LetsEncryptCertificate struct {
// The identifying certification authority (CA)
AuthorityIdentifier pulumi.StringOutput `pulumi:"authorityIdentifier"`
- // Set to true if the certificate will auto-renew
+ // True if the certificate should auto-renew
AutoRenew pulumi.BoolOutput `pulumi:"autoRenew"`
- // The contact id for the certificate
- //
- // Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
- ContactId pulumi.IntPtrOutput `pulumi:"contactId"`
+ // The datetime the certificate was created
CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
// The certificate signing request
Csr pulumi.StringOutput `pulumi:"csr"`
// The domain to be issued the certificate for
- DomainId pulumi.StringPtrOutput `pulumi:"domainId"`
- ExpiresOn pulumi.StringOutput `pulumi:"expiresOn"`
+ DomainId pulumi.StringOutput `pulumi:"domainId"`
+ // The datetime the certificate will expire
+ ExpiresAt pulumi.StringOutput `pulumi:"expiresAt"`
// The certificate name
Name pulumi.StringOutput `pulumi:"name"`
+ // The signature algorithm to use for the certificate
+ SignatureAlgorithm pulumi.StringPtrOutput `pulumi:"signatureAlgorithm"`
// The state of the certificate
- State pulumi.StringOutput `pulumi:"state"`
+ State pulumi.StringOutput `pulumi:"state"`
+ // The datetime the certificate was last updated
UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
// The years the certificate will last
Years pulumi.IntOutput `pulumi:"years"`
@@ -77,6 +78,9 @@ func NewLetsEncryptCertificate(ctx *pulumi.Context,
if args.AutoRenew == nil {
return nil, errors.New("invalid value for required argument 'AutoRenew'")
}
+ if args.DomainId == nil {
+ return nil, errors.New("invalid value for required argument 'DomainId'")
+ }
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
@@ -105,22 +109,23 @@ func GetLetsEncryptCertificate(ctx *pulumi.Context,
type letsEncryptCertificateState struct {
// The identifying certification authority (CA)
AuthorityIdentifier *string `pulumi:"authorityIdentifier"`
- // Set to true if the certificate will auto-renew
+ // True if the certificate should auto-renew
AutoRenew *bool `pulumi:"autoRenew"`
- // The contact id for the certificate
- //
- // Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
- ContactId *int `pulumi:"contactId"`
+ // The datetime the certificate was created
CreatedAt *string `pulumi:"createdAt"`
// The certificate signing request
Csr *string `pulumi:"csr"`
// The domain to be issued the certificate for
- DomainId *string `pulumi:"domainId"`
- ExpiresOn *string `pulumi:"expiresOn"`
+ DomainId *string `pulumi:"domainId"`
+ // The datetime the certificate will expire
+ ExpiresAt *string `pulumi:"expiresAt"`
// The certificate name
Name *string `pulumi:"name"`
+ // The signature algorithm to use for the certificate
+ SignatureAlgorithm *string `pulumi:"signatureAlgorithm"`
// The state of the certificate
- State *string `pulumi:"state"`
+ State *string `pulumi:"state"`
+ // The datetime the certificate was last updated
UpdatedAt *string `pulumi:"updatedAt"`
// The years the certificate will last
Years *int `pulumi:"years"`
@@ -129,22 +134,23 @@ type letsEncryptCertificateState struct {
type LetsEncryptCertificateState struct {
// The identifying certification authority (CA)
AuthorityIdentifier pulumi.StringPtrInput
- // Set to true if the certificate will auto-renew
+ // True if the certificate should auto-renew
AutoRenew pulumi.BoolPtrInput
- // The contact id for the certificate
- //
- // Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
- ContactId pulumi.IntPtrInput
+ // The datetime the certificate was created
CreatedAt pulumi.StringPtrInput
// The certificate signing request
Csr pulumi.StringPtrInput
// The domain to be issued the certificate for
- DomainId pulumi.StringPtrInput
- ExpiresOn pulumi.StringPtrInput
+ DomainId pulumi.StringPtrInput
+ // The datetime the certificate will expire
+ ExpiresAt pulumi.StringPtrInput
// The certificate name
Name pulumi.StringPtrInput
+ // The signature algorithm to use for the certificate
+ SignatureAlgorithm pulumi.StringPtrInput
// The state of the certificate
- State pulumi.StringPtrInput
+ State pulumi.StringPtrInput
+ // The datetime the certificate was last updated
UpdatedAt pulumi.StringPtrInput
// The years the certificate will last
Years pulumi.IntPtrInput
@@ -155,30 +161,26 @@ func (LetsEncryptCertificateState) ElementType() reflect.Type {
}
type letsEncryptCertificateArgs struct {
- // Set to true if the certificate will auto-renew
+ // True if the certificate should auto-renew
AutoRenew bool `pulumi:"autoRenew"`
- // The contact id for the certificate
- //
- // Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
- ContactId *int `pulumi:"contactId"`
// The domain to be issued the certificate for
- DomainId *string `pulumi:"domainId"`
+ DomainId string `pulumi:"domainId"`
// The certificate name
Name string `pulumi:"name"`
+ // The signature algorithm to use for the certificate
+ SignatureAlgorithm *string `pulumi:"signatureAlgorithm"`
}
// The set of arguments for constructing a LetsEncryptCertificate resource.
type LetsEncryptCertificateArgs struct {
- // Set to true if the certificate will auto-renew
+ // True if the certificate should auto-renew
AutoRenew pulumi.BoolInput
- // The contact id for the certificate
- //
- // Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
- ContactId pulumi.IntPtrInput
// The domain to be issued the certificate for
- DomainId pulumi.StringPtrInput
+ DomainId pulumi.StringInput
// The certificate name
Name pulumi.StringInput
+ // The signature algorithm to use for the certificate
+ SignatureAlgorithm pulumi.StringPtrInput
}
func (LetsEncryptCertificateArgs) ElementType() reflect.Type {
@@ -273,18 +275,12 @@ func (o LetsEncryptCertificateOutput) AuthorityIdentifier() pulumi.StringOutput
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.AuthorityIdentifier }).(pulumi.StringOutput)
}
-// Set to true if the certificate will auto-renew
+// True if the certificate should auto-renew
func (o LetsEncryptCertificateOutput) AutoRenew() pulumi.BoolOutput {
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.BoolOutput { return v.AutoRenew }).(pulumi.BoolOutput)
}
-// The contact id for the certificate
-//
-// Deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
-func (o LetsEncryptCertificateOutput) ContactId() pulumi.IntPtrOutput {
- return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.IntPtrOutput { return v.ContactId }).(pulumi.IntPtrOutput)
-}
-
+// The datetime the certificate was created
func (o LetsEncryptCertificateOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput)
}
@@ -295,12 +291,13 @@ func (o LetsEncryptCertificateOutput) Csr() pulumi.StringOutput {
}
// The domain to be issued the certificate for
-func (o LetsEncryptCertificateOutput) DomainId() pulumi.StringPtrOutput {
- return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringPtrOutput { return v.DomainId }).(pulumi.StringPtrOutput)
+func (o LetsEncryptCertificateOutput) DomainId() pulumi.StringOutput {
+ return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.DomainId }).(pulumi.StringOutput)
}
-func (o LetsEncryptCertificateOutput) ExpiresOn() pulumi.StringOutput {
- return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.ExpiresOn }).(pulumi.StringOutput)
+// The datetime the certificate will expire
+func (o LetsEncryptCertificateOutput) ExpiresAt() pulumi.StringOutput {
+ return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.ExpiresAt }).(pulumi.StringOutput)
}
// The certificate name
@@ -308,11 +305,17 @@ func (o LetsEncryptCertificateOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
+// The signature algorithm to use for the certificate
+func (o LetsEncryptCertificateOutput) SignatureAlgorithm() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringPtrOutput { return v.SignatureAlgorithm }).(pulumi.StringPtrOutput)
+}
+
// The state of the certificate
func (o LetsEncryptCertificateOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
+// The datetime the certificate was last updated
func (o LetsEncryptCertificateOutput) UpdatedAt() pulumi.StringOutput {
return o.ApplyT(func(v *LetsEncryptCertificate) pulumi.StringOutput { return v.UpdatedAt }).(pulumi.StringOutput)
}
diff --git a/sdk/go/dnsimple/provider.go b/sdk/go/dnsimple/provider.go
index fc331240..c1a42e2c 100644
--- a/sdk/go/dnsimple/provider.go
+++ b/sdk/go/dnsimple/provider.go
@@ -7,7 +7,6 @@ import (
"context"
"reflect"
- "errors"
"github.com/pulumi/pulumi-dnsimple/sdk/v3/go/dnsimple/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -20,9 +19,9 @@ type Provider struct {
pulumi.ProviderResourceState
// The account for API operations.
- Account pulumi.StringOutput `pulumi:"account"`
+ Account pulumi.StringPtrOutput `pulumi:"account"`
// The API v2 token for API operations.
- Token pulumi.StringOutput `pulumi:"token"`
+ Token pulumi.StringPtrOutput `pulumi:"token"`
// Custom string to append to the user agent used for sending HTTP requests to the API.
UserAgent pulumi.StringPtrOutput `pulumi:"userAgent"`
}
@@ -31,17 +30,11 @@ type Provider struct {
func NewProvider(ctx *pulumi.Context,
name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error) {
if args == nil {
- return nil, errors.New("missing one or more required arguments")
+ args = &ProviderArgs{}
}
- if args.Account == nil {
- return nil, errors.New("invalid value for required argument 'Account'")
- }
- if args.Token == nil {
- return nil, errors.New("invalid value for required argument 'Token'")
- }
if args.Token != nil {
- args.Token = pulumi.ToSecret(args.Token).(pulumi.StringInput)
+ args.Token = pulumi.ToSecret(args.Token).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"token",
@@ -58,13 +51,13 @@ func NewProvider(ctx *pulumi.Context,
type providerArgs struct {
// The account for API operations.
- Account string `pulumi:"account"`
+ Account *string `pulumi:"account"`
// Flag to enable the prefetch of zone records.
Prefetch *bool `pulumi:"prefetch"`
// Flag to enable the sandbox API.
Sandbox *bool `pulumi:"sandbox"`
// The API v2 token for API operations.
- Token string `pulumi:"token"`
+ Token *string `pulumi:"token"`
// Custom string to append to the user agent used for sending HTTP requests to the API.
UserAgent *string `pulumi:"userAgent"`
}
@@ -72,13 +65,13 @@ type providerArgs struct {
// The set of arguments for constructing a Provider resource.
type ProviderArgs struct {
// The account for API operations.
- Account pulumi.StringInput
+ Account pulumi.StringPtrInput
// Flag to enable the prefetch of zone records.
Prefetch pulumi.BoolPtrInput
// Flag to enable the sandbox API.
Sandbox pulumi.BoolPtrInput
// The API v2 token for API operations.
- Token pulumi.StringInput
+ Token pulumi.StringPtrInput
// Custom string to append to the user agent used for sending HTTP requests to the API.
UserAgent pulumi.StringPtrInput
}
@@ -121,13 +114,13 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide
}
// The account for API operations.
-func (o ProviderOutput) Account() pulumi.StringOutput {
- return o.ApplyT(func(v *Provider) pulumi.StringOutput { return v.Account }).(pulumi.StringOutput)
+func (o ProviderOutput) Account() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Account }).(pulumi.StringPtrOutput)
}
// The API v2 token for API operations.
-func (o ProviderOutput) Token() pulumi.StringOutput {
- return o.ApplyT(func(v *Provider) pulumi.StringOutput { return v.Token }).(pulumi.StringOutput)
+func (o ProviderOutput) Token() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Token }).(pulumi.StringPtrOutput)
}
// Custom string to append to the user agent used for sending HTTP requests to the API.
diff --git a/sdk/go/dnsimple/record.go b/sdk/go/dnsimple/record.go
deleted file mode 100644
index 8e7b44d8..00000000
--- a/sdk/go/dnsimple/record.go
+++ /dev/null
@@ -1,282 +0,0 @@
-// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
-// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
-
-package dnsimple
-
-import (
- "context"
- "reflect"
-
- "errors"
- "github.com/pulumi/pulumi-dnsimple/sdk/v3/go/dnsimple/internal"
- "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
-)
-
-// Deprecated: This resource is deprecated.
-// It will be removed in the next major version.
-type Record struct {
- pulumi.CustomResourceState
-
- Domain pulumi.StringOutput `pulumi:"domain"`
- DomainId pulumi.StringOutput `pulumi:"domainId"`
- Hostname pulumi.StringOutput `pulumi:"hostname"`
- Name pulumi.StringOutput `pulumi:"name"`
- Priority pulumi.StringOutput `pulumi:"priority"`
- Ttl pulumi.StringPtrOutput `pulumi:"ttl"`
- Type pulumi.StringOutput `pulumi:"type"`
- Value pulumi.StringOutput `pulumi:"value"`
-}
-
-// NewRecord registers a new resource with the given unique name, arguments, and options.
-func NewRecord(ctx *pulumi.Context,
- name string, args *RecordArgs, opts ...pulumi.ResourceOption) (*Record, error) {
- if args == nil {
- return nil, errors.New("missing one or more required arguments")
- }
-
- if args.Domain == nil {
- return nil, errors.New("invalid value for required argument 'Domain'")
- }
- if args.Name == nil {
- return nil, errors.New("invalid value for required argument 'Name'")
- }
- if args.Type == nil {
- return nil, errors.New("invalid value for required argument 'Type'")
- }
- if args.Value == nil {
- return nil, errors.New("invalid value for required argument 'Value'")
- }
- opts = internal.PkgResourceDefaultOpts(opts)
- var resource Record
- err := ctx.RegisterResource("dnsimple:index/record:Record", name, args, &resource, opts...)
- if err != nil {
- return nil, err
- }
- return &resource, nil
-}
-
-// 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 GetRecord(ctx *pulumi.Context,
- name string, id pulumi.IDInput, state *RecordState, opts ...pulumi.ResourceOption) (*Record, error) {
- var resource Record
- err := ctx.ReadResource("dnsimple:index/record:Record", name, id, state, &resource, opts...)
- if err != nil {
- return nil, err
- }
- return &resource, nil
-}
-
-// Input properties used for looking up and filtering Record resources.
-type recordState struct {
- Domain *string `pulumi:"domain"`
- DomainId *string `pulumi:"domainId"`
- Hostname *string `pulumi:"hostname"`
- Name *string `pulumi:"name"`
- Priority *string `pulumi:"priority"`
- Ttl *string `pulumi:"ttl"`
- Type *string `pulumi:"type"`
- Value *string `pulumi:"value"`
-}
-
-type RecordState struct {
- Domain pulumi.StringPtrInput
- DomainId pulumi.StringPtrInput
- Hostname pulumi.StringPtrInput
- Name pulumi.StringPtrInput
- Priority pulumi.StringPtrInput
- Ttl pulumi.StringPtrInput
- Type pulumi.StringPtrInput
- Value pulumi.StringPtrInput
-}
-
-func (RecordState) ElementType() reflect.Type {
- return reflect.TypeOf((*recordState)(nil)).Elem()
-}
-
-type recordArgs struct {
- Domain string `pulumi:"domain"`
- Name string `pulumi:"name"`
- Priority *string `pulumi:"priority"`
- Ttl *string `pulumi:"ttl"`
- Type string `pulumi:"type"`
- Value string `pulumi:"value"`
-}
-
-// The set of arguments for constructing a Record resource.
-type RecordArgs struct {
- Domain pulumi.StringInput
- Name pulumi.StringInput
- Priority pulumi.StringPtrInput
- Ttl pulumi.StringPtrInput
- Type pulumi.StringInput
- Value pulumi.StringInput
-}
-
-func (RecordArgs) ElementType() reflect.Type {
- return reflect.TypeOf((*recordArgs)(nil)).Elem()
-}
-
-type RecordInput interface {
- pulumi.Input
-
- ToRecordOutput() RecordOutput
- ToRecordOutputWithContext(ctx context.Context) RecordOutput
-}
-
-func (*Record) ElementType() reflect.Type {
- return reflect.TypeOf((**Record)(nil)).Elem()
-}
-
-func (i *Record) ToRecordOutput() RecordOutput {
- return i.ToRecordOutputWithContext(context.Background())
-}
-
-func (i *Record) ToRecordOutputWithContext(ctx context.Context) RecordOutput {
- return pulumi.ToOutputWithContext(ctx, i).(RecordOutput)
-}
-
-// RecordArrayInput is an input type that accepts RecordArray and RecordArrayOutput values.
-// You can construct a concrete instance of `RecordArrayInput` via:
-//
-// RecordArray{ RecordArgs{...} }
-type RecordArrayInput interface {
- pulumi.Input
-
- ToRecordArrayOutput() RecordArrayOutput
- ToRecordArrayOutputWithContext(context.Context) RecordArrayOutput
-}
-
-type RecordArray []RecordInput
-
-func (RecordArray) ElementType() reflect.Type {
- return reflect.TypeOf((*[]*Record)(nil)).Elem()
-}
-
-func (i RecordArray) ToRecordArrayOutput() RecordArrayOutput {
- return i.ToRecordArrayOutputWithContext(context.Background())
-}
-
-func (i RecordArray) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput {
- return pulumi.ToOutputWithContext(ctx, i).(RecordArrayOutput)
-}
-
-// RecordMapInput is an input type that accepts RecordMap and RecordMapOutput values.
-// You can construct a concrete instance of `RecordMapInput` via:
-//
-// RecordMap{ "key": RecordArgs{...} }
-type RecordMapInput interface {
- pulumi.Input
-
- ToRecordMapOutput() RecordMapOutput
- ToRecordMapOutputWithContext(context.Context) RecordMapOutput
-}
-
-type RecordMap map[string]RecordInput
-
-func (RecordMap) ElementType() reflect.Type {
- return reflect.TypeOf((*map[string]*Record)(nil)).Elem()
-}
-
-func (i RecordMap) ToRecordMapOutput() RecordMapOutput {
- return i.ToRecordMapOutputWithContext(context.Background())
-}
-
-func (i RecordMap) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput {
- return pulumi.ToOutputWithContext(ctx, i).(RecordMapOutput)
-}
-
-type RecordOutput struct{ *pulumi.OutputState }
-
-func (RecordOutput) ElementType() reflect.Type {
- return reflect.TypeOf((**Record)(nil)).Elem()
-}
-
-func (o RecordOutput) ToRecordOutput() RecordOutput {
- return o
-}
-
-func (o RecordOutput) ToRecordOutputWithContext(ctx context.Context) RecordOutput {
- return o
-}
-
-func (o RecordOutput) Domain() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Domain }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) DomainId() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.DomainId }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) Hostname() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) Name() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) Priority() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Priority }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) Ttl() pulumi.StringPtrOutput {
- return o.ApplyT(func(v *Record) pulumi.StringPtrOutput { return v.Ttl }).(pulumi.StringPtrOutput)
-}
-
-func (o RecordOutput) Type() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
-}
-
-func (o RecordOutput) Value() pulumi.StringOutput {
- return o.ApplyT(func(v *Record) pulumi.StringOutput { return v.Value }).(pulumi.StringOutput)
-}
-
-type RecordArrayOutput struct{ *pulumi.OutputState }
-
-func (RecordArrayOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*[]*Record)(nil)).Elem()
-}
-
-func (o RecordArrayOutput) ToRecordArrayOutput() RecordArrayOutput {
- return o
-}
-
-func (o RecordArrayOutput) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput {
- return o
-}
-
-func (o RecordArrayOutput) Index(i pulumi.IntInput) RecordOutput {
- return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Record {
- return vs[0].([]*Record)[vs[1].(int)]
- }).(RecordOutput)
-}
-
-type RecordMapOutput struct{ *pulumi.OutputState }
-
-func (RecordMapOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*map[string]*Record)(nil)).Elem()
-}
-
-func (o RecordMapOutput) ToRecordMapOutput() RecordMapOutput {
- return o
-}
-
-func (o RecordMapOutput) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput {
- return o
-}
-
-func (o RecordMapOutput) MapIndex(k pulumi.StringInput) RecordOutput {
- return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Record {
- return vs[0].(map[string]*Record)[vs[1].(string)]
- }).(RecordOutput)
-}
-
-func init() {
- pulumi.RegisterInputType(reflect.TypeOf((*RecordInput)(nil)).Elem(), &Record{})
- pulumi.RegisterInputType(reflect.TypeOf((*RecordArrayInput)(nil)).Elem(), RecordArray{})
- pulumi.RegisterInputType(reflect.TypeOf((*RecordMapInput)(nil)).Elem(), RecordMap{})
- pulumi.RegisterOutputType(RecordOutput{})
- pulumi.RegisterOutputType(RecordArrayOutput{})
- pulumi.RegisterOutputType(RecordMapOutput{})
-}
diff --git a/sdk/go/dnsimple/zoneRecord.go b/sdk/go/dnsimple/zoneRecord.go
index 5ddff6df..4acd3181 100644
--- a/sdk/go/dnsimple/zoneRecord.go
+++ b/sdk/go/dnsimple/zoneRecord.go
@@ -14,11 +14,6 @@ import (
// Provides a DNSimple zone record resource.
//
-// ## Deprecation warning
-//
-// You can still use the _deprecated_ `Record` configuration, but be aware that it will be removed in the
-// upcoming 1.0.0 release.
-//
// ## Example Usage
//
// ```go
@@ -39,7 +34,7 @@ import (
// Name: pulumi.String(""),
// Value: pulumi.String("192.168.0.11"),
// Type: pulumi.String("A"),
-// Ttl: pulumi.String("3600"),
+// Ttl: pulumi.Int(3600),
// })
// if err != nil {
// return err
@@ -68,7 +63,7 @@ import (
// Name: pulumi.String("terraform"),
// Value: pulumi.String("192.168.0.11"),
// Type: pulumi.String("A"),
-// Ttl: pulumi.String("3600"),
+// Ttl: pulumi.Int(3600),
// })
// if err != nil {
// return err
@@ -83,16 +78,22 @@ import (
//
// DNSimple resources can be imported using their parent zone name (domain name) and numeric record ID.
//
-// __Importing record example.com with record ID 1234__
+// **Importing record example.com with record ID 1234**
+//
+// bash
//
// ```sh
// $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
// ```
-// __Importing record www.example.com with record ID 1234__
+//
+// **Importing record www.example.com with record ID 1234**
+//
+// bash
//
// ```sh
// $ pulumi import dnsimple:index/zoneRecord:ZoneRecord resource_name example.com_1234
// ```
+//
// The record ID can be found in the URL when editing a record on the DNSimple web dashboard.
type ZoneRecord struct {
pulumi.CustomResourceState
@@ -100,11 +101,11 @@ type ZoneRecord struct {
// The name of the record
Name pulumi.StringOutput `pulumi:"name"`
// The priority of the record - only useful for some record types
- Priority pulumi.StringOutput `pulumi:"priority"`
+ Priority pulumi.IntOutput `pulumi:"priority"`
// The FQDN of the record
QualifiedName pulumi.StringOutput `pulumi:"qualifiedName"`
- // The TTL of the record
- Ttl pulumi.StringPtrOutput `pulumi:"ttl"`
+ // The TTL of the record - defaults to 3600
+ Ttl pulumi.IntOutput `pulumi:"ttl"`
// The type of the record
Type pulumi.StringOutput `pulumi:"type"`
// The value of the record
@@ -160,11 +161,11 @@ type zoneRecordState struct {
// The name of the record
Name *string `pulumi:"name"`
// The priority of the record - only useful for some record types
- Priority *string `pulumi:"priority"`
+ Priority *int `pulumi:"priority"`
// The FQDN of the record
QualifiedName *string `pulumi:"qualifiedName"`
- // The TTL of the record
- Ttl *string `pulumi:"ttl"`
+ // The TTL of the record - defaults to 3600
+ Ttl *int `pulumi:"ttl"`
// The type of the record
Type *string `pulumi:"type"`
// The value of the record
@@ -179,11 +180,11 @@ type ZoneRecordState struct {
// The name of the record
Name pulumi.StringPtrInput
// The priority of the record - only useful for some record types
- Priority pulumi.StringPtrInput
+ Priority pulumi.IntPtrInput
// The FQDN of the record
QualifiedName pulumi.StringPtrInput
- // The TTL of the record
- Ttl pulumi.StringPtrInput
+ // The TTL of the record - defaults to 3600
+ Ttl pulumi.IntPtrInput
// The type of the record
Type pulumi.StringPtrInput
// The value of the record
@@ -202,9 +203,9 @@ type zoneRecordArgs struct {
// The name of the record
Name string `pulumi:"name"`
// The priority of the record - only useful for some record types
- Priority *string `pulumi:"priority"`
- // The TTL of the record
- Ttl *string `pulumi:"ttl"`
+ Priority *int `pulumi:"priority"`
+ // The TTL of the record - defaults to 3600
+ Ttl *int `pulumi:"ttl"`
// The type of the record
Type string `pulumi:"type"`
// The value of the record
@@ -218,9 +219,9 @@ type ZoneRecordArgs struct {
// The name of the record
Name pulumi.StringInput
// The priority of the record - only useful for some record types
- Priority pulumi.StringPtrInput
- // The TTL of the record
- Ttl pulumi.StringPtrInput
+ Priority pulumi.IntPtrInput
+ // The TTL of the record - defaults to 3600
+ Ttl pulumi.IntPtrInput
// The type of the record
Type pulumi.StringInput
// The value of the record
@@ -322,8 +323,8 @@ func (o ZoneRecordOutput) Name() pulumi.StringOutput {
}
// The priority of the record - only useful for some record types
-func (o ZoneRecordOutput) Priority() pulumi.StringOutput {
- return o.ApplyT(func(v *ZoneRecord) pulumi.StringOutput { return v.Priority }).(pulumi.StringOutput)
+func (o ZoneRecordOutput) Priority() pulumi.IntOutput {
+ return o.ApplyT(func(v *ZoneRecord) pulumi.IntOutput { return v.Priority }).(pulumi.IntOutput)
}
// The FQDN of the record
@@ -331,9 +332,9 @@ func (o ZoneRecordOutput) QualifiedName() pulumi.StringOutput {
return o.ApplyT(func(v *ZoneRecord) pulumi.StringOutput { return v.QualifiedName }).(pulumi.StringOutput)
}
-// The TTL of the record
-func (o ZoneRecordOutput) Ttl() pulumi.StringPtrOutput {
- return o.ApplyT(func(v *ZoneRecord) pulumi.StringPtrOutput { return v.Ttl }).(pulumi.StringPtrOutput)
+// The TTL of the record - defaults to 3600
+func (o ZoneRecordOutput) Ttl() pulumi.IntOutput {
+ return o.ApplyT(func(v *ZoneRecord) pulumi.IntOutput { return v.Ttl }).(pulumi.IntOutput)
}
// The type of the record
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/Config.java b/sdk/java/src/main/java/com/pulumi/dnsimple/Config.java
index 92ee985a..d27fdf5e 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/Config.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/Config.java
@@ -15,8 +15,8 @@ public final class Config {
* The account for API operations.
*
*/
- public String account() {
- return Codegen.stringProp("account").config(config).require();
+ public Optional account() {
+ return Codegen.stringProp("account").config(config).get();
}
/**
* Flag to enable the prefetch of zone records.
@@ -36,8 +36,8 @@ public Optional sandbox() {
* The API v2 token for API operations.
*
*/
- public String token() {
- return Codegen.stringProp("token").config(config).require();
+ public Optional token() {
+ return Codegen.stringProp("token").config(config).get();
}
/**
* Custom string to append to the user agent used for sending HTTP requests to the API.
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/DnsimpleFunctions.java b/sdk/java/src/main/java/com/pulumi/dnsimple/DnsimpleFunctions.java
index 69559ca2..694e612e 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/DnsimpleFunctions.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/DnsimpleFunctions.java
@@ -231,11 +231,10 @@ public static CompletableFuture getCertificatePlain(GetCer
*
* * `name` - (Required) The name of the zone
*
- * The following attributes are exported:
+ * The following additional attributes are exported:
*
* * `id` - The zone ID
* * `account_id` - The account ID
- * * `name` - The name of the zone
* * `reverse` - True for a reverse zone, false for a forward zone.
*
*/
@@ -284,11 +283,10 @@ public static Output getZone(GetZoneArgs args) {
*
* * `name` - (Required) The name of the zone
*
- * The following attributes are exported:
+ * The following additional attributes are exported:
*
* * `id` - The zone ID
* * `account_id` - The account ID
- * * `name` - The name of the zone
* * `reverse` - True for a reverse zone, false for a forward zone.
*
*/
@@ -337,11 +335,10 @@ public static CompletableFuture getZonePlain(GetZonePlainArgs arg
*
* * `name` - (Required) The name of the zone
*
- * The following attributes are exported:
+ * The following additional attributes are exported:
*
* * `id` - The zone ID
* * `account_id` - The account ID
- * * `name` - The name of the zone
* * `reverse` - True for a reverse zone, false for a forward zone.
*
*/
@@ -390,11 +387,10 @@ public static Output getZone(GetZoneArgs args, InvokeOptions opti
*
* * `name` - (Required) The name of the zone
*
- * The following attributes are exported:
+ * The following additional attributes are exported:
*
* * `id` - The zone ID
* * `account_id` - The account ID
- * * `name` - The name of the zone
* * `reverse` - True for a reverse zone, false for a forward zone.
*
*/
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/Domain.java b/sdk/java/src/main/java/com/pulumi/dnsimple/Domain.java
index 1e1e524d..b10656f1 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/Domain.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/Domain.java
@@ -58,13 +58,17 @@
*
* DNSimple domains can be imported using their numeric record ID.
*
+ * bash
+ *
* ```sh
* $ pulumi import dnsimple:index/domain:Domain resource_name 5678
* ```
*
* The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
*
- * $ curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
+ * bash
+ *
+ * curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
*
* {
*
@@ -117,21 +121,39 @@
*/
@ResourceType(type="dnsimple:index/domain:Domain")
public class Domain extends com.pulumi.resources.CustomResource {
+ /**
+ * The account ID for the domain.
+ *
+ */
@Export(name="accountId", refs={Integer.class}, tree="[0]")
private Output accountId;
+ /**
+ * @return The account ID for the domain.
+ *
+ */
public Output accountId() {
return this.accountId;
}
+ /**
+ * Whether the domain is set to auto-renew.
+ *
+ */
@Export(name="autoRenew", refs={Boolean.class}, tree="[0]")
private Output autoRenew;
+ /**
+ * @return Whether the domain is set to auto-renew.
+ *
+ */
public Output autoRenew() {
return this.autoRenew;
}
/**
* The domain name to be created
*
+ * # Attributes Reference
+ *
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
@@ -139,31 +161,65 @@ public Output autoRenew() {
/**
* @return The domain name to be created
*
+ * # Attributes Reference
+ *
*/
public Output name() {
return this.name;
}
+ /**
+ * Whether the domain has WhoIs privacy enabled.
+ *
+ */
@Export(name="privateWhois", refs={Boolean.class}, tree="[0]")
private Output privateWhois;
+ /**
+ * @return Whether the domain has WhoIs privacy enabled.
+ *
+ */
public Output privateWhois() {
return this.privateWhois;
}
+ /**
+ * The ID of the registrant (contact) for the domain.
+ *
+ */
@Export(name="registrantId", refs={Integer.class}, tree="[0]")
private Output registrantId;
+ /**
+ * @return The ID of the registrant (contact) for the domain.
+ *
+ */
public Output registrantId() {
return this.registrantId;
}
+ /**
+ * The state of the domain.
+ *
+ */
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
+ /**
+ * @return The state of the domain.
+ *
+ */
public Output state() {
return this.state;
}
+ /**
+ * The domain name in Unicode format.
+ *
+ */
@Export(name="unicodeName", refs={String.class}, tree="[0]")
private Output unicodeName;
+ /**
+ * @return The domain name in Unicode format.
+ *
+ */
public Output unicodeName() {
return this.unicodeName;
}
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/DomainArgs.java b/sdk/java/src/main/java/com/pulumi/dnsimple/DomainArgs.java
index 7937aa7c..4a9f8108 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/DomainArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/DomainArgs.java
@@ -17,6 +17,8 @@ public final class DomainArgs extends com.pulumi.resources.ResourceArgs {
/**
* The domain name to be created
*
+ * # Attributes Reference
+ *
*/
@Import(name="name", required=true)
private Output name;
@@ -24,6 +26,8 @@ public final class DomainArgs extends com.pulumi.resources.ResourceArgs {
/**
* @return The domain name to be created
*
+ * # Attributes Reference
+ *
*/
public Output name() {
return this.name;
@@ -56,6 +60,8 @@ public Builder(DomainArgs defaults) {
/**
* @param name The domain name to be created
*
+ * # Attributes Reference
+ *
* @return builder
*
*/
@@ -67,6 +73,8 @@ public Builder name(Output name) {
/**
* @param name The domain name to be created
*
+ * # Attributes Reference
+ *
* @return builder
*
*/
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForward.java b/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForward.java
index b46330b5..bfa9deaa 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForward.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForward.java
@@ -43,9 +43,9 @@
* public static void stack(Context ctx) {
* // Add an email forwarding rule to the domain
* var foobar = new EmailForward("foobar", EmailForwardArgs.builder()
- * .domain(dnsimpleDomain)
+ * .domain(dnsimpleDomain.name())
* .aliasName("sales")
- * .destinationEmail("jane.doe{@literal @}example.com")
+ * .destinationEmail("alice.appleseed{@literal @}example.com")
* .build());
*
* }
@@ -54,18 +54,30 @@
*
* <!--End PulumiCodeChooser -->
*
+ * ## Import
+ *
+ * DNSimple resources can be imported using the domain name and numeric email forward ID.
+ *
+ * **Importing email forward for example.com with email forward ID 1234**
+ *
+ * bash
+ *
+ * ```sh
+ * $ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
+ * ```
+ *
*/
@ResourceType(type="dnsimple:index/emailForward:EmailForward")
public class EmailForward extends com.pulumi.resources.CustomResource {
/**
- * The source email address on the domain
+ * The source email address on the domain, in full form. This is a computed attribute.
*
*/
@Export(name="aliasEmail", refs={String.class}, tree="[0]")
private Output aliasEmail;
/**
- * @return The source email address on the domain
+ * @return The source email address on the domain, in full form. This is a computed attribute.
*
*/
public Output aliasEmail() {
@@ -86,28 +98,28 @@ public Output aliasName() {
return this.aliasName;
}
/**
- * The destination email address on another domain
+ * The destination email address
*
*/
@Export(name="destinationEmail", refs={String.class}, tree="[0]")
private Output destinationEmail;
/**
- * @return The destination email address on another domain
+ * @return The destination email address
*
*/
public Output destinationEmail() {
return this.destinationEmail;
}
/**
- * The domain to add the email forwarding rule to
+ * The domain name to add the email forwarding rule to
*
*/
@Export(name="domain", refs={String.class}, tree="[0]")
private Output domain;
/**
- * @return The domain to add the email forwarding rule to
+ * @return The domain name to add the email forwarding rule to
*
*/
public Output domain() {
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForwardArgs.java b/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForwardArgs.java
index f1706461..eef726b2 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForwardArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/EmailForwardArgs.java
@@ -30,14 +30,14 @@ public Output aliasName() {
}
/**
- * The destination email address on another domain
+ * The destination email address
*
*/
@Import(name="destinationEmail", required=true)
private Output destinationEmail;
/**
- * @return The destination email address on another domain
+ * @return The destination email address
*
*/
public Output destinationEmail() {
@@ -45,14 +45,14 @@ public Output destinationEmail() {
}
/**
- * The domain to add the email forwarding rule to
+ * The domain name to add the email forwarding rule to
*
*/
@Import(name="domain", required=true)
private Output domain;
/**
- * @return The domain to add the email forwarding rule to
+ * @return The domain name to add the email forwarding rule to
*
*/
public Output domain() {
@@ -107,7 +107,7 @@ public Builder aliasName(String aliasName) {
}
/**
- * @param destinationEmail The destination email address on another domain
+ * @param destinationEmail The destination email address
*
* @return builder
*
@@ -118,7 +118,7 @@ public Builder destinationEmail(Output destinationEmail) {
}
/**
- * @param destinationEmail The destination email address on another domain
+ * @param destinationEmail The destination email address
*
* @return builder
*
@@ -128,7 +128,7 @@ public Builder destinationEmail(String destinationEmail) {
}
/**
- * @param domain The domain to add the email forwarding rule to
+ * @param domain The domain name to add the email forwarding rule to
*
* @return builder
*
@@ -139,7 +139,7 @@ public Builder domain(Output domain) {
}
/**
- * @param domain The domain to add the email forwarding rule to
+ * @param domain The domain name to add the email forwarding rule to
*
* @return builder
*
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificate.java b/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificate.java
index 5325d336..3efb6873 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificate.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificate.java
@@ -74,40 +74,30 @@ public Output authorityIdentifier() {
return this.authorityIdentifier;
}
/**
- * Set to true if the certificate will auto-renew
+ * True if the certificate should auto-renew
*
*/
@Export(name="autoRenew", refs={Boolean.class}, tree="[0]")
private Output autoRenew;
/**
- * @return Set to true if the certificate will auto-renew
+ * @return True if the certificate should auto-renew
*
*/
public Output autoRenew() {
return this.autoRenew;
}
/**
- * The contact id for the certificate
- *
- * @deprecated
- * contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
+ * The datetime the certificate was created
*
*/
- @Deprecated /* contact_id is deprecated and has no effect. The attribute will be removed in the next major version. */
- @Export(name="contactId", refs={Integer.class}, tree="[0]")
- private Output* @Nullable */ Integer> contactId;
+ @Export(name="createdAt", refs={String.class}, tree="[0]")
+ private Output createdAt;
/**
- * @return The contact id for the certificate
+ * @return The datetime the certificate was created
*
*/
- public Output> contactId() {
- return Codegen.optional(this.contactId);
- }
- @Export(name="createdAt", refs={String.class}, tree="[0]")
- private Output createdAt;
-
public Output createdAt() {
return this.createdAt;
}
@@ -130,20 +120,28 @@ public Output csr() {
*
*/
@Export(name="domainId", refs={String.class}, tree="[0]")
- private Output* @Nullable */ String> domainId;
+ private Output domainId;
/**
* @return The domain to be issued the certificate for
*
*/
- public Output> domainId() {
- return Codegen.optional(this.domainId);
+ public Output domainId() {
+ return this.domainId;
}
- @Export(name="expiresOn", refs={String.class}, tree="[0]")
- private Output expiresOn;
+ /**
+ * The datetime the certificate will expire
+ *
+ */
+ @Export(name="expiresAt", refs={String.class}, tree="[0]")
+ private Output expiresAt;
- public Output expiresOn() {
- return this.expiresOn;
+ /**
+ * @return The datetime the certificate will expire
+ *
+ */
+ public Output expiresAt() {
+ return this.expiresAt;
}
/**
* The certificate name
@@ -159,6 +157,20 @@ public Output expiresOn() {
public Output name() {
return this.name;
}
+ /**
+ * The signature algorithm to use for the certificate
+ *
+ */
+ @Export(name="signatureAlgorithm", refs={String.class}, tree="[0]")
+ private Output* @Nullable */ String> signatureAlgorithm;
+
+ /**
+ * @return The signature algorithm to use for the certificate
+ *
+ */
+ public Output> signatureAlgorithm() {
+ return Codegen.optional(this.signatureAlgorithm);
+ }
/**
* The state of the certificate
*
@@ -173,9 +185,17 @@ public Output name() {
public Output state() {
return this.state;
}
+ /**
+ * The datetime the certificate was last updated
+ *
+ */
@Export(name="updatedAt", refs={String.class}, tree="[0]")
private Output updatedAt;
+ /**
+ * @return The datetime the certificate was last updated
+ *
+ */
public Output updatedAt() {
return this.updatedAt;
}
diff --git a/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificateArgs.java b/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificateArgs.java
index 41c04d0f..4e0aca1c 100644
--- a/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificateArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/dnsimple/LetsEncryptCertificateArgs.java
@@ -7,7 +7,6 @@
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
-import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
@@ -19,14 +18,14 @@ public final class LetsEncryptCertificateArgs extends com.pulumi.resources.Resou
public static final LetsEncryptCertificateArgs Empty = new LetsEncryptCertificateArgs();
/**
- * Set to true if the certificate will auto-renew
+ * True if the certificate should auto-renew
*
*/
@Import(name="autoRenew", required=true)
private Output autoRenew;
/**
- * @return Set to true if the certificate will auto-renew
+ * @return True if the certificate should auto-renew
*
*/
public Output autoRenew() {
@@ -34,65 +33,57 @@ public Output autoRenew() {
}
/**
- * The contact id for the certificate
- *
- * @deprecated
- * contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
+ * The domain to be issued the certificate for
*
*/
- @Deprecated /* contact_id is deprecated and has no effect. The attribute will be removed in the next major version. */
- @Import(name="contactId")
- private @Nullable Output contactId;
+ @Import(name="domainId", required=true)
+ private Output domainId;
/**
- * @return The contact id for the certificate
- *
- * @deprecated
- * contact_id is deprecated and has no effect. The attribute will be removed in the next major version.
+ * @return The domain to be issued the certificate for
*
*/
- @Deprecated /* contact_id is deprecated and has no effect. The attribute will be removed in the next major version. */
- public Optional