Documentation
¶
Index ¶
- type GetQueuesArgs
- type GetQueuesQueue
- type GetQueuesQueueArgs
- type GetQueuesQueueArray
- type GetQueuesQueueArrayInput
- type GetQueuesQueueArrayOutput
- func (GetQueuesQueueArrayOutput) ElementType() reflect.Type
- func (o GetQueuesQueueArrayOutput) Index(i pulumi.IntInput) GetQueuesQueueOutput
- func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput
- func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutputWithContext(ctx context.Context) GetQueuesQueueArrayOutput
- type GetQueuesQueueInput
- type GetQueuesQueueOutput
- func (o GetQueuesQueueOutput) DelaySeconds() pulumi.IntOutput
- func (GetQueuesQueueOutput) ElementType() reflect.Type
- func (o GetQueuesQueueOutput) Id() pulumi.StringOutput
- func (o GetQueuesQueueOutput) MaximumMessageSize() pulumi.IntOutput
- func (o GetQueuesQueueOutput) MessageRetentionPeriod() pulumi.IntOutput
- func (o GetQueuesQueueOutput) Name() pulumi.StringOutput
- func (o GetQueuesQueueOutput) PollingWaitSeconds() pulumi.IntOutput
- func (o GetQueuesQueueOutput) ToGetQueuesQueueOutput() GetQueuesQueueOutput
- func (o GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
- func (o GetQueuesQueueOutput) VisibilityTimeouts() pulumi.IntOutput
- type GetQueuesResult
- type GetTopicSubscriptionsArgs
- type GetTopicSubscriptionsResult
- type GetTopicSubscriptionsSubscription
- type GetTopicSubscriptionsSubscriptionArgs
- func (GetTopicSubscriptionsSubscriptionArgs) ElementType() reflect.Type
- func (i GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutput() GetTopicSubscriptionsSubscriptionOutput
- func (i GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionOutput
- type GetTopicSubscriptionsSubscriptionArray
- func (GetTopicSubscriptionsSubscriptionArray) ElementType() reflect.Type
- func (i GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutput() GetTopicSubscriptionsSubscriptionArrayOutput
- func (i GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionArrayOutput
- type GetTopicSubscriptionsSubscriptionArrayInput
- type GetTopicSubscriptionsSubscriptionArrayOutput
- func (GetTopicSubscriptionsSubscriptionArrayOutput) ElementType() reflect.Type
- func (o GetTopicSubscriptionsSubscriptionArrayOutput) Index(i pulumi.IntInput) GetTopicSubscriptionsSubscriptionOutput
- func (o GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutput() GetTopicSubscriptionsSubscriptionArrayOutput
- func (o GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionArrayOutput
- type GetTopicSubscriptionsSubscriptionInput
- type GetTopicSubscriptionsSubscriptionOutput
- func (GetTopicSubscriptionsSubscriptionOutput) ElementType() reflect.Type
- func (o GetTopicSubscriptionsSubscriptionOutput) Endpoint() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) FilterTag() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) Id() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) Name() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) NotifyContentFormat() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) NotifyStrategy() pulumi.StringOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutput() GetTopicSubscriptionsSubscriptionOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionOutput
- func (o GetTopicSubscriptionsSubscriptionOutput) TopicName() pulumi.StringOutput
- type GetTopicsArgs
- type GetTopicsResult
- type GetTopicsTopic
- type GetTopicsTopicArgs
- type GetTopicsTopicArray
- type GetTopicsTopicArrayInput
- type GetTopicsTopicArrayOutput
- func (GetTopicsTopicArrayOutput) ElementType() reflect.Type
- func (o GetTopicsTopicArrayOutput) Index(i pulumi.IntInput) GetTopicsTopicOutput
- func (o GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutput() GetTopicsTopicArrayOutput
- func (o GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutputWithContext(ctx context.Context) GetTopicsTopicArrayOutput
- type GetTopicsTopicInput
- type GetTopicsTopicOutput
- func (GetTopicsTopicOutput) ElementType() reflect.Type
- func (o GetTopicsTopicOutput) Id() pulumi.StringOutput
- func (o GetTopicsTopicOutput) LoggingEnabled() pulumi.BoolOutput
- func (o GetTopicsTopicOutput) MaximumMessageSize() pulumi.IntOutput
- func (o GetTopicsTopicOutput) Name() pulumi.StringOutput
- func (o GetTopicsTopicOutput) ToGetTopicsTopicOutput() GetTopicsTopicOutput
- func (o GetTopicsTopicOutput) ToGetTopicsTopicOutputWithContext(ctx context.Context) GetTopicsTopicOutput
- type Queue
- type QueueArgs
- type QueueState
- type Topic
- type TopicArgs
- type TopicState
- type TopicSubscription
- type TopicSubscriptionArgs
- type TopicSubscriptionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetQueuesArgs ¶
type GetQueuesArgs struct { // A string to filter resulting queues by their name prefixs. NamePrefix *string `pulumi:"namePrefix"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getQueues.
type GetQueuesQueue ¶
type GetQueuesQueue struct { // This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued. DelaySeconds int `pulumi:"delaySeconds"` // The id of the queue, The value is set to `name`. Id string `pulumi:"id"` // This indicates the maximum length, in bytes, of any message body sent to the queue. MaximumMessageSize int `pulumi:"maximumMessageSize"` // Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue. MessageRetentionPeriod int `pulumi:"messageRetentionPeriod"` // The name of the queue Name string `pulumi:"name"` // Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out. PollingWaitSeconds int `pulumi:"pollingWaitSeconds"` // Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period. VisibilityTimeouts int `pulumi:"visibilityTimeouts"` }
type GetQueuesQueueArgs ¶
type GetQueuesQueueArgs struct { // This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued. DelaySeconds pulumi.IntInput `pulumi:"delaySeconds"` // The id of the queue, The value is set to `name`. Id pulumi.StringInput `pulumi:"id"` // This indicates the maximum length, in bytes, of any message body sent to the queue. MaximumMessageSize pulumi.IntInput `pulumi:"maximumMessageSize"` // Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue. MessageRetentionPeriod pulumi.IntInput `pulumi:"messageRetentionPeriod"` // The name of the queue Name pulumi.StringInput `pulumi:"name"` // Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out. PollingWaitSeconds pulumi.IntInput `pulumi:"pollingWaitSeconds"` // Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period. VisibilityTimeouts pulumi.IntInput `pulumi:"visibilityTimeouts"` }
func (GetQueuesQueueArgs) ElementType ¶
func (GetQueuesQueueArgs) ElementType() reflect.Type
func (GetQueuesQueueArgs) ToGetQueuesQueueOutput ¶
func (i GetQueuesQueueArgs) ToGetQueuesQueueOutput() GetQueuesQueueOutput
func (GetQueuesQueueArgs) ToGetQueuesQueueOutputWithContext ¶
func (i GetQueuesQueueArgs) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
type GetQueuesQueueArray ¶
type GetQueuesQueueArray []GetQueuesQueueInput
func (GetQueuesQueueArray) ElementType ¶
func (GetQueuesQueueArray) ElementType() reflect.Type
func (GetQueuesQueueArray) ToGetQueuesQueueArrayOutput ¶
func (i GetQueuesQueueArray) ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput
func (GetQueuesQueueArray) ToGetQueuesQueueArrayOutputWithContext ¶
func (i GetQueuesQueueArray) ToGetQueuesQueueArrayOutputWithContext(ctx context.Context) GetQueuesQueueArrayOutput
type GetQueuesQueueArrayInput ¶
type GetQueuesQueueArrayInput interface { pulumi.Input ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput ToGetQueuesQueueArrayOutputWithContext(context.Context) GetQueuesQueueArrayOutput }
GetQueuesQueueArrayInput is an input type that accepts GetQueuesQueueArray and GetQueuesQueueArrayOutput values. You can construct a concrete instance of `GetQueuesQueueArrayInput` via:
GetQueuesQueueArray{ GetQueuesQueueArgs{...} }
type GetQueuesQueueArrayOutput ¶
type GetQueuesQueueArrayOutput struct{ *pulumi.OutputState }
func (GetQueuesQueueArrayOutput) ElementType ¶
func (GetQueuesQueueArrayOutput) ElementType() reflect.Type
func (GetQueuesQueueArrayOutput) Index ¶
func (o GetQueuesQueueArrayOutput) Index(i pulumi.IntInput) GetQueuesQueueOutput
func (GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutput ¶
func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput
func (GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutputWithContext ¶
func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutputWithContext(ctx context.Context) GetQueuesQueueArrayOutput
type GetQueuesQueueInput ¶
type GetQueuesQueueInput interface { pulumi.Input ToGetQueuesQueueOutput() GetQueuesQueueOutput ToGetQueuesQueueOutputWithContext(context.Context) GetQueuesQueueOutput }
GetQueuesQueueInput is an input type that accepts GetQueuesQueueArgs and GetQueuesQueueOutput values. You can construct a concrete instance of `GetQueuesQueueInput` via:
GetQueuesQueueArgs{...}
type GetQueuesQueueOutput ¶
type GetQueuesQueueOutput struct{ *pulumi.OutputState }
func (GetQueuesQueueOutput) DelaySeconds ¶
func (o GetQueuesQueueOutput) DelaySeconds() pulumi.IntOutput
This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued.
func (GetQueuesQueueOutput) ElementType ¶
func (GetQueuesQueueOutput) ElementType() reflect.Type
func (GetQueuesQueueOutput) Id ¶
func (o GetQueuesQueueOutput) Id() pulumi.StringOutput
The id of the queue, The value is set to `name`.
func (GetQueuesQueueOutput) MaximumMessageSize ¶
func (o GetQueuesQueueOutput) MaximumMessageSize() pulumi.IntOutput
This indicates the maximum length, in bytes, of any message body sent to the queue.
func (GetQueuesQueueOutput) MessageRetentionPeriod ¶
func (o GetQueuesQueueOutput) MessageRetentionPeriod() pulumi.IntOutput
Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue.
func (GetQueuesQueueOutput) Name ¶
func (o GetQueuesQueueOutput) Name() pulumi.StringOutput
The name of the queue
func (GetQueuesQueueOutput) PollingWaitSeconds ¶
func (o GetQueuesQueueOutput) PollingWaitSeconds() pulumi.IntOutput
Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out.
func (GetQueuesQueueOutput) ToGetQueuesQueueOutput ¶
func (o GetQueuesQueueOutput) ToGetQueuesQueueOutput() GetQueuesQueueOutput
func (GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext ¶
func (o GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
func (GetQueuesQueueOutput) VisibilityTimeouts ¶
func (o GetQueuesQueueOutput) VisibilityTimeouts() pulumi.IntOutput
Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period.
type GetQueuesResult ¶
type GetQueuesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NamePrefix *string `pulumi:"namePrefix"` // A list of queue names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` // A list of queues. Each element contains the following attributes: Queues []GetQueuesQueue `pulumi:"queues"` }
A collection of values returned by getQueues.
func GetQueues ¶
func GetQueues(ctx *pulumi.Context, args *GetQueuesArgs, opts ...pulumi.InvokeOption) (*GetQueuesResult, error)
This data source provides a list of MNS queues in an Alibaba Cloud account according to the specified parameters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/mns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf-" queues, err := mns.GetQueues(ctx, &mns.GetQueuesArgs{ NamePrefix: &opt0, }, nil) if err != nil { return err } ctx.Export("firstQueueId", queues.Queues[0].Id) return nil }) }
```
type GetTopicSubscriptionsArgs ¶
type GetTopicSubscriptionsArgs struct { // A string to filter resulting subscriptions of the topic by their name prefixs. NamePrefix *string `pulumi:"namePrefix"` OutputFile *string `pulumi:"outputFile"` // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName string `pulumi:"topicName"` }
A collection of arguments for invoking getTopicSubscriptions.
type GetTopicSubscriptionsResult ¶
type GetTopicSubscriptionsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NamePrefix *string `pulumi:"namePrefix"` // A list of subscription names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` // A list of subscriptions. Each element contains the following attributes: Subscriptions []GetTopicSubscriptionsSubscription `pulumi:"subscriptions"` TopicName string `pulumi:"topicName"` }
A collection of values returned by getTopicSubscriptions.
func GetTopicSubscriptions ¶
func GetTopicSubscriptions(ctx *pulumi.Context, args *GetTopicSubscriptionsArgs, opts ...pulumi.InvokeOption) (*GetTopicSubscriptionsResult, error)
This data source provides a list of MNS topic subscriptions in an Alibaba Cloud account according to the specified parameters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/mns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf-" subscriptions, err := mns.GetTopicSubscriptions(ctx, &mns.GetTopicSubscriptionsArgs{ NamePrefix: &opt0, TopicName: "topic_name", }, nil) if err != nil { return err } ctx.Export("firstTopicSubscriptionId", subscriptions.Subscriptions[0].Id) return nil }) }
```
type GetTopicSubscriptionsSubscription ¶
type GetTopicSubscriptionsSubscription struct { // Describe the terminal address of the message received in this subscription. // * `filterTag`- A string to filter resulting messages of the topic by their message tag. Endpoint string `pulumi:"endpoint"` FilterTag string `pulumi:"filterTag"` // The ID of the topic subscription. The value is set to `name`. Id string `pulumi:"id"` // The name of the subscription. // * `topicName`- The topic which The subscription belongs to was named with the name. Name string `pulumi:"name"` // The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. NotifyContentFormat string `pulumi:"notifyContentFormat"` // The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. NotifyStrategy string `pulumi:"notifyStrategy"` // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName string `pulumi:"topicName"` }
type GetTopicSubscriptionsSubscriptionArgs ¶
type GetTopicSubscriptionsSubscriptionArgs struct { // Describe the terminal address of the message received in this subscription. // * `filterTag`- A string to filter resulting messages of the topic by their message tag. Endpoint pulumi.StringInput `pulumi:"endpoint"` FilterTag pulumi.StringInput `pulumi:"filterTag"` // The ID of the topic subscription. The value is set to `name`. Id pulumi.StringInput `pulumi:"id"` // The name of the subscription. // * `topicName`- The topic which The subscription belongs to was named with the name. Name pulumi.StringInput `pulumi:"name"` // The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. NotifyContentFormat pulumi.StringInput `pulumi:"notifyContentFormat"` // The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. NotifyStrategy pulumi.StringInput `pulumi:"notifyStrategy"` // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName pulumi.StringInput `pulumi:"topicName"` }
func (GetTopicSubscriptionsSubscriptionArgs) ElementType ¶
func (GetTopicSubscriptionsSubscriptionArgs) ElementType() reflect.Type
func (GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutput ¶
func (i GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutput() GetTopicSubscriptionsSubscriptionOutput
func (GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutputWithContext ¶
func (i GetTopicSubscriptionsSubscriptionArgs) ToGetTopicSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionOutput
type GetTopicSubscriptionsSubscriptionArray ¶
type GetTopicSubscriptionsSubscriptionArray []GetTopicSubscriptionsSubscriptionInput
func (GetTopicSubscriptionsSubscriptionArray) ElementType ¶
func (GetTopicSubscriptionsSubscriptionArray) ElementType() reflect.Type
func (GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutput ¶
func (i GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutput() GetTopicSubscriptionsSubscriptionArrayOutput
func (GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext ¶
func (i GetTopicSubscriptionsSubscriptionArray) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionArrayOutput
type GetTopicSubscriptionsSubscriptionArrayInput ¶
type GetTopicSubscriptionsSubscriptionArrayInput interface { pulumi.Input ToGetTopicSubscriptionsSubscriptionArrayOutput() GetTopicSubscriptionsSubscriptionArrayOutput ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext(context.Context) GetTopicSubscriptionsSubscriptionArrayOutput }
GetTopicSubscriptionsSubscriptionArrayInput is an input type that accepts GetTopicSubscriptionsSubscriptionArray and GetTopicSubscriptionsSubscriptionArrayOutput values. You can construct a concrete instance of `GetTopicSubscriptionsSubscriptionArrayInput` via:
GetTopicSubscriptionsSubscriptionArray{ GetTopicSubscriptionsSubscriptionArgs{...} }
type GetTopicSubscriptionsSubscriptionArrayOutput ¶
type GetTopicSubscriptionsSubscriptionArrayOutput struct{ *pulumi.OutputState }
func (GetTopicSubscriptionsSubscriptionArrayOutput) ElementType ¶
func (GetTopicSubscriptionsSubscriptionArrayOutput) ElementType() reflect.Type
func (GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutput ¶
func (o GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutput() GetTopicSubscriptionsSubscriptionArrayOutput
func (GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext ¶
func (o GetTopicSubscriptionsSubscriptionArrayOutput) ToGetTopicSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionArrayOutput
type GetTopicSubscriptionsSubscriptionInput ¶
type GetTopicSubscriptionsSubscriptionInput interface { pulumi.Input ToGetTopicSubscriptionsSubscriptionOutput() GetTopicSubscriptionsSubscriptionOutput ToGetTopicSubscriptionsSubscriptionOutputWithContext(context.Context) GetTopicSubscriptionsSubscriptionOutput }
GetTopicSubscriptionsSubscriptionInput is an input type that accepts GetTopicSubscriptionsSubscriptionArgs and GetTopicSubscriptionsSubscriptionOutput values. You can construct a concrete instance of `GetTopicSubscriptionsSubscriptionInput` via:
GetTopicSubscriptionsSubscriptionArgs{...}
type GetTopicSubscriptionsSubscriptionOutput ¶
type GetTopicSubscriptionsSubscriptionOutput struct{ *pulumi.OutputState }
func (GetTopicSubscriptionsSubscriptionOutput) ElementType ¶
func (GetTopicSubscriptionsSubscriptionOutput) ElementType() reflect.Type
func (GetTopicSubscriptionsSubscriptionOutput) Endpoint ¶
func (o GetTopicSubscriptionsSubscriptionOutput) Endpoint() pulumi.StringOutput
Describe the terminal address of the message received in this subscription. * `filterTag`- A string to filter resulting messages of the topic by their message tag.
func (GetTopicSubscriptionsSubscriptionOutput) FilterTag ¶
func (o GetTopicSubscriptionsSubscriptionOutput) FilterTag() pulumi.StringOutput
func (GetTopicSubscriptionsSubscriptionOutput) Id ¶
func (o GetTopicSubscriptionsSubscriptionOutput) Id() pulumi.StringOutput
The ID of the topic subscription. The value is set to `name`.
func (GetTopicSubscriptionsSubscriptionOutput) Name ¶
func (o GetTopicSubscriptionsSubscriptionOutput) Name() pulumi.StringOutput
The name of the subscription. * `topicName`- The topic which The subscription belongs to was named with the name.
func (GetTopicSubscriptionsSubscriptionOutput) NotifyContentFormat ¶
func (o GetTopicSubscriptionsSubscriptionOutput) NotifyContentFormat() pulumi.StringOutput
The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users.
func (GetTopicSubscriptionsSubscriptionOutput) NotifyStrategy ¶
func (o GetTopicSubscriptionsSubscriptionOutput) NotifyStrategy() pulumi.StringOutput
The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails.
func (GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutput ¶
func (o GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutput() GetTopicSubscriptionsSubscriptionOutput
func (GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutputWithContext ¶
func (o GetTopicSubscriptionsSubscriptionOutput) ToGetTopicSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetTopicSubscriptionsSubscriptionOutput
func (GetTopicSubscriptionsSubscriptionOutput) TopicName ¶
func (o GetTopicSubscriptionsSubscriptionOutput) TopicName() pulumi.StringOutput
Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters.
type GetTopicsArgs ¶
type GetTopicsArgs struct { // A string to filter resulting topics by their name prefixs. NamePrefix *string `pulumi:"namePrefix"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getTopics.
type GetTopicsResult ¶
type GetTopicsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` NamePrefix *string `pulumi:"namePrefix"` // A list of topic names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` // A list of topics. Each element contains the following attributes: Topics []GetTopicsTopic `pulumi:"topics"` }
A collection of values returned by getTopics.
func GetTopics ¶
func GetTopics(ctx *pulumi.Context, args *GetTopicsArgs, opts ...pulumi.InvokeOption) (*GetTopicsResult, error)
This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/mns" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf-" topics, err := mns.GetTopics(ctx, &mns.GetTopicsArgs{ NamePrefix: &opt0, }, nil) if err != nil { return err } ctx.Export("firstTopicId", topics.Topics[0].Id) return nil }) }
```
type GetTopicsTopic ¶
type GetTopicsTopic struct { // The id of the topic. The value is set to `name`. Id string `pulumi:"id"` // Whether to enable logging. LoggingEnabled bool `pulumi:"loggingEnabled"` // This indicates the maximum length, in bytes, of any message body sent to the topic. MaximumMessageSize int `pulumi:"maximumMessageSize"` // The name of the topic. Name string `pulumi:"name"` }
type GetTopicsTopicArgs ¶
type GetTopicsTopicArgs struct { // The id of the topic. The value is set to `name`. Id pulumi.StringInput `pulumi:"id"` // Whether to enable logging. LoggingEnabled pulumi.BoolInput `pulumi:"loggingEnabled"` // This indicates the maximum length, in bytes, of any message body sent to the topic. MaximumMessageSize pulumi.IntInput `pulumi:"maximumMessageSize"` // The name of the topic. Name pulumi.StringInput `pulumi:"name"` }
func (GetTopicsTopicArgs) ElementType ¶
func (GetTopicsTopicArgs) ElementType() reflect.Type
func (GetTopicsTopicArgs) ToGetTopicsTopicOutput ¶
func (i GetTopicsTopicArgs) ToGetTopicsTopicOutput() GetTopicsTopicOutput
func (GetTopicsTopicArgs) ToGetTopicsTopicOutputWithContext ¶
func (i GetTopicsTopicArgs) ToGetTopicsTopicOutputWithContext(ctx context.Context) GetTopicsTopicOutput
type GetTopicsTopicArray ¶
type GetTopicsTopicArray []GetTopicsTopicInput
func (GetTopicsTopicArray) ElementType ¶
func (GetTopicsTopicArray) ElementType() reflect.Type
func (GetTopicsTopicArray) ToGetTopicsTopicArrayOutput ¶
func (i GetTopicsTopicArray) ToGetTopicsTopicArrayOutput() GetTopicsTopicArrayOutput
func (GetTopicsTopicArray) ToGetTopicsTopicArrayOutputWithContext ¶
func (i GetTopicsTopicArray) ToGetTopicsTopicArrayOutputWithContext(ctx context.Context) GetTopicsTopicArrayOutput
type GetTopicsTopicArrayInput ¶
type GetTopicsTopicArrayInput interface { pulumi.Input ToGetTopicsTopicArrayOutput() GetTopicsTopicArrayOutput ToGetTopicsTopicArrayOutputWithContext(context.Context) GetTopicsTopicArrayOutput }
GetTopicsTopicArrayInput is an input type that accepts GetTopicsTopicArray and GetTopicsTopicArrayOutput values. You can construct a concrete instance of `GetTopicsTopicArrayInput` via:
GetTopicsTopicArray{ GetTopicsTopicArgs{...} }
type GetTopicsTopicArrayOutput ¶
type GetTopicsTopicArrayOutput struct{ *pulumi.OutputState }
func (GetTopicsTopicArrayOutput) ElementType ¶
func (GetTopicsTopicArrayOutput) ElementType() reflect.Type
func (GetTopicsTopicArrayOutput) Index ¶
func (o GetTopicsTopicArrayOutput) Index(i pulumi.IntInput) GetTopicsTopicOutput
func (GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutput ¶
func (o GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutput() GetTopicsTopicArrayOutput
func (GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutputWithContext ¶
func (o GetTopicsTopicArrayOutput) ToGetTopicsTopicArrayOutputWithContext(ctx context.Context) GetTopicsTopicArrayOutput
type GetTopicsTopicInput ¶
type GetTopicsTopicInput interface { pulumi.Input ToGetTopicsTopicOutput() GetTopicsTopicOutput ToGetTopicsTopicOutputWithContext(context.Context) GetTopicsTopicOutput }
GetTopicsTopicInput is an input type that accepts GetTopicsTopicArgs and GetTopicsTopicOutput values. You can construct a concrete instance of `GetTopicsTopicInput` via:
GetTopicsTopicArgs{...}
type GetTopicsTopicOutput ¶
type GetTopicsTopicOutput struct{ *pulumi.OutputState }
func (GetTopicsTopicOutput) ElementType ¶
func (GetTopicsTopicOutput) ElementType() reflect.Type
func (GetTopicsTopicOutput) Id ¶
func (o GetTopicsTopicOutput) Id() pulumi.StringOutput
The id of the topic. The value is set to `name`.
func (GetTopicsTopicOutput) LoggingEnabled ¶
func (o GetTopicsTopicOutput) LoggingEnabled() pulumi.BoolOutput
Whether to enable logging.
func (GetTopicsTopicOutput) MaximumMessageSize ¶
func (o GetTopicsTopicOutput) MaximumMessageSize() pulumi.IntOutput
This indicates the maximum length, in bytes, of any message body sent to the topic.
func (GetTopicsTopicOutput) Name ¶
func (o GetTopicsTopicOutput) Name() pulumi.StringOutput
The name of the topic.
func (GetTopicsTopicOutput) ToGetTopicsTopicOutput ¶
func (o GetTopicsTopicOutput) ToGetTopicsTopicOutput() GetTopicsTopicOutput
func (GetTopicsTopicOutput) ToGetTopicsTopicOutputWithContext ¶
func (o GetTopicsTopicOutput) ToGetTopicsTopicOutputWithContext(ctx context.Context) GetTopicsTopicOutput
type Queue ¶
type Queue struct { pulumi.CustomResourceState // This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued. Valid value range: 0-604800 seconds, i.e., 0 to 7 days. Default value to 0. DelaySeconds pulumi.IntPtrOutput `pulumi:"delaySeconds"` // This indicates the maximum length, in bytes, of any message body sent to the queue. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrOutput `pulumi:"maximumMessageSize"` // Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue. Valid value range: 60-604800 seconds, i.e., 1 minutes to 7 days. Default value to 345600. MessageRetentionPeriod pulumi.IntPtrOutput `pulumi:"messageRetentionPeriod"` // Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters . Name pulumi.StringOutput `pulumi:"name"` // Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out. Valid value range: 0-30 seconds. Default value to 0. PollingWaitSeconds pulumi.IntPtrOutput `pulumi:"pollingWaitSeconds"` // The VisibilityTimeout attribute of the queue. A dequeued messages will change from active (visible) status to inactive (invisible) status, and this attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period. Valid value range: 1-43200 seconds, i.e., 1 seconds to 12 hours. Default value to 30. VisibilityTimeout pulumi.IntPtrOutput `pulumi:"visibilityTimeout"` }
func GetQueue ¶
func GetQueue(ctx *pulumi.Context, name string, id pulumi.IDInput, state *QueueState, opts ...pulumi.ResourceOption) (*Queue, error)
GetQueue gets an existing Queue resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type QueueArgs ¶
type QueueArgs struct { // This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued. Valid value range: 0-604800 seconds, i.e., 0 to 7 days. Default value to 0. DelaySeconds pulumi.IntPtrInput // This indicates the maximum length, in bytes, of any message body sent to the queue. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrInput // Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue. Valid value range: 60-604800 seconds, i.e., 1 minutes to 7 days. Default value to 345600. MessageRetentionPeriod pulumi.IntPtrInput // Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters . Name pulumi.StringPtrInput // Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out. Valid value range: 0-30 seconds. Default value to 0. PollingWaitSeconds pulumi.IntPtrInput // The VisibilityTimeout attribute of the queue. A dequeued messages will change from active (visible) status to inactive (invisible) status, and this attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period. Valid value range: 1-43200 seconds, i.e., 1 seconds to 12 hours. Default value to 30. VisibilityTimeout pulumi.IntPtrInput }
The set of arguments for constructing a Queue resource.
func (QueueArgs) ElementType ¶
type QueueState ¶
type QueueState struct { // This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued. Valid value range: 0-604800 seconds, i.e., 0 to 7 days. Default value to 0. DelaySeconds pulumi.IntPtrInput // This indicates the maximum length, in bytes, of any message body sent to the queue. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrInput // Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue. Valid value range: 60-604800 seconds, i.e., 1 minutes to 7 days. Default value to 345600. MessageRetentionPeriod pulumi.IntPtrInput // Two queues on a single account in the same region cannot have the same name. A queue name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters . Name pulumi.StringPtrInput // Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out. Valid value range: 0-30 seconds. Default value to 0. PollingWaitSeconds pulumi.IntPtrInput // The VisibilityTimeout attribute of the queue. A dequeued messages will change from active (visible) status to inactive (invisible) status, and this attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period. Valid value range: 1-43200 seconds, i.e., 1 seconds to 12 hours. Default value to 30. VisibilityTimeout pulumi.IntPtrInput }
func (QueueState) ElementType ¶
func (QueueState) ElementType() reflect.Type
type Topic ¶
type Topic struct { pulumi.CustomResourceState // Is logging enabled? true or false. Default value to false. LoggingEnabled pulumi.BoolPtrOutput `pulumi:"loggingEnabled"` // This indicates the maximum length, in bytes, of any message body sent to the topic. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrOutput `pulumi:"maximumMessageSize"` // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringOutput `pulumi:"name"` }
func GetTopic ¶
func GetTopic(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TopicState, opts ...pulumi.ResourceOption) (*Topic, error)
GetTopic gets an existing Topic resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type TopicArgs ¶
type TopicArgs struct { // Is logging enabled? true or false. Default value to false. LoggingEnabled pulumi.BoolPtrInput // This indicates the maximum length, in bytes, of any message body sent to the topic. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrInput // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringPtrInput }
The set of arguments for constructing a Topic resource.
func (TopicArgs) ElementType ¶
type TopicState ¶
type TopicState struct { // Is logging enabled? true or false. Default value to false. LoggingEnabled pulumi.BoolPtrInput // This indicates the maximum length, in bytes, of any message body sent to the topic. Valid value range: 1024-65536, i.e., 1K to 64K. Default value to 65536. MaximumMessageSize pulumi.IntPtrInput // Two topics on a single account in the same region cannot have the same name. A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringPtrInput }
func (TopicState) ElementType ¶
func (TopicState) ElementType() reflect.Type
type TopicSubscription ¶
type TopicSubscription struct { pulumi.CustomResourceState // The endpoint has three format. Available values format: // - HTTP Format: http://xxx.com/xxx // - Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName} // - Email Format: mail:directmail:{MailAddress} Endpoint pulumi.StringOutput `pulumi:"endpoint"` // The length should be shorter than 16. FilterTag pulumi.StringPtrOutput `pulumi:"filterTag"` // Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringOutput `pulumi:"name"` // The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: 'SIMPLIFIED', 'XML' and 'JSON'. Default to 'SIMPLIFIED'. NotifyContentFormat pulumi.StringPtrOutput `pulumi:"notifyContentFormat"` // The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. the attribute has two value EXPONENTIAL_DECAY_RETR or BACKOFF_RETRY. Default value to BACKOFF_RETRY . NotifyStrategy pulumi.StringPtrOutput `pulumi:"notifyStrategy"` // The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName pulumi.StringOutput `pulumi:"topicName"` }
func GetTopicSubscription ¶
func GetTopicSubscription(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TopicSubscriptionState, opts ...pulumi.ResourceOption) (*TopicSubscription, error)
GetTopicSubscription gets an existing TopicSubscription 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 NewTopicSubscription ¶
func NewTopicSubscription(ctx *pulumi.Context, name string, args *TopicSubscriptionArgs, opts ...pulumi.ResourceOption) (*TopicSubscription, error)
NewTopicSubscription registers a new resource with the given unique name, arguments, and options.
type TopicSubscriptionArgs ¶
type TopicSubscriptionArgs struct { // The endpoint has three format. Available values format: // - HTTP Format: http://xxx.com/xxx // - Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName} // - Email Format: mail:directmail:{MailAddress} Endpoint pulumi.StringInput // The length should be shorter than 16. FilterTag pulumi.StringPtrInput // Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringPtrInput // The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: 'SIMPLIFIED', 'XML' and 'JSON'. Default to 'SIMPLIFIED'. NotifyContentFormat pulumi.StringPtrInput // The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. the attribute has two value EXPONENTIAL_DECAY_RETR or BACKOFF_RETRY. Default value to BACKOFF_RETRY . NotifyStrategy pulumi.StringPtrInput // The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName pulumi.StringInput }
The set of arguments for constructing a TopicSubscription resource.
func (TopicSubscriptionArgs) ElementType ¶
func (TopicSubscriptionArgs) ElementType() reflect.Type
type TopicSubscriptionState ¶
type TopicSubscriptionState struct { // The endpoint has three format. Available values format: // - HTTP Format: http://xxx.com/xxx // - Queue Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName} // - Email Format: mail:directmail:{MailAddress} Endpoint pulumi.StringPtrInput // The length should be shorter than 16. FilterTag pulumi.StringPtrInput // Two topics subscription on a single account in the same topic cannot have the same name. A topic subscription name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. Name pulumi.StringPtrInput // The NotifyContentFormat attribute of Subscription. This attribute specifies the content format of the messages pushed to users. The valid values: 'SIMPLIFIED', 'XML' and 'JSON'. Default to 'SIMPLIFIED'. NotifyContentFormat pulumi.StringPtrInput // The NotifyStrategy attribute of Subscription. This attribute specifies the retry strategy when message sending fails. the attribute has two value EXPONENTIAL_DECAY_RETR or BACKOFF_RETRY. Default value to BACKOFF_RETRY . NotifyStrategy pulumi.StringPtrInput // The topic which The subscription belongs to was named with the name.A topic name must start with an English letter or a digit, and can contain English letters, digits, and hyphens, with the length not exceeding 256 characters. TopicName pulumi.StringPtrInput }
func (TopicSubscriptionState) ElementType ¶
func (TopicSubscriptionState) ElementType() reflect.Type