published on Sunday, Oct 11, 2026 by Descope
published on Sunday, Oct 11, 2026 by Descope
Manages a Twilio Core connector and its configuration in a Descope project. Send text messages and place voice calls through Twilio.
Create TwilioCoreConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TwilioCoreConnector(name: string, args: TwilioCoreConnectorArgs, opts?: CustomResourceOptions);@overload
def TwilioCoreConnector(resource_name: str,
args: TwilioCoreConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TwilioCoreConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_sid: Optional[str] = None,
project_id: Optional[str] = None,
api_key: Optional[str] = None,
api_secret: Optional[str] = None,
auth_token: Optional[str] = None,
description: Optional[str] = None,
from_phone: Optional[str] = None,
from_phone_voice: Optional[str] = None,
messaging_service_sid: Optional[str] = None,
name: Optional[str] = None)func NewTwilioCoreConnector(ctx *Context, name string, args TwilioCoreConnectorArgs, opts ...ResourceOption) (*TwilioCoreConnector, error)public TwilioCoreConnector(string name, TwilioCoreConnectorArgs args, CustomResourceOptions? opts = null)
public TwilioCoreConnector(String name, TwilioCoreConnectorArgs args)
public TwilioCoreConnector(String name, TwilioCoreConnectorArgs args, CustomResourceOptions options)
type: descope:TwilioCoreConnector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "descope_twilio_core_connector" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TwilioCoreConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TwilioCoreConnectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TwilioCoreConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TwilioCoreConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TwilioCoreConnectorArgs
- 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 twilioCoreConnectorResource = new Descope.TwilioCoreConnector("twilioCoreConnectorResource", new()
{
AccountSid = "string",
ProjectId = "string",
ApiKey = "string",
ApiSecret = "string",
AuthToken = "string",
Description = "string",
FromPhone = "string",
FromPhoneVoice = "string",
MessagingServiceSid = "string",
Name = "string",
});
example, err := descope.NewTwilioCoreConnector(ctx, "twilioCoreConnectorResource", &descope.TwilioCoreConnectorArgs{
AccountSid: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ApiKey: pulumi.String("string"),
ApiSecret: pulumi.String("string"),
AuthToken: pulumi.String("string"),
Description: pulumi.String("string"),
FromPhone: pulumi.String("string"),
FromPhoneVoice: pulumi.String("string"),
MessagingServiceSid: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "descope_twilio_core_connector" "twilioCoreConnectorResource" {
lifecycle {
create_before_destroy = true
}
account_sid = "string"
project_id = "string"
api_key = "string"
api_secret = "string"
auth_token = "string"
description = "string"
from_phone = "string"
from_phone_voice = "string"
messaging_service_sid = "string"
name = "string"
}
var twilioCoreConnectorResource = new TwilioCoreConnector("twilioCoreConnectorResource", TwilioCoreConnectorArgs.builder()
.accountSid("string")
.projectId("string")
.apiKey("string")
.apiSecret("string")
.authToken("string")
.description("string")
.fromPhone("string")
.fromPhoneVoice("string")
.messagingServiceSid("string")
.name("string")
.build());
twilio_core_connector_resource = descope.TwilioCoreConnector("twilioCoreConnectorResource",
account_sid="string",
project_id="string",
api_key="string",
api_secret="string",
auth_token="string",
description="string",
from_phone="string",
from_phone_voice="string",
messaging_service_sid="string",
name="string")
const twilioCoreConnectorResource = new descope.TwilioCoreConnector("twilioCoreConnectorResource", {
accountSid: "string",
projectId: "string",
apiKey: "string",
apiSecret: "string",
authToken: "string",
description: "string",
fromPhone: "string",
fromPhoneVoice: "string",
messagingServiceSid: "string",
name: "string",
});
type: descope:TwilioCoreConnector
properties:
accountSid: string
apiKey: string
apiSecret: string
authToken: string
description: string
fromPhone: string
fromPhoneVoice: string
messagingServiceSid: string
name: string
projectId: string
TwilioCoreConnector 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 TwilioCoreConnector resource accepts the following input properties:
- Account
Sid string - The Twilio account SID.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- Api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- Auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- Description string
- A description of what your connector is used for.
- From
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- From
Phone stringVoice - The phone number that voice calls are placed from.
- Messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- Name string
- A custom name for your connector.
- Account
Sid string - The Twilio account SID.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- Api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- Auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- Description string
- A description of what your connector is used for.
- From
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- From
Phone stringVoice - The phone number that voice calls are placed from.
- Messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- Name string
- A custom name for your connector.
- account_
sid string - The Twilio account SID.
- project_
id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- api_
key string - The Twilio API key. Set together with an API secret instead of an auth token.
- api_
secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- auth_
token string - The Twilio auth token. Set either this or an API key and secret pair.
- description string
- A description of what your connector is used for.
- from_
phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from_
phone_ stringvoice - The phone number that voice calls are placed from.
- messaging_
service_ stringsid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name string
- A custom name for your connector.
- account
Sid String - The Twilio account SID.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- api
Key String - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret String - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token String - The Twilio auth token. Set either this or an API key and secret pair.
- description String
- A description of what your connector is used for.
- from
Phone String - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone StringVoice - The phone number that voice calls are placed from.
- messaging
Service StringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name String
- A custom name for your connector.
- account
Sid string - The Twilio account SID.
- project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- description string
- A description of what your connector is used for.
- from
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone stringVoice - The phone number that voice calls are placed from.
- messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name string
- A custom name for your connector.
- account_
sid str - The Twilio account SID.
- project_
id str - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- api_
key str - The Twilio API key. Set together with an API secret instead of an auth token.
- api_
secret str - The Twilio API secret. Set together with an API key instead of an auth token.
- auth_
token str - The Twilio auth token. Set either this or an API key and secret pair.
- description str
- A description of what your connector is used for.
- from_
phone str - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from_
phone_ strvoice - The phone number that voice calls are placed from.
- messaging_
service_ strsid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name str
- A custom name for your connector.
- account
Sid String - The Twilio account SID.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- api
Key String - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret String - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token String - The Twilio auth token. Set either this or an API key and secret pair.
- description String
- A description of what your connector is used for.
- from
Phone String - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone StringVoice - The phone number that voice calls are placed from.
- messaging
Service StringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name String
- A custom name for your connector.
Outputs
All input properties are implicitly available as output properties. Additionally, the TwilioCoreConnector 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 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 TwilioCoreConnector Resource
Get an existing TwilioCoreConnector 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?: TwilioCoreConnectorState, opts?: CustomResourceOptions): TwilioCoreConnector@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_sid: Optional[str] = None,
api_key: Optional[str] = None,
api_secret: Optional[str] = None,
auth_token: Optional[str] = None,
description: Optional[str] = None,
from_phone: Optional[str] = None,
from_phone_voice: Optional[str] = None,
messaging_service_sid: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None) -> TwilioCoreConnectorfunc GetTwilioCoreConnector(ctx *Context, name string, id IDInput, state *TwilioCoreConnectorState, opts ...ResourceOption) (*TwilioCoreConnector, error)public static TwilioCoreConnector Get(string name, Input<string> id, TwilioCoreConnectorState? state, CustomResourceOptions? opts = null)public static TwilioCoreConnector get(String name, Output<String> id, TwilioCoreConnectorState state, CustomResourceOptions options)resources: existingTwilioCoreConnector: type: descope:TwilioCoreConnector get: id: ${id}import {
to = descope_twilio_core_connector.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state TwilioCoreConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state TwilioCoreConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state TwilioCoreConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state TwilioCoreConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Account
Sid string - The Twilio account SID.
- Api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- Api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- Auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- Description string
- A description of what your connector is used for.
- From
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- From
Phone stringVoice - The phone number that voice calls are placed from.
- Messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- Name string
- A custom name for your connector.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Account
Sid string - The Twilio account SID.
- Api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- Api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- Auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- Description string
- A description of what your connector is used for.
- From
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- From
Phone stringVoice - The phone number that voice calls are placed from.
- Messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- Name string
- A custom name for your connector.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- account_
sid string - The Twilio account SID.
- api_
key string - The Twilio API key. Set together with an API secret instead of an auth token.
- api_
secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- auth_
token string - The Twilio auth token. Set either this or an API key and secret pair.
- description string
- A description of what your connector is used for.
- from_
phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from_
phone_ stringvoice - The phone number that voice calls are placed from.
- messaging_
service_ stringsid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name string
- A custom name for your connector.
- project_
id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- account
Sid String - The Twilio account SID.
- api
Key String - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret String - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token String - The Twilio auth token. Set either this or an API key and secret pair.
- description String
- A description of what your connector is used for.
- from
Phone String - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone StringVoice - The phone number that voice calls are placed from.
- messaging
Service StringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name String
- A custom name for your connector.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- account
Sid string - The Twilio account SID.
- api
Key string - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret string - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token string - The Twilio auth token. Set either this or an API key and secret pair.
- description string
- A description of what your connector is used for.
- from
Phone string - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone stringVoice - The phone number that voice calls are placed from.
- messaging
Service stringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name string
- A custom name for your connector.
- project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- account_
sid str - The Twilio account SID.
- api_
key str - The Twilio API key. Set together with an API secret instead of an auth token.
- api_
secret str - The Twilio API secret. Set together with an API key instead of an auth token.
- auth_
token str - The Twilio auth token. Set either this or an API key and secret pair.
- description str
- A description of what your connector is used for.
- from_
phone str - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from_
phone_ strvoice - The phone number that voice calls are placed from.
- messaging_
service_ strsid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name str
- A custom name for your connector.
- project_
id str - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- account
Sid String - The Twilio account SID.
- api
Key String - The Twilio API key. Set together with an API secret instead of an auth token.
- api
Secret String - The Twilio API secret. Set together with an API key instead of an auth token.
- auth
Token String - The Twilio auth token. Set either this or an API key and secret pair.
- description String
- A description of what your connector is used for.
- from
Phone String - The phone number that text messages are sent from. Set either this or a messaging service SID.
- from
Phone StringVoice - The phone number that voice calls are placed from.
- messaging
Service StringSid - The Twilio messaging service SID to send text messages through. Set either this or a from phone number.
- name String
- A custom name for your connector.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
Package Details
- Repository
- descope descope/pulumi-descope
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
descopeTerraform Provider.
published on Sunday, Oct 11, 2026 by Descope