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

com.pulumi.alicloud.MscSubSubscription Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud;

import com.pulumi.alicloud.MscSubSubscriptionArgs;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.inputs.MscSubSubscriptionState;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a Msc Sub Subscription resource.
 * 
 * > **NOTE:** Available since v1.135.0.
 * 
 * ## Example Usage
 * 
 * Basic Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.alicloud.MscSubSubscription;
 * import com.pulumi.alicloud.MscSubSubscriptionArgs;
 * 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 example = new MscSubSubscription("example", MscSubSubscriptionArgs.builder()
 *             .itemName("Notifications of Product Expiration")
 *             .smsStatus("1")
 *             .emailStatus("1")
 *             .pmsgStatus("1")
 *             .ttsStatus("1")
 *             .webhookStatus("0")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Msc Sub Subscription can be imported using the id, e.g. * * ```sh * $ pulumi import alicloud:index/mscSubSubscription:MscSubSubscription example <id> * ``` * */ @ResourceType(type="alicloud:index/mscSubSubscription:MscSubSubscription") public class MscSubSubscription extends com.pulumi.resources.CustomResource { /** * The channel the Subscription. * */ @Export(name="channel", refs={String.class}, tree="[0]") private Output channel; /** * @return The channel the Subscription. * */ public Output channel() { return this.channel; } /** * The ids of subscribed contacts. * **NOTE:** There is a potential diff error because of the order of `contact_ids` values indefinite. * So, from version 1.161.0, `contact_ids` type has been updated as `set` from `list`, * and you can use tolist to convert it to a list. * */ @Export(name="contactIds", refs={List.class,String.class}, tree="[0,1]") private Output> contactIds; /** * @return The ids of subscribed contacts. * **NOTE:** There is a potential diff error because of the order of `contact_ids` values indefinite. * So, from version 1.161.0, `contact_ids` type has been updated as `set` from `list`, * and you can use tolist to convert it to a list. * */ public Output> contactIds() { return this.contactIds; } /** * The description of the Subscription. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The description of the Subscription. * */ public Output description() { return this.description; } /** * The status of email subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ @Export(name="emailStatus", refs={Integer.class}, tree="[0]") private Output emailStatus; /** * @return The status of email subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ public Output> emailStatus() { return Codegen.optional(this.emailStatus); } /** * The name of the Subscription. **NOTE:** You should use the `alicloud.getMscSubSubscriptions` to query the available subscription item name. * */ @Export(name="itemName", refs={String.class}, tree="[0]") private Output itemName; /** * @return The name of the Subscription. **NOTE:** You should use the `alicloud.getMscSubSubscriptions` to query the available subscription item name. * */ public Output itemName() { return this.itemName; } /** * The status of pmsg subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ @Export(name="pmsgStatus", refs={Integer.class}, tree="[0]") private Output pmsgStatus; /** * @return The status of pmsg subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ public Output> pmsgStatus() { return Codegen.optional(this.pmsgStatus); } /** * The status of sms subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ @Export(name="smsStatus", refs={Integer.class}, tree="[0]") private Output smsStatus; /** * @return The status of sms subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ public Output> smsStatus() { return Codegen.optional(this.smsStatus); } /** * The status of tts subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ @Export(name="ttsStatus", refs={Integer.class}, tree="[0]") private Output ttsStatus; /** * @return The status of tts subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ public Output> ttsStatus() { return Codegen.optional(this.ttsStatus); } /** * The ids of subscribed webhooks. * */ @Export(name="webhookIds", refs={List.class,String.class}, tree="[0,1]") private Output> webhookIds; /** * @return The ids of subscribed webhooks. * */ public Output>> webhookIds() { return Codegen.optional(this.webhookIds); } /** * The status of webhook subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ @Export(name="webhookStatus", refs={Integer.class}, tree="[0]") private Output webhookStatus; /** * @return The status of webhook subscription. Valid values: `-1`, `-2`, `0`, `1`. `-1` means required, `-2` means banned; `1` means subscribed; `0` means not subscribed. * */ public Output> webhookStatus() { return Codegen.optional(this.webhookStatus); } /** * * @param name The _unique_ name of the resulting resource. */ public MscSubSubscription(String name) { this(name, MscSubSubscriptionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MscSubSubscription(String name, MscSubSubscriptionArgs 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 MscSubSubscription(String name, MscSubSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("alicloud:index/mscSubSubscription:MscSubSubscription", name, args == null ? MscSubSubscriptionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } private MscSubSubscription(String name, Output id, @Nullable MscSubSubscriptionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("alicloud:index/mscSubSubscription:MscSubSubscription", name, state, makeResourceOptions(options, id)); } 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 MscSubSubscription get(String name, Output id, @Nullable MscSubSubscriptionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MscSubSubscription(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy