1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. pinpoint
  6. Smsvoicev2ProtectConfiguration
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an AWS End User Messaging SMS Protect Configuration. A protect configuration sets country rules that allow, block, monitor, or filter messages sent to each destination country.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.pinpoint.Smsvoicev2ProtectConfiguration("example", {});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.pinpoint.Smsvoicev2ProtectConfiguration("example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/pinpoint"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pinpoint.NewSmsvoicev2ProtectConfiguration(ctx, "example", nil)
    		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.Smsvoicev2ProtectConfiguration("example");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.pinpoint.Smsvoicev2ProtectConfiguration;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 Smsvoicev2ProtectConfiguration("example");
    
        }
    }
    
    resources:
      example:
        type: aws:pinpoint:Smsvoicev2ProtectConfiguration
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_pinpoint_smsvoicev2_protect_configuration" "example" {
      lifecycle {
        create_before_destroy = true
      }
    }
    

    Country Rules

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.pinpoint.Smsvoicev2ProtectConfiguration("example", {
        deletionProtectionEnabled: true,
        smsCountryRules: {
            CA: "FILTER",
            DE: "MONITOR",
            RU: "BLOCK",
        },
        voiceCountryRules: {
            RU: "BLOCK",
        },
        tags: {
            Name: "example",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.pinpoint.Smsvoicev2ProtectConfiguration("example",
        deletion_protection_enabled=True,
        sms_country_rules={
            "CA": "FILTER",
            "DE": "MONITOR",
            "RU": "BLOCK",
        },
        voice_country_rules={
            "RU": "BLOCK",
        },
        tags={
            "Name": "example",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/pinpoint"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pinpoint.NewSmsvoicev2ProtectConfiguration(ctx, "example", &pinpoint.Smsvoicev2ProtectConfigurationArgs{
    			DeletionProtectionEnabled: pulumi.Bool(true),
    			SmsCountryRules: pulumi.StringMap{
    				"CA": pulumi.String("FILTER"),
    				"DE": pulumi.String("MONITOR"),
    				"RU": pulumi.String("BLOCK"),
    			},
    			VoiceCountryRules: pulumi.StringMap{
    				"RU": pulumi.String("BLOCK"),
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example"),
    			},
    		})
    		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.Smsvoicev2ProtectConfiguration("example", new()
        {
            DeletionProtectionEnabled = true,
            SmsCountryRules = 
            {
                { "CA", "FILTER" },
                { "DE", "MONITOR" },
                { "RU", "BLOCK" },
            },
            VoiceCountryRules = 
            {
                { "RU", "BLOCK" },
            },
            Tags = 
            {
                { "Name", "example" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.pinpoint.Smsvoicev2ProtectConfiguration;
    import com.pulumi.aws.pinpoint.Smsvoicev2ProtectConfigurationArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 Smsvoicev2ProtectConfiguration("example", Smsvoicev2ProtectConfigurationArgs.builder()
                .deletionProtectionEnabled(true)
                .smsCountryRules(Map.ofEntries(
                    Map.entry("CA", "FILTER"),
                    Map.entry("DE", "MONITOR"),
                    Map.entry("RU", "BLOCK")
                ))
                .voiceCountryRules(Map.of("RU", "BLOCK"))
                .tags(Map.of("Name", "example"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:pinpoint:Smsvoicev2ProtectConfiguration
        properties:
          deletionProtectionEnabled: true
          smsCountryRules:
            CA: FILTER
            DE: MONITOR
            RU: BLOCK
          voiceCountryRules:
            RU: BLOCK
          tags:
            Name: example
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_pinpoint_smsvoicev2_protect_configuration" "example" {
      lifecycle {
        create_before_destroy = true
      }
      deletion_protection_enabled = true
      sms_country_rules = {
        "CA" = "FILTER"
        "DE" = "MONITOR"
        "RU" = "BLOCK"
      }
      voice_country_rules = {
        "RU" = "BLOCK"
      }
      tags = {
        "Name" = "example"
      }
    }
    

    Create Smsvoicev2ProtectConfiguration Resource

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

    Constructor syntax

    new Smsvoicev2ProtectConfiguration(name: string, args?: Smsvoicev2ProtectConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def Smsvoicev2ProtectConfiguration(resource_name: str,
                                       args: Optional[Smsvoicev2ProtectConfigurationArgs] = None,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def Smsvoicev2ProtectConfiguration(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       deletion_protection_enabled: Optional[bool] = None,
                                       mms_country_rules: Optional[Mapping[str, str]] = None,
                                       rcs_country_rules: Optional[Mapping[str, str]] = None,
                                       region: Optional[str] = None,
                                       sms_country_rules: Optional[Mapping[str, str]] = None,
                                       tags: Optional[Mapping[str, str]] = None,
                                       voice_country_rules: Optional[Mapping[str, str]] = None)
    func NewSmsvoicev2ProtectConfiguration(ctx *Context, name string, args *Smsvoicev2ProtectConfigurationArgs, opts ...ResourceOption) (*Smsvoicev2ProtectConfiguration, error)
    public Smsvoicev2ProtectConfiguration(string name, Smsvoicev2ProtectConfigurationArgs? args = null, CustomResourceOptions? opts = null)
    public Smsvoicev2ProtectConfiguration(String name, Smsvoicev2ProtectConfigurationArgs args)
    public Smsvoicev2ProtectConfiguration(String name, Smsvoicev2ProtectConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:pinpoint:Smsvoicev2ProtectConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_pinpoint_smsvoicev2_protect_configuration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args Smsvoicev2ProtectConfigurationArgs
    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 Smsvoicev2ProtectConfigurationArgs
    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 Smsvoicev2ProtectConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Smsvoicev2ProtectConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Smsvoicev2ProtectConfigurationArgs
    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 smsvoicev2ProtectConfigurationResource = new Aws.Pinpoint.Smsvoicev2ProtectConfiguration("smsvoicev2ProtectConfigurationResource", new()
    {
        DeletionProtectionEnabled = false,
        MmsCountryRules = 
        {
            { "string", "string" },
        },
        RcsCountryRules = 
        {
            { "string", "string" },
        },
        Region = "string",
        SmsCountryRules = 
        {
            { "string", "string" },
        },
        Tags = 
        {
            { "string", "string" },
        },
        VoiceCountryRules = 
        {
            { "string", "string" },
        },
    });
    
    example, err := pinpoint.NewSmsvoicev2ProtectConfiguration(ctx, "smsvoicev2ProtectConfigurationResource", &pinpoint.Smsvoicev2ProtectConfigurationArgs{
    	DeletionProtectionEnabled: pulumi.Bool(false),
    	MmsCountryRules: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	RcsCountryRules: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Region: pulumi.String("string"),
    	SmsCountryRules: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VoiceCountryRules: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_pinpoint_smsvoicev2_protect_configuration" "smsvoicev2ProtectConfigurationResource" {
      lifecycle {
        create_before_destroy = true
      }
      deletion_protection_enabled = false
      mms_country_rules = {
        "string" = "string"
      }
      rcs_country_rules = {
        "string" = "string"
      }
      region = "string"
      sms_country_rules = {
        "string" = "string"
      }
      tags = {
        "string" = "string"
      }
      voice_country_rules = {
        "string" = "string"
      }
    }
    
    var smsvoicev2ProtectConfigurationResource = new Smsvoicev2ProtectConfiguration("smsvoicev2ProtectConfigurationResource", Smsvoicev2ProtectConfigurationArgs.builder()
        .deletionProtectionEnabled(false)
        .mmsCountryRules(Map.of("string", "string"))
        .rcsCountryRules(Map.of("string", "string"))
        .region("string")
        .smsCountryRules(Map.of("string", "string"))
        .tags(Map.of("string", "string"))
        .voiceCountryRules(Map.of("string", "string"))
        .build());
    
    smsvoicev2_protect_configuration_resource = aws.pinpoint.Smsvoicev2ProtectConfiguration("smsvoicev2ProtectConfigurationResource",
        deletion_protection_enabled=False,
        mms_country_rules={
            "string": "string",
        },
        rcs_country_rules={
            "string": "string",
        },
        region="string",
        sms_country_rules={
            "string": "string",
        },
        tags={
            "string": "string",
        },
        voice_country_rules={
            "string": "string",
        })
    
    const smsvoicev2ProtectConfigurationResource = new aws.pinpoint.Smsvoicev2ProtectConfiguration("smsvoicev2ProtectConfigurationResource", {
        deletionProtectionEnabled: false,
        mmsCountryRules: {
            string: "string",
        },
        rcsCountryRules: {
            string: "string",
        },
        region: "string",
        smsCountryRules: {
            string: "string",
        },
        tags: {
            string: "string",
        },
        voiceCountryRules: {
            string: "string",
        },
    });
    
    type: aws:pinpoint:Smsvoicev2ProtectConfiguration
    properties:
        deletionProtectionEnabled: false
        mmsCountryRules:
            string: string
        rcsCountryRules:
            string: string
        region: string
        smsCountryRules:
            string: string
        tags:
            string: string
        voiceCountryRules:
            string: string
    

    Smsvoicev2ProtectConfiguration 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 Smsvoicev2ProtectConfiguration resource accepts the following input properties:

    DeletionProtectionEnabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    MmsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    RcsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SmsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    VoiceCountryRules Dictionary<string, string>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    DeletionProtectionEnabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    MmsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    RcsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SmsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    VoiceCountryRules map[string]string

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    deletion_protection_enabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mms_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcs_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sms_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    voice_country_rules map(string)

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    deletionProtectionEnabled Boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    voiceCountryRules Map<String,String>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    deletionProtectionEnabled boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    voiceCountryRules {[key: string]: string}

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    deletion_protection_enabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mms_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcs_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sms_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    voice_country_rules Mapping[str, str]

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    deletionProtectionEnabled Boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    voiceCountryRules Map<String>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    Outputs

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

    AccountDefault bool
    Whether the protect configuration is the account default.
    Arn string
    ARN of the protect configuration.
    CreatedTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    AccountDefault bool
    Whether the protect configuration is the account default.
    Arn string
    ARN of the protect configuration.
    CreatedTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    account_default bool
    Whether the protect configuration is the account default.
    arn string
    ARN of the protect configuration.
    created_timestamp string
    Time when the protect configuration was created, in RFC3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    accountDefault Boolean
    Whether the protect configuration is the account default.
    arn String
    ARN of the protect configuration.
    createdTimestamp String
    Time when the protect configuration was created, in RFC3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    accountDefault boolean
    Whether the protect configuration is the account default.
    arn string
    ARN of the protect configuration.
    createdTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    account_default bool
    Whether the protect configuration is the account default.
    arn str
    ARN of the protect configuration.
    created_timestamp str
    Time when the protect configuration was created, in RFC3339 format.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    accountDefault Boolean
    Whether the protect configuration is the account default.
    arn String
    ARN of the protect configuration.
    createdTimestamp String
    Time when the protect configuration was created, in RFC3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing Smsvoicev2ProtectConfiguration Resource

    Get an existing Smsvoicev2ProtectConfiguration 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?: Smsvoicev2ProtectConfigurationState, opts?: CustomResourceOptions): Smsvoicev2ProtectConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_default: Optional[bool] = None,
            arn: Optional[str] = None,
            created_timestamp: Optional[str] = None,
            deletion_protection_enabled: Optional[bool] = None,
            mms_country_rules: Optional[Mapping[str, str]] = None,
            rcs_country_rules: Optional[Mapping[str, str]] = None,
            region: Optional[str] = None,
            sms_country_rules: Optional[Mapping[str, str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            voice_country_rules: Optional[Mapping[str, str]] = None) -> Smsvoicev2ProtectConfiguration
    func GetSmsvoicev2ProtectConfiguration(ctx *Context, name string, id IDInput, state *Smsvoicev2ProtectConfigurationState, opts ...ResourceOption) (*Smsvoicev2ProtectConfiguration, error)
    public static Smsvoicev2ProtectConfiguration Get(string name, Input<string> id, Smsvoicev2ProtectConfigurationState? state, CustomResourceOptions? opts = null)
    public static Smsvoicev2ProtectConfiguration get(String name, Output<String> id, Smsvoicev2ProtectConfigurationState state, CustomResourceOptions options)
    resources:  existingSmsvoicev2ProtectConfiguration:    type: aws:pinpoint:Smsvoicev2ProtectConfiguration    get:      id: ${id}
    import {
      to = aws_pinpoint_smsvoicev2_protect_configuration.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 Smsvoicev2ProtectConfigurationState
    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 Smsvoicev2ProtectConfigurationState
    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 Smsvoicev2ProtectConfigurationState
    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 Smsvoicev2ProtectConfigurationState
    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.
    The following state arguments are supported:
    AccountDefault bool
    Whether the protect configuration is the account default.
    Arn string
    ARN of the protect configuration.
    CreatedTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    DeletionProtectionEnabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    MmsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    RcsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SmsCountryRules Dictionary<string, string>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    VoiceCountryRules Dictionary<string, string>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    AccountDefault bool
    Whether the protect configuration is the account default.
    Arn string
    ARN of the protect configuration.
    CreatedTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    DeletionProtectionEnabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    MmsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    RcsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SmsCountryRules map[string]string
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    VoiceCountryRules map[string]string

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    account_default bool
    Whether the protect configuration is the account default.
    arn string
    ARN of the protect configuration.
    created_timestamp string
    Time when the protect configuration was created, in RFC3339 format.
    deletion_protection_enabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mms_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcs_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sms_country_rules map(string)
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    voice_country_rules map(string)

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    accountDefault Boolean
    Whether the protect configuration is the account default.
    arn String
    ARN of the protect configuration.
    createdTimestamp String
    Time when the protect configuration was created, in RFC3339 format.
    deletionProtectionEnabled Boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules Map<String,String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    voiceCountryRules Map<String,String>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    accountDefault boolean
    Whether the protect configuration is the account default.
    arn string
    ARN of the protect configuration.
    createdTimestamp string
    Time when the protect configuration was created, in RFC3339 format.
    deletionProtectionEnabled boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules {[key: string]: string}
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    voiceCountryRules {[key: string]: string}

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    account_default bool
    Whether the protect configuration is the account default.
    arn str
    ARN of the protect configuration.
    created_timestamp str
    Time when the protect configuration was created, in RFC3339 format.
    deletion_protection_enabled bool
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mms_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcs_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sms_country_rules Mapping[str, str]
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    voice_country_rules Mapping[str, str]

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    accountDefault Boolean
    Whether the protect configuration is the account default.
    arn String
    ARN of the protect configuration.
    createdTimestamp String
    Time when the protect configuration was created, in RFC3339 format.
    deletionProtectionEnabled Boolean
    Whether deletion protection is enabled. When true, the protect configuration can't be deleted.
    mmsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is BLOCK.
    rcsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for RCS messages. Valid value is BLOCK.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    smsCountryRules Map<String>
    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are BLOCK, FILTER, and MONITOR.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    voiceCountryRules Map<String>

    Map of two-character ISO 3166-1 alpha-2 country codes to protect status for voice messages. Valid value is BLOCK.

    Note: AWS allows messages to every country by default. Each *_country_rules map lists only the countries that differ from that default, so ALLOW is not a valid value. Removing a country from a map resets it to ALLOW. Removing a map resets every country for that message type to ALLOW.

    Note: The countries each message type supports differ and are validated by AWS. See Supported countries and regions in the AWS End User Messaging SMS User Guide. FILTER and MONITOR incur additional charges for AIT risk evaluation. See Country rule modes for details.

    Import

    Note: AWS doesn’t allow deleting a protect configuration while it is associated with a configuration set, is the account default, or has deletion protection enabled.

    Identity Schema

    Required

    • id - (String) ID of the protect configuration.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import an AWS End User Messaging SMS Protect Configuration using the id. For example:

    $ pulumi import aws:pinpoint/smsvoicev2ProtectConfiguration:Smsvoicev2ProtectConfiguration example protect-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 aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial