From 3f5ce63f3e0e7cdc2cd6473a127b6b4893bdc872 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:04:18 -0700 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.92.0 (#477) This PR was generated via `$ upgrade-provider pulumi/pulumi-mailgun --kind=bridge --pr-reviewers=iwahbe`. --- - Upgrading pulumi-terraform-bridge from v3.91.1 to v3.92.0. --- examples/go.mod | 4 +- examples/go.sum | 8 +- provider/go.mod | 8 +- provider/go.sum | 20 ++-- sdk/go.mod | 2 +- sdk/go.sum | 4 +- sdk/nodejs/package.json | 2 +- sdk/python/pulumi_mailgun/_inputs.py | 99 +++++++++++++++++++ sdk/python/pulumi_mailgun/_utilities.py | 2 +- sdk/python/pulumi_mailgun/config/__init__.pyi | 5 + sdk/python/pulumi_mailgun/config/vars.py | 5 + sdk/python/pulumi_mailgun/domain.py | 5 + .../pulumi_mailgun/domain_credential.py | 5 + sdk/python/pulumi_mailgun/get_domain.py | 41 +++++++- sdk/python/pulumi_mailgun/outputs.py | 5 + sdk/python/pulumi_mailgun/provider.py | 5 + sdk/python/pulumi_mailgun/route.py | 5 + sdk/python/pulumi_mailgun/webhook.py | 5 + sdk/python/pyproject.toml | 2 +- 19 files changed, 202 insertions(+), 30 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 82ee53a5..460a0a3a 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-mailgun/examples/v3 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.133.0 +require github.com/pulumi/pulumi/pkg/v3 v3.136.1 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.133.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.136.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 3cbb21d7..408d628c 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/go.mod b/provider/go.mod index 98c657cf..a9aa51ee 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -5,8 +5,8 @@ go 1.22.0 toolchain go1.22.7 require ( - github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 - github.com/pulumi/pulumi/sdk/v3 v3.133.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0 + github.com/pulumi/pulumi/sdk/v3 v3.136.1 github.com/wgebis/terraform-provider-mailgun v0.0.0 ) @@ -174,8 +174,8 @@ require ( github.com/pulumi/inflector v0.1.1 // indirect github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.10.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect + github.com/pulumi/pulumi-yaml v1.10.3 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.136.1 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index a9bba753..de152f7e 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1914,20 +1914,20 @@ github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= -github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= -github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= +github.com/pulumi/providertest v0.1.2 h1:9pJS9MeNkMyGwyNeHmvh8QqLgJy39Nk2/ym5u7r13ng= +github.com/pulumi/providertest v0.1.2/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1 h1:Twh0IKS1pGHP6LHDq1oR0vbHlV52asoUCC7spEJl3Ao= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.1/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0 h1:LOUHyMFGYkchv4Bzej7v+1W1ooaspgQG6/oZVJ+3lXY= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.92.0/go.mod h1:aI3U3eanRcyOX05No+Nk6FuJvppx4jjcQwFelHSI8yE= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= -github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= -github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= -github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi-yaml v1.10.3 h1:j5cjPiE32ILmjrWnC1cfZ0MWdqCZ8fg9wlaWk7HOtM4= +github.com/pulumi/pulumi-yaml v1.10.3/go.mod h1:MFMQXkaUP5YQUKVJ6Z/aagZDl2f8hdU9oGaJfTcMf1Y= +github.com/pulumi/pulumi/pkg/v3 v3.136.1 h1:zA8aJZ7qI0QgZkBKjjQaYHEcigK6pZfrbfG38imXzWo= +github.com/pulumi/pulumi/pkg/v3 v3.136.1/go.mod h1:Iz8QIs07AbEdrO52hEIEM5C4VBDUYFH2NdM9u2xxBxY= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 94038948..e564b6ff 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.133.0 + github.com/pulumi/pulumi/sdk/v3 v3.136.1 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 6df8468b..f84872a1 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= -github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= +github.com/pulumi/pulumi/sdk/v3 v3.136.1 h1:VJWTgdBrLvvzIkMbGq/epNEfT65P9gTvw14UF/I7hTI= +github.com/pulumi/pulumi/sdk/v3 v3.136.1/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 218bbe29..9e8252cf 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.42.0" + "@pulumi/pulumi": "^3.136.0" }, "devDependencies": { "@types/mime": "^2.0.0", diff --git a/sdk/python/pulumi_mailgun/_inputs.py b/sdk/python/pulumi_mailgun/_inputs.py index 2941b645..014e6ac1 100644 --- a/sdk/python/pulumi_mailgun/_inputs.py +++ b/sdk/python/pulumi_mailgun/_inputs.py @@ -4,18 +4,51 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ 'DomainReceivingRecordArgs', + 'DomainReceivingRecordArgsDict', 'DomainReceivingRecordsSetArgs', + 'DomainReceivingRecordsSetArgsDict', 'DomainSendingRecordArgs', + 'DomainSendingRecordArgsDict', 'DomainSendingRecordsSetArgs', + 'DomainSendingRecordsSetArgsDict', ] +MYPY = False + +if not MYPY: + class DomainReceivingRecordArgsDict(TypedDict): + id: NotRequired[pulumi.Input[str]] + priority: NotRequired[pulumi.Input[str]] + """ + The priority of the record. + """ + record_type: NotRequired[pulumi.Input[str]] + """ + The record type. + """ + valid: NotRequired[pulumi.Input[str]] + """ + `"valid"` if the record is valid. + """ + value: NotRequired[pulumi.Input[str]] + """ + The value of the record. + """ +elif False: + DomainReceivingRecordArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class DomainReceivingRecordArgs: def __init__(__self__, *, @@ -99,6 +132,28 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class DomainReceivingRecordsSetArgsDict(TypedDict): + id: NotRequired[pulumi.Input[str]] + priority: NotRequired[pulumi.Input[str]] + """ + The priority of the record. + """ + record_type: NotRequired[pulumi.Input[str]] + """ + The record type. + """ + valid: NotRequired[pulumi.Input[str]] + """ + `"valid"` if the record is valid. + """ + value: NotRequired[pulumi.Input[str]] + """ + The value of the record. + """ +elif False: + DomainReceivingRecordsSetArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class DomainReceivingRecordsSetArgs: def __init__(__self__, *, @@ -182,6 +237,28 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class DomainSendingRecordArgsDict(TypedDict): + id: NotRequired[pulumi.Input[str]] + name: NotRequired[pulumi.Input[str]] + """ + The domain to add to Mailgun + """ + record_type: NotRequired[pulumi.Input[str]] + """ + The record type. + """ + valid: NotRequired[pulumi.Input[str]] + """ + `"valid"` if the record is valid. + """ + value: NotRequired[pulumi.Input[str]] + """ + The value of the record. + """ +elif False: + DomainSendingRecordArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class DomainSendingRecordArgs: def __init__(__self__, *, @@ -265,6 +342,28 @@ def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) +if not MYPY: + class DomainSendingRecordsSetArgsDict(TypedDict): + id: NotRequired[pulumi.Input[str]] + name: NotRequired[pulumi.Input[str]] + """ + The domain to add to Mailgun + """ + record_type: NotRequired[pulumi.Input[str]] + """ + The record type. + """ + valid: NotRequired[pulumi.Input[str]] + """ + `"valid"` if the record is valid. + """ + value: NotRequired[pulumi.Input[str]] + """ + The value of the record. + """ +elif False: + DomainSendingRecordsSetArgsDict: TypeAlias = Mapping[str, Any] + @pulumi.input_type class DomainSendingRecordsSetArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_mailgun/_utilities.py b/sdk/python/pulumi_mailgun/_utilities.py index d14b49ac..3ce408d5 100644 --- a/sdk/python/pulumi_mailgun/_utilities.py +++ b/sdk/python/pulumi_mailgun/_utilities.py @@ -264,7 +264,7 @@ def call_plain( output = pulumi.runtime.call(tok, props, res, typ) # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency. - result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output))) + result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output))) problem = None if not known: diff --git a/sdk/python/pulumi_mailgun/config/__init__.pyi b/sdk/python/pulumi_mailgun/config/__init__.pyi index b2293c3f..3321e28c 100644 --- a/sdk/python/pulumi_mailgun/config/__init__.pyi +++ b/sdk/python/pulumi_mailgun/config/__init__.pyi @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities apiKey: Optional[str] diff --git a/sdk/python/pulumi_mailgun/config/vars.py b/sdk/python/pulumi_mailgun/config/vars.py index 272784d5..706ea634 100644 --- a/sdk/python/pulumi_mailgun/config/vars.py +++ b/sdk/python/pulumi_mailgun/config/vars.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities import types diff --git a/sdk/python/pulumi_mailgun/domain.py b/sdk/python/pulumi_mailgun/domain.py index 1ae59018..355756d4 100644 --- a/sdk/python/pulumi_mailgun/domain.py +++ b/sdk/python/pulumi_mailgun/domain.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_mailgun/domain_credential.py b/sdk/python/pulumi_mailgun/domain_credential.py index 0c9cbd7d..31dd5e71 100644 --- a/sdk/python/pulumi_mailgun/domain_credential.py +++ b/sdk/python/pulumi_mailgun/domain_credential.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['DomainCredentialArgs', 'DomainCredential'] diff --git a/sdk/python/pulumi_mailgun/get_domain.py b/sdk/python/pulumi_mailgun/get_domain.py index c04e5591..68e69da3 100644 --- a/sdk/python/pulumi_mailgun/get_domain.py +++ b/sdk/python/pulumi_mailgun/get_domain.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities from . import outputs @@ -298,9 +303,6 @@ def get_domain(click_tracking: Optional[bool] = None, 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(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, @@ -345,4 +347,35 @@ def get_domain_output(click_tracking: Optional[pulumi.Input[Optional[bool]]] = N :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 + __args__['name'] = name + __args__['openTracking'] = open_tracking + __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_output('mailgun:index/getDomain:getDomain', __args__, opts=opts, typ=GetDomainResult) + return __ret__.apply(lambda __response__: GetDomainResult( + click_tracking=pulumi.get(__response__, 'click_tracking'), + dkim_key_size=pulumi.get(__response__, 'dkim_key_size'), + dkim_selector=pulumi.get(__response__, 'dkim_selector'), + force_dkim_authority=pulumi.get(__response__, 'force_dkim_authority'), + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + open_tracking=pulumi.get(__response__, 'open_tracking'), + receiving_records=pulumi.get(__response__, 'receiving_records'), + receiving_records_sets=pulumi.get(__response__, 'receiving_records_sets'), + region=pulumi.get(__response__, 'region'), + sending_records=pulumi.get(__response__, 'sending_records'), + sending_records_sets=pulumi.get(__response__, 'sending_records_sets'), + smtp_login=pulumi.get(__response__, 'smtp_login'), + smtp_password=pulumi.get(__response__, 'smtp_password'), + spam_action=pulumi.get(__response__, 'spam_action'), + web_scheme=pulumi.get(__response__, 'web_scheme'), + wildcard=pulumi.get(__response__, 'wildcard'))) diff --git a/sdk/python/pulumi_mailgun/outputs.py b/sdk/python/pulumi_mailgun/outputs.py index 90c6f971..fe535939 100644 --- a/sdk/python/pulumi_mailgun/outputs.py +++ b/sdk/python/pulumi_mailgun/outputs.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ diff --git a/sdk/python/pulumi_mailgun/provider.py b/sdk/python/pulumi_mailgun/provider.py index d03aaceb..e5e3f99c 100644 --- a/sdk/python/pulumi_mailgun/provider.py +++ b/sdk/python/pulumi_mailgun/provider.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProviderArgs', 'Provider'] diff --git a/sdk/python/pulumi_mailgun/route.py b/sdk/python/pulumi_mailgun/route.py index df789fe8..fd580ce9 100644 --- a/sdk/python/pulumi_mailgun/route.py +++ b/sdk/python/pulumi_mailgun/route.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['RouteArgs', 'Route'] diff --git a/sdk/python/pulumi_mailgun/webhook.py b/sdk/python/pulumi_mailgun/webhook.py index dbddefa6..0ceb525a 100644 --- a/sdk/python/pulumi_mailgun/webhook.py +++ b/sdk/python/pulumi_mailgun/webhook.py @@ -4,9 +4,14 @@ import copy import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['WebhookArgs', 'Webhook'] diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 2ce36b91..17e75d34 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "pulumi_mailgun" description = "A Pulumi package for creating and managing Mailgun resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"] + dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "mailgun"] readme = "README.md" requires-python = ">=3.8"