ShortUrl

class ShortUrl : KotlinCustomResource

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>

Properties

Link copied to clipboard
val effectiveDays: Output<Int>

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 id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val shortUrlName: Output<String>

The name of the resource.

Link copied to clipboard
val sourceUrl: Output<String>

The original link address.

Link copied to clipboard
val status: Output<String>

Short chain status.

Link copied to clipboard
val urn: Output<String>