published on Friday, Nov 13, 2026 by Pulumi
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:
- Deletion
Protection boolEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - Mms
Country Dictionary<string, string>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - Rcs
Country Dictionary<string, string>Rules - 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 Dictionary<string, string>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Voice
Country Dictionary<string, string>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- Deletion
Protection boolEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - Mms
Country map[string]stringRules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - Rcs
Country map[string]stringRules - 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 map[string]stringRules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - map[string]string
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Voice
Country map[string]stringRules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- deletion_
protection_ boolenabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms_
country_ map(string)rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs_
country_ map(string)rules - 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_ map(string)rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - map(string)
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - voice_
country_ map(string)rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- deletion
Protection BooleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country Map<String,String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country Map<String,String>Rules - 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 Map<String,String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - voice
Country Map<String,String>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- deletion
Protection booleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country {[key: string]: string}Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country {[key: string]: string}Rules - 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 {[key: string]: string}Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - voice
Country {[key: string]: string}Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- deletion_
protection_ boolenabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms_
country_ Mapping[str, str]rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs_
country_ Mapping[str, str]rules - 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_ Mapping[str, str]rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - voice_
country_ Mapping[str, str]rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- deletion
Protection BooleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country Map<String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country Map<String>Rules - 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 Map<String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Map<String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - voice
Country Map<String>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur 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:
- 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.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration 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.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration 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.
- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- account
Default Boolean - 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.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- account
Default boolean - 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.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration 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.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- account
Default Boolean - 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.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration 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) -> Smsvoicev2ProtectConfigurationfunc 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.
- 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 boolEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - Mms
Country Dictionary<string, string>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - Rcs
Country Dictionary<string, string>Rules - 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 Dictionary<string, string>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Voice
Country Dictionary<string, string>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur 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 boolEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - Mms
Country map[string]stringRules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - Rcs
Country map[string]stringRules - 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 map[string]stringRules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - map[string]string
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Voice
Country map[string]stringRules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur 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_ boolenabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms_
country_ map(string)rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs_
country_ map(string)rules - 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_ map(string)rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - map(string)
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - voice_
country_ map(string)rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- account
Default Boolean - 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 BooleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country Map<String,String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country Map<String,String>Rules - 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 Map<String,String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - voice
Country Map<String,String>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- account
Default boolean - 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 booleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country {[key: string]: string}Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country {[key: string]: string}Rules - 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 {[key: string]: string}Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - voice
Country {[key: string]: string}Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur 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_ boolenabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms_
country_ Mapping[str, str]rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs_
country_ Mapping[str, str]rules - 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_ Mapping[str, str]rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - voice_
country_ Mapping[str, str]rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur additional charges for AIT risk evaluation. See Country rule modes for details.
- account
Default Boolean - 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 BooleanEnabled - Whether deletion protection is enabled. When
true, the protect configuration can't be deleted. - mms
Country Map<String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for MMS messages. Valid value is
BLOCK. - rcs
Country Map<String>Rules - 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 Map<String>Rules - Map of two-character ISO 3166-1 alpha-2 country codes to protect status for SMS messages. Valid values are
BLOCK,FILTER, andMONITOR. - Map<String>
- Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - voice
Country Map<String>Rules 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_rulesmap lists only the countries that differ from that default, soALLOWis not a valid value. Removing a country from a map resets it toALLOW. Removing a map resets every country for that message type toALLOW.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.
FILTERandMONITORincur 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
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi