Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.pinpoint.kotlin
import com.pulumi.aws.pinpoint.Smsvoicev2PhoneNumberArgs.builder
import com.pulumi.aws.pinpoint.kotlin.inputs.Smsvoicev2PhoneNumberTimeoutsArgs
import com.pulumi.aws.pinpoint.kotlin.inputs.Smsvoicev2PhoneNumberTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an AWS End User Messaging SMS phone number.
* ## Example Usage
*
* ```typescript
* 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"],
* });
* ```
* ```python
* 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"])
* ```
* ```csharp
* 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",
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:pinpoint:Smsvoicev2PhoneNumber
* properties:
* isoCountryCode: US
* messageType: TRANSACTIONAL
* numberType: TOLL_FREE
* numberCapabilities:
* - SMS
* ```
*
* ## Import
* Using `pulumi import`, import phone numbers using the `id`. For example:
* ```sh
* $ pulumi import aws:pinpoint/smsvoicev2PhoneNumber:Smsvoicev2PhoneNumber example phone-abcdef0123456789abcdef0123456789
* ```
* @property deletionProtectionEnabled By default this is set to `false`. When set to true the phone number can’t be deleted.
* @property isoCountryCode The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
* @property messageType The type of message. Valid values are `TRANSACTIONAL` for messages that are critical or time-sensitive and `PROMOTIONAL` for messages that aren’t critical or time-sensitive.
* @property numberCapabilities Describes if the origination identity can be used for text messages, voice calls or both. valid values are `SMS` and `VOICE`.
* @property numberType The type of phone number to request. Possible values are `LONG_CODE`, `TOLL_FREE`, `TEN_DLC`, or `SIMULATOR`.
* @property optOutListName The name of the opt-out list to associate with the phone number.
* @property registrationId Use this field to attach your phone number for an external registration process.
* @property selfManagedOptOutsEnabled When set to `false` an 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.
* @property tags
* @property timeouts
* @property twoWayChannelArn The Amazon Resource Name (ARN) of the two way channel.
* @property twoWayChannelEnabled By default this is set to `false`. When set to `true` you can receive incoming text messages from your end recipients.
*/
public data class Smsvoicev2PhoneNumberArgs(
public val deletionProtectionEnabled: Output? = null,
public val isoCountryCode: Output? = null,
public val messageType: Output? = null,
public val numberCapabilities: Output>? = null,
public val numberType: Output? = null,
public val optOutListName: Output? = null,
public val registrationId: Output? = null,
public val selfManagedOptOutsEnabled: Output? = null,
public val tags: Output