aws.pinpoint.Smsvoicev2PhoneNumber
Explore with Pulumi AI
Manages an AWS End User Messaging SMS phone number.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.pinpoint.Smsvoicev2PhoneNumber("example", {
    isoCountryCode: "US",
    messageType: "TRANSACTIONAL",
    numberType: "TOLL_FREE",
    numberCapabilities: ["SMS"],
});
import pulumi
import pulumi_aws as aws
example = aws.pinpoint.Smsvoicev2PhoneNumber("example",
    iso_country_code="US",
    message_type="TRANSACTIONAL",
    number_type="TOLL_FREE",
    number_capabilities=["SMS"])
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/pinpoint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pinpoint.NewSmsvoicev2PhoneNumber(ctx, "example", &pinpoint.Smsvoicev2PhoneNumberArgs{
			IsoCountryCode: pulumi.String("US"),
			MessageType:    pulumi.String("TRANSACTIONAL"),
			NumberType:     pulumi.String("TOLL_FREE"),
			NumberCapabilities: pulumi.StringArray{
				pulumi.String("SMS"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = new Aws.Pinpoint.Smsvoicev2PhoneNumber("example", new()
    {
        IsoCountryCode = "US",
        MessageType = "TRANSACTIONAL",
        NumberType = "TOLL_FREE",
        NumberCapabilities = new[]
        {
            "SMS",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.pinpoint.Smsvoicev2PhoneNumber;
import com.pulumi.aws.pinpoint.Smsvoicev2PhoneNumberArgs;
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 example = new Smsvoicev2PhoneNumber("example", Smsvoicev2PhoneNumberArgs.builder()
            .isoCountryCode("US")
            .messageType("TRANSACTIONAL")
            .numberType("TOLL_FREE")
            .numberCapabilities("SMS")
            .build());
    }
}
resources:
  example:
    type: aws:pinpoint:Smsvoicev2PhoneNumber
    properties:
      isoCountryCode: US
      messageType: TRANSACTIONAL
      numberType: TOLL_FREE
      numberCapabilities:
        - SMS
Create Smsvoicev2PhoneNumber Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Smsvoicev2PhoneNumber(name: string, args: Smsvoicev2PhoneNumberArgs, opts?: CustomResourceOptions);@overload
def Smsvoicev2PhoneNumber(resource_name: str,
                          args: Smsvoicev2PhoneNumberArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def Smsvoicev2PhoneNumber(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          iso_country_code: Optional[str] = None,
                          message_type: Optional[str] = None,
                          number_capabilities: Optional[Sequence[str]] = None,
                          number_type: Optional[str] = None,
                          deletion_protection_enabled: Optional[bool] = None,
                          opt_out_list_name: Optional[str] = None,
                          registration_id: Optional[str] = None,
                          self_managed_opt_outs_enabled: Optional[bool] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          timeouts: Optional[Smsvoicev2PhoneNumberTimeoutsArgs] = None,
                          two_way_channel_arn: Optional[str] = None,
                          two_way_channel_enabled: Optional[bool] = None)func NewSmsvoicev2PhoneNumber(ctx *Context, name string, args Smsvoicev2PhoneNumberArgs, opts ...ResourceOption) (*Smsvoicev2PhoneNumber, error)public Smsvoicev2PhoneNumber(string name, Smsvoicev2PhoneNumberArgs args, CustomResourceOptions? opts = null)
public Smsvoicev2PhoneNumber(String name, Smsvoicev2PhoneNumberArgs args)
public Smsvoicev2PhoneNumber(String name, Smsvoicev2PhoneNumberArgs args, CustomResourceOptions options)
type: aws:pinpoint:Smsvoicev2PhoneNumber
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Smsvoicev2PhoneNumberArgs
- 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 Smsvoicev2PhoneNumberArgs
- 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 Smsvoicev2PhoneNumberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Smsvoicev2PhoneNumberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Smsvoicev2PhoneNumberArgs
- 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 smsvoicev2PhoneNumberResource = new Aws.Pinpoint.Smsvoicev2PhoneNumber("smsvoicev2PhoneNumberResource", new()
{
    IsoCountryCode = "string",
    MessageType = "string",
    NumberCapabilities = new[]
    {
        "string",
    },
    NumberType = "string",
    DeletionProtectionEnabled = false,
    OptOutListName = "string",
    RegistrationId = "string",
    SelfManagedOptOutsEnabled = false,
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Aws.Pinpoint.Inputs.Smsvoicev2PhoneNumberTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
    TwoWayChannelArn = "string",
    TwoWayChannelEnabled = false,
});
example, err := pinpoint.NewSmsvoicev2PhoneNumber(ctx, "smsvoicev2PhoneNumberResource", &pinpoint.Smsvoicev2PhoneNumberArgs{
	IsoCountryCode: pulumi.String("string"),
	MessageType:    pulumi.String("string"),
	NumberCapabilities: pulumi.StringArray{
		pulumi.String("string"),
	},
	NumberType:                pulumi.String("string"),
	DeletionProtectionEnabled: pulumi.Bool(false),
	OptOutListName:            pulumi.String("string"),
	RegistrationId:            pulumi.String("string"),
	SelfManagedOptOutsEnabled: pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeouts: &pinpoint.Smsvoicev2PhoneNumberTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
		Update: pulumi.String("string"),
	},
	TwoWayChannelArn:     pulumi.String("string"),
	TwoWayChannelEnabled: pulumi.Bool(false),
})
var smsvoicev2PhoneNumberResource = new Smsvoicev2PhoneNumber("smsvoicev2PhoneNumberResource", Smsvoicev2PhoneNumberArgs.builder()
    .isoCountryCode("string")
    .messageType("string")
    .numberCapabilities("string")
    .numberType("string")
    .deletionProtectionEnabled(false)
    .optOutListName("string")
    .registrationId("string")
    .selfManagedOptOutsEnabled(false)
    .tags(Map.of("string", "string"))
    .timeouts(Smsvoicev2PhoneNumberTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .twoWayChannelArn("string")
    .twoWayChannelEnabled(false)
    .build());
smsvoicev2_phone_number_resource = aws.pinpoint.Smsvoicev2PhoneNumber("smsvoicev2PhoneNumberResource",
    iso_country_code="string",
    message_type="string",
    number_capabilities=["string"],
    number_type="string",
    deletion_protection_enabled=False,
    opt_out_list_name="string",
    registration_id="string",
    self_managed_opt_outs_enabled=False,
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    },
    two_way_channel_arn="string",
    two_way_channel_enabled=False)
const smsvoicev2PhoneNumberResource = new aws.pinpoint.Smsvoicev2PhoneNumber("smsvoicev2PhoneNumberResource", {
    isoCountryCode: "string",
    messageType: "string",
    numberCapabilities: ["string"],
    numberType: "string",
    deletionProtectionEnabled: false,
    optOutListName: "string",
    registrationId: "string",
    selfManagedOptOutsEnabled: false,
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
    twoWayChannelArn: "string",
    twoWayChannelEnabled: false,
});
type: aws:pinpoint:Smsvoicev2PhoneNumber
properties:
    deletionProtectionEnabled: false
    isoCountryCode: string
    messageType: string
    numberCapabilities:
        - string
    numberType: string
    optOutListName: string
    registrationId: string
    selfManagedOptOutsEnabled: false
    tags:
        string: string
    timeouts:
        create: string
        delete: string
        update: string
    twoWayChannelArn: string
    twoWayChannelEnabled: false
Smsvoicev2PhoneNumber 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 Smsvoicev2PhoneNumber resource accepts the following input properties:
- IsoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- MessageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- NumberCapabilities List<string>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- NumberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- DeletionProtection boolEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- OptOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- RegistrationId string
- Use this field to attach your phone number for an external registration process.
- SelfManaged boolOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Dictionary<string, string>
- Timeouts
Smsvoicev2PhoneNumber Timeouts 
- TwoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- TwoWay boolChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- IsoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- MessageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- NumberCapabilities []string
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- NumberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- DeletionProtection boolEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- OptOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- RegistrationId string
- Use this field to attach your phone number for an external registration process.
- SelfManaged boolOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- map[string]string
- Timeouts
Smsvoicev2PhoneNumber Timeouts Args 
- TwoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- TwoWay boolChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- isoCountry StringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType String
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- numberCapabilities List<String>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType String
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- deletionProtection BooleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- optOut StringList Name 
- The name of the opt-out list to associate with the phone number.
- registrationId String
- Use this field to attach your phone number for an external registration process.
- selfManaged BooleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Map<String,String>
- timeouts
Smsvoicev2PhoneNumber Timeouts 
- twoWay StringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay BooleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- isoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- numberCapabilities string[]
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- deletionProtection booleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- optOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- registrationId string
- Use this field to attach your phone number for an external registration process.
- selfManaged booleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- {[key: string]: string}
- timeouts
Smsvoicev2PhoneNumber Timeouts 
- twoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay booleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- iso_country_ strcode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- message_type str
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- number_capabilities Sequence[str]
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- number_type str
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- deletion_protection_ boolenabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- opt_out_ strlist_ name 
- The name of the opt-out list to associate with the phone number.
- registration_id str
- Use this field to attach your phone number for an external registration process.
- self_managed_ boolopt_ outs_ enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Mapping[str, str]
- timeouts
Smsvoicev2PhoneNumber Timeouts Args 
- two_way_ strchannel_ arn 
- The Amazon Resource Name (ARN) of the two way channel.
- two_way_ boolchannel_ enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- isoCountry StringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType String
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- numberCapabilities List<String>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType String
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- deletionProtection BooleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- optOut StringList Name 
- The name of the opt-out list to associate with the phone number.
- registrationId String
- Use this field to attach your phone number for an external registration process.
- selfManaged BooleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Map<String>
- timeouts Property Map
- twoWay StringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay BooleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
Outputs
All input properties are implicitly available as output properties. Additionally, the Smsvoicev2PhoneNumber resource produces the following output properties:
- Arn string
- ARN of the phone number.
- Id string
- The provider-assigned unique ID for this managed resource.
- MonthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- PhoneNumber string
- The new phone number that was requested.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- ARN of the phone number.
- Id string
- The provider-assigned unique ID for this managed resource.
- MonthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- PhoneNumber string
- The new phone number that was requested.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the phone number.
- id String
- The provider-assigned unique ID for this managed resource.
- monthlyLeasing StringPrice 
- The monthly price, in US dollars, to lease the phone number.
- phoneNumber String
- The new phone number that was requested.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- ARN of the phone number.
- id string
- The provider-assigned unique ID for this managed resource.
- monthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- phoneNumber string
- The new phone number that was requested.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- ARN of the phone number.
- id str
- The provider-assigned unique ID for this managed resource.
- monthly_leasing_ strprice 
- The monthly price, in US dollars, to lease the phone number.
- phone_number str
- The new phone number that was requested.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the phone number.
- id String
- The provider-assigned unique ID for this managed resource.
- monthlyLeasing StringPrice 
- The monthly price, in US dollars, to lease the phone number.
- phoneNumber String
- The new phone number that was requested.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Smsvoicev2PhoneNumber Resource
Get an existing Smsvoicev2PhoneNumber 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?: Smsvoicev2PhoneNumberState, opts?: CustomResourceOptions): Smsvoicev2PhoneNumber@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        deletion_protection_enabled: Optional[bool] = None,
        iso_country_code: Optional[str] = None,
        message_type: Optional[str] = None,
        monthly_leasing_price: Optional[str] = None,
        number_capabilities: Optional[Sequence[str]] = None,
        number_type: Optional[str] = None,
        opt_out_list_name: Optional[str] = None,
        phone_number: Optional[str] = None,
        registration_id: Optional[str] = None,
        self_managed_opt_outs_enabled: Optional[bool] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        timeouts: Optional[Smsvoicev2PhoneNumberTimeoutsArgs] = None,
        two_way_channel_arn: Optional[str] = None,
        two_way_channel_enabled: Optional[bool] = None) -> Smsvoicev2PhoneNumberfunc GetSmsvoicev2PhoneNumber(ctx *Context, name string, id IDInput, state *Smsvoicev2PhoneNumberState, opts ...ResourceOption) (*Smsvoicev2PhoneNumber, error)public static Smsvoicev2PhoneNumber Get(string name, Input<string> id, Smsvoicev2PhoneNumberState? state, CustomResourceOptions? opts = null)public static Smsvoicev2PhoneNumber get(String name, Output<String> id, Smsvoicev2PhoneNumberState state, CustomResourceOptions options)resources:  _:    type: aws:pinpoint:Smsvoicev2PhoneNumber    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Arn string
- ARN of the phone number.
- DeletionProtection boolEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- IsoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- MessageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- MonthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- NumberCapabilities List<string>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- NumberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- OptOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- PhoneNumber string
- The new phone number that was requested.
- RegistrationId string
- Use this field to attach your phone number for an external registration process.
- SelfManaged boolOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Dictionary<string, string>
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Timeouts
Smsvoicev2PhoneNumber Timeouts 
- TwoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- TwoWay boolChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- Arn string
- ARN of the phone number.
- DeletionProtection boolEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- IsoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- MessageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- MonthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- NumberCapabilities []string
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- NumberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- OptOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- PhoneNumber string
- The new phone number that was requested.
- RegistrationId string
- Use this field to attach your phone number for an external registration process.
- SelfManaged boolOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- map[string]string
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Timeouts
Smsvoicev2PhoneNumber Timeouts Args 
- TwoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- TwoWay boolChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- arn String
- ARN of the phone number.
- deletionProtection BooleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- isoCountry StringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType String
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- monthlyLeasing StringPrice 
- The monthly price, in US dollars, to lease the phone number.
- numberCapabilities List<String>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType String
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- optOut StringList Name 
- The name of the opt-out list to associate with the phone number.
- phoneNumber String
- The new phone number that was requested.
- registrationId String
- Use this field to attach your phone number for an external registration process.
- selfManaged BooleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Map<String,String>
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timeouts
Smsvoicev2PhoneNumber Timeouts 
- twoWay StringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay BooleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- arn string
- ARN of the phone number.
- deletionProtection booleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- isoCountry stringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType string
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- monthlyLeasing stringPrice 
- The monthly price, in US dollars, to lease the phone number.
- numberCapabilities string[]
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType string
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- optOut stringList Name 
- The name of the opt-out list to associate with the phone number.
- phoneNumber string
- The new phone number that was requested.
- registrationId string
- Use this field to attach your phone number for an external registration process.
- selfManaged booleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- {[key: string]: string}
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timeouts
Smsvoicev2PhoneNumber Timeouts 
- twoWay stringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay booleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- arn str
- ARN of the phone number.
- deletion_protection_ boolenabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- iso_country_ strcode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- message_type str
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- monthly_leasing_ strprice 
- The monthly price, in US dollars, to lease the phone number.
- number_capabilities Sequence[str]
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- number_type str
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- opt_out_ strlist_ name 
- The name of the opt-out list to associate with the phone number.
- phone_number str
- The new phone number that was requested.
- registration_id str
- Use this field to attach your phone number for an external registration process.
- self_managed_ boolopt_ outs_ enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Mapping[str, str]
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timeouts
Smsvoicev2PhoneNumber Timeouts Args 
- two_way_ strchannel_ arn 
- The Amazon Resource Name (ARN) of the two way channel.
- two_way_ boolchannel_ enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
- arn String
- ARN of the phone number.
- deletionProtection BooleanEnabled 
- By default this is set to false. When set to true the phone number can’t be deleted.
- isoCountry StringCode 
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- messageType String
- The type of message. Valid values are TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren’t critical or time-sensitive.
- monthlyLeasing StringPrice 
- The monthly price, in US dollars, to lease the phone number.
- numberCapabilities List<String>
- Describes if the origination identity can be used for text messages, voice calls or both. valid values are SMSandVOICE.
- numberType String
- The type of phone number to request. Possible values are LONG_CODE,TOLL_FREE,TEN_DLC, orSIMULATOR.
- optOut StringList Name 
- The name of the opt-out list to associate with the phone number.
- phoneNumber String
- The new phone number that was requested.
- registrationId String
- Use this field to attach your phone number for an external registration process.
- selfManaged BooleanOpt Outs Enabled 
- When set to falsean end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.
- Map<String>
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- timeouts Property Map
- twoWay StringChannel Arn 
- The Amazon Resource Name (ARN) of the two way channel.
- twoWay BooleanChannel Enabled 
- By default this is set to false. When set totrueyou can receive incoming text messages from your end recipients.
Supporting Types
Smsvoicev2PhoneNumberTimeouts, Smsvoicev2PhoneNumberTimeoutsArgs      
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import, import phone numbers using the id. For example:
$ pulumi import aws:pinpoint/smsvoicev2PhoneNumber:Smsvoicev2PhoneNumber example phone-abcdef0123456789abcdef0123456789
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.