Package com.pulumi.aws.sns
Class SmsPreferences
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.sns.SmsPreferences
-
public class SmsPreferences extends com.pulumi.resources.CustomResourceProvides a way to set SNS SMS preferences. ## Example Usage
## Import You cannot import the SMS preferences.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.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 updateSmsPrefs = new SmsPreferences("updateSmsPrefs"); } }
-
-
Constructor Summary
Constructors Constructor Description SmsPreferences(java.lang.String name)SmsPreferences(java.lang.String name, SmsPreferencesArgs args)SmsPreferences(java.lang.String name, SmsPreferencesArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>defaultSenderId()com.pulumi.core.Output<java.util.Optional<java.lang.String>>defaultSmsType()com.pulumi.core.Output<java.util.Optional<java.lang.String>>deliveryStatusIamRoleArn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>deliveryStatusSuccessSamplingRate()static SmsPreferencesget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, SmsPreferencesState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.Integer>monthlySpendLimit()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.lang.String>>usageReportS3Bucket()
-
-
-
Constructor Detail
-
SmsPreferences
public SmsPreferences(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
SmsPreferences
public SmsPreferences(java.lang.String name, @Nullable SmsPreferencesArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
SmsPreferences
public SmsPreferences(java.lang.String name, @Nullable SmsPreferencesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
defaultSenderId
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> defaultSenderId()
- Returns:
- A string, such as your business brand, that is displayed as the sender on the receiving device.
-
defaultSmsType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> defaultSmsType()
- Returns:
- The type of SMS message that you will send by default. Possible values are: Promotional, Transactional
-
deliveryStatusIamRoleArn
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> deliveryStatusIamRoleArn()
- Returns:
- The ARN of the IAM role that allows Amazon SNS to write logs about SMS deliveries in CloudWatch Logs.
-
deliveryStatusSuccessSamplingRate
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> deliveryStatusSuccessSamplingRate()
- Returns:
- The percentage of successful SMS deliveries for which Amazon SNS will write logs in CloudWatch Logs. The value must be between 0 and 100.
-
monthlySpendLimit
public com.pulumi.core.Output<java.lang.Integer> monthlySpendLimit()
- Returns:
- The maximum amount in USD that you are willing to spend each month to send SMS messages.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
usageReportS3Bucket
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> usageReportS3Bucket()
- Returns:
- The name of the Amazon S3 bucket to receive daily SMS usage reports from Amazon SNS.
-
get
public static SmsPreferences get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable SmsPreferencesState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-