ShortUrlArgs

data class ShortUrlArgs(val effectiveDays: Output<Int>? = null, val shortUrlName: Output<String>? = null, val sourceUrl: Output<String>? = null) : ConvertibleToJava<ShortUrlArgs>

Provides a SMS Short Url resource. For information about SMS Short Url and how to use it, see What is Short Url.

NOTE: Available in v1.178.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sms.ShortUrl;
import com.pulumi.alicloud.sms.ShortUrlArgs;
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 ShortUrl("example", ShortUrlArgs.builder()
.effectiveDays(30)
.shortUrlName("example_value")
.sourceUrl("example_value")
.build());
}
}

Import

SMS Short Url can be imported using the id, e.g.

$ pulumi import alicloud:sms/shortUrl:ShortUrl example <id>

Constructors

Link copied to clipboard
fun ShortUrlArgs(effectiveDays: Output<Int>? = null, shortUrlName: Output<String>? = null, sourceUrl: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ShortUrlArgs

Properties

Link copied to clipboard
val effectiveDays: Output<Int>? = null

Short chain service use validity period. Valid values: 30, 60, 90. The unit is days, and the maximum validity period is 90 days.

Link copied to clipboard
val shortUrlName: Output<String>? = null

The name of the resource.

Link copied to clipboard
val sourceUrl: Output<String>? = null

The original link address.