SmsPreferences
Provides a way to set SNS SMS preferences.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var updateSmsPrefs = new Aws.Sns.SmsPreferences("updateSmsPrefs", new Aws.Sns.SmsPreferencesArgs
{
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/sns"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sns.NewSmsPreferences(ctx, "updateSmsPrefs", nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
update_sms_prefs = aws.sns.SmsPreferences("updateSmsPrefs")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const updateSmsPrefs = new aws.sns.SmsPreferences("update_sms_prefs", {});Create a SmsPreferences Resource
new SmsPreferences(name: string, args?: SmsPreferencesArgs, opts?: CustomResourceOptions);def SmsPreferences(resource_name, opts=None, default_sender_id=None, default_sms_type=None, delivery_status_iam_role_arn=None, delivery_status_success_sampling_rate=None, monthly_spend_limit=None, usage_report_s3_bucket=None, __props__=None);func NewSmsPreferences(ctx *Context, name string, args *SmsPreferencesArgs, opts ...ResourceOption) (*SmsPreferences, error)public SmsPreferences(string name, SmsPreferencesArgs? args = null, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
SmsPreferences Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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 stringLimit 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 stringLimit 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 stringLimit 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_ strlimit 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmsPreferences resource produces the following output properties:
Look up an 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): SmsPreferencesstatic get(resource_name, id, opts=None, default_sender_id=None, default_sms_type=None, delivery_status_iam_role_arn=None, delivery_status_success_sampling_rate=None, monthly_spend_limit=None, usage_report_s3_bucket=None, __props__=None);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)- 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.
The following state arguments are supported:
- 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 stringLimit 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 stringLimit 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 stringLimit 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_ strlimit 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.