All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.pinpoint.SmsChannel Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.pinpoint;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.pinpoint.SmsChannelArgs;
import com.pulumi.aws.pinpoint.inputs.SmsChannelState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Use the `aws.pinpoint.SmsChannel` resource to manage Pinpoint SMS Channels.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.pinpoint.App;
 * import com.pulumi.aws.pinpoint.SmsChannel;
 * import com.pulumi.aws.pinpoint.SmsChannelArgs;
 * 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 app = new App("app");
 * 
 *         var sms = new SmsChannel("sms", SmsChannelArgs.builder()
 *             .applicationId(app.applicationId())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import the Pinpoint SMS Channel using the `application_id`. For example: * * ```sh * $ pulumi import aws:pinpoint/smsChannel:SmsChannel sms application-id * ``` * */ @ResourceType(type="aws:pinpoint/smsChannel:SmsChannel") public class SmsChannel extends com.pulumi.resources.CustomResource { /** * ID of the application. * */ @Export(name="applicationId", refs={String.class}, tree="[0]") private Output applicationId; /** * @return ID of the application. * */ public Output applicationId() { return this.applicationId; } /** * Whether the channel is enabled or disabled. By default, it is set to `true`. * */ @Export(name="enabled", refs={Boolean.class}, tree="[0]") private Output enabled; /** * @return Whether the channel is enabled or disabled. By default, it is set to `true`. * */ public Output> enabled() { return Codegen.optional(this.enabled); } /** * Maximum number of promotional messages that can be sent per second. * */ @Export(name="promotionalMessagesPerSecond", refs={Integer.class}, tree="[0]") private Output promotionalMessagesPerSecond; /** * @return Maximum number of promotional messages that can be sent per second. * */ public Output promotionalMessagesPerSecond() { return this.promotionalMessagesPerSecond; } /** * Identifier of the sender for your messages. * */ @Export(name="senderId", refs={String.class}, tree="[0]") private Output senderId; /** * @return Identifier of the sender for your messages. * */ public Output> senderId() { return Codegen.optional(this.senderId); } /** * Short Code registered with the phone provider. * */ @Export(name="shortCode", refs={String.class}, tree="[0]") private Output shortCode; /** * @return Short Code registered with the phone provider. * */ public Output> shortCode() { return Codegen.optional(this.shortCode); } /** * Maximum number of transactional messages per second that can be sent. * */ @Export(name="transactionalMessagesPerSecond", refs={Integer.class}, tree="[0]") private Output transactionalMessagesPerSecond; /** * @return Maximum number of transactional messages per second that can be sent. * */ public Output transactionalMessagesPerSecond() { return this.transactionalMessagesPerSecond; } /** * * @param name The _unique_ name of the resulting resource. */ public SmsChannel(java.lang.String name) { this(name, SmsChannelArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public SmsChannel(java.lang.String name, SmsChannelArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public SmsChannel(java.lang.String name, SmsChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:pinpoint/smsChannel:SmsChannel", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private SmsChannel(java.lang.String name, Output id, @Nullable SmsChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:pinpoint/smsChannel:SmsChannel", name, state, makeResourceOptions(options, id), false); } private static SmsChannelArgs makeArgs(SmsChannelArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? SmsChannelArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 * @param options Optional settings to control the behavior of the CustomResource. */ public static SmsChannel get(java.lang.String name, Output id, @Nullable SmsChannelState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SmsChannel(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy