1. Packages
  2. Zitadel
  3. API Docs
  4. SmsProviderTwilio
zitadel v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse

zitadel.SmsProviderTwilio

Explore with Pulumi AI

Resource representing the SMS provider Twilio configuration of an instance.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;

return await Deployment.RunAsync(() => 
{
    var @default = new Zitadel.SmsProviderTwilio("default", new()
    {
        Sid = "sid",
        SenderNumber = "019920892",
        Token = "twilio_token",
    });

});
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zitadel.NewSmsProviderTwilio(ctx, "default", &zitadel.SmsProviderTwilioArgs{
			Sid:          pulumi.String("sid"),
			SenderNumber: pulumi.String("019920892"),
			Token:        pulumi.String("twilio_token"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.SmsProviderTwilio;
import com.pulumi.zitadel.SmsProviderTwilioArgs;
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 {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var default_ = new SmsProviderTwilio("default", SmsProviderTwilioArgs.builder()        
            .sid("sid")
            .senderNumber("019920892")
            .token("twilio_token")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";

const _default = new zitadel.SmsProviderTwilio("default", {
    sid: "sid",
    senderNumber: "019920892",
    token: "twilio_token",
});
Copy
import pulumi
import pulumiverse_zitadel as zitadel

default = zitadel.SmsProviderTwilio("default",
    sid="sid",
    sender_number="019920892",
    token="twilio_token")
Copy
resources:
  default:
    type: zitadel:SmsProviderTwilio
    properties:
      sid: sid
      senderNumber: '019920892'
      token: twilio_token
Copy

Create SmsProviderTwilio Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SmsProviderTwilio(name: string, args: SmsProviderTwilioArgs, opts?: CustomResourceOptions);
@overload
def SmsProviderTwilio(resource_name: str,
                      args: SmsProviderTwilioArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def SmsProviderTwilio(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      sender_number: Optional[str] = None,
                      sid: Optional[str] = None,
                      token: Optional[str] = None)
func NewSmsProviderTwilio(ctx *Context, name string, args SmsProviderTwilioArgs, opts ...ResourceOption) (*SmsProviderTwilio, error)
public SmsProviderTwilio(string name, SmsProviderTwilioArgs args, CustomResourceOptions? opts = null)
public SmsProviderTwilio(String name, SmsProviderTwilioArgs args)
public SmsProviderTwilio(String name, SmsProviderTwilioArgs args, CustomResourceOptions options)
type: zitadel:SmsProviderTwilio
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SmsProviderTwilioArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SmsProviderTwilioArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SmsProviderTwilioArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SmsProviderTwilioArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SmsProviderTwilioArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var smsProviderTwilioResource = new Zitadel.SmsProviderTwilio("smsProviderTwilioResource", new()
{
    SenderNumber = "string",
    Sid = "string",
    Token = "string",
});
Copy
example, err := zitadel.NewSmsProviderTwilio(ctx, "smsProviderTwilioResource", &zitadel.SmsProviderTwilioArgs{
	SenderNumber: pulumi.String("string"),
	Sid:          pulumi.String("string"),
	Token:        pulumi.String("string"),
})
Copy
var smsProviderTwilioResource = new SmsProviderTwilio("smsProviderTwilioResource", SmsProviderTwilioArgs.builder()
    .senderNumber("string")
    .sid("string")
    .token("string")
    .build());
Copy
sms_provider_twilio_resource = zitadel.SmsProviderTwilio("smsProviderTwilioResource",
    sender_number="string",
    sid="string",
    token="string")
Copy
const smsProviderTwilioResource = new zitadel.SmsProviderTwilio("smsProviderTwilioResource", {
    senderNumber: "string",
    sid: "string",
    token: "string",
});
Copy
type: zitadel:SmsProviderTwilio
properties:
    senderNumber: string
    sid: string
    token: string
Copy

SmsProviderTwilio Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SmsProviderTwilio resource accepts the following input properties:

SenderNumber This property is required. string
Sender number which is used to send the SMS.
Sid This property is required. string
SID used to communicate with Twilio.
Token This property is required. string
Token used to communicate with Twilio.
SenderNumber This property is required. string
Sender number which is used to send the SMS.
Sid This property is required. string
SID used to communicate with Twilio.
Token This property is required. string
Token used to communicate with Twilio.
senderNumber This property is required. String
Sender number which is used to send the SMS.
sid This property is required. String
SID used to communicate with Twilio.
token This property is required. String
Token used to communicate with Twilio.
senderNumber This property is required. string
Sender number which is used to send the SMS.
sid This property is required. string
SID used to communicate with Twilio.
token This property is required. string
Token used to communicate with Twilio.
sender_number This property is required. str
Sender number which is used to send the SMS.
sid This property is required. str
SID used to communicate with Twilio.
token This property is required. str
Token used to communicate with Twilio.
senderNumber This property is required. String
Sender number which is used to send the SMS.
sid This property is required. String
SID used to communicate with Twilio.
token This property is required. String
Token used to communicate with Twilio.

Outputs

All input properties are implicitly available as output properties. Additionally, the SmsProviderTwilio resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SmsProviderTwilio Resource

Get an existing SmsProviderTwilio resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SmsProviderTwilioState, opts?: CustomResourceOptions): SmsProviderTwilio
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        sender_number: Optional[str] = None,
        sid: Optional[str] = None,
        token: Optional[str] = None) -> SmsProviderTwilio
func GetSmsProviderTwilio(ctx *Context, name string, id IDInput, state *SmsProviderTwilioState, opts ...ResourceOption) (*SmsProviderTwilio, error)
public static SmsProviderTwilio Get(string name, Input<string> id, SmsProviderTwilioState? state, CustomResourceOptions? opts = null)
public static SmsProviderTwilio get(String name, Output<String> id, SmsProviderTwilioState state, CustomResourceOptions options)
resources:  _:    type: zitadel:SmsProviderTwilio    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
SenderNumber string
Sender number which is used to send the SMS.
Sid string
SID used to communicate with Twilio.
Token string
Token used to communicate with Twilio.
SenderNumber string
Sender number which is used to send the SMS.
Sid string
SID used to communicate with Twilio.
Token string
Token used to communicate with Twilio.
senderNumber String
Sender number which is used to send the SMS.
sid String
SID used to communicate with Twilio.
token String
Token used to communicate with Twilio.
senderNumber string
Sender number which is used to send the SMS.
sid string
SID used to communicate with Twilio.
token string
Token used to communicate with Twilio.
sender_number str
Sender number which is used to send the SMS.
sid str
SID used to communicate with Twilio.
token str
Token used to communicate with Twilio.
senderNumber String
Sender number which is used to send the SMS.
sid String
SID used to communicate with Twilio.
token String
Token used to communicate with Twilio.

Import

bash The resource can be imported using the ID format <id[:token]>, e.g.

 $ pulumi import zitadel:index/smsProviderTwilio:SmsProviderTwilio imported '123456789012345678:12345678901234567890123456abcdef'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zitadel pulumiverse/pulumi-zitadel
License
Apache-2.0
Notes
This Pulumi package is based on the zitadel Terraform Provider.