@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
77 lines • 3.35 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmsPreferences = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a way to set SNS SMS preferences.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const updateSmsPrefs = new aws.sns.SmsPreferences("update_sms_prefs", {});
* ```
*
* ## Import
*
* You cannot import the SMS preferences.
*/
class SmsPreferences extends pulumi.CustomResource {
/**
* Get an existing SmsPreferences resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new SmsPreferences(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SmsPreferences. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === SmsPreferences.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["defaultSenderId"] = state?.defaultSenderId;
resourceInputs["defaultSmsType"] = state?.defaultSmsType;
resourceInputs["deliveryStatusIamRoleArn"] = state?.deliveryStatusIamRoleArn;
resourceInputs["deliveryStatusSuccessSamplingRate"] = state?.deliveryStatusSuccessSamplingRate;
resourceInputs["monthlySpendLimit"] = state?.monthlySpendLimit;
resourceInputs["region"] = state?.region;
resourceInputs["usageReportS3Bucket"] = state?.usageReportS3Bucket;
}
else {
const args = argsOrState;
resourceInputs["defaultSenderId"] = args?.defaultSenderId;
resourceInputs["defaultSmsType"] = args?.defaultSmsType;
resourceInputs["deliveryStatusIamRoleArn"] = args?.deliveryStatusIamRoleArn;
resourceInputs["deliveryStatusSuccessSamplingRate"] = args?.deliveryStatusSuccessSamplingRate;
resourceInputs["monthlySpendLimit"] = args?.monthlySpendLimit;
resourceInputs["region"] = args?.region;
resourceInputs["usageReportS3Bucket"] = args?.usageReportS3Bucket;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SmsPreferences.__pulumiType, name, resourceInputs, opts);
}
}
exports.SmsPreferences = SmsPreferences;
/** @internal */
SmsPreferences.__pulumiType = 'aws:sns/smsPreferences:SmsPreferences';
//# sourceMappingURL=smsPreferences.js.map
;