Documentation
¶
Index ¶
- type ShortUrl
- type ShortUrlArgs
- type ShortUrlArray
- type ShortUrlArrayInput
- type ShortUrlArrayOutput
- type ShortUrlInput
- type ShortUrlMap
- type ShortUrlMapInput
- type ShortUrlMapOutput
- type ShortUrlOutput
- func (o ShortUrlOutput) EffectiveDays() pulumi.IntOutput
- func (ShortUrlOutput) ElementType() reflect.Type
- func (o ShortUrlOutput) ShortUrlName() pulumi.StringOutput
- func (o ShortUrlOutput) SourceUrl() pulumi.StringOutput
- func (o ShortUrlOutput) Status() pulumi.StringOutput
- func (o ShortUrlOutput) ToShortUrlOutput() ShortUrlOutput
- func (o ShortUrlOutput) ToShortUrlOutputWithContext(ctx context.Context) ShortUrlOutput
- type ShortUrlState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortUrl ¶
type ShortUrl struct { pulumi.CustomResourceState // Short chain service use validity period. Valid values: `30`, `60`, `90`. The unit is days, and the maximum validity period is 90 days. EffectiveDays pulumi.IntOutput `pulumi:"effectiveDays"` // The name of the resource. ShortUrlName pulumi.StringOutput `pulumi:"shortUrlName"` // The original link address. SourceUrl pulumi.StringOutput `pulumi:"sourceUrl"` // Short chain status. Status pulumi.StringOutput `pulumi:"status"` }
Provides a SMS Short Url resource.
For information about SMS Short Url and how to use it, see [What is Short Url](https://help.aliyun.com/document_detail/419291.html).
> **NOTE:** Available in v1.178.0+.
## Example Usage
Basic Usage ¶
```go 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 }) }
```
## Import
SMS Short Url can be imported using the id, e.g.
```sh
$ pulumi import alicloud:sms/shortUrl:ShortUrl example <id>
```
func GetShortUrl ¶
func GetShortUrl(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ShortUrlState, opts ...pulumi.ResourceOption) (*ShortUrl, error)
GetShortUrl gets an existing ShortUrl resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewShortUrl ¶
func NewShortUrl(ctx *pulumi.Context, name string, args *ShortUrlArgs, opts ...pulumi.ResourceOption) (*ShortUrl, error)
NewShortUrl registers a new resource with the given unique name, arguments, and options.
func (*ShortUrl) ElementType ¶
func (*ShortUrl) ToShortUrlOutput ¶
func (i *ShortUrl) ToShortUrlOutput() ShortUrlOutput
func (*ShortUrl) ToShortUrlOutputWithContext ¶
func (i *ShortUrl) ToShortUrlOutputWithContext(ctx context.Context) ShortUrlOutput
type ShortUrlArgs ¶
type ShortUrlArgs struct { // Short chain service use validity period. Valid values: `30`, `60`, `90`. The unit is days, and the maximum validity period is 90 days. EffectiveDays pulumi.IntInput // The name of the resource. ShortUrlName pulumi.StringInput // The original link address. SourceUrl pulumi.StringInput }
The set of arguments for constructing a ShortUrl resource.
func (ShortUrlArgs) ElementType ¶
func (ShortUrlArgs) ElementType() reflect.Type
type ShortUrlArray ¶
type ShortUrlArray []ShortUrlInput
func (ShortUrlArray) ElementType ¶
func (ShortUrlArray) ElementType() reflect.Type
func (ShortUrlArray) ToShortUrlArrayOutput ¶
func (i ShortUrlArray) ToShortUrlArrayOutput() ShortUrlArrayOutput
func (ShortUrlArray) ToShortUrlArrayOutputWithContext ¶
func (i ShortUrlArray) ToShortUrlArrayOutputWithContext(ctx context.Context) ShortUrlArrayOutput
type ShortUrlArrayInput ¶
type ShortUrlArrayInput interface { pulumi.Input ToShortUrlArrayOutput() ShortUrlArrayOutput ToShortUrlArrayOutputWithContext(context.Context) ShortUrlArrayOutput }
ShortUrlArrayInput is an input type that accepts ShortUrlArray and ShortUrlArrayOutput values. You can construct a concrete instance of `ShortUrlArrayInput` via:
ShortUrlArray{ ShortUrlArgs{...} }
type ShortUrlArrayOutput ¶
type ShortUrlArrayOutput struct{ *pulumi.OutputState }
func (ShortUrlArrayOutput) ElementType ¶
func (ShortUrlArrayOutput) ElementType() reflect.Type
func (ShortUrlArrayOutput) Index ¶
func (o ShortUrlArrayOutput) Index(i pulumi.IntInput) ShortUrlOutput
func (ShortUrlArrayOutput) ToShortUrlArrayOutput ¶
func (o ShortUrlArrayOutput) ToShortUrlArrayOutput() ShortUrlArrayOutput
func (ShortUrlArrayOutput) ToShortUrlArrayOutputWithContext ¶
func (o ShortUrlArrayOutput) ToShortUrlArrayOutputWithContext(ctx context.Context) ShortUrlArrayOutput
type ShortUrlInput ¶
type ShortUrlInput interface { pulumi.Input ToShortUrlOutput() ShortUrlOutput ToShortUrlOutputWithContext(ctx context.Context) ShortUrlOutput }
type ShortUrlMap ¶
type ShortUrlMap map[string]ShortUrlInput
func (ShortUrlMap) ElementType ¶
func (ShortUrlMap) ElementType() reflect.Type
func (ShortUrlMap) ToShortUrlMapOutput ¶
func (i ShortUrlMap) ToShortUrlMapOutput() ShortUrlMapOutput
func (ShortUrlMap) ToShortUrlMapOutputWithContext ¶
func (i ShortUrlMap) ToShortUrlMapOutputWithContext(ctx context.Context) ShortUrlMapOutput
type ShortUrlMapInput ¶
type ShortUrlMapInput interface { pulumi.Input ToShortUrlMapOutput() ShortUrlMapOutput ToShortUrlMapOutputWithContext(context.Context) ShortUrlMapOutput }
ShortUrlMapInput is an input type that accepts ShortUrlMap and ShortUrlMapOutput values. You can construct a concrete instance of `ShortUrlMapInput` via:
ShortUrlMap{ "key": ShortUrlArgs{...} }
type ShortUrlMapOutput ¶
type ShortUrlMapOutput struct{ *pulumi.OutputState }
func (ShortUrlMapOutput) ElementType ¶
func (ShortUrlMapOutput) ElementType() reflect.Type
func (ShortUrlMapOutput) MapIndex ¶
func (o ShortUrlMapOutput) MapIndex(k pulumi.StringInput) ShortUrlOutput
func (ShortUrlMapOutput) ToShortUrlMapOutput ¶
func (o ShortUrlMapOutput) ToShortUrlMapOutput() ShortUrlMapOutput
func (ShortUrlMapOutput) ToShortUrlMapOutputWithContext ¶
func (o ShortUrlMapOutput) ToShortUrlMapOutputWithContext(ctx context.Context) ShortUrlMapOutput
type ShortUrlOutput ¶
type ShortUrlOutput struct{ *pulumi.OutputState }
func (ShortUrlOutput) EffectiveDays ¶ added in v3.27.0
func (o ShortUrlOutput) EffectiveDays() pulumi.IntOutput
Short chain service use validity period. Valid values: `30`, `60`, `90`. The unit is days, and the maximum validity period is 90 days.
func (ShortUrlOutput) ElementType ¶
func (ShortUrlOutput) ElementType() reflect.Type
func (ShortUrlOutput) ShortUrlName ¶ added in v3.27.0
func (o ShortUrlOutput) ShortUrlName() pulumi.StringOutput
The name of the resource.
func (ShortUrlOutput) SourceUrl ¶ added in v3.27.0
func (o ShortUrlOutput) SourceUrl() pulumi.StringOutput
The original link address.
func (ShortUrlOutput) Status ¶ added in v3.27.0
func (o ShortUrlOutput) Status() pulumi.StringOutput
Short chain status.
func (ShortUrlOutput) ToShortUrlOutput ¶
func (o ShortUrlOutput) ToShortUrlOutput() ShortUrlOutput
func (ShortUrlOutput) ToShortUrlOutputWithContext ¶
func (o ShortUrlOutput) ToShortUrlOutputWithContext(ctx context.Context) ShortUrlOutput
type ShortUrlState ¶
type ShortUrlState struct { // Short chain service use validity period. Valid values: `30`, `60`, `90`. The unit is days, and the maximum validity period is 90 days. EffectiveDays pulumi.IntPtrInput // The name of the resource. ShortUrlName pulumi.StringPtrInput // The original link address. SourceUrl pulumi.StringPtrInput // Short chain status. Status pulumi.StringPtrInput }
func (ShortUrlState) ElementType ¶
func (ShortUrlState) ElementType() reflect.Type