From 6e0e4a026cc42d713b73a95818ed26461ac40e14 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 1 Nov 2024 01:59:26 -0700 Subject: [PATCH] Upgrade terraform-provider-auth0 to v1.7.2 (#683) This PR was generated via `$ upgrade-provider pulumi/pulumi-auth0 --kind=all`. --- - Upgrading terraform-provider-auth0 from 1.7.1 to 1.7.2. Fixes #682 --- .../cmd/pulumi-resource-auth0/schema.json | 20 +-- sdk/dotnet/EmailProvider.cs | 96 +++++++++++- sdk/dotnet/TriggerAction.cs | 6 +- sdk/dotnet/TriggerActions.cs | 6 +- sdk/go/auth0/emailProvider.go | 110 +++++++++++++- sdk/go/auth0/triggerAction.go | 12 +- sdk/go/auth0/triggerActions.go | 12 +- .../java/com/pulumi/auth0/EmailProvider.java | 102 ++++++++++++- .../com/pulumi/auth0/EmailProviderArgs.java | 8 +- .../java/com/pulumi/auth0/TriggerAction.java | 4 +- .../com/pulumi/auth0/TriggerActionArgs.java | 8 +- .../java/com/pulumi/auth0/TriggerActions.java | 4 +- .../com/pulumi/auth0/TriggerActionsArgs.java | 8 +- .../auth0/inputs/EmailProviderState.java | 8 +- .../auth0/inputs/TriggerActionState.java | 8 +- .../auth0/inputs/TriggerActionsState.java | 8 +- sdk/nodejs/emailProvider.ts | 74 +++++++++- sdk/nodejs/triggerAction.ts | 6 +- sdk/nodejs/triggerActions.ts | 6 +- sdk/python/pulumi_auth0/email_provider.py | 138 +++++++++++++++++- sdk/python/pulumi_auth0/trigger_action.py | 14 +- sdk/python/pulumi_auth0/trigger_actions.py | 14 +- upstream | 2 +- 23 files changed, 576 insertions(+), 98 deletions(-) diff --git a/provider/cmd/pulumi-resource-auth0/schema.json b/provider/cmd/pulumi-resource-auth0/schema.json index a318128a..1ef13660 100644 --- a/provider/cmd/pulumi-resource-auth0/schema.json +++ b/provider/cmd/pulumi-resource-auth0/schema.json @@ -10006,7 +10006,7 @@ } }, "auth0:index/emailProvider:EmailProvider": { - "description": "With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice.\n\n## Import\n\nAs this is not a resource identifiable by an ID within the Auth0 Management API,\n\nemail can be imported using a random string.\n\n#\n\nWe recommend [Version 4 UUID](https://www.uuidgenerator.net/version4)\n\n#\n\nExample:\n\n```sh\n$ pulumi import auth0:index/emailProvider:EmailProvider my_email_provider \"b4213dc2-2eed-42c3-9516-c6131a9ce0b0\"\n```\n\n", + "description": "With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as auth0 from \"@pulumi/auth0\";\n\n// This is an example on how to set up the email provider with Amazon SES.\nconst amazonSesEmailProvider = new auth0.EmailProvider(\"amazon_ses_email_provider\", {\n name: \"ses\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {\n accessKeyId: \"AKIAXXXXXXXXXXXXXXXX\",\n secretAccessKey: \"7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n region: \"us-east-1\",\n },\n});\n// This is an example on how to set up the email provider with SMTP.\nconst smtpEmailProvider = new auth0.EmailProvider(\"smtp_email_provider\", {\n name: \"smtp\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {\n smtpHost: \"your.smtp.host.com\",\n smtpPort: 583,\n smtpUser: \"SMTP Username\",\n smtpPass: \"SMTP Password\",\n },\n});\n// This is an example on how to set up the email provider with Sendgrid.\nconst sendgridEmailProvider = new auth0.EmailProvider(\"sendgrid_email_provider\", {\n name: \"sendgrid\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {\n apiKey: \"secretAPIKey\",\n },\n});\n// This is an example on how to set up the email provider with Azure CS.\nconst azureCsEmailProvider = new auth0.EmailProvider(\"azure_cs_email_provider\", {\n name: \"azure_cs\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {\n azureCsConnectionString: \"azure_cs_connection_string\",\n },\n});\n// This is an example on how to set up the email provider with MS365.\nconst ms365EmailProvider = new auth0.EmailProvider(\"ms365_email_provider\", {\n name: \"ms365\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {\n ms365TenantId: \"ms365_tenant_id\",\n ms365ClientId: \"ms365_client_id\",\n ms365ClientSecret: \"ms365_client_secret\",\n },\n});\n// This is an example on how to set up the email provider with a custom action.\n// Make sure a corresponding action exists with custom-email-provider as supported triggers\nconst customEmailProvider = new auth0.EmailProvider(\"custom_email_provider\", {\n name: \"custom\",\n enabled: true,\n defaultFromAddress: \"accounts@example.com\",\n credentials: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_auth0 as auth0\n\n# This is an example on how to set up the email provider with Amazon SES.\namazon_ses_email_provider = auth0.EmailProvider(\"amazon_ses_email_provider\",\n name=\"ses\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={\n \"access_key_id\": \"AKIAXXXXXXXXXXXXXXXX\",\n \"secret_access_key\": \"7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"region\": \"us-east-1\",\n })\n# This is an example on how to set up the email provider with SMTP.\nsmtp_email_provider = auth0.EmailProvider(\"smtp_email_provider\",\n name=\"smtp\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={\n \"smtp_host\": \"your.smtp.host.com\",\n \"smtp_port\": 583,\n \"smtp_user\": \"SMTP Username\",\n \"smtp_pass\": \"SMTP Password\",\n })\n# This is an example on how to set up the email provider with Sendgrid.\nsendgrid_email_provider = auth0.EmailProvider(\"sendgrid_email_provider\",\n name=\"sendgrid\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={\n \"api_key\": \"secretAPIKey\",\n })\n# This is an example on how to set up the email provider with Azure CS.\nazure_cs_email_provider = auth0.EmailProvider(\"azure_cs_email_provider\",\n name=\"azure_cs\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={\n \"azure_cs_connection_string\": \"azure_cs_connection_string\",\n })\n# This is an example on how to set up the email provider with MS365.\nms365_email_provider = auth0.EmailProvider(\"ms365_email_provider\",\n name=\"ms365\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={\n \"ms365_tenant_id\": \"ms365_tenant_id\",\n \"ms365_client_id\": \"ms365_client_id\",\n \"ms365_client_secret\": \"ms365_client_secret\",\n })\n# This is an example on how to set up the email provider with a custom action.\n# Make sure a corresponding action exists with custom-email-provider as supported triggers\ncustom_email_provider = auth0.EmailProvider(\"custom_email_provider\",\n name=\"custom\",\n enabled=True,\n default_from_address=\"accounts@example.com\",\n credentials={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Auth0 = Pulumi.Auth0;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // This is an example on how to set up the email provider with Amazon SES.\n var amazonSesEmailProvider = new Auth0.EmailProvider(\"amazon_ses_email_provider\", new()\n {\n Name = \"ses\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs\n {\n AccessKeyId = \"AKIAXXXXXXXXXXXXXXXX\",\n SecretAccessKey = \"7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n Region = \"us-east-1\",\n },\n });\n\n // This is an example on how to set up the email provider with SMTP.\n var smtpEmailProvider = new Auth0.EmailProvider(\"smtp_email_provider\", new()\n {\n Name = \"smtp\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs\n {\n SmtpHost = \"your.smtp.host.com\",\n SmtpPort = 583,\n SmtpUser = \"SMTP Username\",\n SmtpPass = \"SMTP Password\",\n },\n });\n\n // This is an example on how to set up the email provider with Sendgrid.\n var sendgridEmailProvider = new Auth0.EmailProvider(\"sendgrid_email_provider\", new()\n {\n Name = \"sendgrid\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs\n {\n ApiKey = \"secretAPIKey\",\n },\n });\n\n // This is an example on how to set up the email provider with Azure CS.\n var azureCsEmailProvider = new Auth0.EmailProvider(\"azure_cs_email_provider\", new()\n {\n Name = \"azure_cs\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs\n {\n AzureCsConnectionString = \"azure_cs_connection_string\",\n },\n });\n\n // This is an example on how to set up the email provider with MS365.\n var ms365EmailProvider = new Auth0.EmailProvider(\"ms365_email_provider\", new()\n {\n Name = \"ms365\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs\n {\n Ms365TenantId = \"ms365_tenant_id\",\n Ms365ClientId = \"ms365_client_id\",\n Ms365ClientSecret = \"ms365_client_secret\",\n },\n });\n\n // This is an example on how to set up the email provider with a custom action.\n // Make sure a corresponding action exists with custom-email-provider as supported triggers\n var customEmailProvider = new Auth0.EmailProvider(\"custom_email_provider\", new()\n {\n Name = \"custom\",\n Enabled = true,\n DefaultFromAddress = \"accounts@example.com\",\n Credentials = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0\"\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// This is an example on how to set up the email provider with Amazon SES.\n\t\t_, err := auth0.NewEmailProvider(ctx, \"amazon_ses_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"ses\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{\n\t\t\t\tAccessKeyId: pulumi.String(\"AKIAXXXXXXXXXXXXXXXX\"),\n\t\t\t\tSecretAccessKey: pulumi.String(\"7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This is an example on how to set up the email provider with SMTP.\n\t\t_, err = auth0.NewEmailProvider(ctx, \"smtp_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"smtp\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{\n\t\t\t\tSmtpHost: pulumi.String(\"your.smtp.host.com\"),\n\t\t\t\tSmtpPort: pulumi.Int(583),\n\t\t\t\tSmtpUser: pulumi.String(\"SMTP Username\"),\n\t\t\t\tSmtpPass: pulumi.String(\"SMTP Password\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This is an example on how to set up the email provider with Sendgrid.\n\t\t_, err = auth0.NewEmailProvider(ctx, \"sendgrid_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"sendgrid\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{\n\t\t\t\tApiKey: pulumi.String(\"secretAPIKey\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This is an example on how to set up the email provider with Azure CS.\n\t\t_, err = auth0.NewEmailProvider(ctx, \"azure_cs_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"azure_cs\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{\n\t\t\t\tAzureCsConnectionString: pulumi.String(\"azure_cs_connection_string\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This is an example on how to set up the email provider with MS365.\n\t\t_, err = auth0.NewEmailProvider(ctx, \"ms365_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"ms365\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{\n\t\t\t\tMs365TenantId: pulumi.String(\"ms365_tenant_id\"),\n\t\t\t\tMs365ClientId: pulumi.String(\"ms365_client_id\"),\n\t\t\t\tMs365ClientSecret: pulumi.String(\"ms365_client_secret\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// This is an example on how to set up the email provider with a custom action.\n\t\t// Make sure a corresponding action exists with custom-email-provider as supported triggers\n\t\t_, err = auth0.NewEmailProvider(ctx, \"custom_email_provider\", \u0026auth0.EmailProviderArgs{\n\t\t\tName: pulumi.String(\"custom\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tDefaultFromAddress: pulumi.String(\"accounts@example.com\"),\n\t\t\tCredentials: \u0026auth0.EmailProviderCredentialsArgs{},\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.auth0.EmailProvider;\nimport com.pulumi.auth0.EmailProviderArgs;\nimport com.pulumi.auth0.inputs.EmailProviderCredentialsArgs;\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 // This is an example on how to set up the email provider with Amazon SES.\n var amazonSesEmailProvider = new EmailProvider(\"amazonSesEmailProvider\", EmailProviderArgs.builder()\n .name(\"ses\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials(EmailProviderCredentialsArgs.builder()\n .accessKeyId(\"AKIAXXXXXXXXXXXXXXXX\")\n .secretAccessKey(\"7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .region(\"us-east-1\")\n .build())\n .build());\n\n // This is an example on how to set up the email provider with SMTP.\n var smtpEmailProvider = new EmailProvider(\"smtpEmailProvider\", EmailProviderArgs.builder()\n .name(\"smtp\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials(EmailProviderCredentialsArgs.builder()\n .smtpHost(\"your.smtp.host.com\")\n .smtpPort(583)\n .smtpUser(\"SMTP Username\")\n .smtpPass(\"SMTP Password\")\n .build())\n .build());\n\n // This is an example on how to set up the email provider with Sendgrid.\n var sendgridEmailProvider = new EmailProvider(\"sendgridEmailProvider\", EmailProviderArgs.builder()\n .name(\"sendgrid\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials(EmailProviderCredentialsArgs.builder()\n .apiKey(\"secretAPIKey\")\n .build())\n .build());\n\n // This is an example on how to set up the email provider with Azure CS.\n var azureCsEmailProvider = new EmailProvider(\"azureCsEmailProvider\", EmailProviderArgs.builder()\n .name(\"azure_cs\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials(EmailProviderCredentialsArgs.builder()\n .azureCsConnectionString(\"azure_cs_connection_string\")\n .build())\n .build());\n\n // This is an example on how to set up the email provider with MS365.\n var ms365EmailProvider = new EmailProvider(\"ms365EmailProvider\", EmailProviderArgs.builder()\n .name(\"ms365\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials(EmailProviderCredentialsArgs.builder()\n .ms365TenantId(\"ms365_tenant_id\")\n .ms365ClientId(\"ms365_client_id\")\n .ms365ClientSecret(\"ms365_client_secret\")\n .build())\n .build());\n\n // This is an example on how to set up the email provider with a custom action.\n // Make sure a corresponding action exists with custom-email-provider as supported triggers\n var customEmailProvider = new EmailProvider(\"customEmailProvider\", EmailProviderArgs.builder()\n .name(\"custom\")\n .enabled(true)\n .defaultFromAddress(\"accounts@example.com\")\n .credentials()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # This is an example on how to set up the email provider with Amazon SES.\n amazonSesEmailProvider:\n type: auth0:EmailProvider\n name: amazon_ses_email_provider\n properties:\n name: ses\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials:\n accessKeyId: AKIAXXXXXXXXXXXXXXXX\n secretAccessKey: 7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n region: us-east-1\n # This is an example on how to set up the email provider with SMTP.\n smtpEmailProvider:\n type: auth0:EmailProvider\n name: smtp_email_provider\n properties:\n name: smtp\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials:\n smtpHost: your.smtp.host.com\n smtpPort: 583\n smtpUser: SMTP Username\n smtpPass: SMTP Password\n # This is an example on how to set up the email provider with Sendgrid.\n sendgridEmailProvider:\n type: auth0:EmailProvider\n name: sendgrid_email_provider\n properties:\n name: sendgrid\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials:\n apiKey: secretAPIKey\n # This is an example on how to set up the email provider with Azure CS.\n azureCsEmailProvider:\n type: auth0:EmailProvider\n name: azure_cs_email_provider\n properties:\n name: azure_cs\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials:\n azureCsConnectionString: azure_cs_connection_string\n # This is an example on how to set up the email provider with MS365.\n ms365EmailProvider:\n type: auth0:EmailProvider\n name: ms365_email_provider\n properties:\n name: ms365\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials:\n ms365TenantId: ms365_tenant_id\n ms365ClientId: ms365_client_id\n ms365ClientSecret: ms365_client_secret\n # This is an example on how to set up the email provider with a custom action.\n # Make sure a corresponding action exists with custom-email-provider as supported triggers\n customEmailProvider:\n type: auth0:EmailProvider\n name: custom_email_provider\n properties:\n name: custom\n enabled: true\n defaultFromAddress: accounts@example.com\n credentials: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAs this is not a resource identifiable by an ID within the Auth0 Management API,\n\nemail can be imported using a random string.\n\n#\n\nWe recommend [Version 4 UUID](https://www.uuidgenerator.net/version4)\n\n#\n\nExample:\n\n```sh\n$ pulumi import auth0:index/emailProvider:EmailProvider my_email_provider \"b4213dc2-2eed-42c3-9516-c6131a9ce0b0\"\n```\n\n", "properties": { "credentials": { "$ref": "#/types/auth0:index/EmailProviderCredentials:EmailProviderCredentials", @@ -10022,7 +10022,7 @@ }, "name": { "type": "string", - "description": "Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" + "description": "Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" }, "settings": { "$ref": "#/types/auth0:index/EmailProviderSettings:EmailProviderSettings", @@ -10050,7 +10050,7 @@ }, "name": { "type": "string", - "description": "Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" + "description": "Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" }, "settings": { "$ref": "#/types/auth0:index/EmailProviderSettings:EmailProviderSettings", @@ -10078,7 +10078,7 @@ }, "name": { "type": "string", - "description": "Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" + "description": "Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.\n" }, "settings": { "$ref": "#/types/auth0:index/EmailProviderSettings:EmailProviderSettings", @@ -12900,7 +12900,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n" + "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n" } }, "required": [ @@ -12920,7 +12920,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n", + "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n", "willReplaceOnChanges": true } }, @@ -12942,7 +12942,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n", + "description": "The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n", "willReplaceOnChanges": true } }, @@ -12961,7 +12961,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n" + "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n" } }, "required": [ @@ -12978,7 +12978,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n", + "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n", "willReplaceOnChanges": true } }, @@ -12998,7 +12998,7 @@ }, "trigger": { "type": "string", - "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`.\n", + "description": "The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.\n", "willReplaceOnChanges": true } }, diff --git a/sdk/dotnet/EmailProvider.cs b/sdk/dotnet/EmailProvider.cs index 72b6c67a..ef415f5e 100644 --- a/sdk/dotnet/EmailProvider.cs +++ b/sdk/dotnet/EmailProvider.cs @@ -12,6 +12,96 @@ namespace Pulumi.Auth0 /// /// With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Auth0 = Pulumi.Auth0; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // This is an example on how to set up the email provider with Amazon SES. + /// var amazonSesEmailProvider = new Auth0.EmailProvider("amazon_ses_email_provider", new() + /// { + /// Name = "ses", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs + /// { + /// AccessKeyId = "AKIAXXXXXXXXXXXXXXXX", + /// SecretAccessKey = "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// Region = "us-east-1", + /// }, + /// }); + /// + /// // This is an example on how to set up the email provider with SMTP. + /// var smtpEmailProvider = new Auth0.EmailProvider("smtp_email_provider", new() + /// { + /// Name = "smtp", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs + /// { + /// SmtpHost = "your.smtp.host.com", + /// SmtpPort = 583, + /// SmtpUser = "SMTP Username", + /// SmtpPass = "SMTP Password", + /// }, + /// }); + /// + /// // This is an example on how to set up the email provider with Sendgrid. + /// var sendgridEmailProvider = new Auth0.EmailProvider("sendgrid_email_provider", new() + /// { + /// Name = "sendgrid", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs + /// { + /// ApiKey = "secretAPIKey", + /// }, + /// }); + /// + /// // This is an example on how to set up the email provider with Azure CS. + /// var azureCsEmailProvider = new Auth0.EmailProvider("azure_cs_email_provider", new() + /// { + /// Name = "azure_cs", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs + /// { + /// AzureCsConnectionString = "azure_cs_connection_string", + /// }, + /// }); + /// + /// // This is an example on how to set up the email provider with MS365. + /// var ms365EmailProvider = new Auth0.EmailProvider("ms365_email_provider", new() + /// { + /// Name = "ms365", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = new Auth0.Inputs.EmailProviderCredentialsArgs + /// { + /// Ms365TenantId = "ms365_tenant_id", + /// Ms365ClientId = "ms365_client_id", + /// Ms365ClientSecret = "ms365_client_secret", + /// }, + /// }); + /// + /// // This is an example on how to set up the email provider with a custom action. + /// // Make sure a corresponding action exists with custom-email-provider as supported triggers + /// var customEmailProvider = new Auth0.EmailProvider("custom_email_provider", new() + /// { + /// Name = "custom", + /// Enabled = true, + /// DefaultFromAddress = "accounts@example.com", + /// Credentials = null, + /// }); + /// + /// }); + /// ``` + /// /// ## Import /// /// As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -52,7 +142,7 @@ public partial class EmailProvider : global::Pulumi.CustomResource public Output Enabled { get; private set; } = null!; /// - /// Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + /// Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. /// [Output("name")] public Output Name { get; private set; } = null!; @@ -128,7 +218,7 @@ public sealed class EmailProviderArgs : global::Pulumi.ResourceArgs public Input? Enabled { get; set; } /// - /// Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + /// Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. /// [Input("name")] public Input? Name { get; set; } @@ -166,7 +256,7 @@ public sealed class EmailProviderState : global::Pulumi.ResourceArgs public Input? Enabled { get; set; } /// - /// Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + /// Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. /// [Input("name")] public Input? Name { get; set; } diff --git a/sdk/dotnet/TriggerAction.cs b/sdk/dotnet/TriggerAction.cs index 0fdd9374..96a5c365 100644 --- a/sdk/dotnet/TriggerAction.cs +++ b/sdk/dotnet/TriggerAction.cs @@ -84,7 +84,7 @@ public partial class TriggerAction : global::Pulumi.CustomResource public Output DisplayName { get; private set; } = null!; /// - /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Output("trigger")] public Output Trigger { get; private set; } = null!; @@ -148,7 +148,7 @@ public sealed class TriggerActionArgs : global::Pulumi.ResourceArgs public Input? DisplayName { get; set; } /// - /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Input("trigger", required: true)] public Input Trigger { get; set; } = null!; @@ -174,7 +174,7 @@ public sealed class TriggerActionState : global::Pulumi.ResourceArgs public Input? DisplayName { get; set; } /// - /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Input("trigger")] public Input? Trigger { get; set; } diff --git a/sdk/dotnet/TriggerActions.cs b/sdk/dotnet/TriggerActions.cs index 288ffa77..44287cf8 100644 --- a/sdk/dotnet/TriggerActions.cs +++ b/sdk/dotnet/TriggerActions.cs @@ -99,7 +99,7 @@ public partial class TriggerActions : global::Pulumi.CustomResource public Output> Actions { get; private set; } = null!; /// - /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Output("trigger")] public Output Trigger { get; private set; } = null!; @@ -163,7 +163,7 @@ public InputList Actions } /// - /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Input("trigger", required: true)] public Input Trigger { get; set; } = null!; @@ -189,7 +189,7 @@ public InputList Actions } /// - /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + /// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. /// [Input("trigger")] public Input? Trigger { get; set; } diff --git a/sdk/go/auth0/emailProvider.go b/sdk/go/auth0/emailProvider.go index cf20332b..fcf85e26 100644 --- a/sdk/go/auth0/emailProvider.go +++ b/sdk/go/auth0/emailProvider.go @@ -14,6 +14,104 @@ import ( // With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. // +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// // This is an example on how to set up the email provider with Amazon SES. +// _, err := auth0.NewEmailProvider(ctx, "amazon_ses_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("ses"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{ +// AccessKeyId: pulumi.String("AKIAXXXXXXXXXXXXXXXX"), +// SecretAccessKey: pulumi.String("7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// Region: pulumi.String("us-east-1"), +// }, +// }) +// if err != nil { +// return err +// } +// // This is an example on how to set up the email provider with SMTP. +// _, err = auth0.NewEmailProvider(ctx, "smtp_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("smtp"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{ +// SmtpHost: pulumi.String("your.smtp.host.com"), +// SmtpPort: pulumi.Int(583), +// SmtpUser: pulumi.String("SMTP Username"), +// SmtpPass: pulumi.String("SMTP Password"), +// }, +// }) +// if err != nil { +// return err +// } +// // This is an example on how to set up the email provider with Sendgrid. +// _, err = auth0.NewEmailProvider(ctx, "sendgrid_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("sendgrid"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{ +// ApiKey: pulumi.String("secretAPIKey"), +// }, +// }) +// if err != nil { +// return err +// } +// // This is an example on how to set up the email provider with Azure CS. +// _, err = auth0.NewEmailProvider(ctx, "azure_cs_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("azure_cs"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{ +// AzureCsConnectionString: pulumi.String("azure_cs_connection_string"), +// }, +// }) +// if err != nil { +// return err +// } +// // This is an example on how to set up the email provider with MS365. +// _, err = auth0.NewEmailProvider(ctx, "ms365_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("ms365"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{ +// Ms365TenantId: pulumi.String("ms365_tenant_id"), +// Ms365ClientId: pulumi.String("ms365_client_id"), +// Ms365ClientSecret: pulumi.String("ms365_client_secret"), +// }, +// }) +// if err != nil { +// return err +// } +// // This is an example on how to set up the email provider with a custom action. +// // Make sure a corresponding action exists with custom-email-provider as supported triggers +// _, err = auth0.NewEmailProvider(ctx, "custom_email_provider", &auth0.EmailProviderArgs{ +// Name: pulumi.String("custom"), +// Enabled: pulumi.Bool(true), +// DefaultFromAddress: pulumi.String("accounts@example.com"), +// Credentials: &auth0.EmailProviderCredentialsArgs{}, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// // ## Import // // As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -40,7 +138,7 @@ type EmailProvider struct { DefaultFromAddress pulumi.StringOutput `pulumi:"defaultFromAddress"` // Indicates whether the email provider is enabled. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` - // Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + // Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. Name pulumi.StringOutput `pulumi:"name"` // Specific email provider settings. Settings EmailProviderSettingsOutput `pulumi:"settings"` @@ -88,7 +186,7 @@ type emailProviderState struct { DefaultFromAddress *string `pulumi:"defaultFromAddress"` // Indicates whether the email provider is enabled. Enabled *bool `pulumi:"enabled"` - // Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + // Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. Name *string `pulumi:"name"` // Specific email provider settings. Settings *EmailProviderSettings `pulumi:"settings"` @@ -101,7 +199,7 @@ type EmailProviderState struct { DefaultFromAddress pulumi.StringPtrInput // Indicates whether the email provider is enabled. Enabled pulumi.BoolPtrInput - // Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + // Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. Name pulumi.StringPtrInput // Specific email provider settings. Settings EmailProviderSettingsPtrInput @@ -118,7 +216,7 @@ type emailProviderArgs struct { DefaultFromAddress string `pulumi:"defaultFromAddress"` // Indicates whether the email provider is enabled. Enabled *bool `pulumi:"enabled"` - // Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + // Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. Name *string `pulumi:"name"` // Specific email provider settings. Settings *EmailProviderSettings `pulumi:"settings"` @@ -132,7 +230,7 @@ type EmailProviderArgs struct { DefaultFromAddress pulumi.StringInput // Indicates whether the email provider is enabled. Enabled pulumi.BoolPtrInput - // Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + // Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. Name pulumi.StringPtrInput // Specific email provider settings. Settings EmailProviderSettingsPtrInput @@ -240,7 +338,7 @@ func (o EmailProviderOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *EmailProvider) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) } -// Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. +// Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. func (o EmailProviderOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *EmailProvider) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } diff --git a/sdk/go/auth0/triggerAction.go b/sdk/go/auth0/triggerAction.go index 3a04c077..ac6a4719 100644 --- a/sdk/go/auth0/triggerAction.go +++ b/sdk/go/auth0/triggerAction.go @@ -81,7 +81,7 @@ type TriggerAction struct { ActionId pulumi.StringOutput `pulumi:"actionId"` // The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. DisplayName pulumi.StringOutput `pulumi:"displayName"` - // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringOutput `pulumi:"trigger"` } @@ -125,7 +125,7 @@ type triggerActionState struct { ActionId *string `pulumi:"actionId"` // The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. DisplayName *string `pulumi:"displayName"` - // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger *string `pulumi:"trigger"` } @@ -134,7 +134,7 @@ type TriggerActionState struct { ActionId pulumi.StringPtrInput // The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. DisplayName pulumi.StringPtrInput - // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringPtrInput } @@ -147,7 +147,7 @@ type triggerActionArgs struct { ActionId string `pulumi:"actionId"` // The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. DisplayName *string `pulumi:"displayName"` - // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger string `pulumi:"trigger"` } @@ -157,7 +157,7 @@ type TriggerActionArgs struct { ActionId pulumi.StringInput // The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. DisplayName pulumi.StringPtrInput - // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringInput } @@ -258,7 +258,7 @@ func (o TriggerActionOutput) DisplayName() pulumi.StringOutput { return o.ApplyT(func(v *TriggerAction) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput) } -// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. +// The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. func (o TriggerActionOutput) Trigger() pulumi.StringOutput { return o.ApplyT(func(v *TriggerAction) pulumi.StringOutput { return v.Trigger }).(pulumi.StringOutput) } diff --git a/sdk/go/auth0/triggerActions.go b/sdk/go/auth0/triggerActions.go index a6e4669d..2d363d12 100644 --- a/sdk/go/auth0/triggerActions.go +++ b/sdk/go/auth0/triggerActions.go @@ -94,7 +94,7 @@ type TriggerActions struct { // The list of actions bound to this trigger. Actions TriggerActionsActionArrayOutput `pulumi:"actions"` - // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringOutput `pulumi:"trigger"` } @@ -136,14 +136,14 @@ func GetTriggerActions(ctx *pulumi.Context, type triggerActionsState struct { // The list of actions bound to this trigger. Actions []TriggerActionsAction `pulumi:"actions"` - // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger *string `pulumi:"trigger"` } type TriggerActionsState struct { // The list of actions bound to this trigger. Actions TriggerActionsActionArrayInput - // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringPtrInput } @@ -154,7 +154,7 @@ func (TriggerActionsState) ElementType() reflect.Type { type triggerActionsArgs struct { // The list of actions bound to this trigger. Actions []TriggerActionsAction `pulumi:"actions"` - // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger string `pulumi:"trigger"` } @@ -162,7 +162,7 @@ type triggerActionsArgs struct { type TriggerActionsArgs struct { // The list of actions bound to this trigger. Actions TriggerActionsActionArrayInput - // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + // The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. Trigger pulumi.StringInput } @@ -258,7 +258,7 @@ func (o TriggerActionsOutput) Actions() TriggerActionsActionArrayOutput { return o.ApplyT(func(v *TriggerActions) TriggerActionsActionArrayOutput { return v.Actions }).(TriggerActionsActionArrayOutput) } -// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. +// The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. func (o TriggerActionsOutput) Trigger() pulumi.StringOutput { return o.ApplyT(func(v *TriggerActions) pulumi.StringOutput { return v.Trigger }).(pulumi.StringOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/auth0/EmailProvider.java b/sdk/java/src/main/java/com/pulumi/auth0/EmailProvider.java index 30d826a4..2a402c2f 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/EmailProvider.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/EmailProvider.java @@ -20,6 +20,104 @@ /** * With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.auth0.EmailProvider;
+ * import com.pulumi.auth0.EmailProviderArgs;
+ * import com.pulumi.auth0.inputs.EmailProviderCredentialsArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App }{{@code
+ *     public static void main(String[] args) }{{@code
+ *         Pulumi.run(App::stack);
+ *     }}{@code
+ * 
+ *     public static void stack(Context ctx) }{{@code
+ *         // This is an example on how to set up the email provider with Amazon SES.
+ *         var amazonSesEmailProvider = new EmailProvider("amazonSesEmailProvider", EmailProviderArgs.builder()
+ *             .name("ses")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials(EmailProviderCredentialsArgs.builder()
+ *                 .accessKeyId("AKIAXXXXXXXXXXXXXXXX")
+ *                 .secretAccessKey("7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
+ *                 .region("us-east-1")
+ *                 .build())
+ *             .build());
+ * 
+ *         // This is an example on how to set up the email provider with SMTP.
+ *         var smtpEmailProvider = new EmailProvider("smtpEmailProvider", EmailProviderArgs.builder()
+ *             .name("smtp")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials(EmailProviderCredentialsArgs.builder()
+ *                 .smtpHost("your.smtp.host.com")
+ *                 .smtpPort(583)
+ *                 .smtpUser("SMTP Username")
+ *                 .smtpPass("SMTP Password")
+ *                 .build())
+ *             .build());
+ * 
+ *         // This is an example on how to set up the email provider with Sendgrid.
+ *         var sendgridEmailProvider = new EmailProvider("sendgridEmailProvider", EmailProviderArgs.builder()
+ *             .name("sendgrid")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials(EmailProviderCredentialsArgs.builder()
+ *                 .apiKey("secretAPIKey")
+ *                 .build())
+ *             .build());
+ * 
+ *         // This is an example on how to set up the email provider with Azure CS.
+ *         var azureCsEmailProvider = new EmailProvider("azureCsEmailProvider", EmailProviderArgs.builder()
+ *             .name("azure_cs")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials(EmailProviderCredentialsArgs.builder()
+ *                 .azureCsConnectionString("azure_cs_connection_string")
+ *                 .build())
+ *             .build());
+ * 
+ *         // This is an example on how to set up the email provider with MS365.
+ *         var ms365EmailProvider = new EmailProvider("ms365EmailProvider", EmailProviderArgs.builder()
+ *             .name("ms365")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials(EmailProviderCredentialsArgs.builder()
+ *                 .ms365TenantId("ms365_tenant_id")
+ *                 .ms365ClientId("ms365_client_id")
+ *                 .ms365ClientSecret("ms365_client_secret")
+ *                 .build())
+ *             .build());
+ * 
+ *         // This is an example on how to set up the email provider with a custom action.
+ *         // Make sure a corresponding action exists with custom-email-provider as supported triggers
+ *         var customEmailProvider = new EmailProvider("customEmailProvider", EmailProviderArgs.builder()
+ *             .name("custom")
+ *             .enabled(true)
+ *             .defaultFromAddress("accounts}{@literal @}{@code example.com")
+ *             .credentials()
+ *             .build());
+ * 
+ *     }}{@code
+ * }}{@code
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * * ## Import * * As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -84,14 +182,14 @@ public Output> enabled() { return Codegen.optional(this.enabled); } /** - * Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** - * @return Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @return Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ public Output name() { diff --git a/sdk/java/src/main/java/com/pulumi/auth0/EmailProviderArgs.java b/sdk/java/src/main/java/com/pulumi/auth0/EmailProviderArgs.java index 945942c2..39a3a4a5 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/EmailProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/EmailProviderArgs.java @@ -65,14 +65,14 @@ public Optional> enabled() { } /** - * Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ @Import(name="name") private @Nullable Output name; /** - * @return Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @return Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ public Optional> name() { @@ -186,7 +186,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param name Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @param name Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * * @return builder * @@ -197,7 +197,7 @@ public Builder name(@Nullable Output name) { } /** - * @param name Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @param name Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/auth0/TriggerAction.java b/sdk/java/src/main/java/com/pulumi/auth0/TriggerAction.java index c9c8f94a..084c75b2 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/TriggerAction.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/TriggerAction.java @@ -123,14 +123,14 @@ public Output displayName() { return this.displayName; } /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Export(name="trigger", refs={String.class}, tree="[0]") private Output trigger; /** - * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Output trigger() { diff --git a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionArgs.java b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionArgs.java index 9d8392ce..384a0b43 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionArgs.java @@ -47,14 +47,14 @@ public Optional> displayName() { } /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Import(name="trigger", required=true) private Output trigger; /** - * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Output trigger() { @@ -130,7 +130,7 @@ public Builder displayName(String displayName) { } /** - * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * @@ -141,7 +141,7 @@ public Builder trigger(Output trigger) { } /** - * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActions.java b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActions.java index 0358b573..490cad6d 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActions.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActions.java @@ -128,14 +128,14 @@ public Output> actions() { return this.actions; } /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Export(name="trigger", refs={String.class}, tree="[0]") private Output trigger; /** - * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Output trigger() { diff --git a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionsArgs.java b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionsArgs.java index 9064ae38..6a6f7b21 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/TriggerActionsArgs.java @@ -32,14 +32,14 @@ public Output> actions() { } /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Import(name="trigger", required=true) private Output trigger; /** - * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Output trigger() { @@ -103,7 +103,7 @@ public Builder actions(TriggerActionsActionArgs... actions) { } /** - * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * @@ -114,7 +114,7 @@ public Builder trigger(Output trigger) { } /** - * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/auth0/inputs/EmailProviderState.java b/sdk/java/src/main/java/com/pulumi/auth0/inputs/EmailProviderState.java index c93978eb..dba7c2c7 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/inputs/EmailProviderState.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/inputs/EmailProviderState.java @@ -64,14 +64,14 @@ public Optional> enabled() { } /** - * Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ @Import(name="name") private @Nullable Output name; /** - * @return Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @return Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * */ public Optional> name() { @@ -185,7 +185,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param name Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @param name Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * * @return builder * @@ -196,7 +196,7 @@ public Builder name(@Nullable Output name) { } /** - * @param name Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * @param name Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionState.java b/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionState.java index 147a30d7..54784b30 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionState.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionState.java @@ -46,14 +46,14 @@ public Optional> displayName() { } /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Import(name="trigger") private @Nullable Output trigger; /** - * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Optional> trigger() { @@ -129,7 +129,7 @@ public Builder displayName(String displayName) { } /** - * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * @@ -140,7 +140,7 @@ public Builder trigger(@Nullable Output trigger) { } /** - * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionsState.java b/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionsState.java index 695cdaa8..f70cfcf2 100644 --- a/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionsState.java +++ b/sdk/java/src/main/java/com/pulumi/auth0/inputs/TriggerActionsState.java @@ -33,14 +33,14 @@ public Optional>> actions() { } /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ @Import(name="trigger") private @Nullable Output trigger; /** - * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @return The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * */ public Optional> trigger() { @@ -104,7 +104,7 @@ public Builder actions(TriggerActionsActionArgs... actions) { } /** - * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * @@ -115,7 +115,7 @@ public Builder trigger(@Nullable Output trigger) { } /** - * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * @param trigger The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. * * @return builder * diff --git a/sdk/nodejs/emailProvider.ts b/sdk/nodejs/emailProvider.ts index 2009c8cd..859c7968 100644 --- a/sdk/nodejs/emailProvider.ts +++ b/sdk/nodejs/emailProvider.ts @@ -9,6 +9,74 @@ import * as utilities from "./utilities"; /** * With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as auth0 from "@pulumi/auth0"; + * + * // This is an example on how to set up the email provider with Amazon SES. + * const amazonSesEmailProvider = new auth0.EmailProvider("amazon_ses_email_provider", { + * name: "ses", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: { + * accessKeyId: "AKIAXXXXXXXXXXXXXXXX", + * secretAccessKey: "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * region: "us-east-1", + * }, + * }); + * // This is an example on how to set up the email provider with SMTP. + * const smtpEmailProvider = new auth0.EmailProvider("smtp_email_provider", { + * name: "smtp", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: { + * smtpHost: "your.smtp.host.com", + * smtpPort: 583, + * smtpUser: "SMTP Username", + * smtpPass: "SMTP Password", + * }, + * }); + * // This is an example on how to set up the email provider with Sendgrid. + * const sendgridEmailProvider = new auth0.EmailProvider("sendgrid_email_provider", { + * name: "sendgrid", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: { + * apiKey: "secretAPIKey", + * }, + * }); + * // This is an example on how to set up the email provider with Azure CS. + * const azureCsEmailProvider = new auth0.EmailProvider("azure_cs_email_provider", { + * name: "azure_cs", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: { + * azureCsConnectionString: "azure_cs_connection_string", + * }, + * }); + * // This is an example on how to set up the email provider with MS365. + * const ms365EmailProvider = new auth0.EmailProvider("ms365_email_provider", { + * name: "ms365", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: { + * ms365TenantId: "ms365_tenant_id", + * ms365ClientId: "ms365_client_id", + * ms365ClientSecret: "ms365_client_secret", + * }, + * }); + * // This is an example on how to set up the email provider with a custom action. + * // Make sure a corresponding action exists with custom-email-provider as supported triggers + * const customEmailProvider = new auth0.EmailProvider("custom_email_provider", { + * name: "custom", + * enabled: true, + * defaultFromAddress: "accounts@example.com", + * credentials: {}, + * }); + * ``` + * * ## Import * * As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -68,7 +136,7 @@ export class EmailProvider extends pulumi.CustomResource { */ public readonly enabled!: pulumi.Output; /** - * Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. */ public readonly name!: pulumi.Output; /** @@ -130,7 +198,7 @@ export interface EmailProviderState { */ enabled?: pulumi.Input; /** - * Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. */ name?: pulumi.Input; /** @@ -156,7 +224,7 @@ export interface EmailProviderArgs { */ enabled?: pulumi.Input; /** - * Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + * Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. */ name?: pulumi.Input; /** diff --git a/sdk/nodejs/triggerAction.ts b/sdk/nodejs/triggerAction.ts index 1fb00ecb..5e1b389f 100644 --- a/sdk/nodejs/triggerAction.ts +++ b/sdk/nodejs/triggerAction.ts @@ -90,7 +90,7 @@ export class TriggerAction extends pulumi.CustomResource { */ public readonly displayName!: pulumi.Output; /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ public readonly trigger!: pulumi.Output; @@ -140,7 +140,7 @@ export interface TriggerActionState { */ displayName?: pulumi.Input; /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ trigger?: pulumi.Input; } @@ -158,7 +158,7 @@ export interface TriggerActionArgs { */ displayName?: pulumi.Input; /** - * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ trigger: pulumi.Input; } diff --git a/sdk/nodejs/triggerActions.ts b/sdk/nodejs/triggerActions.ts index dc748bcd..b7ae67a4 100644 --- a/sdk/nodejs/triggerActions.ts +++ b/sdk/nodejs/triggerActions.ts @@ -103,7 +103,7 @@ export class TriggerActions extends pulumi.CustomResource { */ public readonly actions!: pulumi.Output; /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ public readonly trigger!: pulumi.Output; @@ -147,7 +147,7 @@ export interface TriggerActionsState { */ actions?: pulumi.Input[]>; /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ trigger?: pulumi.Input; } @@ -161,7 +161,7 @@ export interface TriggerActionsArgs { */ actions: pulumi.Input[]>; /** - * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + * The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. */ trigger: pulumi.Input; } diff --git a/sdk/python/pulumi_auth0/email_provider.py b/sdk/python/pulumi_auth0/email_provider.py index 97043e95..a85cdd19 100644 --- a/sdk/python/pulumi_auth0/email_provider.py +++ b/sdk/python/pulumi_auth0/email_provider.py @@ -31,7 +31,7 @@ def __init__(__self__, *, :param pulumi.Input['EmailProviderCredentialsArgs'] credentials: Configuration settings for the credentials for the email provider. :param pulumi.Input[str] default_from_address: Email address to use as the sender when no other "from" address is specified. :param pulumi.Input[bool] enabled: Indicates whether the email provider is enabled. - :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. :param pulumi.Input['EmailProviderSettingsArgs'] settings: Specific email provider settings. """ pulumi.set(__self__, "credentials", credentials) @@ -83,7 +83,7 @@ def enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. """ return pulumi.get(self, "name") @@ -117,7 +117,7 @@ def __init__(__self__, *, :param pulumi.Input['EmailProviderCredentialsArgs'] credentials: Configuration settings for the credentials for the email provider. :param pulumi.Input[str] default_from_address: Email address to use as the sender when no other "from" address is specified. :param pulumi.Input[bool] enabled: Indicates whether the email provider is enabled. - :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. :param pulumi.Input['EmailProviderSettingsArgs'] settings: Specific email provider settings. """ if credentials is not None: @@ -171,7 +171,7 @@ def enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. """ return pulumi.get(self, "name") @@ -206,6 +206,68 @@ def __init__(__self__, """ With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. + ## Example Usage + + ```python + import pulumi + import pulumi_auth0 as auth0 + + # This is an example on how to set up the email provider with Amazon SES. + amazon_ses_email_provider = auth0.EmailProvider("amazon_ses_email_provider", + name="ses", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "access_key_id": "AKIAXXXXXXXXXXXXXXXX", + "secret_access_key": "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "region": "us-east-1", + }) + # This is an example on how to set up the email provider with SMTP. + smtp_email_provider = auth0.EmailProvider("smtp_email_provider", + name="smtp", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "smtp_host": "your.smtp.host.com", + "smtp_port": 583, + "smtp_user": "SMTP Username", + "smtp_pass": "SMTP Password", + }) + # This is an example on how to set up the email provider with Sendgrid. + sendgrid_email_provider = auth0.EmailProvider("sendgrid_email_provider", + name="sendgrid", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "api_key": "secretAPIKey", + }) + # This is an example on how to set up the email provider with Azure CS. + azure_cs_email_provider = auth0.EmailProvider("azure_cs_email_provider", + name="azure_cs", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "azure_cs_connection_string": "azure_cs_connection_string", + }) + # This is an example on how to set up the email provider with MS365. + ms365_email_provider = auth0.EmailProvider("ms365_email_provider", + name="ms365", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "ms365_tenant_id": "ms365_tenant_id", + "ms365_client_id": "ms365_client_id", + "ms365_client_secret": "ms365_client_secret", + }) + # This is an example on how to set up the email provider with a custom action. + # Make sure a corresponding action exists with custom-email-provider as supported triggers + custom_email_provider = auth0.EmailProvider("custom_email_provider", + name="custom", + enabled=True, + default_from_address="accounts@example.com", + credentials={}) + ``` + ## Import As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -229,7 +291,7 @@ def __init__(__self__, :param pulumi.Input[Union['EmailProviderCredentialsArgs', 'EmailProviderCredentialsArgsDict']] credentials: Configuration settings for the credentials for the email provider. :param pulumi.Input[str] default_from_address: Email address to use as the sender when no other "from" address is specified. :param pulumi.Input[bool] enabled: Indicates whether the email provider is enabled. - :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. :param pulumi.Input[Union['EmailProviderSettingsArgs', 'EmailProviderSettingsArgsDict']] settings: Specific email provider settings. """ ... @@ -241,6 +303,68 @@ def __init__(__self__, """ With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice. + ## Example Usage + + ```python + import pulumi + import pulumi_auth0 as auth0 + + # This is an example on how to set up the email provider with Amazon SES. + amazon_ses_email_provider = auth0.EmailProvider("amazon_ses_email_provider", + name="ses", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "access_key_id": "AKIAXXXXXXXXXXXXXXXX", + "secret_access_key": "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "region": "us-east-1", + }) + # This is an example on how to set up the email provider with SMTP. + smtp_email_provider = auth0.EmailProvider("smtp_email_provider", + name="smtp", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "smtp_host": "your.smtp.host.com", + "smtp_port": 583, + "smtp_user": "SMTP Username", + "smtp_pass": "SMTP Password", + }) + # This is an example on how to set up the email provider with Sendgrid. + sendgrid_email_provider = auth0.EmailProvider("sendgrid_email_provider", + name="sendgrid", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "api_key": "secretAPIKey", + }) + # This is an example on how to set up the email provider with Azure CS. + azure_cs_email_provider = auth0.EmailProvider("azure_cs_email_provider", + name="azure_cs", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "azure_cs_connection_string": "azure_cs_connection_string", + }) + # This is an example on how to set up the email provider with MS365. + ms365_email_provider = auth0.EmailProvider("ms365_email_provider", + name="ms365", + enabled=True, + default_from_address="accounts@example.com", + credentials={ + "ms365_tenant_id": "ms365_tenant_id", + "ms365_client_id": "ms365_client_id", + "ms365_client_secret": "ms365_client_secret", + }) + # This is an example on how to set up the email provider with a custom action. + # Make sure a corresponding action exists with custom-email-provider as supported triggers + custom_email_provider = auth0.EmailProvider("custom_email_provider", + name="custom", + enabled=True, + default_from_address="accounts@example.com", + credentials={}) + ``` + ## Import As this is not a resource identifiable by an ID within the Auth0 Management API, @@ -322,7 +446,7 @@ def get(resource_name: str, :param pulumi.Input[Union['EmailProviderCredentialsArgs', 'EmailProviderCredentialsArgsDict']] credentials: Configuration settings for the credentials for the email provider. :param pulumi.Input[str] default_from_address: Email address to use as the sender when no other "from" address is specified. :param pulumi.Input[bool] enabled: Indicates whether the email provider is enabled. - :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + :param pulumi.Input[str] name: Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. :param pulumi.Input[Union['EmailProviderSettingsArgs', 'EmailProviderSettingsArgsDict']] settings: Specific email provider settings. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -364,7 +488,7 @@ def enabled(self) -> pulumi.Output[Optional[bool]]: @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Name of the email provider. Options include `azure_cs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. + Name of the email provider. Options include `azure_cs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`. """ return pulumi.get(self, "name") diff --git a/sdk/python/pulumi_auth0/trigger_action.py b/sdk/python/pulumi_auth0/trigger_action.py index ec26299f..01a92efe 100644 --- a/sdk/python/pulumi_auth0/trigger_action.py +++ b/sdk/python/pulumi_auth0/trigger_action.py @@ -25,7 +25,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a TriggerAction resource. :param pulumi.Input[str] action_id: The ID of the action to bind to the trigger. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. :param pulumi.Input[str] display_name: The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. """ pulumi.set(__self__, "action_id", action_id) @@ -49,7 +49,7 @@ def action_id(self, value: pulumi.Input[str]): @pulumi.getter def trigger(self) -> pulumi.Input[str]: """ - The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") @@ -80,7 +80,7 @@ def __init__(__self__, *, Input properties used for looking up and filtering TriggerAction resources. :param pulumi.Input[str] action_id: The ID of the action to bind to the trigger. :param pulumi.Input[str] display_name: The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ if action_id is not None: pulumi.set(__self__, "action_id", action_id) @@ -117,7 +117,7 @@ def display_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def trigger(self) -> Optional[pulumi.Input[str]]: """ - The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") @@ -186,7 +186,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] action_id: The ID of the action to bind to the trigger. :param pulumi.Input[str] display_name: The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ ... @overload @@ -297,7 +297,7 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] action_id: The ID of the action to bind to the trigger. :param pulumi.Input[str] display_name: The name for this action within the trigger. This can be useful for distinguishing between multiple instances of the same action bound to a trigger. Defaults to action name when not provided. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -328,7 +328,7 @@ def display_name(self) -> pulumi.Output[str]: @pulumi.getter def trigger(self) -> pulumi.Output[str]: """ - The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval`, `iga-certification`, `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") diff --git a/sdk/python/pulumi_auth0/trigger_actions.py b/sdk/python/pulumi_auth0/trigger_actions.py index 2d865e71..ca6c0993 100644 --- a/sdk/python/pulumi_auth0/trigger_actions.py +++ b/sdk/python/pulumi_auth0/trigger_actions.py @@ -26,7 +26,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a TriggerActions resource. :param pulumi.Input[Sequence[pulumi.Input['TriggerActionsActionArgs']]] actions: The list of actions bound to this trigger. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ pulumi.set(__self__, "actions", actions) pulumi.set(__self__, "trigger", trigger) @@ -47,7 +47,7 @@ def actions(self, value: pulumi.Input[Sequence[pulumi.Input['TriggerActionsActio @pulumi.getter def trigger(self) -> pulumi.Input[str]: """ - The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") @@ -64,7 +64,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering TriggerActions resources. :param pulumi.Input[Sequence[pulumi.Input['TriggerActionsActionArgs']]] actions: The list of actions bound to this trigger. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ if actions is not None: pulumi.set(__self__, "actions", actions) @@ -87,7 +87,7 @@ def actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TriggerAct @pulumi.getter def trigger(self) -> Optional[pulumi.Input[str]]: """ - The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") @@ -168,7 +168,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[Union['TriggerActionsActionArgs', 'TriggerActionsActionArgsDict']]]] actions: The list of actions bound to this trigger. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ ... @overload @@ -289,7 +289,7 @@ def get(resource_name: str, :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[Sequence[pulumi.Input[Union['TriggerActionsActionArgs', 'TriggerActionsActionArgsDict']]]] actions: The list of actions bound to this trigger. - :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + :param pulumi.Input[str] trigger: The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -311,7 +311,7 @@ def actions(self) -> pulumi.Output[Sequence['outputs.TriggerActionsAction']]: @pulumi.getter def trigger(self) -> pulumi.Output[str]: """ - The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`, `iga-approval` , `iga-certification` , `iga-fulfillment-assignment`, `iga-fulfillment-execution`. + The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`. """ return pulumi.get(self, "trigger") diff --git a/upstream b/upstream index 98823c3d..10728bf8 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 98823c3d09f4e1c71ead80d801e357b6e1d2c35f +Subproject commit 10728bf8b85aa5e19dd7dfdc0a271130dfee3597