From 7c6f7e098faf43a947381ca36934ad9e76b0df54 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 1 May 2024 02:44:35 -0700 Subject: [PATCH] Upgrade terraform-provider-mailgun to v0.7.6 (#366) This PR was generated via `$ upgrade-provider pulumi/pulumi-mailgun --kind=all --target-bridge-version=latest`. --- - Upgrading terraform-provider-mailgun from 0.7.5 to 0.7.6. Fixes #365 --- .../cmd/pulumi-resource-mailgun/schema.json | 44 ++++++++- provider/go.mod | 3 +- provider/go.sum | 6 +- sdk/dotnet/Domain.cs | 36 +++++++ sdk/dotnet/GetDomain.cs | 47 ++++++++++ sdk/go/mailgun/domain.go | 30 ++++++ sdk/go/mailgun/getDomain.go | 36 ++++++- .../main/java/com/pulumi/mailgun/Domain.java | 28 ++++++ .../java/com/pulumi/mailgun/DomainArgs.java | 74 +++++++++++++++ .../pulumi/mailgun/inputs/DomainState.java | 74 +++++++++++++++ .../pulumi/mailgun/inputs/GetDomainArgs.java | 94 +++++++++++++++++++ .../mailgun/inputs/GetDomainPlainArgs.java | 68 ++++++++++++++ .../mailgun/outputs/GetDomainResult.java | 50 ++++++++++ sdk/nodejs/domain.ts | 28 ++++++ sdk/nodejs/getDomain.ts | 35 +++++++ sdk/python/pulumi_mailgun/domain.py | 94 +++++++++++++++++++ sdk/python/pulumi_mailgun/get_domain.py | 47 +++++++++- upstream | 2 +- 18 files changed, 783 insertions(+), 13 deletions(-) diff --git a/provider/cmd/pulumi-resource-mailgun/schema.json b/provider/cmd/pulumi-resource-mailgun/schema.json index 937c376a..94e7be6b 100644 --- a/provider/cmd/pulumi-resource-mailgun/schema.json +++ b/provider/cmd/pulumi-resource-mailgun/schema.json @@ -370,6 +370,10 @@ "mailgun:index/domain:Domain": { "description": "Provides a Mailgun App resource. This can be used to\ncreate and manage applications on Mailgun.\n\nAfter DNS records are set, domain verification should be triggered manually using [PUT /domains/\\\u003cdomain\\\u003e/verify](https://documentation.mailgun.com/en/latest/api-domains.html#domains)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mailgun from \"@pulumi/mailgun\";\n\n// Create a new Mailgun domain\nconst _default = new mailgun.Domain(\"default\", {\n name: \"test.example.com\",\n region: \"us\",\n spamAction: \"disabled\",\n smtpPassword: \"supersecretpassword1234\",\n dkimKeySize: 1024,\n});\n```\n```python\nimport pulumi\nimport pulumi_mailgun as mailgun\n\n# Create a new Mailgun domain\ndefault = mailgun.Domain(\"default\",\n name=\"test.example.com\",\n region=\"us\",\n spam_action=\"disabled\",\n smtp_password=\"supersecretpassword1234\",\n dkim_key_size=1024)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mailgun = Pulumi.Mailgun;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Mailgun domain\n var @default = new Mailgun.Domain(\"default\", new()\n {\n Name = \"test.example.com\",\n Region = \"us\",\n SpamAction = \"disabled\",\n SmtpPassword = \"supersecretpassword1234\",\n DkimKeySize = 1024,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mailgun/sdk/v3/go/mailgun\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a new Mailgun domain\n\t\t_, err := mailgun.NewDomain(ctx, \"default\", \u0026mailgun.DomainArgs{\n\t\t\tName: pulumi.String(\"test.example.com\"),\n\t\t\tRegion: pulumi.String(\"us\"),\n\t\t\tSpamAction: pulumi.String(\"disabled\"),\n\t\t\tSmtpPassword: pulumi.String(\"supersecretpassword1234\"),\n\t\t\tDkimKeySize: pulumi.Int(1024),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mailgun.Domain;\nimport com.pulumi.mailgun.DomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // Create a new Mailgun domain\n var default_ = new Domain(\"default\", DomainArgs.builder() \n .name(\"test.example.com\")\n .region(\"us\")\n .spamAction(\"disabled\")\n .smtpPassword(\"supersecretpassword1234\")\n .dkimKeySize(1024)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Mailgun domain\n default:\n type: mailgun:Domain\n properties:\n name: test.example.com\n region: us\n spamAction: disabled\n smtpPassword: supersecretpassword1234\n dkimKeySize: 1024\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nDomains can be imported using `region:domain_name` via `import` command. Region has to be chosen from `eu` or `us` (when no selection `us` is applied). \n\nhcl\n\n```sh\n$ pulumi import mailgun:index/domain:Domain test us:example.domain.com\n```\n\n", "properties": { + "clickTracking": { + "type": "boolean", + "description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n" + }, "dkimKeySize": { "type": "integer", "description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n" @@ -437,6 +441,10 @@ "type": "string", "description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n" }, + "webScheme": { + "type": "string", + "description": "(`http` or `https`) The tracking web scheme. Default: `http`\n" + }, "wildcard": { "type": "boolean", "description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n" @@ -451,6 +459,10 @@ "smtpLogin" ], "inputProperties": { + "clickTracking": { + "type": "boolean", + "description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n" + }, "dkimKeySize": { "type": "integer", "description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n", @@ -490,6 +502,10 @@ "description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n", "willReplaceOnChanges": true }, + "webScheme": { + "type": "string", + "description": "(`http` or `https`) The tracking web scheme. Default: `http`\n" + }, "wildcard": { "type": "boolean", "description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n", @@ -499,6 +515,10 @@ "stateInputs": { "description": "Input properties used for looking up and filtering Domain resources.\n", "properties": { + "clickTracking": { + "type": "boolean", + "description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n" + }, "dkimKeySize": { "type": "integer", "description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n", @@ -572,6 +592,10 @@ "description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n", "willReplaceOnChanges": true }, + "webScheme": { + "type": "string", + "description": "(`http` or `https`) The tracking web scheme. Default: `http`\n" + }, "wildcard": { "type": "boolean", "description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n", @@ -842,6 +866,10 @@ "inputs": { "description": "A collection of arguments for invoking getDomain.\n", "properties": { + "clickTracking": { + "type": "boolean", + "description": "The click tracking setting.\n" + }, "dkimKeySize": { "type": "integer", "willReplaceOnChanges": true @@ -860,7 +888,8 @@ "willReplaceOnChanges": true }, "openTracking": { - "type": "boolean" + "type": "boolean", + "description": "The open tracking setting.\n" }, "region": { "type": "string", @@ -877,6 +906,10 @@ "description": "The spam filtering setting.\n", "willReplaceOnChanges": true }, + "webScheme": { + "type": "string", + "description": "The tracking web scheme.\n" + }, "wildcard": { "type": "boolean", "description": "Whether or not the domain will accept email for sub-domains.\n", @@ -891,6 +924,10 @@ "outputs": { "description": "A collection of values returned by getDomain.\n", "properties": { + "clickTracking": { + "description": "The click tracking setting.\n", + "type": "boolean" + }, "dkimKeySize": { "type": "integer" }, @@ -909,6 +946,7 @@ "type": "string" }, "openTracking": { + "description": "The open tracking setting.\n", "type": "boolean" }, "receivingRecords": { @@ -955,6 +993,10 @@ "description": "The spam filtering setting.\n", "type": "string" }, + "webScheme": { + "description": "The tracking web scheme.\n", + "type": "string" + }, "wildcard": { "description": "Whether or not the domain will accept email for sub-domains.\n", "type": "boolean" diff --git a/provider/go.mod b/provider/go.mod index b684cfa5..78a3f72c 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -74,6 +74,7 @@ require ( github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect + github.com/go-chi/chi/v5 v5.0.8 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect github.com/go-git/go-git/v5 v5.11.0 // indirect @@ -141,7 +142,7 @@ require ( github.com/klauspost/compress v1.15.11 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mailgun/mailgun-go/v4 v4.8.1 // indirect + github.com/mailgun/mailgun-go/v4 v4.12.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect diff --git a/provider/go.sum b/provider/go.sum index 45ec72b7..1f0f59d2 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1790,6 +1790,8 @@ github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY= github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= +github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0= +github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= @@ -2449,8 +2451,8 @@ github.com/lyft/protoc-gen-star/v2 v2.0.3/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLO github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailgun/mailgun-go/v4 v4.8.1 h1:1+MdKakJuXnW2JJDbyPdO1ngAANOyHyVPxQvFF8Sq6c= -github.com/mailgun/mailgun-go/v4 v4.8.1/go.mod h1:FJlF9rI5cQT+mrwujtJjPMbIVy3Ebor9bKTVsJ0QU40= +github.com/mailgun/mailgun-go/v4 v4.12.0 h1:TtuQCgqSp4cB6swPxP5VF/u4JeeBIAjTdpuQ+4Usd/w= +github.com/mailgun/mailgun-go/v4 v4.12.0/go.mod h1:L9s941Lgk7iB3TgywTPz074pK2Ekkg4kgbnAaAyJ2z8= github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= diff --git a/sdk/dotnet/Domain.cs b/sdk/dotnet/Domain.cs index 751d5251..93addf7e 100644 --- a/sdk/dotnet/Domain.cs +++ b/sdk/dotnet/Domain.cs @@ -51,6 +51,12 @@ namespace Pulumi.Mailgun [MailgunResourceType("mailgun:index/domain:Domain")] public partial class Domain : global::Pulumi.CustomResource { + /// + /// (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + /// + [Output("clickTracking")] + public Output ClickTracking { get; private set; } = null!; + /// /// The length of your domain’s generated DKIM key. Default value is `1024`. /// @@ -131,6 +137,12 @@ public partial class Domain : global::Pulumi.CustomResource [Output("spamAction")] public Output SpamAction { get; private set; } = null!; + /// + /// (`http` or `https`) The tracking web scheme. Default: `http` + /// + [Output("webScheme")] + public Output WebScheme { get; private set; } = null!; + /// /// Boolean that determines whether /// the domain will accept email for sub-domains. @@ -188,6 +200,12 @@ public static Domain Get(string name, Input id, DomainState? state = nul public sealed class DomainArgs : global::Pulumi.ResourceArgs { + /// + /// (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + /// + [Input("clickTracking")] + public Input? ClickTracking { get; set; } + /// /// The length of your domain’s generated DKIM key. Default value is `1024`. /// @@ -248,6 +266,12 @@ public Input? SmtpPassword [Input("spamAction")] public Input? SpamAction { get; set; } + /// + /// (`http` or `https`) The tracking web scheme. Default: `http` + /// + [Input("webScheme")] + public Input? WebScheme { get; set; } + /// /// Boolean that determines whether /// the domain will accept email for sub-domains. @@ -263,6 +287,12 @@ public DomainArgs() public sealed class DomainState : global::Pulumi.ResourceArgs { + /// + /// (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + /// + [Input("clickTracking")] + public Input? ClickTracking { get; set; } + /// /// The length of your domain’s generated DKIM key. Default value is `1024`. /// @@ -379,6 +409,12 @@ public Input? SmtpPassword [Input("spamAction")] public Input? SpamAction { get; set; } + /// + /// (`http` or `https`) The tracking web scheme. Default: `http` + /// + [Input("webScheme")] + public Input? WebScheme { get; set; } + /// /// Boolean that determines whether /// the domain will accept email for sub-domains. diff --git a/sdk/dotnet/GetDomain.cs b/sdk/dotnet/GetDomain.cs index 4fe064d0..ad10b87c 100644 --- a/sdk/dotnet/GetDomain.cs +++ b/sdk/dotnet/GetDomain.cs @@ -91,6 +91,12 @@ public static Output Invoke(GetDomainInvokeArgs args, InvokeOpt public sealed class GetDomainArgs : global::Pulumi.InvokeArgs { + /// + /// The click tracking setting. + /// + [Input("clickTracking")] + public bool? ClickTracking { get; set; } + [Input("dkimKeySize")] public int? DkimKeySize { get; set; } @@ -106,6 +112,9 @@ public sealed class GetDomainArgs : global::Pulumi.InvokeArgs [Input("name", required: true)] public string Name { get; set; } = null!; + /// + /// The open tracking setting. + /// [Input("openTracking")] public bool? OpenTracking { get; set; } @@ -133,6 +142,12 @@ public string? SmtpPassword [Input("spamAction")] public string? SpamAction { get; set; } + /// + /// The tracking web scheme. + /// + [Input("webScheme")] + public string? WebScheme { get; set; } + /// /// Whether or not the domain will accept email for sub-domains. /// @@ -147,6 +162,12 @@ public GetDomainArgs() public sealed class GetDomainInvokeArgs : global::Pulumi.InvokeArgs { + /// + /// The click tracking setting. + /// + [Input("clickTracking")] + public Input? ClickTracking { get; set; } + [Input("dkimKeySize")] public Input? DkimKeySize { get; set; } @@ -162,6 +183,9 @@ public sealed class GetDomainInvokeArgs : global::Pulumi.InvokeArgs [Input("name", required: true)] public Input Name { get; set; } = null!; + /// + /// The open tracking setting. + /// [Input("openTracking")] public Input? OpenTracking { get; set; } @@ -193,6 +217,12 @@ public Input? SmtpPassword [Input("spamAction")] public Input? SpamAction { get; set; } + /// + /// The tracking web scheme. + /// + [Input("webScheme")] + public Input? WebScheme { get; set; } + /// /// Whether or not the domain will accept email for sub-domains. /// @@ -209,6 +239,10 @@ public GetDomainInvokeArgs() [OutputType] public sealed class GetDomainResult { + /// + /// The click tracking setting. + /// + public readonly bool? ClickTracking; public readonly int? DkimKeySize; public readonly string? DkimSelector; public readonly bool? ForceDkimAuthority; @@ -220,6 +254,9 @@ public sealed class GetDomainResult /// The name of the record. /// public readonly string Name; + /// + /// The open tracking setting. + /// public readonly bool? OpenTracking; /// /// A list of DNS records for receiving validation. @@ -245,12 +282,18 @@ public sealed class GetDomainResult /// public readonly string? SpamAction; /// + /// The tracking web scheme. + /// + public readonly string? WebScheme; + /// /// Whether or not the domain will accept email for sub-domains. /// public readonly bool? Wildcard; [OutputConstructor] private GetDomainResult( + bool? clickTracking, + int? dkimKeySize, string? dkimSelector, @@ -279,8 +322,11 @@ private GetDomainResult( string? spamAction, + string? webScheme, + bool? wildcard) { + ClickTracking = clickTracking; DkimKeySize = dkimKeySize; DkimSelector = dkimSelector; ForceDkimAuthority = forceDkimAuthority; @@ -295,6 +341,7 @@ private GetDomainResult( SmtpLogin = smtpLogin; SmtpPassword = smtpPassword; SpamAction = spamAction; + WebScheme = webScheme; Wildcard = wildcard; } } diff --git a/sdk/go/mailgun/domain.go b/sdk/go/mailgun/domain.go index 469f9258..3fada54e 100644 --- a/sdk/go/mailgun/domain.go +++ b/sdk/go/mailgun/domain.go @@ -59,6 +59,8 @@ import ( type Domain struct { pulumi.CustomResourceState + // (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + ClickTracking pulumi.BoolPtrOutput `pulumi:"clickTracking"` // The length of your domain’s generated DKIM key. Default value is `1024`. DkimKeySize pulumi.IntPtrOutput `pulumi:"dkimKeySize"` // The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. @@ -91,6 +93,8 @@ type Domain struct { // filtering will occur for inbound messages. Tag, messages // will be tagged with a spam header. Default value is `disabled`. SpamAction pulumi.StringPtrOutput `pulumi:"spamAction"` + // (`http` or `https`) The tracking web scheme. Default: `http` + WebScheme pulumi.StringPtrOutput `pulumi:"webScheme"` // Boolean that determines whether // the domain will accept email for sub-domains. Wildcard pulumi.BoolPtrOutput `pulumi:"wildcard"` @@ -133,6 +137,8 @@ func GetDomain(ctx *pulumi.Context, // Input properties used for looking up and filtering Domain resources. type domainState struct { + // (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + ClickTracking *bool `pulumi:"clickTracking"` // The length of your domain’s generated DKIM key. Default value is `1024`. DkimKeySize *int `pulumi:"dkimKeySize"` // The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. @@ -165,12 +171,16 @@ type domainState struct { // filtering will occur for inbound messages. Tag, messages // will be tagged with a spam header. Default value is `disabled`. SpamAction *string `pulumi:"spamAction"` + // (`http` or `https`) The tracking web scheme. Default: `http` + WebScheme *string `pulumi:"webScheme"` // Boolean that determines whether // the domain will accept email for sub-domains. Wildcard *bool `pulumi:"wildcard"` } type DomainState struct { + // (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + ClickTracking pulumi.BoolPtrInput // The length of your domain’s generated DKIM key. Default value is `1024`. DkimKeySize pulumi.IntPtrInput // The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. @@ -203,6 +213,8 @@ type DomainState struct { // filtering will occur for inbound messages. Tag, messages // will be tagged with a spam header. Default value is `disabled`. SpamAction pulumi.StringPtrInput + // (`http` or `https`) The tracking web scheme. Default: `http` + WebScheme pulumi.StringPtrInput // Boolean that determines whether // the domain will accept email for sub-domains. Wildcard pulumi.BoolPtrInput @@ -213,6 +225,8 @@ func (DomainState) ElementType() reflect.Type { } type domainArgs struct { + // (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + ClickTracking *bool `pulumi:"clickTracking"` // The length of your domain’s generated DKIM key. Default value is `1024`. DkimKeySize *int `pulumi:"dkimKeySize"` // The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. @@ -231,6 +245,8 @@ type domainArgs struct { // filtering will occur for inbound messages. Tag, messages // will be tagged with a spam header. Default value is `disabled`. SpamAction *string `pulumi:"spamAction"` + // (`http` or `https`) The tracking web scheme. Default: `http` + WebScheme *string `pulumi:"webScheme"` // Boolean that determines whether // the domain will accept email for sub-domains. Wildcard *bool `pulumi:"wildcard"` @@ -238,6 +254,8 @@ type domainArgs struct { // The set of arguments for constructing a Domain resource. type DomainArgs struct { + // (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + ClickTracking pulumi.BoolPtrInput // The length of your domain’s generated DKIM key. Default value is `1024`. DkimKeySize pulumi.IntPtrInput // The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. @@ -256,6 +274,8 @@ type DomainArgs struct { // filtering will occur for inbound messages. Tag, messages // will be tagged with a spam header. Default value is `disabled`. SpamAction pulumi.StringPtrInput + // (`http` or `https`) The tracking web scheme. Default: `http` + WebScheme pulumi.StringPtrInput // Boolean that determines whether // the domain will accept email for sub-domains. Wildcard pulumi.BoolPtrInput @@ -348,6 +368,11 @@ func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutpu return o } +// (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` +func (o DomainOutput) ClickTracking() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *Domain) pulumi.BoolPtrOutput { return v.ClickTracking }).(pulumi.BoolPtrOutput) +} + // The length of your domain’s generated DKIM key. Default value is `1024`. func (o DomainOutput) DkimKeySize() pulumi.IntPtrOutput { return o.ApplyT(func(v *Domain) pulumi.IntPtrOutput { return v.DkimKeySize }).(pulumi.IntPtrOutput) @@ -419,6 +444,11 @@ func (o DomainOutput) SpamAction() pulumi.StringPtrOutput { return o.ApplyT(func(v *Domain) pulumi.StringPtrOutput { return v.SpamAction }).(pulumi.StringPtrOutput) } +// (`http` or `https`) The tracking web scheme. Default: `http` +func (o DomainOutput) WebScheme() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Domain) pulumi.StringPtrOutput { return v.WebScheme }).(pulumi.StringPtrOutput) +} + // Boolean that determines whether // the domain will accept email for sub-domains. func (o DomainOutput) Wildcard() pulumi.BoolPtrOutput { diff --git a/sdk/go/mailgun/getDomain.go b/sdk/go/mailgun/getDomain.go index 3ca936d1..f9c7f947 100644 --- a/sdk/go/mailgun/getDomain.go +++ b/sdk/go/mailgun/getDomain.go @@ -66,32 +66,40 @@ func LookupDomain(ctx *pulumi.Context, args *LookupDomainArgs, opts ...pulumi.In // A collection of arguments for invoking getDomain. type LookupDomainArgs struct { + // The click tracking setting. + ClickTracking *bool `pulumi:"clickTracking"` DkimKeySize *int `pulumi:"dkimKeySize"` DkimSelector *string `pulumi:"dkimSelector"` ForceDkimAuthority *bool `pulumi:"forceDkimAuthority"` // The name of the domain. - Name string `pulumi:"name"` - OpenTracking *bool `pulumi:"openTracking"` + Name string `pulumi:"name"` + // The open tracking setting. + OpenTracking *bool `pulumi:"openTracking"` // The region where domain will be created. Default value is `us`. Region *string `pulumi:"region"` // The password to the SMTP server. SmtpPassword *string `pulumi:"smtpPassword"` // The spam filtering setting. SpamAction *string `pulumi:"spamAction"` + // The tracking web scheme. + WebScheme *string `pulumi:"webScheme"` // Whether or not the domain will accept email for sub-domains. Wildcard *bool `pulumi:"wildcard"` } // A collection of values returned by getDomain. type LookupDomainResult struct { + // The click tracking setting. + ClickTracking *bool `pulumi:"clickTracking"` DkimKeySize *int `pulumi:"dkimKeySize"` DkimSelector *string `pulumi:"dkimSelector"` ForceDkimAuthority *bool `pulumi:"forceDkimAuthority"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The name of the record. - Name string `pulumi:"name"` - OpenTracking *bool `pulumi:"openTracking"` + Name string `pulumi:"name"` + // The open tracking setting. + OpenTracking *bool `pulumi:"openTracking"` // A list of DNS records for receiving validation. // // Deprecated: Use `receivingRecordsSet` instead. @@ -109,6 +117,8 @@ type LookupDomainResult struct { SmtpPassword *string `pulumi:"smtpPassword"` // The spam filtering setting. SpamAction *string `pulumi:"spamAction"` + // The tracking web scheme. + WebScheme *string `pulumi:"webScheme"` // Whether or not the domain will accept email for sub-domains. Wildcard *bool `pulumi:"wildcard"` } @@ -128,11 +138,14 @@ func LookupDomainOutput(ctx *pulumi.Context, args LookupDomainOutputArgs, opts . // A collection of arguments for invoking getDomain. type LookupDomainOutputArgs struct { + // The click tracking setting. + ClickTracking pulumi.BoolPtrInput `pulumi:"clickTracking"` DkimKeySize pulumi.IntPtrInput `pulumi:"dkimKeySize"` DkimSelector pulumi.StringPtrInput `pulumi:"dkimSelector"` ForceDkimAuthority pulumi.BoolPtrInput `pulumi:"forceDkimAuthority"` // The name of the domain. - Name pulumi.StringInput `pulumi:"name"` + Name pulumi.StringInput `pulumi:"name"` + // The open tracking setting. OpenTracking pulumi.BoolPtrInput `pulumi:"openTracking"` // The region where domain will be created. Default value is `us`. Region pulumi.StringPtrInput `pulumi:"region"` @@ -140,6 +153,8 @@ type LookupDomainOutputArgs struct { SmtpPassword pulumi.StringPtrInput `pulumi:"smtpPassword"` // The spam filtering setting. SpamAction pulumi.StringPtrInput `pulumi:"spamAction"` + // The tracking web scheme. + WebScheme pulumi.StringPtrInput `pulumi:"webScheme"` // Whether or not the domain will accept email for sub-domains. Wildcard pulumi.BoolPtrInput `pulumi:"wildcard"` } @@ -163,6 +178,11 @@ func (o LookupDomainResultOutput) ToLookupDomainResultOutputWithContext(ctx cont return o } +// The click tracking setting. +func (o LookupDomainResultOutput) ClickTracking() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDomainResult) *bool { return v.ClickTracking }).(pulumi.BoolPtrOutput) +} + func (o LookupDomainResultOutput) DkimKeySize() pulumi.IntPtrOutput { return o.ApplyT(func(v LookupDomainResult) *int { return v.DkimKeySize }).(pulumi.IntPtrOutput) } @@ -185,6 +205,7 @@ func (o LookupDomainResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupDomainResult) string { return v.Name }).(pulumi.StringOutput) } +// The open tracking setting. func (o LookupDomainResultOutput) OpenTracking() pulumi.BoolPtrOutput { return o.ApplyT(func(v LookupDomainResult) *bool { return v.OpenTracking }).(pulumi.BoolPtrOutput) } @@ -230,6 +251,11 @@ func (o LookupDomainResultOutput) SpamAction() pulumi.StringPtrOutput { return o.ApplyT(func(v LookupDomainResult) *string { return v.SpamAction }).(pulumi.StringPtrOutput) } +// The tracking web scheme. +func (o LookupDomainResultOutput) WebScheme() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupDomainResult) *string { return v.WebScheme }).(pulumi.StringPtrOutput) +} + // Whether or not the domain will accept email for sub-domains. func (o LookupDomainResultOutput) Wildcard() pulumi.BoolPtrOutput { return o.ApplyT(func(v LookupDomainResult) *bool { return v.Wildcard }).(pulumi.BoolPtrOutput) diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/Domain.java b/sdk/java/src/main/java/com/pulumi/mailgun/Domain.java index 64a4dd3b..93a4869d 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/Domain.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/Domain.java @@ -78,6 +78,20 @@ */ @ResourceType(type="mailgun:index/domain:Domain") public class Domain extends com.pulumi.resources.CustomResource { + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + @Export(name="clickTracking", refs={Boolean.class}, tree="[0]") + private Output clickTracking; + + /** + * @return (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + public Output> clickTracking() { + return Codegen.optional(this.clickTracking); + } /** * The length of your domain’s generated DKIM key. Default value is `1024`. * @@ -272,6 +286,20 @@ public Output> smtpPassword() { public Output> spamAction() { return Codegen.optional(this.spamAction); } + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + @Export(name="webScheme", refs={String.class}, tree="[0]") + private Output webScheme; + + /** + * @return (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + public Output> webScheme() { + return Codegen.optional(this.webScheme); + } /** * Boolean that determines whether * the domain will accept email for sub-domains. diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/DomainArgs.java b/sdk/java/src/main/java/com/pulumi/mailgun/DomainArgs.java index 6128866f..8d575c28 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/DomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/DomainArgs.java @@ -17,6 +17,21 @@ public final class DomainArgs extends com.pulumi.resources.ResourceArgs { public static final DomainArgs Empty = new DomainArgs(); + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + @Import(name="clickTracking") + private @Nullable Output clickTracking; + + /** + * @return (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + public Optional> clickTracking() { + return Optional.ofNullable(this.clickTracking); + } + /** * The length of your domain’s generated DKIM key. Default value is `1024`. * @@ -141,6 +156,21 @@ public Optional> spamAction() { return Optional.ofNullable(this.spamAction); } + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + @Import(name="webScheme") + private @Nullable Output webScheme; + + /** + * @return (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + public Optional> webScheme() { + return Optional.ofNullable(this.webScheme); + } + /** * Boolean that determines whether * the domain will accept email for sub-domains. @@ -161,6 +191,7 @@ public Optional> wildcard() { private DomainArgs() {} private DomainArgs(DomainArgs $) { + this.clickTracking = $.clickTracking; this.dkimKeySize = $.dkimKeySize; this.dkimSelector = $.dkimSelector; this.forceDkimAuthority = $.forceDkimAuthority; @@ -169,6 +200,7 @@ private DomainArgs(DomainArgs $) { this.region = $.region; this.smtpPassword = $.smtpPassword; this.spamAction = $.spamAction; + this.webScheme = $.webScheme; this.wildcard = $.wildcard; } @@ -190,6 +222,27 @@ public Builder(DomainArgs defaults) { $ = new DomainArgs(Objects.requireNonNull(defaults)); } + /** + * @param clickTracking (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + * @return builder + * + */ + public Builder clickTracking(@Nullable Output clickTracking) { + $.clickTracking = clickTracking; + return this; + } + + /** + * @param clickTracking (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + * @return builder + * + */ + public Builder clickTracking(Boolean clickTracking) { + return clickTracking(Output.of(clickTracking)); + } + /** * @param dkimKeySize The length of your domain’s generated DKIM key. Default value is `1024`. * @@ -362,6 +415,27 @@ public Builder spamAction(String spamAction) { return spamAction(Output.of(spamAction)); } + /** + * @param webScheme (`http` or `https`) The tracking web scheme. Default: `http` + * + * @return builder + * + */ + public Builder webScheme(@Nullable Output webScheme) { + $.webScheme = webScheme; + return this; + } + + /** + * @param webScheme (`http` or `https`) The tracking web scheme. Default: `http` + * + * @return builder + * + */ + public Builder webScheme(String webScheme) { + return webScheme(Output.of(webScheme)); + } + /** * @param wildcard Boolean that determines whether * the domain will accept email for sub-domains. diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/DomainState.java b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/DomainState.java index 001614b0..2dc4d867 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/DomainState.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/DomainState.java @@ -22,6 +22,21 @@ public final class DomainState extends com.pulumi.resources.ResourceArgs { public static final DomainState Empty = new DomainState(); + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + @Import(name="clickTracking") + private @Nullable Output clickTracking; + + /** + * @return (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + */ + public Optional> clickTracking() { + return Optional.ofNullable(this.clickTracking); + } + /** * The length of your domain’s generated DKIM key. Default value is `1024`. * @@ -237,6 +252,21 @@ public Optional> spamAction() { return Optional.ofNullable(this.spamAction); } + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + @Import(name="webScheme") + private @Nullable Output webScheme; + + /** + * @return (`http` or `https`) The tracking web scheme. Default: `http` + * + */ + public Optional> webScheme() { + return Optional.ofNullable(this.webScheme); + } + /** * Boolean that determines whether * the domain will accept email for sub-domains. @@ -257,6 +287,7 @@ public Optional> wildcard() { private DomainState() {} private DomainState(DomainState $) { + this.clickTracking = $.clickTracking; this.dkimKeySize = $.dkimKeySize; this.dkimSelector = $.dkimSelector; this.forceDkimAuthority = $.forceDkimAuthority; @@ -270,6 +301,7 @@ private DomainState(DomainState $) { this.smtpLogin = $.smtpLogin; this.smtpPassword = $.smtpPassword; this.spamAction = $.spamAction; + this.webScheme = $.webScheme; this.wildcard = $.wildcard; } @@ -291,6 +323,27 @@ public Builder(DomainState defaults) { $ = new DomainState(Objects.requireNonNull(defaults)); } + /** + * @param clickTracking (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + * @return builder + * + */ + public Builder clickTracking(@Nullable Output clickTracking) { + $.clickTracking = clickTracking; + return this; + } + + /** + * @param clickTracking (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + * + * @return builder + * + */ + public Builder clickTracking(Boolean clickTracking) { + return clickTracking(Output.of(clickTracking)); + } + /** * @param dkimKeySize The length of your domain’s generated DKIM key. Default value is `1024`. * @@ -632,6 +685,27 @@ public Builder spamAction(String spamAction) { return spamAction(Output.of(spamAction)); } + /** + * @param webScheme (`http` or `https`) The tracking web scheme. Default: `http` + * + * @return builder + * + */ + public Builder webScheme(@Nullable Output webScheme) { + $.webScheme = webScheme; + return this; + } + + /** + * @param webScheme (`http` or `https`) The tracking web scheme. Default: `http` + * + * @return builder + * + */ + public Builder webScheme(String webScheme) { + return webScheme(Output.of(webScheme)); + } + /** * @param wildcard Boolean that determines whether * the domain will accept email for sub-domains. diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainArgs.java b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainArgs.java index 4483e61d..a1a5d72f 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainArgs.java @@ -18,6 +18,21 @@ public final class GetDomainArgs extends com.pulumi.resources.InvokeArgs { public static final GetDomainArgs Empty = new GetDomainArgs(); + /** + * The click tracking setting. + * + */ + @Import(name="clickTracking") + private @Nullable Output clickTracking; + + /** + * @return The click tracking setting. + * + */ + public Optional> clickTracking() { + return Optional.ofNullable(this.clickTracking); + } + @Import(name="dkimKeySize") private @Nullable Output dkimKeySize; @@ -54,9 +69,17 @@ public Output name() { return this.name; } + /** + * The open tracking setting. + * + */ @Import(name="openTracking") private @Nullable Output openTracking; + /** + * @return The open tracking setting. + * + */ public Optional> openTracking() { return Optional.ofNullable(this.openTracking); } @@ -106,6 +129,21 @@ public Optional> spamAction() { return Optional.ofNullable(this.spamAction); } + /** + * The tracking web scheme. + * + */ + @Import(name="webScheme") + private @Nullable Output webScheme; + + /** + * @return The tracking web scheme. + * + */ + public Optional> webScheme() { + return Optional.ofNullable(this.webScheme); + } + /** * Whether or not the domain will accept email for sub-domains. * @@ -124,6 +162,7 @@ public Optional> wildcard() { private GetDomainArgs() {} private GetDomainArgs(GetDomainArgs $) { + this.clickTracking = $.clickTracking; this.dkimKeySize = $.dkimKeySize; this.dkimSelector = $.dkimSelector; this.forceDkimAuthority = $.forceDkimAuthority; @@ -132,6 +171,7 @@ private GetDomainArgs(GetDomainArgs $) { this.region = $.region; this.smtpPassword = $.smtpPassword; this.spamAction = $.spamAction; + this.webScheme = $.webScheme; this.wildcard = $.wildcard; } @@ -153,6 +193,27 @@ public Builder(GetDomainArgs defaults) { $ = new GetDomainArgs(Objects.requireNonNull(defaults)); } + /** + * @param clickTracking The click tracking setting. + * + * @return builder + * + */ + public Builder clickTracking(@Nullable Output clickTracking) { + $.clickTracking = clickTracking; + return this; + } + + /** + * @param clickTracking The click tracking setting. + * + * @return builder + * + */ + public Builder clickTracking(Boolean clickTracking) { + return clickTracking(Output.of(clickTracking)); + } + public Builder dkimKeySize(@Nullable Output dkimKeySize) { $.dkimKeySize = dkimKeySize; return this; @@ -201,11 +262,23 @@ public Builder name(String name) { return name(Output.of(name)); } + /** + * @param openTracking The open tracking setting. + * + * @return builder + * + */ public Builder openTracking(@Nullable Output openTracking) { $.openTracking = openTracking; return this; } + /** + * @param openTracking The open tracking setting. + * + * @return builder + * + */ public Builder openTracking(Boolean openTracking) { return openTracking(Output.of(openTracking)); } @@ -273,6 +346,27 @@ public Builder spamAction(String spamAction) { return spamAction(Output.of(spamAction)); } + /** + * @param webScheme The tracking web scheme. + * + * @return builder + * + */ + public Builder webScheme(@Nullable Output webScheme) { + $.webScheme = webScheme; + return this; + } + + /** + * @param webScheme The tracking web scheme. + * + * @return builder + * + */ + public Builder webScheme(String webScheme) { + return webScheme(Output.of(webScheme)); + } + /** * @param wildcard Whether or not the domain will accept email for sub-domains. * diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainPlainArgs.java index 44723667..4b8c1f93 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/inputs/GetDomainPlainArgs.java @@ -17,6 +17,21 @@ public final class GetDomainPlainArgs extends com.pulumi.resources.InvokeArgs { public static final GetDomainPlainArgs Empty = new GetDomainPlainArgs(); + /** + * The click tracking setting. + * + */ + @Import(name="clickTracking") + private @Nullable Boolean clickTracking; + + /** + * @return The click tracking setting. + * + */ + public Optional clickTracking() { + return Optional.ofNullable(this.clickTracking); + } + @Import(name="dkimKeySize") private @Nullable Integer dkimKeySize; @@ -53,9 +68,17 @@ public String name() { return this.name; } + /** + * The open tracking setting. + * + */ @Import(name="openTracking") private @Nullable Boolean openTracking; + /** + * @return The open tracking setting. + * + */ public Optional openTracking() { return Optional.ofNullable(this.openTracking); } @@ -105,6 +128,21 @@ public Optional spamAction() { return Optional.ofNullable(this.spamAction); } + /** + * The tracking web scheme. + * + */ + @Import(name="webScheme") + private @Nullable String webScheme; + + /** + * @return The tracking web scheme. + * + */ + public Optional webScheme() { + return Optional.ofNullable(this.webScheme); + } + /** * Whether or not the domain will accept email for sub-domains. * @@ -123,6 +161,7 @@ public Optional wildcard() { private GetDomainPlainArgs() {} private GetDomainPlainArgs(GetDomainPlainArgs $) { + this.clickTracking = $.clickTracking; this.dkimKeySize = $.dkimKeySize; this.dkimSelector = $.dkimSelector; this.forceDkimAuthority = $.forceDkimAuthority; @@ -131,6 +170,7 @@ private GetDomainPlainArgs(GetDomainPlainArgs $) { this.region = $.region; this.smtpPassword = $.smtpPassword; this.spamAction = $.spamAction; + this.webScheme = $.webScheme; this.wildcard = $.wildcard; } @@ -152,6 +192,17 @@ public Builder(GetDomainPlainArgs defaults) { $ = new GetDomainPlainArgs(Objects.requireNonNull(defaults)); } + /** + * @param clickTracking The click tracking setting. + * + * @return builder + * + */ + public Builder clickTracking(@Nullable Boolean clickTracking) { + $.clickTracking = clickTracking; + return this; + } + public Builder dkimKeySize(@Nullable Integer dkimKeySize) { $.dkimKeySize = dkimKeySize; return this; @@ -178,6 +229,12 @@ public Builder name(String name) { return this; } + /** + * @param openTracking The open tracking setting. + * + * @return builder + * + */ public Builder openTracking(@Nullable Boolean openTracking) { $.openTracking = openTracking; return this; @@ -216,6 +273,17 @@ public Builder spamAction(@Nullable String spamAction) { return this; } + /** + * @param webScheme The tracking web scheme. + * + * @return builder + * + */ + public Builder webScheme(@Nullable String webScheme) { + $.webScheme = webScheme; + return this; + } + /** * @param wildcard Whether or not the domain will accept email for sub-domains. * diff --git a/sdk/java/src/main/java/com/pulumi/mailgun/outputs/GetDomainResult.java b/sdk/java/src/main/java/com/pulumi/mailgun/outputs/GetDomainResult.java index b8e74cb1..ffebfddc 100644 --- a/sdk/java/src/main/java/com/pulumi/mailgun/outputs/GetDomainResult.java +++ b/sdk/java/src/main/java/com/pulumi/mailgun/outputs/GetDomainResult.java @@ -19,6 +19,11 @@ @CustomType public final class GetDomainResult { + /** + * @return The click tracking setting. + * + */ + private @Nullable Boolean clickTracking; private @Nullable Integer dkimKeySize; private @Nullable String dkimSelector; private @Nullable Boolean forceDkimAuthority; @@ -32,6 +37,10 @@ public final class GetDomainResult { * */ private String name; + /** + * @return The open tracking setting. + * + */ private @Nullable Boolean openTracking; /** * @return A list of DNS records for receiving validation. @@ -69,6 +78,11 @@ public final class GetDomainResult { * */ private @Nullable String spamAction; + /** + * @return The tracking web scheme. + * + */ + private @Nullable String webScheme; /** * @return Whether or not the domain will accept email for sub-domains. * @@ -76,6 +90,13 @@ public final class GetDomainResult { private @Nullable Boolean wildcard; private GetDomainResult() {} + /** + * @return The click tracking setting. + * + */ + public Optional clickTracking() { + return Optional.ofNullable(this.clickTracking); + } public Optional dkimKeySize() { return Optional.ofNullable(this.dkimKeySize); } @@ -99,6 +120,10 @@ public String id() { public String name() { return this.name; } + /** + * @return The open tracking setting. + * + */ public Optional openTracking() { return Optional.ofNullable(this.openTracking); } @@ -154,6 +179,13 @@ public Optional smtpPassword() { public Optional spamAction() { return Optional.ofNullable(this.spamAction); } + /** + * @return The tracking web scheme. + * + */ + public Optional webScheme() { + return Optional.ofNullable(this.webScheme); + } /** * @return Whether or not the domain will accept email for sub-domains. * @@ -171,6 +203,7 @@ public static Builder builder(GetDomainResult defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable Boolean clickTracking; private @Nullable Integer dkimKeySize; private @Nullable String dkimSelector; private @Nullable Boolean forceDkimAuthority; @@ -185,10 +218,12 @@ public static final class Builder { private String smtpLogin; private @Nullable String smtpPassword; private @Nullable String spamAction; + private @Nullable String webScheme; private @Nullable Boolean wildcard; public Builder() {} public Builder(GetDomainResult defaults) { Objects.requireNonNull(defaults); + this.clickTracking = defaults.clickTracking; this.dkimKeySize = defaults.dkimKeySize; this.dkimSelector = defaults.dkimSelector; this.forceDkimAuthority = defaults.forceDkimAuthority; @@ -203,9 +238,16 @@ public Builder(GetDomainResult defaults) { this.smtpLogin = defaults.smtpLogin; this.smtpPassword = defaults.smtpPassword; this.spamAction = defaults.spamAction; + this.webScheme = defaults.webScheme; this.wildcard = defaults.wildcard; } + @CustomType.Setter + public Builder clickTracking(@Nullable Boolean clickTracking) { + + this.clickTracking = clickTracking; + return this; + } @CustomType.Setter public Builder dkimKeySize(@Nullable Integer dkimKeySize) { @@ -317,6 +359,12 @@ public Builder spamAction(@Nullable String spamAction) { return this; } @CustomType.Setter + public Builder webScheme(@Nullable String webScheme) { + + this.webScheme = webScheme; + return this; + } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; @@ -324,6 +372,7 @@ public Builder wildcard(@Nullable Boolean wildcard) { } public GetDomainResult build() { final var _resultValue = new GetDomainResult(); + _resultValue.clickTracking = clickTracking; _resultValue.dkimKeySize = dkimKeySize; _resultValue.dkimSelector = dkimSelector; _resultValue.forceDkimAuthority = forceDkimAuthority; @@ -338,6 +387,7 @@ public GetDomainResult build() { _resultValue.smtpLogin = smtpLogin; _resultValue.smtpPassword = smtpPassword; _resultValue.spamAction = spamAction; + _resultValue.webScheme = webScheme; _resultValue.wildcard = wildcard; return _resultValue; } diff --git a/sdk/nodejs/domain.ts b/sdk/nodejs/domain.ts index 9fc8ee8c..6753454d 100644 --- a/sdk/nodejs/domain.ts +++ b/sdk/nodejs/domain.ts @@ -66,6 +66,10 @@ export class Domain extends pulumi.CustomResource { return obj['__pulumiType'] === Domain.__pulumiType; } + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + */ + public readonly clickTracking!: pulumi.Output; /** * The length of your domain’s generated DKIM key. Default value is `1024`. */ @@ -124,6 +128,10 @@ export class Domain extends pulumi.CustomResource { * will be tagged with a spam header. Default value is `disabled`. */ public readonly spamAction!: pulumi.Output; + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + */ + public readonly webScheme!: pulumi.Output; /** * Boolean that determines whether * the domain will accept email for sub-domains. @@ -143,6 +151,7 @@ export class Domain extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as DomainState | undefined; + resourceInputs["clickTracking"] = state ? state.clickTracking : undefined; resourceInputs["dkimKeySize"] = state ? state.dkimKeySize : undefined; resourceInputs["dkimSelector"] = state ? state.dkimSelector : undefined; resourceInputs["forceDkimAuthority"] = state ? state.forceDkimAuthority : undefined; @@ -156,9 +165,11 @@ export class Domain extends pulumi.CustomResource { resourceInputs["smtpLogin"] = state ? state.smtpLogin : undefined; resourceInputs["smtpPassword"] = state ? state.smtpPassword : undefined; resourceInputs["spamAction"] = state ? state.spamAction : undefined; + resourceInputs["webScheme"] = state ? state.webScheme : undefined; resourceInputs["wildcard"] = state ? state.wildcard : undefined; } else { const args = argsOrState as DomainArgs | undefined; + resourceInputs["clickTracking"] = args ? args.clickTracking : undefined; resourceInputs["dkimKeySize"] = args ? args.dkimKeySize : undefined; resourceInputs["dkimSelector"] = args ? args.dkimSelector : undefined; resourceInputs["forceDkimAuthority"] = args ? args.forceDkimAuthority : undefined; @@ -167,6 +178,7 @@ export class Domain extends pulumi.CustomResource { resourceInputs["region"] = args ? args.region : undefined; resourceInputs["smtpPassword"] = args?.smtpPassword ? pulumi.secret(args.smtpPassword) : undefined; resourceInputs["spamAction"] = args ? args.spamAction : undefined; + resourceInputs["webScheme"] = args ? args.webScheme : undefined; resourceInputs["wildcard"] = args ? args.wildcard : undefined; resourceInputs["receivingRecords"] = undefined /*out*/; resourceInputs["receivingRecordsSets"] = undefined /*out*/; @@ -185,6 +197,10 @@ export class Domain extends pulumi.CustomResource { * Input properties used for looking up and filtering Domain resources. */ export interface DomainState { + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + */ + clickTracking?: pulumi.Input; /** * The length of your domain’s generated DKIM key. Default value is `1024`. */ @@ -243,6 +259,10 @@ export interface DomainState { * will be tagged with a spam header. Default value is `disabled`. */ spamAction?: pulumi.Input; + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + */ + webScheme?: pulumi.Input; /** * Boolean that determines whether * the domain will accept email for sub-domains. @@ -254,6 +274,10 @@ export interface DomainState { * The set of arguments for constructing a Domain resource. */ export interface DomainArgs { + /** + * (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + */ + clickTracking?: pulumi.Input; /** * The length of your domain’s generated DKIM key. Default value is `1024`. */ @@ -288,6 +312,10 @@ export interface DomainArgs { * will be tagged with a spam header. Default value is `disabled`. */ spamAction?: pulumi.Input; + /** + * (`http` or `https`) The tracking web scheme. Default: `http` + */ + webScheme?: pulumi.Input; /** * Boolean that determines whether * the domain will accept email for sub-domains. diff --git a/sdk/nodejs/getDomain.ts b/sdk/nodejs/getDomain.ts index 77383b8c..4a3efb00 100644 --- a/sdk/nodejs/getDomain.ts +++ b/sdk/nodejs/getDomain.ts @@ -35,6 +35,7 @@ export function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Pro opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("mailgun:index/getDomain:getDomain", { + "clickTracking": args.clickTracking, "dkimKeySize": args.dkimKeySize, "dkimSelector": args.dkimSelector, "forceDkimAuthority": args.forceDkimAuthority, @@ -43,6 +44,7 @@ export function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Pro "region": args.region, "smtpPassword": args.smtpPassword, "spamAction": args.spamAction, + "webScheme": args.webScheme, "wildcard": args.wildcard, }, opts); } @@ -51,6 +53,10 @@ export function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Pro * A collection of arguments for invoking getDomain. */ export interface GetDomainArgs { + /** + * The click tracking setting. + */ + clickTracking?: boolean; dkimKeySize?: number; dkimSelector?: string; forceDkimAuthority?: boolean; @@ -58,6 +64,9 @@ export interface GetDomainArgs { * The name of the domain. */ name: string; + /** + * The open tracking setting. + */ openTracking?: boolean; /** * The region where domain will be created. Default value is `us`. @@ -71,6 +80,10 @@ export interface GetDomainArgs { * The spam filtering setting. */ spamAction?: string; + /** + * The tracking web scheme. + */ + webScheme?: string; /** * Whether or not the domain will accept email for sub-domains. */ @@ -81,6 +94,10 @@ export interface GetDomainArgs { * A collection of values returned by getDomain. */ export interface GetDomainResult { + /** + * The click tracking setting. + */ + readonly clickTracking?: boolean; readonly dkimKeySize?: number; readonly dkimSelector?: string; readonly forceDkimAuthority?: boolean; @@ -92,6 +109,9 @@ export interface GetDomainResult { * The name of the record. */ readonly name: string; + /** + * The open tracking setting. + */ readonly openTracking?: boolean; /** * A list of DNS records for receiving validation. @@ -120,6 +140,10 @@ export interface GetDomainResult { * The spam filtering setting. */ readonly spamAction?: string; + /** + * The tracking web scheme. + */ + readonly webScheme?: string; /** * Whether or not the domain will accept email for sub-domains. */ @@ -158,6 +182,10 @@ export function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi.InvokeO * A collection of arguments for invoking getDomain. */ export interface GetDomainOutputArgs { + /** + * The click tracking setting. + */ + clickTracking?: pulumi.Input; dkimKeySize?: pulumi.Input; dkimSelector?: pulumi.Input; forceDkimAuthority?: pulumi.Input; @@ -165,6 +193,9 @@ export interface GetDomainOutputArgs { * The name of the domain. */ name: pulumi.Input; + /** + * The open tracking setting. + */ openTracking?: pulumi.Input; /** * The region where domain will be created. Default value is `us`. @@ -178,6 +209,10 @@ export interface GetDomainOutputArgs { * The spam filtering setting. */ spamAction?: pulumi.Input; + /** + * The tracking web scheme. + */ + webScheme?: pulumi.Input; /** * Whether or not the domain will accept email for sub-domains. */ diff --git a/sdk/python/pulumi_mailgun/domain.py b/sdk/python/pulumi_mailgun/domain.py index 3d93441a..b1094f39 100644 --- a/sdk/python/pulumi_mailgun/domain.py +++ b/sdk/python/pulumi_mailgun/domain.py @@ -16,6 +16,7 @@ @pulumi.input_type class DomainArgs: def __init__(__self__, *, + click_tracking: Optional[pulumi.Input[bool]] = None, dkim_key_size: Optional[pulumi.Input[int]] = None, dkim_selector: Optional[pulumi.Input[str]] = None, force_dkim_authority: Optional[pulumi.Input[bool]] = None, @@ -24,9 +25,11 @@ def __init__(__self__, *, region: Optional[pulumi.Input[str]] = None, smtp_password: Optional[pulumi.Input[str]] = None, spam_action: Optional[pulumi.Input[str]] = None, + web_scheme: Optional[pulumi.Input[str]] = None, wildcard: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a Domain resource. + :param pulumi.Input[bool] click_tracking: (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` :param pulumi.Input[int] dkim_key_size: The length of your domain’s generated DKIM key. Default value is `1024`. :param pulumi.Input[str] dkim_selector: The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. :param pulumi.Input[bool] force_dkim_authority: If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is `false`. @@ -37,9 +40,12 @@ def __init__(__self__, *, :param pulumi.Input[str] spam_action: `disabled` or `tag` Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value is `disabled`. + :param pulumi.Input[str] web_scheme: (`http` or `https`) The tracking web scheme. Default: `http` :param pulumi.Input[bool] wildcard: Boolean that determines whether the domain will accept email for sub-domains. """ + if click_tracking is not None: + pulumi.set(__self__, "click_tracking", click_tracking) if dkim_key_size is not None: pulumi.set(__self__, "dkim_key_size", dkim_key_size) if dkim_selector is not None: @@ -56,9 +62,23 @@ def __init__(__self__, *, pulumi.set(__self__, "smtp_password", smtp_password) if spam_action is not None: pulumi.set(__self__, "spam_action", spam_action) + if web_scheme is not None: + pulumi.set(__self__, "web_scheme", web_scheme) if wildcard is not None: pulumi.set(__self__, "wildcard", wildcard) + @property + @pulumi.getter(name="clickTracking") + def click_tracking(self) -> Optional[pulumi.Input[bool]]: + """ + (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + """ + return pulumi.get(self, "click_tracking") + + @click_tracking.setter + def click_tracking(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "click_tracking", value) + @property @pulumi.getter(name="dkimKeySize") def dkim_key_size(self) -> Optional[pulumi.Input[int]]: @@ -157,6 +177,18 @@ def spam_action(self) -> Optional[pulumi.Input[str]]: def spam_action(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "spam_action", value) + @property + @pulumi.getter(name="webScheme") + def web_scheme(self) -> Optional[pulumi.Input[str]]: + """ + (`http` or `https`) The tracking web scheme. Default: `http` + """ + return pulumi.get(self, "web_scheme") + + @web_scheme.setter + def web_scheme(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "web_scheme", value) + @property @pulumi.getter def wildcard(self) -> Optional[pulumi.Input[bool]]: @@ -174,6 +206,7 @@ def wildcard(self, value: Optional[pulumi.Input[bool]]): @pulumi.input_type class _DomainState: def __init__(__self__, *, + click_tracking: Optional[pulumi.Input[bool]] = None, dkim_key_size: Optional[pulumi.Input[int]] = None, dkim_selector: Optional[pulumi.Input[str]] = None, force_dkim_authority: Optional[pulumi.Input[bool]] = None, @@ -187,9 +220,11 @@ def __init__(__self__, *, smtp_login: Optional[pulumi.Input[str]] = None, smtp_password: Optional[pulumi.Input[str]] = None, spam_action: Optional[pulumi.Input[str]] = None, + web_scheme: Optional[pulumi.Input[str]] = None, wildcard: Optional[pulumi.Input[bool]] = None): """ Input properties used for looking up and filtering Domain resources. + :param pulumi.Input[bool] click_tracking: (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` :param pulumi.Input[int] dkim_key_size: The length of your domain’s generated DKIM key. Default value is `1024`. :param pulumi.Input[str] dkim_selector: The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. :param pulumi.Input[bool] force_dkim_authority: If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is `false`. @@ -205,9 +240,12 @@ def __init__(__self__, *, :param pulumi.Input[str] spam_action: `disabled` or `tag` Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value is `disabled`. + :param pulumi.Input[str] web_scheme: (`http` or `https`) The tracking web scheme. Default: `http` :param pulumi.Input[bool] wildcard: Boolean that determines whether the domain will accept email for sub-domains. """ + if click_tracking is not None: + pulumi.set(__self__, "click_tracking", click_tracking) if dkim_key_size is not None: pulumi.set(__self__, "dkim_key_size", dkim_key_size) if dkim_selector is not None: @@ -240,9 +278,23 @@ def __init__(__self__, *, pulumi.set(__self__, "smtp_password", smtp_password) if spam_action is not None: pulumi.set(__self__, "spam_action", spam_action) + if web_scheme is not None: + pulumi.set(__self__, "web_scheme", web_scheme) if wildcard is not None: pulumi.set(__self__, "wildcard", wildcard) + @property + @pulumi.getter(name="clickTracking") + def click_tracking(self) -> Optional[pulumi.Input[bool]]: + """ + (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + """ + return pulumi.get(self, "click_tracking") + + @click_tracking.setter + def click_tracking(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "click_tracking", value) + @property @pulumi.getter(name="dkimKeySize") def dkim_key_size(self) -> Optional[pulumi.Input[int]]: @@ -407,6 +459,18 @@ def spam_action(self) -> Optional[pulumi.Input[str]]: def spam_action(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "spam_action", value) + @property + @pulumi.getter(name="webScheme") + def web_scheme(self) -> Optional[pulumi.Input[str]]: + """ + (`http` or `https`) The tracking web scheme. Default: `http` + """ + return pulumi.get(self, "web_scheme") + + @web_scheme.setter + def web_scheme(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "web_scheme", value) + @property @pulumi.getter def wildcard(self) -> Optional[pulumi.Input[bool]]: @@ -426,6 +490,7 @@ class Domain(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + click_tracking: Optional[pulumi.Input[bool]] = None, dkim_key_size: Optional[pulumi.Input[int]] = None, dkim_selector: Optional[pulumi.Input[str]] = None, force_dkim_authority: Optional[pulumi.Input[bool]] = None, @@ -434,6 +499,7 @@ def __init__(__self__, region: Optional[pulumi.Input[str]] = None, smtp_password: Optional[pulumi.Input[str]] = None, spam_action: Optional[pulumi.Input[str]] = None, + web_scheme: Optional[pulumi.Input[str]] = None, wildcard: Optional[pulumi.Input[bool]] = None, __props__=None): """ @@ -469,6 +535,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] click_tracking: (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` :param pulumi.Input[int] dkim_key_size: The length of your domain’s generated DKIM key. Default value is `1024`. :param pulumi.Input[str] dkim_selector: The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. :param pulumi.Input[bool] force_dkim_authority: If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is `false`. @@ -479,6 +546,7 @@ def __init__(__self__, :param pulumi.Input[str] spam_action: `disabled` or `tag` Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value is `disabled`. + :param pulumi.Input[str] web_scheme: (`http` or `https`) The tracking web scheme. Default: `http` :param pulumi.Input[bool] wildcard: Boolean that determines whether the domain will accept email for sub-domains. """ @@ -534,6 +602,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + click_tracking: Optional[pulumi.Input[bool]] = None, dkim_key_size: Optional[pulumi.Input[int]] = None, dkim_selector: Optional[pulumi.Input[str]] = None, force_dkim_authority: Optional[pulumi.Input[bool]] = None, @@ -542,6 +611,7 @@ def _internal_init(__self__, region: Optional[pulumi.Input[str]] = None, smtp_password: Optional[pulumi.Input[str]] = None, spam_action: Optional[pulumi.Input[str]] = None, + web_scheme: Optional[pulumi.Input[str]] = None, wildcard: Optional[pulumi.Input[bool]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -552,6 +622,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = DomainArgs.__new__(DomainArgs) + __props__.__dict__["click_tracking"] = click_tracking __props__.__dict__["dkim_key_size"] = dkim_key_size __props__.__dict__["dkim_selector"] = dkim_selector __props__.__dict__["force_dkim_authority"] = force_dkim_authority @@ -560,6 +631,7 @@ def _internal_init(__self__, __props__.__dict__["region"] = region __props__.__dict__["smtp_password"] = None if smtp_password is None else pulumi.Output.secret(smtp_password) __props__.__dict__["spam_action"] = spam_action + __props__.__dict__["web_scheme"] = web_scheme __props__.__dict__["wildcard"] = wildcard __props__.__dict__["receiving_records"] = None __props__.__dict__["receiving_records_sets"] = None @@ -578,6 +650,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + click_tracking: Optional[pulumi.Input[bool]] = None, dkim_key_size: Optional[pulumi.Input[int]] = None, dkim_selector: Optional[pulumi.Input[str]] = None, force_dkim_authority: Optional[pulumi.Input[bool]] = None, @@ -591,6 +664,7 @@ def get(resource_name: str, smtp_login: Optional[pulumi.Input[str]] = None, smtp_password: Optional[pulumi.Input[str]] = None, spam_action: Optional[pulumi.Input[str]] = None, + web_scheme: Optional[pulumi.Input[str]] = None, wildcard: Optional[pulumi.Input[bool]] = None) -> 'Domain': """ Get an existing Domain resource's state with the given name, id, and optional extra @@ -599,6 +673,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] click_tracking: (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` :param pulumi.Input[int] dkim_key_size: The length of your domain’s generated DKIM key. Default value is `1024`. :param pulumi.Input[str] dkim_selector: The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice. :param pulumi.Input[bool] force_dkim_authority: If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is `false`. @@ -614,6 +689,7 @@ def get(resource_name: str, :param pulumi.Input[str] spam_action: `disabled` or `tag` Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value is `disabled`. + :param pulumi.Input[str] web_scheme: (`http` or `https`) The tracking web scheme. Default: `http` :param pulumi.Input[bool] wildcard: Boolean that determines whether the domain will accept email for sub-domains. """ @@ -621,6 +697,7 @@ def get(resource_name: str, __props__ = _DomainState.__new__(_DomainState) + __props__.__dict__["click_tracking"] = click_tracking __props__.__dict__["dkim_key_size"] = dkim_key_size __props__.__dict__["dkim_selector"] = dkim_selector __props__.__dict__["force_dkim_authority"] = force_dkim_authority @@ -634,9 +711,18 @@ def get(resource_name: str, __props__.__dict__["smtp_login"] = smtp_login __props__.__dict__["smtp_password"] = smtp_password __props__.__dict__["spam_action"] = spam_action + __props__.__dict__["web_scheme"] = web_scheme __props__.__dict__["wildcard"] = wildcard return Domain(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="clickTracking") + def click_tracking(self) -> pulumi.Output[Optional[bool]]: + """ + (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no` + """ + return pulumi.get(self, "click_tracking") + @property @pulumi.getter(name="dkimKeySize") def dkim_key_size(self) -> pulumi.Output[Optional[int]]: @@ -749,6 +835,14 @@ def spam_action(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "spam_action") + @property + @pulumi.getter(name="webScheme") + def web_scheme(self) -> pulumi.Output[Optional[str]]: + """ + (`http` or `https`) The tracking web scheme. Default: `http` + """ + return pulumi.get(self, "web_scheme") + @property @pulumi.getter def wildcard(self) -> pulumi.Output[Optional[bool]]: diff --git a/sdk/python/pulumi_mailgun/get_domain.py b/sdk/python/pulumi_mailgun/get_domain.py index c8a46b8e..0005bc31 100644 --- a/sdk/python/pulumi_mailgun/get_domain.py +++ b/sdk/python/pulumi_mailgun/get_domain.py @@ -22,7 +22,10 @@ class GetDomainResult: """ A collection of values returned by getDomain. """ - def __init__(__self__, dkim_key_size=None, dkim_selector=None, force_dkim_authority=None, id=None, name=None, open_tracking=None, receiving_records=None, receiving_records_sets=None, region=None, sending_records=None, sending_records_sets=None, smtp_login=None, smtp_password=None, spam_action=None, wildcard=None): + def __init__(__self__, click_tracking=None, dkim_key_size=None, dkim_selector=None, force_dkim_authority=None, id=None, name=None, open_tracking=None, receiving_records=None, receiving_records_sets=None, region=None, sending_records=None, sending_records_sets=None, smtp_login=None, smtp_password=None, spam_action=None, web_scheme=None, wildcard=None): + if click_tracking and not isinstance(click_tracking, bool): + raise TypeError("Expected argument 'click_tracking' to be a bool") + pulumi.set(__self__, "click_tracking", click_tracking) if dkim_key_size and not isinstance(dkim_key_size, int): raise TypeError("Expected argument 'dkim_key_size' to be a int") pulumi.set(__self__, "dkim_key_size", dkim_key_size) @@ -65,10 +68,21 @@ def __init__(__self__, dkim_key_size=None, dkim_selector=None, force_dkim_author if spam_action and not isinstance(spam_action, str): raise TypeError("Expected argument 'spam_action' to be a str") pulumi.set(__self__, "spam_action", spam_action) + if web_scheme and not isinstance(web_scheme, str): + raise TypeError("Expected argument 'web_scheme' to be a str") + pulumi.set(__self__, "web_scheme", web_scheme) if wildcard and not isinstance(wildcard, bool): raise TypeError("Expected argument 'wildcard' to be a bool") pulumi.set(__self__, "wildcard", wildcard) + @property + @pulumi.getter(name="clickTracking") + def click_tracking(self) -> Optional[bool]: + """ + The click tracking setting. + """ + return pulumi.get(self, "click_tracking") + @property @pulumi.getter(name="dkimKeySize") def dkim_key_size(self) -> Optional[int]: @@ -103,6 +117,9 @@ def name(self) -> str: @property @pulumi.getter(name="openTracking") def open_tracking(self) -> Optional[bool]: + """ + The open tracking setting. + """ return pulumi.get(self, "open_tracking") @property @@ -166,6 +183,14 @@ def spam_action(self) -> Optional[str]: """ return pulumi.get(self, "spam_action") + @property + @pulumi.getter(name="webScheme") + def web_scheme(self) -> Optional[str]: + """ + The tracking web scheme. + """ + return pulumi.get(self, "web_scheme") + @property @pulumi.getter def wildcard(self) -> Optional[bool]: @@ -181,6 +206,7 @@ def __await__(self): if False: yield self return GetDomainResult( + click_tracking=self.click_tracking, dkim_key_size=self.dkim_key_size, dkim_selector=self.dkim_selector, force_dkim_authority=self.force_dkim_authority, @@ -195,10 +221,12 @@ def __await__(self): smtp_login=self.smtp_login, smtp_password=self.smtp_password, spam_action=self.spam_action, + web_scheme=self.web_scheme, wildcard=self.wildcard) -def get_domain(dkim_key_size: Optional[int] = None, +def get_domain(click_tracking: Optional[bool] = None, + dkim_key_size: Optional[int] = None, dkim_selector: Optional[str] = None, force_dkim_authority: Optional[bool] = None, name: Optional[str] = None, @@ -206,6 +234,7 @@ def get_domain(dkim_key_size: Optional[int] = None, region: Optional[str] = None, smtp_password: Optional[str] = None, spam_action: Optional[str] = None, + web_scheme: Optional[str] = None, wildcard: Optional[bool] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDomainResult: """ @@ -231,13 +260,17 @@ def get_domain(dkim_key_size: Optional[int] = None, ``` + :param bool click_tracking: The click tracking setting. :param str name: The name of the domain. + :param bool open_tracking: The open tracking setting. :param str region: The region where domain will be created. Default value is `us`. :param str smtp_password: The password to the SMTP server. :param str spam_action: The spam filtering setting. + :param str web_scheme: The tracking web scheme. :param bool wildcard: Whether or not the domain will accept email for sub-domains. """ __args__ = dict() + __args__['clickTracking'] = click_tracking __args__['dkimKeySize'] = dkim_key_size __args__['dkimSelector'] = dkim_selector __args__['forceDkimAuthority'] = force_dkim_authority @@ -246,11 +279,13 @@ def get_domain(dkim_key_size: Optional[int] = None, __args__['region'] = region __args__['smtpPassword'] = smtp_password __args__['spamAction'] = spam_action + __args__['webScheme'] = web_scheme __args__['wildcard'] = wildcard opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('mailgun:index/getDomain:getDomain', __args__, opts=opts, typ=GetDomainResult).value return AwaitableGetDomainResult( + click_tracking=pulumi.get(__ret__, 'click_tracking'), dkim_key_size=pulumi.get(__ret__, 'dkim_key_size'), dkim_selector=pulumi.get(__ret__, 'dkim_selector'), force_dkim_authority=pulumi.get(__ret__, 'force_dkim_authority'), @@ -265,11 +300,13 @@ def get_domain(dkim_key_size: Optional[int] = None, smtp_login=pulumi.get(__ret__, 'smtp_login'), smtp_password=pulumi.get(__ret__, 'smtp_password'), spam_action=pulumi.get(__ret__, 'spam_action'), + web_scheme=pulumi.get(__ret__, 'web_scheme'), wildcard=pulumi.get(__ret__, 'wildcard')) @_utilities.lift_output_func(get_domain) -def get_domain_output(dkim_key_size: Optional[pulumi.Input[Optional[int]]] = None, +def get_domain_output(click_tracking: Optional[pulumi.Input[Optional[bool]]] = None, + dkim_key_size: Optional[pulumi.Input[Optional[int]]] = None, dkim_selector: Optional[pulumi.Input[Optional[str]]] = None, force_dkim_authority: Optional[pulumi.Input[Optional[bool]]] = None, name: Optional[pulumi.Input[str]] = None, @@ -277,6 +314,7 @@ def get_domain_output(dkim_key_size: Optional[pulumi.Input[Optional[int]]] = Non region: Optional[pulumi.Input[Optional[str]]] = None, smtp_password: Optional[pulumi.Input[Optional[str]]] = None, spam_action: Optional[pulumi.Input[Optional[str]]] = None, + web_scheme: Optional[pulumi.Input[Optional[str]]] = None, wildcard: Optional[pulumi.Input[Optional[bool]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDomainResult]: """ @@ -302,10 +340,13 @@ def get_domain_output(dkim_key_size: Optional[pulumi.Input[Optional[int]]] = Non ``` + :param bool click_tracking: The click tracking setting. :param str name: The name of the domain. + :param bool open_tracking: The open tracking setting. :param str region: The region where domain will be created. Default value is `us`. :param str smtp_password: The password to the SMTP server. :param str spam_action: The spam filtering setting. + :param str web_scheme: The tracking web scheme. :param bool wildcard: Whether or not the domain will accept email for sub-domains. """ ... diff --git a/upstream b/upstream index 05cbd5c6..74e9e08b 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 05cbd5c68b4cb113bbd9a30aec499dbfaf1c842b +Subproject commit 74e9e08b77b5f849ec24a4c27bb647360a78399f