sms

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/sms"

)

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) ElementType() reflect.Type

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 (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 (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

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

func (o ShortUrlOutput) ShortUrlName() pulumi.StringOutput

The name of the resource.

func (ShortUrlOutput) SourceUrl

func (o ShortUrlOutput) SourceUrl() pulumi.StringOutput

The original link address.

func (ShortUrlOutput) Status

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL