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 since v1.178.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.sms.ShortUrl("example", {
effectiveDays: 30,
shortUrlName: "example_value",
sourceUrl: "example_value",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.sms.ShortUrl("example",
effective_days=30,
short_url_name="example_value",
source_url="example_value")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Sms.ShortUrl("example", new()
{
EffectiveDays = 30,
ShortUrlName = "example_value",
SourceUrl = "example_value",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sms.NewShortUrl(ctx, "example", &sms.ShortUrlArgs{
EffectiveDays: pulumi.Int(30),
ShortUrlName: pulumi.String("example_value"),
SourceUrl: pulumi.String("example_value"),
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
example:
type: alicloud:sms:ShortUrl
properties:
effectiveDays: 30
shortUrlName: example_value
sourceUrl: example_value

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>