Try AWS Native preview for resources not in the classic version.
aws.sns.SmsPreferences
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a way to set SNS SMS preferences.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const updateSmsPrefs = new aws.sns.SmsPreferences("update_sms_prefs", {});
import pulumi
import pulumi_aws as aws
update_sms_prefs = aws.sns.SmsPreferences("update_sms_prefs")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sns.NewSmsPreferences(ctx, "update_sms_prefs", 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 updateSmsPrefs = new Aws.Sns.SmsPreferences("update_sms_prefs");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sns.SmsPreferences;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var updateSmsPrefs = new SmsPreferences("updateSmsPrefs");
}
}
resources:
updateSmsPrefs:
type: aws:sns:SmsPreferences
name: update_sms_prefs
Create SmsPreferences Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmsPreferences(name: string, args?: SmsPreferencesArgs, opts?: CustomResourceOptions);
@overload
def SmsPreferences(resource_name: str,
args: Optional[SmsPreferencesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SmsPreferences(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_sender_id: Optional[str] = None,
default_sms_type: Optional[str] = None,
delivery_status_iam_role_arn: Optional[str] = None,
delivery_status_success_sampling_rate: Optional[str] = None,
monthly_spend_limit: Optional[int] = None,
usage_report_s3_bucket: Optional[str] = None)
func NewSmsPreferences(ctx *Context, name string, args *SmsPreferencesArgs, opts ...ResourceOption) (*SmsPreferences, error)
public SmsPreferences(string name, SmsPreferencesArgs? args = null, CustomResourceOptions? opts = null)
public SmsPreferences(String name, SmsPreferencesArgs args)
public SmsPreferences(String name, SmsPreferencesArgs args, CustomResourceOptions options)
type: aws:sns:SmsPreferences
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SmsPreferencesArgs
- 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 SmsPreferencesArgs
- 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 SmsPreferencesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmsPreferencesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmsPreferencesArgs
- 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 smsPreferencesResource = new Aws.Sns.SmsPreferences("smsPreferencesResource", new()
{
DefaultSenderId = "string",
DefaultSmsType = "string",
DeliveryStatusIamRoleArn = "string",
DeliveryStatusSuccessSamplingRate = "string",
MonthlySpendLimit = 0,
UsageReportS3Bucket = "string",
});
example, err := sns.NewSmsPreferences(ctx, "smsPreferencesResource", &sns.SmsPreferencesArgs{
DefaultSenderId: pulumi.String("string"),
DefaultSmsType: pulumi.String("string"),
DeliveryStatusIamRoleArn: pulumi.String("string"),
DeliveryStatusSuccessSamplingRate: pulumi.String("string"),
MonthlySpendLimit: pulumi.Int(0),
UsageReportS3Bucket: pulumi.String("string"),
})
var smsPreferencesResource = new SmsPreferences("smsPreferencesResource", SmsPreferencesArgs.builder()
.defaultSenderId("string")
.defaultSmsType("string")
.deliveryStatusIamRoleArn("string")
.deliveryStatusSuccessSamplingRate("string")
.monthlySpendLimit(0)
.usageReportS3Bucket("string")
.build());
sms_preferences_resource = aws.sns.SmsPreferences("smsPreferencesResource",
default_sender_id="string",
default_sms_type="string",
delivery_status_iam_role_arn="string",
delivery_status_success_sampling_rate="string",
monthly_spend_limit=0,
usage_report_s3_bucket="string")
const smsPreferencesResource = new aws.sns.SmsPreferences("smsPreferencesResource", {
defaultSenderId: "string",
defaultSmsType: "string",
deliveryStatusIamRoleArn: "string",
deliveryStatusSuccessSamplingRate: "string",
monthlySpendLimit: 0,
usageReportS3Bucket: "string",
});
type: aws:sns:SmsPreferences
properties:
defaultSenderId: string
defaultSmsType: string
deliveryStatusIamRoleArn: string
deliveryStatusSuccessSamplingRate: string
monthlySpendLimit: 0
usageReportS3Bucket: string
SmsPreferences Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SmsPreferences resource accepts the following input properties:
- Default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- Default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- Delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- Delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- Monthly
Spend intLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- Usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- Default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- Default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- Delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- Delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- Monthly
Spend intLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- Usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender StringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms StringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status StringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status StringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend IntegerLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report StringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend numberLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default_
sender_ strid - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default_
sms_ strtype - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery_
status_ striam_ role_ arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery_
status_ strsuccess_ sampling_ rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly_
spend_ intlimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage_
report_ strs3_ bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender StringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms StringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status StringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status StringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend NumberLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report StringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmsPreferences resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SmsPreferences Resource
Get an existing SmsPreferences 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?: SmsPreferencesState, opts?: CustomResourceOptions): SmsPreferences
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_sender_id: Optional[str] = None,
default_sms_type: Optional[str] = None,
delivery_status_iam_role_arn: Optional[str] = None,
delivery_status_success_sampling_rate: Optional[str] = None,
monthly_spend_limit: Optional[int] = None,
usage_report_s3_bucket: Optional[str] = None) -> SmsPreferences
func GetSmsPreferences(ctx *Context, name string, id IDInput, state *SmsPreferencesState, opts ...ResourceOption) (*SmsPreferences, error)
public static SmsPreferences Get(string name, Input<string> id, SmsPreferencesState? state, CustomResourceOptions? opts = null)
public static SmsPreferences get(String name, Output<String> id, SmsPreferencesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- Default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- Delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- Delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- Monthly
Spend intLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- Usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- Default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- Default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- Delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- Delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- Monthly
Spend intLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- Usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender StringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms StringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status StringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status StringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend IntegerLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report StringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender stringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms stringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status stringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status stringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend numberLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report stringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default_
sender_ strid - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default_
sms_ strtype - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery_
status_ striam_ role_ arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery_
status_ strsuccess_ sampling_ rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly_
spend_ intlimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage_
report_ strs3_ bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
- default
Sender StringId - A string, such as your business brand, that is displayed as the sender on the receiving device.
- default
Sms StringType - The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
- delivery
Status StringIam Role Arn - The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
- delivery
Status StringSuccess Sampling Rate - The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
- monthly
Spend NumberLimit - The maximum amount in USD that you are willing to spend each month to send SMS messages.
- usage
Report StringS3Bucket - The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
Import
You cannot import the SMS preferences.
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.
Try AWS Native preview for resources not in the classic version.