Documentation
¶
Index ¶
- type Binding
- type BindingArgs
- type BindingArray
- type BindingArrayInput
- type BindingArrayOutput
- type BindingInput
- type BindingMap
- type BindingMapInput
- type BindingMapOutput
- type BindingOutput
- func (o BindingOutput) Argument() pulumi.StringOutput
- func (o BindingOutput) BindingKey() pulumi.StringOutput
- func (o BindingOutput) BindingType() pulumi.StringOutput
- func (o BindingOutput) DestinationName() pulumi.StringOutput
- func (BindingOutput) ElementType() reflect.Type
- func (o BindingOutput) InstanceId() pulumi.StringOutput
- func (o BindingOutput) SourceExchange() pulumi.StringOutput
- func (o BindingOutput) ToBindingOutput() BindingOutput
- func (o BindingOutput) ToBindingOutputWithContext(ctx context.Context) BindingOutput
- func (o BindingOutput) VirtualHostName() pulumi.StringOutput
- type BindingState
- type Exchange
- type ExchangeArgs
- type ExchangeArray
- type ExchangeArrayInput
- type ExchangeArrayOutput
- type ExchangeInput
- type ExchangeMap
- type ExchangeMapInput
- type ExchangeMapOutput
- type ExchangeOutput
- func (o ExchangeOutput) AlternateExchange() pulumi.StringPtrOutput
- func (o ExchangeOutput) AutoDeleteState() pulumi.BoolOutput
- func (ExchangeOutput) ElementType() reflect.Type
- func (o ExchangeOutput) ExchangeName() pulumi.StringOutput
- func (o ExchangeOutput) ExchangeType() pulumi.StringOutput
- func (o ExchangeOutput) InstanceId() pulumi.StringOutput
- func (o ExchangeOutput) Internal() pulumi.BoolOutput
- func (o ExchangeOutput) ToExchangeOutput() ExchangeOutput
- func (o ExchangeOutput) ToExchangeOutputWithContext(ctx context.Context) ExchangeOutput
- func (o ExchangeOutput) VirtualHostName() pulumi.StringOutput
- type ExchangeState
- type GetBindingsArgs
- type GetBindingsBinding
- type GetBindingsBindingArgs
- type GetBindingsBindingArray
- type GetBindingsBindingArrayInput
- type GetBindingsBindingArrayOutput
- func (GetBindingsBindingArrayOutput) ElementType() reflect.Type
- func (o GetBindingsBindingArrayOutput) Index(i pulumi.IntInput) GetBindingsBindingOutput
- func (o GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutput() GetBindingsBindingArrayOutput
- func (o GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutputWithContext(ctx context.Context) GetBindingsBindingArrayOutput
- type GetBindingsBindingInput
- type GetBindingsBindingOutput
- func (o GetBindingsBindingOutput) Argument() pulumi.StringOutput
- func (o GetBindingsBindingOutput) BindingKey() pulumi.StringOutput
- func (o GetBindingsBindingOutput) BindingType() pulumi.StringOutput
- func (o GetBindingsBindingOutput) DestinationName() pulumi.StringOutput
- func (GetBindingsBindingOutput) ElementType() reflect.Type
- func (o GetBindingsBindingOutput) Id() pulumi.StringOutput
- func (o GetBindingsBindingOutput) InstanceId() pulumi.StringOutput
- func (o GetBindingsBindingOutput) SourceExchange() pulumi.StringOutput
- func (o GetBindingsBindingOutput) ToGetBindingsBindingOutput() GetBindingsBindingOutput
- func (o GetBindingsBindingOutput) ToGetBindingsBindingOutputWithContext(ctx context.Context) GetBindingsBindingOutput
- func (o GetBindingsBindingOutput) VirtualHostName() pulumi.StringOutput
- type GetBindingsOutputArgs
- type GetBindingsResult
- type GetBindingsResultOutput
- func (o GetBindingsResultOutput) Bindings() GetBindingsBindingArrayOutput
- func (GetBindingsResultOutput) ElementType() reflect.Type
- func (o GetBindingsResultOutput) Id() pulumi.StringOutput
- func (o GetBindingsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetBindingsResultOutput) InstanceId() pulumi.StringOutput
- func (o GetBindingsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetBindingsResultOutput) ToGetBindingsResultOutput() GetBindingsResultOutput
- func (o GetBindingsResultOutput) ToGetBindingsResultOutputWithContext(ctx context.Context) GetBindingsResultOutput
- func (o GetBindingsResultOutput) VirtualHostName() pulumi.StringOutput
- type GetExchangesArgs
- type GetExchangesExchange
- type GetExchangesExchangeArgs
- type GetExchangesExchangeArray
- type GetExchangesExchangeArrayInput
- type GetExchangesExchangeArrayOutput
- func (GetExchangesExchangeArrayOutput) ElementType() reflect.Type
- func (o GetExchangesExchangeArrayOutput) Index(i pulumi.IntInput) GetExchangesExchangeOutput
- func (o GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutput() GetExchangesExchangeArrayOutput
- func (o GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutputWithContext(ctx context.Context) GetExchangesExchangeArrayOutput
- type GetExchangesExchangeInput
- type GetExchangesExchangeOutput
- func (o GetExchangesExchangeOutput) Attributes() pulumi.MapOutput
- func (o GetExchangesExchangeOutput) AutoDeleteState() pulumi.BoolOutput
- func (o GetExchangesExchangeOutput) CreateTime() pulumi.StringOutput
- func (GetExchangesExchangeOutput) ElementType() reflect.Type
- func (o GetExchangesExchangeOutput) ExchangeName() pulumi.StringOutput
- func (o GetExchangesExchangeOutput) ExchangeType() pulumi.StringOutput
- func (o GetExchangesExchangeOutput) Id() pulumi.StringOutput
- func (o GetExchangesExchangeOutput) InstanceId() pulumi.StringOutput
- func (o GetExchangesExchangeOutput) ToGetExchangesExchangeOutput() GetExchangesExchangeOutput
- func (o GetExchangesExchangeOutput) ToGetExchangesExchangeOutputWithContext(ctx context.Context) GetExchangesExchangeOutput
- func (o GetExchangesExchangeOutput) VirtualHostName() pulumi.StringOutput
- type GetExchangesOutputArgs
- type GetExchangesResult
- type GetExchangesResultOutput
- func (GetExchangesResultOutput) ElementType() reflect.Type
- func (o GetExchangesResultOutput) Exchanges() GetExchangesExchangeArrayOutput
- func (o GetExchangesResultOutput) Id() pulumi.StringOutput
- func (o GetExchangesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetExchangesResultOutput) InstanceId() pulumi.StringOutput
- func (o GetExchangesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetExchangesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetExchangesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetExchangesResultOutput) ToGetExchangesResultOutput() GetExchangesResultOutput
- func (o GetExchangesResultOutput) ToGetExchangesResultOutputWithContext(ctx context.Context) GetExchangesResultOutput
- func (o GetExchangesResultOutput) VirtualHostName() pulumi.StringOutput
- type GetInstancesArgs
- type GetInstancesInstance
- type GetInstancesInstanceArgs
- type GetInstancesInstanceArray
- type GetInstancesInstanceArrayInput
- type GetInstancesInstanceArrayOutput
- func (GetInstancesInstanceArrayOutput) ElementType() reflect.Type
- func (o GetInstancesInstanceArrayOutput) Index(i pulumi.IntInput) GetInstancesInstanceOutput
- func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
- func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
- type GetInstancesInstanceInput
- type GetInstancesInstanceOutput
- func (o GetInstancesInstanceOutput) CreateTime() pulumi.StringOutput
- func (GetInstancesInstanceOutput) ElementType() reflect.Type
- func (o GetInstancesInstanceOutput) ExpireTime() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Id() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) InstanceId() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) InstanceName() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) InstanceType() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) PaymentType() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) PrivateEndPoint() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) PublicEndpoint() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) RenewalDuration() pulumi.IntOutput
- func (o GetInstancesInstanceOutput) RenewalDurationUnit() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) RenewalStatus() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Status() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) SupportEip() pulumi.BoolOutput
- func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
- func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
- type GetInstancesOutputArgs
- type GetInstancesResult
- type GetInstancesResultOutput
- func (GetInstancesResultOutput) ElementType() reflect.Type
- func (o GetInstancesResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetInstancesResultOutput) Id() pulumi.StringOutput
- func (o GetInstancesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetInstancesResultOutput) Instances() GetInstancesInstanceArrayOutput
- func (o GetInstancesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetInstancesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetInstancesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetInstancesResultOutput) Status() pulumi.StringPtrOutput
- func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput
- func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput
- type GetQueuesArgs
- type GetQueuesOutputArgs
- 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) Attributes() pulumi.MapOutput
- func (o GetQueuesQueueOutput) AutoDeleteState() pulumi.BoolOutput
- func (o GetQueuesQueueOutput) CreateTime() pulumi.StringOutput
- func (GetQueuesQueueOutput) ElementType() reflect.Type
- func (o GetQueuesQueueOutput) ExclusiveState() pulumi.BoolOutput
- func (o GetQueuesQueueOutput) Id() pulumi.StringOutput
- func (o GetQueuesQueueOutput) InstanceId() pulumi.StringOutput
- func (o GetQueuesQueueOutput) LastConsumeTime() pulumi.StringOutput
- func (o GetQueuesQueueOutput) QueueName() pulumi.StringOutput
- func (o GetQueuesQueueOutput) ToGetQueuesQueueOutput() GetQueuesQueueOutput
- func (o GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
- func (o GetQueuesQueueOutput) VirtualHostName() pulumi.StringOutput
- type GetQueuesResult
- type GetQueuesResultOutput
- func (GetQueuesResultOutput) ElementType() reflect.Type
- func (o GetQueuesResultOutput) Id() pulumi.StringOutput
- func (o GetQueuesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetQueuesResultOutput) InstanceId() pulumi.StringOutput
- func (o GetQueuesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetQueuesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetQueuesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetQueuesResultOutput) Queues() GetQueuesQueueArrayOutput
- func (o GetQueuesResultOutput) ToGetQueuesResultOutput() GetQueuesResultOutput
- func (o GetQueuesResultOutput) ToGetQueuesResultOutputWithContext(ctx context.Context) GetQueuesResultOutput
- func (o GetQueuesResultOutput) VirtualHostName() pulumi.StringOutput
- type GetStaticAccountsAccount
- type GetStaticAccountsAccountArgs
- func (GetStaticAccountsAccountArgs) ElementType() reflect.Type
- func (i GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutput() GetStaticAccountsAccountOutput
- func (i GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutputWithContext(ctx context.Context) GetStaticAccountsAccountOutput
- type GetStaticAccountsAccountArray
- func (GetStaticAccountsAccountArray) ElementType() reflect.Type
- func (i GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutput() GetStaticAccountsAccountArrayOutput
- func (i GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutputWithContext(ctx context.Context) GetStaticAccountsAccountArrayOutput
- type GetStaticAccountsAccountArrayInput
- type GetStaticAccountsAccountArrayOutput
- func (GetStaticAccountsAccountArrayOutput) ElementType() reflect.Type
- func (o GetStaticAccountsAccountArrayOutput) Index(i pulumi.IntInput) GetStaticAccountsAccountOutput
- func (o GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutput() GetStaticAccountsAccountArrayOutput
- func (o GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutputWithContext(ctx context.Context) GetStaticAccountsAccountArrayOutput
- type GetStaticAccountsAccountInput
- type GetStaticAccountsAccountOutput
- func (o GetStaticAccountsAccountOutput) AccessKey() pulumi.StringOutput
- func (o GetStaticAccountsAccountOutput) CreateTime() pulumi.StringOutput
- func (GetStaticAccountsAccountOutput) ElementType() reflect.Type
- func (o GetStaticAccountsAccountOutput) Id() pulumi.StringOutput
- func (o GetStaticAccountsAccountOutput) InstanceId() pulumi.StringOutput
- func (o GetStaticAccountsAccountOutput) MasterUid() pulumi.StringOutput
- func (o GetStaticAccountsAccountOutput) Password() pulumi.StringOutput
- func (o GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutput() GetStaticAccountsAccountOutput
- func (o GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutputWithContext(ctx context.Context) GetStaticAccountsAccountOutput
- func (o GetStaticAccountsAccountOutput) UserName() pulumi.StringOutput
- type GetStaticAccountsArgs
- type GetStaticAccountsOutputArgs
- type GetStaticAccountsResult
- type GetStaticAccountsResultOutput
- func (o GetStaticAccountsResultOutput) Accounts() GetStaticAccountsAccountArrayOutput
- func (GetStaticAccountsResultOutput) ElementType() reflect.Type
- func (o GetStaticAccountsResultOutput) Id() pulumi.StringOutput
- func (o GetStaticAccountsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetStaticAccountsResultOutput) InstanceId() pulumi.StringPtrOutput
- func (o GetStaticAccountsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutput() GetStaticAccountsResultOutput
- func (o GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutputWithContext(ctx context.Context) GetStaticAccountsResultOutput
- type GetVirtualHostsArgs
- type GetVirtualHostsHost
- type GetVirtualHostsHostArgs
- type GetVirtualHostsHostArray
- type GetVirtualHostsHostArrayInput
- type GetVirtualHostsHostArrayOutput
- func (GetVirtualHostsHostArrayOutput) ElementType() reflect.Type
- func (o GetVirtualHostsHostArrayOutput) Index(i pulumi.IntInput) GetVirtualHostsHostOutput
- func (o GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutput() GetVirtualHostsHostArrayOutput
- func (o GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutputWithContext(ctx context.Context) GetVirtualHostsHostArrayOutput
- type GetVirtualHostsHostInput
- type GetVirtualHostsHostOutput
- func (GetVirtualHostsHostOutput) ElementType() reflect.Type
- func (o GetVirtualHostsHostOutput) Id() pulumi.StringOutput
- func (o GetVirtualHostsHostOutput) InstanceId() pulumi.StringOutput
- func (o GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutput() GetVirtualHostsHostOutput
- func (o GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutputWithContext(ctx context.Context) GetVirtualHostsHostOutput
- func (o GetVirtualHostsHostOutput) VirtualHostName() pulumi.StringOutput
- type GetVirtualHostsOutputArgs
- type GetVirtualHostsResult
- type GetVirtualHostsResultOutput
- func (GetVirtualHostsResultOutput) ElementType() reflect.Type
- func (o GetVirtualHostsResultOutput) Hosts() GetVirtualHostsHostArrayOutput
- func (o GetVirtualHostsResultOutput) Id() pulumi.StringOutput
- func (o GetVirtualHostsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetVirtualHostsResultOutput) InstanceId() pulumi.StringOutput
- func (o GetVirtualHostsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetVirtualHostsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetVirtualHostsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutput() GetVirtualHostsResultOutput
- func (o GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutputWithContext(ctx context.Context) GetVirtualHostsResultOutput
- type Instance
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) InstanceName() pulumi.StringOutput
- func (o InstanceOutput) InstanceType() pulumi.StringOutput
- func (o InstanceOutput) Logistics() pulumi.StringPtrOutput
- func (o InstanceOutput) MaxEipTps() pulumi.StringPtrOutput
- func (o InstanceOutput) MaxTps() pulumi.StringOutput
- func (o InstanceOutput) ModifyType() pulumi.StringPtrOutput
- func (o InstanceOutput) PaymentType() pulumi.StringOutput
- func (o InstanceOutput) Period() pulumi.IntPtrOutput
- func (o InstanceOutput) QueueCapacity() pulumi.StringOutput
- func (o InstanceOutput) RenewalDuration() pulumi.IntPtrOutput
- func (o InstanceOutput) RenewalDurationUnit() pulumi.StringPtrOutput
- func (o InstanceOutput) RenewalStatus() pulumi.StringOutput
- func (o InstanceOutput) Status() pulumi.StringOutput
- func (o InstanceOutput) StorageSize() pulumi.StringPtrOutput
- func (o InstanceOutput) SupportEip() pulumi.BoolOutput
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- type InstanceState
- type Queue
- type QueueArgs
- type QueueArray
- type QueueArrayInput
- type QueueArrayOutput
- type QueueInput
- type QueueMap
- type QueueMapInput
- type QueueMapOutput
- type QueueOutput
- func (o QueueOutput) AutoDeleteState() pulumi.BoolPtrOutput
- func (o QueueOutput) AutoExpireState() pulumi.StringPtrOutput
- func (o QueueOutput) DeadLetterExchange() pulumi.StringPtrOutput
- func (o QueueOutput) DeadLetterRoutingKey() pulumi.StringPtrOutput
- func (QueueOutput) ElementType() reflect.Type
- func (o QueueOutput) ExclusiveState() pulumi.BoolPtrOutput
- func (o QueueOutput) InstanceId() pulumi.StringOutput
- func (o QueueOutput) MaxLength() pulumi.StringPtrOutput
- func (o QueueOutput) MaximumPriority() pulumi.IntPtrOutput
- func (o QueueOutput) MessageTtl() pulumi.StringPtrOutput
- func (o QueueOutput) QueueName() pulumi.StringOutput
- func (o QueueOutput) ToQueueOutput() QueueOutput
- func (o QueueOutput) ToQueueOutputWithContext(ctx context.Context) QueueOutput
- func (o QueueOutput) VirtualHostName() pulumi.StringOutput
- type QueueState
- type StaticAccount
- type StaticAccountArgs
- type StaticAccountArray
- type StaticAccountArrayInput
- type StaticAccountArrayOutput
- func (StaticAccountArrayOutput) ElementType() reflect.Type
- func (o StaticAccountArrayOutput) Index(i pulumi.IntInput) StaticAccountOutput
- func (o StaticAccountArrayOutput) ToStaticAccountArrayOutput() StaticAccountArrayOutput
- func (o StaticAccountArrayOutput) ToStaticAccountArrayOutputWithContext(ctx context.Context) StaticAccountArrayOutput
- type StaticAccountInput
- type StaticAccountMap
- type StaticAccountMapInput
- type StaticAccountMapOutput
- func (StaticAccountMapOutput) ElementType() reflect.Type
- func (o StaticAccountMapOutput) MapIndex(k pulumi.StringInput) StaticAccountOutput
- func (o StaticAccountMapOutput) ToStaticAccountMapOutput() StaticAccountMapOutput
- func (o StaticAccountMapOutput) ToStaticAccountMapOutputWithContext(ctx context.Context) StaticAccountMapOutput
- type StaticAccountOutput
- func (o StaticAccountOutput) AccessKey() pulumi.StringOutput
- func (o StaticAccountOutput) CreateTime() pulumi.IntOutput
- func (StaticAccountOutput) ElementType() reflect.Type
- func (o StaticAccountOutput) InstanceId() pulumi.StringOutput
- func (o StaticAccountOutput) MasterUid() pulumi.StringOutput
- func (o StaticAccountOutput) Password() pulumi.StringOutput
- func (o StaticAccountOutput) SecretKey() pulumi.StringOutput
- func (o StaticAccountOutput) ToStaticAccountOutput() StaticAccountOutput
- func (o StaticAccountOutput) ToStaticAccountOutputWithContext(ctx context.Context) StaticAccountOutput
- func (o StaticAccountOutput) UserName() pulumi.StringOutput
- type StaticAccountState
- type VirtualHost
- type VirtualHostArgs
- type VirtualHostArray
- type VirtualHostArrayInput
- type VirtualHostArrayOutput
- func (VirtualHostArrayOutput) ElementType() reflect.Type
- func (o VirtualHostArrayOutput) Index(i pulumi.IntInput) VirtualHostOutput
- func (o VirtualHostArrayOutput) ToVirtualHostArrayOutput() VirtualHostArrayOutput
- func (o VirtualHostArrayOutput) ToVirtualHostArrayOutputWithContext(ctx context.Context) VirtualHostArrayOutput
- type VirtualHostInput
- type VirtualHostMap
- type VirtualHostMapInput
- type VirtualHostMapOutput
- func (VirtualHostMapOutput) ElementType() reflect.Type
- func (o VirtualHostMapOutput) MapIndex(k pulumi.StringInput) VirtualHostOutput
- func (o VirtualHostMapOutput) ToVirtualHostMapOutput() VirtualHostMapOutput
- func (o VirtualHostMapOutput) ToVirtualHostMapOutputWithContext(ctx context.Context) VirtualHostMapOutput
- type VirtualHostOutput
- func (VirtualHostOutput) ElementType() reflect.Type
- func (o VirtualHostOutput) InstanceId() pulumi.StringOutput
- func (o VirtualHostOutput) ToVirtualHostOutput() VirtualHostOutput
- func (o VirtualHostOutput) ToVirtualHostOutputWithContext(ctx context.Context) VirtualHostOutput
- func (o VirtualHostOutput) VirtualHostName() pulumi.StringOutput
- type VirtualHostState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶ added in v3.8.0
type Binding struct { pulumi.CustomResourceState // X-match Attributes. Valid Values: // * "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. // * "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. // // **NOTE:** This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value. Argument pulumi.StringOutput `pulumi:"argument"` // The Binding Key. // * For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // The binding key must be 1 to 255 characters in length. // * For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). // The binding key must be 1 to 255 characters in length. BindingKey pulumi.StringOutput `pulumi:"bindingKey"` // The Target Binding Types. Valid values: `EXCHANGE`, `QUEUE`. BindingType pulumi.StringOutput `pulumi:"bindingType"` // The Target Queue Or Exchange of the Name. DestinationName pulumi.StringOutput `pulumi:"destinationName"` // Instance Id. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // The Source Exchange Name. SourceExchange pulumi.StringOutput `pulumi:"sourceExchange"` // Virtualhost Name. VirtualHostName pulumi.StringOutput `pulumi:"virtualHostName"` }
Provides a RabbitMQ (AMQP) Binding resource to bind tha exchange with another exchange or queue.
For information about RabbitMQ (AMQP) Binding and how to use it, see [What is Binding](https://www.alibabacloud.com/help/en/message-queue-for-rabbitmq/latest/createbinding).
> **NOTE:** Available since v1.135.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{ InstanceType: pulumi.String("enterprise"), MaxTps: pulumi.String("3000"), QueueCapacity: pulumi.String("200"), StorageSize: pulumi.String("700"), SupportEip: pulumi.Bool(false), MaxEipTps: pulumi.String("128"), PaymentType: pulumi.String("Subscription"), Period: pulumi.Int(1), }) if err != nil { return err } defaultVirtualHost, err := amqp.NewVirtualHost(ctx, "defaultVirtualHost", &amqp.VirtualHostArgs{ InstanceId: defaultInstance.ID(), VirtualHostName: pulumi.String("tf-example"), }) if err != nil { return err } defaultExchange, err := amqp.NewExchange(ctx, "defaultExchange", &amqp.ExchangeArgs{ AutoDeleteState: pulumi.Bool(false), ExchangeName: pulumi.String("tf-example"), ExchangeType: pulumi.String("DIRECT"), InstanceId: defaultInstance.ID(), Internal: pulumi.Bool(false), VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } defaultQueue, err := amqp.NewQueue(ctx, "defaultQueue", &amqp.QueueArgs{ InstanceId: defaultInstance.ID(), QueueName: pulumi.String("tf-example"), VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } _, err = amqp.NewBinding(ctx, "defaultBinding", &amqp.BindingArgs{ Argument: pulumi.String("x-match:all"), BindingKey: defaultQueue.QueueName, BindingType: pulumi.String("QUEUE"), DestinationName: pulumi.String("tf-example"), InstanceId: defaultInstance.ID(), SourceExchange: defaultExchange.ExchangeName, VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } return nil }) }
```
## Import
RabbitMQ (AMQP) Binding can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/binding:Binding example <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>
```
func GetBinding ¶ added in v3.8.0
func GetBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BindingState, opts ...pulumi.ResourceOption) (*Binding, error)
GetBinding gets an existing Binding 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 NewBinding ¶ added in v3.8.0
func NewBinding(ctx *pulumi.Context, name string, args *BindingArgs, opts ...pulumi.ResourceOption) (*Binding, error)
NewBinding registers a new resource with the given unique name, arguments, and options.
func (*Binding) ElementType ¶ added in v3.8.0
func (*Binding) ToBindingOutput ¶ added in v3.8.0
func (i *Binding) ToBindingOutput() BindingOutput
func (*Binding) ToBindingOutputWithContext ¶ added in v3.8.0
func (i *Binding) ToBindingOutputWithContext(ctx context.Context) BindingOutput
type BindingArgs ¶ added in v3.8.0
type BindingArgs struct { // X-match Attributes. Valid Values: // * "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. // * "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. // // **NOTE:** This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value. Argument pulumi.StringPtrInput // The Binding Key. // * For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // The binding key must be 1 to 255 characters in length. // * For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). // The binding key must be 1 to 255 characters in length. BindingKey pulumi.StringInput // The Target Binding Types. Valid values: `EXCHANGE`, `QUEUE`. BindingType pulumi.StringInput // The Target Queue Or Exchange of the Name. DestinationName pulumi.StringInput // Instance Id. InstanceId pulumi.StringInput // The Source Exchange Name. SourceExchange pulumi.StringInput // Virtualhost Name. VirtualHostName pulumi.StringInput }
The set of arguments for constructing a Binding resource.
func (BindingArgs) ElementType ¶ added in v3.8.0
func (BindingArgs) ElementType() reflect.Type
type BindingArray ¶ added in v3.8.0
type BindingArray []BindingInput
func (BindingArray) ElementType ¶ added in v3.8.0
func (BindingArray) ElementType() reflect.Type
func (BindingArray) ToBindingArrayOutput ¶ added in v3.8.0
func (i BindingArray) ToBindingArrayOutput() BindingArrayOutput
func (BindingArray) ToBindingArrayOutputWithContext ¶ added in v3.8.0
func (i BindingArray) ToBindingArrayOutputWithContext(ctx context.Context) BindingArrayOutput
type BindingArrayInput ¶ added in v3.8.0
type BindingArrayInput interface { pulumi.Input ToBindingArrayOutput() BindingArrayOutput ToBindingArrayOutputWithContext(context.Context) BindingArrayOutput }
BindingArrayInput is an input type that accepts BindingArray and BindingArrayOutput values. You can construct a concrete instance of `BindingArrayInput` via:
BindingArray{ BindingArgs{...} }
type BindingArrayOutput ¶ added in v3.8.0
type BindingArrayOutput struct{ *pulumi.OutputState }
func (BindingArrayOutput) ElementType ¶ added in v3.8.0
func (BindingArrayOutput) ElementType() reflect.Type
func (BindingArrayOutput) Index ¶ added in v3.8.0
func (o BindingArrayOutput) Index(i pulumi.IntInput) BindingOutput
func (BindingArrayOutput) ToBindingArrayOutput ¶ added in v3.8.0
func (o BindingArrayOutput) ToBindingArrayOutput() BindingArrayOutput
func (BindingArrayOutput) ToBindingArrayOutputWithContext ¶ added in v3.8.0
func (o BindingArrayOutput) ToBindingArrayOutputWithContext(ctx context.Context) BindingArrayOutput
type BindingInput ¶ added in v3.8.0
type BindingInput interface { pulumi.Input ToBindingOutput() BindingOutput ToBindingOutputWithContext(ctx context.Context) BindingOutput }
type BindingMap ¶ added in v3.8.0
type BindingMap map[string]BindingInput
func (BindingMap) ElementType ¶ added in v3.8.0
func (BindingMap) ElementType() reflect.Type
func (BindingMap) ToBindingMapOutput ¶ added in v3.8.0
func (i BindingMap) ToBindingMapOutput() BindingMapOutput
func (BindingMap) ToBindingMapOutputWithContext ¶ added in v3.8.0
func (i BindingMap) ToBindingMapOutputWithContext(ctx context.Context) BindingMapOutput
type BindingMapInput ¶ added in v3.8.0
type BindingMapInput interface { pulumi.Input ToBindingMapOutput() BindingMapOutput ToBindingMapOutputWithContext(context.Context) BindingMapOutput }
BindingMapInput is an input type that accepts BindingMap and BindingMapOutput values. You can construct a concrete instance of `BindingMapInput` via:
BindingMap{ "key": BindingArgs{...} }
type BindingMapOutput ¶ added in v3.8.0
type BindingMapOutput struct{ *pulumi.OutputState }
func (BindingMapOutput) ElementType ¶ added in v3.8.0
func (BindingMapOutput) ElementType() reflect.Type
func (BindingMapOutput) MapIndex ¶ added in v3.8.0
func (o BindingMapOutput) MapIndex(k pulumi.StringInput) BindingOutput
func (BindingMapOutput) ToBindingMapOutput ¶ added in v3.8.0
func (o BindingMapOutput) ToBindingMapOutput() BindingMapOutput
func (BindingMapOutput) ToBindingMapOutputWithContext ¶ added in v3.8.0
func (o BindingMapOutput) ToBindingMapOutputWithContext(ctx context.Context) BindingMapOutput
type BindingOutput ¶ added in v3.8.0
type BindingOutput struct{ *pulumi.OutputState }
func (BindingOutput) Argument ¶ added in v3.27.0
func (o BindingOutput) Argument() pulumi.StringOutput
X-match Attributes. Valid Values: * "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. * "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.
**NOTE:** This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.
func (BindingOutput) BindingKey ¶ added in v3.27.0
func (o BindingOutput) BindingKey() pulumi.StringOutput
The Binding Key.
- For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
- For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
func (BindingOutput) BindingType ¶ added in v3.27.0
func (o BindingOutput) BindingType() pulumi.StringOutput
The Target Binding Types. Valid values: `EXCHANGE`, `QUEUE`.
func (BindingOutput) DestinationName ¶ added in v3.27.0
func (o BindingOutput) DestinationName() pulumi.StringOutput
The Target Queue Or Exchange of the Name.
func (BindingOutput) ElementType ¶ added in v3.8.0
func (BindingOutput) ElementType() reflect.Type
func (BindingOutput) InstanceId ¶ added in v3.27.0
func (o BindingOutput) InstanceId() pulumi.StringOutput
Instance Id.
func (BindingOutput) SourceExchange ¶ added in v3.27.0
func (o BindingOutput) SourceExchange() pulumi.StringOutput
The Source Exchange Name.
func (BindingOutput) ToBindingOutput ¶ added in v3.8.0
func (o BindingOutput) ToBindingOutput() BindingOutput
func (BindingOutput) ToBindingOutputWithContext ¶ added in v3.8.0
func (o BindingOutput) ToBindingOutputWithContext(ctx context.Context) BindingOutput
func (BindingOutput) VirtualHostName ¶ added in v3.27.0
func (o BindingOutput) VirtualHostName() pulumi.StringOutput
Virtualhost Name.
type BindingState ¶ added in v3.8.0
type BindingState struct { // X-match Attributes. Valid Values: // * "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. // * "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. // // **NOTE:** This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value. Argument pulumi.StringPtrInput // The Binding Key. // * For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // The binding key must be 1 to 255 characters in length. // * For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). // If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). // The binding key must be 1 to 255 characters in length. BindingKey pulumi.StringPtrInput // The Target Binding Types. Valid values: `EXCHANGE`, `QUEUE`. BindingType pulumi.StringPtrInput // The Target Queue Or Exchange of the Name. DestinationName pulumi.StringPtrInput // Instance Id. InstanceId pulumi.StringPtrInput // The Source Exchange Name. SourceExchange pulumi.StringPtrInput // Virtualhost Name. VirtualHostName pulumi.StringPtrInput }
func (BindingState) ElementType ¶ added in v3.8.0
func (BindingState) ElementType() reflect.Type
type Exchange ¶ added in v3.5.0
type Exchange struct { pulumi.CustomResourceState // The alternate exchange. An alternate exchange is configured for an existing exchange. It is used to receive messages that fail to be routed to queues from the existing exchange. AlternateExchange pulumi.StringPtrOutput `pulumi:"alternateExchange"` // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. If the last queue that is bound to an exchange is unbound, the exchange is automatically deleted. // * false: The Auto Delete attribute is not configured. If the last queue that is bound to an exchange is unbound, the exchange is not automatically deleted. AutoDeleteState pulumi.BoolOutput `pulumi:"autoDeleteState"` // The name of the exchange. It must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). ExchangeName pulumi.StringOutput `pulumi:"exchangeName"` // The type of the exchange. Valid values: // * FANOUT: An exchange of this type routes all the received messages to all the queues bound to this exchange. You can use a fanout exchange to broadcast messages. // * DIRECT: An exchange of this type routes a message to the queue whose binding key is exactly the same as the routing key of the message. // * TOPIC: This type is similar to the direct exchange type. An exchange of this type routes a message to one or more queues based on the fuzzy match or multi-condition match result between the routing key of the message and the binding keys of the current exchange. // * HEADERS: Headers Exchange uses the Headers property instead of Routing Key for routing matching. // When binding Headers Exchange and Queue, set the key-value pair of the binding property; // when sending a message to the Headers Exchange, set the message's Headers property key-value pair and use the message Headers // The message is routed to the bound Queue by comparing the attribute key-value pair and the bound attribute key-value pair. ExchangeType pulumi.StringOutput `pulumi:"exchangeType"` // The ID of the instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // Specifies whether an exchange is an internal exchange. Valid values: // * false: The exchange is not an internal exchange. // * true: The exchange is an internal exchange. Internal pulumi.BoolOutput `pulumi:"internal"` // The name of virtual host where an exchange resides. VirtualHostName pulumi.StringOutput `pulumi:"virtualHostName"` }
Provides a RabbitMQ (AMQP) Exchange resource.
For information about RabbitMQ (AMQP) Exchange and how to use it, see [What is Exchange](https://www.alibabacloud.com/help/en/message-queue-for-rabbitmq/latest/createexchange).
> **NOTE:** Available since v1.128.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{ InstanceType: pulumi.String("professional"), MaxTps: pulumi.String("1000"), QueueCapacity: pulumi.String("50"), SupportEip: pulumi.Bool(true), MaxEipTps: pulumi.String("128"), PaymentType: pulumi.String("Subscription"), Period: pulumi.Int(1), }) if err != nil { return err } defaultVirtualHost, err := amqp.NewVirtualHost(ctx, "defaultVirtualHost", &amqp.VirtualHostArgs{ InstanceId: defaultInstance.ID(), VirtualHostName: pulumi.String("tf-example"), }) if err != nil { return err } _, err = amqp.NewExchange(ctx, "defaultExchange", &amqp.ExchangeArgs{ AutoDeleteState: pulumi.Bool(false), ExchangeName: pulumi.String("tf-example"), ExchangeType: pulumi.String("DIRECT"), InstanceId: defaultInstance.ID(), Internal: pulumi.Bool(false), VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } return nil }) }
```
## Import
RabbitMQ (AMQP) Exchange can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/exchange:Exchange example <instance_id>:<virtual_host_name>:<exchange_name>
```
func GetExchange ¶ added in v3.5.0
func GetExchange(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ExchangeState, opts ...pulumi.ResourceOption) (*Exchange, error)
GetExchange gets an existing Exchange 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 NewExchange ¶ added in v3.5.0
func NewExchange(ctx *pulumi.Context, name string, args *ExchangeArgs, opts ...pulumi.ResourceOption) (*Exchange, error)
NewExchange registers a new resource with the given unique name, arguments, and options.
func (*Exchange) ElementType ¶ added in v3.5.0
func (*Exchange) ToExchangeOutput ¶ added in v3.5.0
func (i *Exchange) ToExchangeOutput() ExchangeOutput
func (*Exchange) ToExchangeOutputWithContext ¶ added in v3.5.0
func (i *Exchange) ToExchangeOutputWithContext(ctx context.Context) ExchangeOutput
type ExchangeArgs ¶ added in v3.5.0
type ExchangeArgs struct { // The alternate exchange. An alternate exchange is configured for an existing exchange. It is used to receive messages that fail to be routed to queues from the existing exchange. AlternateExchange pulumi.StringPtrInput // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. If the last queue that is bound to an exchange is unbound, the exchange is automatically deleted. // * false: The Auto Delete attribute is not configured. If the last queue that is bound to an exchange is unbound, the exchange is not automatically deleted. AutoDeleteState pulumi.BoolInput // The name of the exchange. It must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). ExchangeName pulumi.StringInput // The type of the exchange. Valid values: // * FANOUT: An exchange of this type routes all the received messages to all the queues bound to this exchange. You can use a fanout exchange to broadcast messages. // * DIRECT: An exchange of this type routes a message to the queue whose binding key is exactly the same as the routing key of the message. // * TOPIC: This type is similar to the direct exchange type. An exchange of this type routes a message to one or more queues based on the fuzzy match or multi-condition match result between the routing key of the message and the binding keys of the current exchange. // * HEADERS: Headers Exchange uses the Headers property instead of Routing Key for routing matching. // When binding Headers Exchange and Queue, set the key-value pair of the binding property; // when sending a message to the Headers Exchange, set the message's Headers property key-value pair and use the message Headers // The message is routed to the bound Queue by comparing the attribute key-value pair and the bound attribute key-value pair. ExchangeType pulumi.StringInput // The ID of the instance. InstanceId pulumi.StringInput // Specifies whether an exchange is an internal exchange. Valid values: // * false: The exchange is not an internal exchange. // * true: The exchange is an internal exchange. Internal pulumi.BoolInput // The name of virtual host where an exchange resides. VirtualHostName pulumi.StringInput }
The set of arguments for constructing a Exchange resource.
func (ExchangeArgs) ElementType ¶ added in v3.5.0
func (ExchangeArgs) ElementType() reflect.Type
type ExchangeArray ¶ added in v3.5.0
type ExchangeArray []ExchangeInput
func (ExchangeArray) ElementType ¶ added in v3.5.0
func (ExchangeArray) ElementType() reflect.Type
func (ExchangeArray) ToExchangeArrayOutput ¶ added in v3.5.0
func (i ExchangeArray) ToExchangeArrayOutput() ExchangeArrayOutput
func (ExchangeArray) ToExchangeArrayOutputWithContext ¶ added in v3.5.0
func (i ExchangeArray) ToExchangeArrayOutputWithContext(ctx context.Context) ExchangeArrayOutput
type ExchangeArrayInput ¶ added in v3.5.0
type ExchangeArrayInput interface { pulumi.Input ToExchangeArrayOutput() ExchangeArrayOutput ToExchangeArrayOutputWithContext(context.Context) ExchangeArrayOutput }
ExchangeArrayInput is an input type that accepts ExchangeArray and ExchangeArrayOutput values. You can construct a concrete instance of `ExchangeArrayInput` via:
ExchangeArray{ ExchangeArgs{...} }
type ExchangeArrayOutput ¶ added in v3.5.0
type ExchangeArrayOutput struct{ *pulumi.OutputState }
func (ExchangeArrayOutput) ElementType ¶ added in v3.5.0
func (ExchangeArrayOutput) ElementType() reflect.Type
func (ExchangeArrayOutput) Index ¶ added in v3.5.0
func (o ExchangeArrayOutput) Index(i pulumi.IntInput) ExchangeOutput
func (ExchangeArrayOutput) ToExchangeArrayOutput ¶ added in v3.5.0
func (o ExchangeArrayOutput) ToExchangeArrayOutput() ExchangeArrayOutput
func (ExchangeArrayOutput) ToExchangeArrayOutputWithContext ¶ added in v3.5.0
func (o ExchangeArrayOutput) ToExchangeArrayOutputWithContext(ctx context.Context) ExchangeArrayOutput
type ExchangeInput ¶ added in v3.5.0
type ExchangeInput interface { pulumi.Input ToExchangeOutput() ExchangeOutput ToExchangeOutputWithContext(ctx context.Context) ExchangeOutput }
type ExchangeMap ¶ added in v3.5.0
type ExchangeMap map[string]ExchangeInput
func (ExchangeMap) ElementType ¶ added in v3.5.0
func (ExchangeMap) ElementType() reflect.Type
func (ExchangeMap) ToExchangeMapOutput ¶ added in v3.5.0
func (i ExchangeMap) ToExchangeMapOutput() ExchangeMapOutput
func (ExchangeMap) ToExchangeMapOutputWithContext ¶ added in v3.5.0
func (i ExchangeMap) ToExchangeMapOutputWithContext(ctx context.Context) ExchangeMapOutput
type ExchangeMapInput ¶ added in v3.5.0
type ExchangeMapInput interface { pulumi.Input ToExchangeMapOutput() ExchangeMapOutput ToExchangeMapOutputWithContext(context.Context) ExchangeMapOutput }
ExchangeMapInput is an input type that accepts ExchangeMap and ExchangeMapOutput values. You can construct a concrete instance of `ExchangeMapInput` via:
ExchangeMap{ "key": ExchangeArgs{...} }
type ExchangeMapOutput ¶ added in v3.5.0
type ExchangeMapOutput struct{ *pulumi.OutputState }
func (ExchangeMapOutput) ElementType ¶ added in v3.5.0
func (ExchangeMapOutput) ElementType() reflect.Type
func (ExchangeMapOutput) MapIndex ¶ added in v3.5.0
func (o ExchangeMapOutput) MapIndex(k pulumi.StringInput) ExchangeOutput
func (ExchangeMapOutput) ToExchangeMapOutput ¶ added in v3.5.0
func (o ExchangeMapOutput) ToExchangeMapOutput() ExchangeMapOutput
func (ExchangeMapOutput) ToExchangeMapOutputWithContext ¶ added in v3.5.0
func (o ExchangeMapOutput) ToExchangeMapOutputWithContext(ctx context.Context) ExchangeMapOutput
type ExchangeOutput ¶ added in v3.5.0
type ExchangeOutput struct{ *pulumi.OutputState }
func (ExchangeOutput) AlternateExchange ¶ added in v3.27.0
func (o ExchangeOutput) AlternateExchange() pulumi.StringPtrOutput
The alternate exchange. An alternate exchange is configured for an existing exchange. It is used to receive messages that fail to be routed to queues from the existing exchange.
func (ExchangeOutput) AutoDeleteState ¶ added in v3.27.0
func (o ExchangeOutput) AutoDeleteState() pulumi.BoolOutput
Specifies whether the Auto Delete attribute is configured. Valid values: * true: The Auto Delete attribute is configured. If the last queue that is bound to an exchange is unbound, the exchange is automatically deleted. * false: The Auto Delete attribute is not configured. If the last queue that is bound to an exchange is unbound, the exchange is not automatically deleted.
func (ExchangeOutput) ElementType ¶ added in v3.5.0
func (ExchangeOutput) ElementType() reflect.Type
func (ExchangeOutput) ExchangeName ¶ added in v3.27.0
func (o ExchangeOutput) ExchangeName() pulumi.StringOutput
The name of the exchange. It must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@).
func (ExchangeOutput) ExchangeType ¶ added in v3.27.0
func (o ExchangeOutput) ExchangeType() pulumi.StringOutput
The type of the exchange. Valid values:
- FANOUT: An exchange of this type routes all the received messages to all the queues bound to this exchange. You can use a fanout exchange to broadcast messages.
- DIRECT: An exchange of this type routes a message to the queue whose binding key is exactly the same as the routing key of the message.
- TOPIC: This type is similar to the direct exchange type. An exchange of this type routes a message to one or more queues based on the fuzzy match or multi-condition match result between the routing key of the message and the binding keys of the current exchange.
- HEADERS: Headers Exchange uses the Headers property instead of Routing Key for routing matching. When binding Headers Exchange and Queue, set the key-value pair of the binding property; when sending a message to the Headers Exchange, set the message's Headers property key-value pair and use the message Headers The message is routed to the bound Queue by comparing the attribute key-value pair and the bound attribute key-value pair.
func (ExchangeOutput) InstanceId ¶ added in v3.27.0
func (o ExchangeOutput) InstanceId() pulumi.StringOutput
The ID of the instance.
func (ExchangeOutput) Internal ¶ added in v3.27.0
func (o ExchangeOutput) Internal() pulumi.BoolOutput
Specifies whether an exchange is an internal exchange. Valid values: * false: The exchange is not an internal exchange. * true: The exchange is an internal exchange.
func (ExchangeOutput) ToExchangeOutput ¶ added in v3.5.0
func (o ExchangeOutput) ToExchangeOutput() ExchangeOutput
func (ExchangeOutput) ToExchangeOutputWithContext ¶ added in v3.5.0
func (o ExchangeOutput) ToExchangeOutputWithContext(ctx context.Context) ExchangeOutput
func (ExchangeOutput) VirtualHostName ¶ added in v3.27.0
func (o ExchangeOutput) VirtualHostName() pulumi.StringOutput
The name of virtual host where an exchange resides.
type ExchangeState ¶ added in v3.5.0
type ExchangeState struct { // The alternate exchange. An alternate exchange is configured for an existing exchange. It is used to receive messages that fail to be routed to queues from the existing exchange. AlternateExchange pulumi.StringPtrInput // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. If the last queue that is bound to an exchange is unbound, the exchange is automatically deleted. // * false: The Auto Delete attribute is not configured. If the last queue that is bound to an exchange is unbound, the exchange is not automatically deleted. AutoDeleteState pulumi.BoolPtrInput // The name of the exchange. It must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). ExchangeName pulumi.StringPtrInput // The type of the exchange. Valid values: // * FANOUT: An exchange of this type routes all the received messages to all the queues bound to this exchange. You can use a fanout exchange to broadcast messages. // * DIRECT: An exchange of this type routes a message to the queue whose binding key is exactly the same as the routing key of the message. // * TOPIC: This type is similar to the direct exchange type. An exchange of this type routes a message to one or more queues based on the fuzzy match or multi-condition match result between the routing key of the message and the binding keys of the current exchange. // * HEADERS: Headers Exchange uses the Headers property instead of Routing Key for routing matching. // When binding Headers Exchange and Queue, set the key-value pair of the binding property; // when sending a message to the Headers Exchange, set the message's Headers property key-value pair and use the message Headers // The message is routed to the bound Queue by comparing the attribute key-value pair and the bound attribute key-value pair. ExchangeType pulumi.StringPtrInput // The ID of the instance. InstanceId pulumi.StringPtrInput // Specifies whether an exchange is an internal exchange. Valid values: // * false: The exchange is not an internal exchange. // * true: The exchange is an internal exchange. Internal pulumi.BoolPtrInput // The name of virtual host where an exchange resides. VirtualHostName pulumi.StringPtrInput }
func (ExchangeState) ElementType ¶ added in v3.5.0
func (ExchangeState) ElementType() reflect.Type
type GetBindingsArgs ¶ added in v3.8.0
type GetBindingsArgs struct { // Instance Id. InstanceId string `pulumi:"instanceId"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` // Virtualhost Name. VirtualHostName string `pulumi:"virtualHostName"` }
A collection of arguments for invoking getBindings.
type GetBindingsBinding ¶ added in v3.8.0
type GetBindingsBinding struct { // X-match Attributes. Valid Values: All: Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. Any: at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value. Argument string `pulumi:"argument"` // The Binding Key. The Source of the Binding Exchange Non-Topic Type: Can Only Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). Length from 1 to 255 Characters. The Source of the Binding Exchange Topic Type: Can Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). If You Include the Hash (. BindingKey string `pulumi:"bindingKey"` // The Target Binding Types. BindingType string `pulumi:"bindingType"` // The Target Queue Or Exchange of the Name. DestinationName string `pulumi:"destinationName"` // The ID of the Binding. The value formats as `<instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>`. Id string `pulumi:"id"` // Instance Id. InstanceId string `pulumi:"instanceId"` // The Source Exchange Name. SourceExchange string `pulumi:"sourceExchange"` // Virtualhost Name. VirtualHostName string `pulumi:"virtualHostName"` }
type GetBindingsBindingArgs ¶ added in v3.8.0
type GetBindingsBindingArgs struct { // X-match Attributes. Valid Values: All: Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. Any: at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value. Argument pulumi.StringInput `pulumi:"argument"` // The Binding Key. The Source of the Binding Exchange Non-Topic Type: Can Only Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). Length from 1 to 255 Characters. The Source of the Binding Exchange Topic Type: Can Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). If You Include the Hash (. BindingKey pulumi.StringInput `pulumi:"bindingKey"` // The Target Binding Types. BindingType pulumi.StringInput `pulumi:"bindingType"` // The Target Queue Or Exchange of the Name. DestinationName pulumi.StringInput `pulumi:"destinationName"` // The ID of the Binding. The value formats as `<instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>`. Id pulumi.StringInput `pulumi:"id"` // Instance Id. InstanceId pulumi.StringInput `pulumi:"instanceId"` // The Source Exchange Name. SourceExchange pulumi.StringInput `pulumi:"sourceExchange"` // Virtualhost Name. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
func (GetBindingsBindingArgs) ElementType ¶ added in v3.8.0
func (GetBindingsBindingArgs) ElementType() reflect.Type
func (GetBindingsBindingArgs) ToGetBindingsBindingOutput ¶ added in v3.8.0
func (i GetBindingsBindingArgs) ToGetBindingsBindingOutput() GetBindingsBindingOutput
func (GetBindingsBindingArgs) ToGetBindingsBindingOutputWithContext ¶ added in v3.8.0
func (i GetBindingsBindingArgs) ToGetBindingsBindingOutputWithContext(ctx context.Context) GetBindingsBindingOutput
type GetBindingsBindingArray ¶ added in v3.8.0
type GetBindingsBindingArray []GetBindingsBindingInput
func (GetBindingsBindingArray) ElementType ¶ added in v3.8.0
func (GetBindingsBindingArray) ElementType() reflect.Type
func (GetBindingsBindingArray) ToGetBindingsBindingArrayOutput ¶ added in v3.8.0
func (i GetBindingsBindingArray) ToGetBindingsBindingArrayOutput() GetBindingsBindingArrayOutput
func (GetBindingsBindingArray) ToGetBindingsBindingArrayOutputWithContext ¶ added in v3.8.0
func (i GetBindingsBindingArray) ToGetBindingsBindingArrayOutputWithContext(ctx context.Context) GetBindingsBindingArrayOutput
type GetBindingsBindingArrayInput ¶ added in v3.8.0
type GetBindingsBindingArrayInput interface { pulumi.Input ToGetBindingsBindingArrayOutput() GetBindingsBindingArrayOutput ToGetBindingsBindingArrayOutputWithContext(context.Context) GetBindingsBindingArrayOutput }
GetBindingsBindingArrayInput is an input type that accepts GetBindingsBindingArray and GetBindingsBindingArrayOutput values. You can construct a concrete instance of `GetBindingsBindingArrayInput` via:
GetBindingsBindingArray{ GetBindingsBindingArgs{...} }
type GetBindingsBindingArrayOutput ¶ added in v3.8.0
type GetBindingsBindingArrayOutput struct{ *pulumi.OutputState }
func (GetBindingsBindingArrayOutput) ElementType ¶ added in v3.8.0
func (GetBindingsBindingArrayOutput) ElementType() reflect.Type
func (GetBindingsBindingArrayOutput) Index ¶ added in v3.8.0
func (o GetBindingsBindingArrayOutput) Index(i pulumi.IntInput) GetBindingsBindingOutput
func (GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutput ¶ added in v3.8.0
func (o GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutput() GetBindingsBindingArrayOutput
func (GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutputWithContext ¶ added in v3.8.0
func (o GetBindingsBindingArrayOutput) ToGetBindingsBindingArrayOutputWithContext(ctx context.Context) GetBindingsBindingArrayOutput
type GetBindingsBindingInput ¶ added in v3.8.0
type GetBindingsBindingInput interface { pulumi.Input ToGetBindingsBindingOutput() GetBindingsBindingOutput ToGetBindingsBindingOutputWithContext(context.Context) GetBindingsBindingOutput }
GetBindingsBindingInput is an input type that accepts GetBindingsBindingArgs and GetBindingsBindingOutput values. You can construct a concrete instance of `GetBindingsBindingInput` via:
GetBindingsBindingArgs{...}
type GetBindingsBindingOutput ¶ added in v3.8.0
type GetBindingsBindingOutput struct{ *pulumi.OutputState }
func (GetBindingsBindingOutput) Argument ¶ added in v3.8.0
func (o GetBindingsBindingOutput) Argument() pulumi.StringOutput
X-match Attributes. Valid Values: All: Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match. Any: at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match. This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.
func (GetBindingsBindingOutput) BindingKey ¶ added in v3.8.0
func (o GetBindingsBindingOutput) BindingKey() pulumi.StringOutput
The Binding Key. The Source of the Binding Exchange Non-Topic Type: Can Only Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). Length from 1 to 255 Characters. The Source of the Binding Exchange Topic Type: Can Contain Letters, Lowercase Letters, Numbers, and the Dash (-), the Underscore Character (_), English Periods (.) and the at Sign (@). If You Include the Hash (.
func (GetBindingsBindingOutput) BindingType ¶ added in v3.8.0
func (o GetBindingsBindingOutput) BindingType() pulumi.StringOutput
The Target Binding Types.
func (GetBindingsBindingOutput) DestinationName ¶ added in v3.8.0
func (o GetBindingsBindingOutput) DestinationName() pulumi.StringOutput
The Target Queue Or Exchange of the Name.
func (GetBindingsBindingOutput) ElementType ¶ added in v3.8.0
func (GetBindingsBindingOutput) ElementType() reflect.Type
func (GetBindingsBindingOutput) Id ¶ added in v3.8.0
func (o GetBindingsBindingOutput) Id() pulumi.StringOutput
The ID of the Binding. The value formats as `<instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>`.
func (GetBindingsBindingOutput) InstanceId ¶ added in v3.8.0
func (o GetBindingsBindingOutput) InstanceId() pulumi.StringOutput
Instance Id.
func (GetBindingsBindingOutput) SourceExchange ¶ added in v3.8.0
func (o GetBindingsBindingOutput) SourceExchange() pulumi.StringOutput
The Source Exchange Name.
func (GetBindingsBindingOutput) ToGetBindingsBindingOutput ¶ added in v3.8.0
func (o GetBindingsBindingOutput) ToGetBindingsBindingOutput() GetBindingsBindingOutput
func (GetBindingsBindingOutput) ToGetBindingsBindingOutputWithContext ¶ added in v3.8.0
func (o GetBindingsBindingOutput) ToGetBindingsBindingOutputWithContext(ctx context.Context) GetBindingsBindingOutput
func (GetBindingsBindingOutput) VirtualHostName ¶ added in v3.8.0
func (o GetBindingsBindingOutput) VirtualHostName() pulumi.StringOutput
Virtualhost Name.
type GetBindingsOutputArgs ¶ added in v3.9.0
type GetBindingsOutputArgs struct { // Instance Id. InstanceId pulumi.StringInput `pulumi:"instanceId"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // Virtualhost Name. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
A collection of arguments for invoking getBindings.
func (GetBindingsOutputArgs) ElementType ¶ added in v3.9.0
func (GetBindingsOutputArgs) ElementType() reflect.Type
type GetBindingsResult ¶ added in v3.8.0
type GetBindingsResult struct { Bindings []GetBindingsBinding `pulumi:"bindings"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` InstanceId string `pulumi:"instanceId"` OutputFile *string `pulumi:"outputFile"` VirtualHostName string `pulumi:"virtualHostName"` }
A collection of values returned by getBindings.
func GetBindings ¶ added in v3.8.0
func GetBindings(ctx *pulumi.Context, args *GetBindingsArgs, opts ...pulumi.InvokeOption) (*GetBindingsResult, error)
This data source provides the Amqp Bindings of the current Alibaba Cloud user.
> **NOTE:** Available in v1.135.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := amqp.GetBindings(ctx, &amqp.GetBindingsArgs{ InstanceId: "amqp-cn-xxxxx", VirtualHostName: "my-vh", }, nil) if err != nil { return err } return nil }) }
```
type GetBindingsResultOutput ¶ added in v3.9.0
type GetBindingsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBindings.
func GetBindingsOutput ¶ added in v3.9.0
func GetBindingsOutput(ctx *pulumi.Context, args GetBindingsOutputArgs, opts ...pulumi.InvokeOption) GetBindingsResultOutput
func (GetBindingsResultOutput) Bindings ¶ added in v3.9.0
func (o GetBindingsResultOutput) Bindings() GetBindingsBindingArrayOutput
func (GetBindingsResultOutput) ElementType ¶ added in v3.9.0
func (GetBindingsResultOutput) ElementType() reflect.Type
func (GetBindingsResultOutput) Id ¶ added in v3.9.0
func (o GetBindingsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetBindingsResultOutput) Ids ¶ added in v3.9.0
func (o GetBindingsResultOutput) Ids() pulumi.StringArrayOutput
func (GetBindingsResultOutput) InstanceId ¶ added in v3.9.0
func (o GetBindingsResultOutput) InstanceId() pulumi.StringOutput
func (GetBindingsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetBindingsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetBindingsResultOutput) ToGetBindingsResultOutput ¶ added in v3.9.0
func (o GetBindingsResultOutput) ToGetBindingsResultOutput() GetBindingsResultOutput
func (GetBindingsResultOutput) ToGetBindingsResultOutputWithContext ¶ added in v3.9.0
func (o GetBindingsResultOutput) ToGetBindingsResultOutputWithContext(ctx context.Context) GetBindingsResultOutput
func (GetBindingsResultOutput) VirtualHostName ¶ added in v3.9.0
func (o GetBindingsResultOutput) VirtualHostName() pulumi.StringOutput
type GetExchangesArgs ¶ added in v3.5.0
type GetExchangesArgs struct { // A list of Exchange IDs. Its element value is same as Exchange Name. Ids []string `pulumi:"ids"` // The ID of the instance. InstanceId string `pulumi:"instanceId"` // A regex string to filter results by Exchange name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` // The name of virtual host where an exchange resides. VirtualHostName string `pulumi:"virtualHostName"` }
A collection of arguments for invoking getExchanges.
type GetExchangesExchange ¶ added in v3.5.0
type GetExchangesExchange struct { // The attributes. Attributes map[string]interface{} `pulumi:"attributes"` // Indicates whether the Auto Delete attribute is configured. AutoDeleteState bool `pulumi:"autoDeleteState"` // The creation time. CreateTime string `pulumi:"createTime"` // The name of the exchange. ExchangeName string `pulumi:"exchangeName"` // The type of the exchange. ExchangeType string `pulumi:"exchangeType"` // The ID of the Exchange. Its value is same as Queue Name. Id string `pulumi:"id"` // The ID of the instance. InstanceId string `pulumi:"instanceId"` // The name of virtual host where an exchange resides. VirtualHostName string `pulumi:"virtualHostName"` }
type GetExchangesExchangeArgs ¶ added in v3.5.0
type GetExchangesExchangeArgs struct { // The attributes. Attributes pulumi.MapInput `pulumi:"attributes"` // Indicates whether the Auto Delete attribute is configured. AutoDeleteState pulumi.BoolInput `pulumi:"autoDeleteState"` // The creation time. CreateTime pulumi.StringInput `pulumi:"createTime"` // The name of the exchange. ExchangeName pulumi.StringInput `pulumi:"exchangeName"` // The type of the exchange. ExchangeType pulumi.StringInput `pulumi:"exchangeType"` // The ID of the Exchange. Its value is same as Queue Name. Id pulumi.StringInput `pulumi:"id"` // The ID of the instance. InstanceId pulumi.StringInput `pulumi:"instanceId"` // The name of virtual host where an exchange resides. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
func (GetExchangesExchangeArgs) ElementType ¶ added in v3.5.0
func (GetExchangesExchangeArgs) ElementType() reflect.Type
func (GetExchangesExchangeArgs) ToGetExchangesExchangeOutput ¶ added in v3.5.0
func (i GetExchangesExchangeArgs) ToGetExchangesExchangeOutput() GetExchangesExchangeOutput
func (GetExchangesExchangeArgs) ToGetExchangesExchangeOutputWithContext ¶ added in v3.5.0
func (i GetExchangesExchangeArgs) ToGetExchangesExchangeOutputWithContext(ctx context.Context) GetExchangesExchangeOutput
type GetExchangesExchangeArray ¶ added in v3.5.0
type GetExchangesExchangeArray []GetExchangesExchangeInput
func (GetExchangesExchangeArray) ElementType ¶ added in v3.5.0
func (GetExchangesExchangeArray) ElementType() reflect.Type
func (GetExchangesExchangeArray) ToGetExchangesExchangeArrayOutput ¶ added in v3.5.0
func (i GetExchangesExchangeArray) ToGetExchangesExchangeArrayOutput() GetExchangesExchangeArrayOutput
func (GetExchangesExchangeArray) ToGetExchangesExchangeArrayOutputWithContext ¶ added in v3.5.0
func (i GetExchangesExchangeArray) ToGetExchangesExchangeArrayOutputWithContext(ctx context.Context) GetExchangesExchangeArrayOutput
type GetExchangesExchangeArrayInput ¶ added in v3.5.0
type GetExchangesExchangeArrayInput interface { pulumi.Input ToGetExchangesExchangeArrayOutput() GetExchangesExchangeArrayOutput ToGetExchangesExchangeArrayOutputWithContext(context.Context) GetExchangesExchangeArrayOutput }
GetExchangesExchangeArrayInput is an input type that accepts GetExchangesExchangeArray and GetExchangesExchangeArrayOutput values. You can construct a concrete instance of `GetExchangesExchangeArrayInput` via:
GetExchangesExchangeArray{ GetExchangesExchangeArgs{...} }
type GetExchangesExchangeArrayOutput ¶ added in v3.5.0
type GetExchangesExchangeArrayOutput struct{ *pulumi.OutputState }
func (GetExchangesExchangeArrayOutput) ElementType ¶ added in v3.5.0
func (GetExchangesExchangeArrayOutput) ElementType() reflect.Type
func (GetExchangesExchangeArrayOutput) Index ¶ added in v3.5.0
func (o GetExchangesExchangeArrayOutput) Index(i pulumi.IntInput) GetExchangesExchangeOutput
func (GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutput ¶ added in v3.5.0
func (o GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutput() GetExchangesExchangeArrayOutput
func (GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutputWithContext ¶ added in v3.5.0
func (o GetExchangesExchangeArrayOutput) ToGetExchangesExchangeArrayOutputWithContext(ctx context.Context) GetExchangesExchangeArrayOutput
type GetExchangesExchangeInput ¶ added in v3.5.0
type GetExchangesExchangeInput interface { pulumi.Input ToGetExchangesExchangeOutput() GetExchangesExchangeOutput ToGetExchangesExchangeOutputWithContext(context.Context) GetExchangesExchangeOutput }
GetExchangesExchangeInput is an input type that accepts GetExchangesExchangeArgs and GetExchangesExchangeOutput values. You can construct a concrete instance of `GetExchangesExchangeInput` via:
GetExchangesExchangeArgs{...}
type GetExchangesExchangeOutput ¶ added in v3.5.0
type GetExchangesExchangeOutput struct{ *pulumi.OutputState }
func (GetExchangesExchangeOutput) Attributes ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) Attributes() pulumi.MapOutput
The attributes.
func (GetExchangesExchangeOutput) AutoDeleteState ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) AutoDeleteState() pulumi.BoolOutput
Indicates whether the Auto Delete attribute is configured.
func (GetExchangesExchangeOutput) CreateTime ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) CreateTime() pulumi.StringOutput
The creation time.
func (GetExchangesExchangeOutput) ElementType ¶ added in v3.5.0
func (GetExchangesExchangeOutput) ElementType() reflect.Type
func (GetExchangesExchangeOutput) ExchangeName ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) ExchangeName() pulumi.StringOutput
The name of the exchange.
func (GetExchangesExchangeOutput) ExchangeType ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) ExchangeType() pulumi.StringOutput
The type of the exchange.
func (GetExchangesExchangeOutput) Id ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) Id() pulumi.StringOutput
The ID of the Exchange. Its value is same as Queue Name.
func (GetExchangesExchangeOutput) InstanceId ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) InstanceId() pulumi.StringOutput
The ID of the instance.
func (GetExchangesExchangeOutput) ToGetExchangesExchangeOutput ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) ToGetExchangesExchangeOutput() GetExchangesExchangeOutput
func (GetExchangesExchangeOutput) ToGetExchangesExchangeOutputWithContext ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) ToGetExchangesExchangeOutputWithContext(ctx context.Context) GetExchangesExchangeOutput
func (GetExchangesExchangeOutput) VirtualHostName ¶ added in v3.5.0
func (o GetExchangesExchangeOutput) VirtualHostName() pulumi.StringOutput
The name of virtual host where an exchange resides.
type GetExchangesOutputArgs ¶ added in v3.9.0
type GetExchangesOutputArgs struct { // A list of Exchange IDs. Its element value is same as Exchange Name. Ids pulumi.StringArrayInput `pulumi:"ids"` // The ID of the instance. InstanceId pulumi.StringInput `pulumi:"instanceId"` // A regex string to filter results by Exchange name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The name of virtual host where an exchange resides. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
A collection of arguments for invoking getExchanges.
func (GetExchangesOutputArgs) ElementType ¶ added in v3.9.0
func (GetExchangesOutputArgs) ElementType() reflect.Type
type GetExchangesResult ¶ added in v3.5.0
type GetExchangesResult struct { Exchanges []GetExchangesExchange `pulumi:"exchanges"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` InstanceId string `pulumi:"instanceId"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` VirtualHostName string `pulumi:"virtualHostName"` }
A collection of values returned by getExchanges.
func GetExchanges ¶ added in v3.5.0
func GetExchanges(ctx *pulumi.Context, args *GetExchangesArgs, opts ...pulumi.InvokeOption) (*GetExchangesResult, error)
This data source provides the Amqp Exchanges of the current Alibaba Cloud user.
> **NOTE:** Available in v1.128.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := amqp.GetExchanges(ctx, &amqp.GetExchangesArgs{ InstanceId: "amqp-abc12345", VirtualHostName: "my-VirtualHost", Ids: []string{ "my-Exchange-1", "my-Exchange-2", }, }, nil) if err != nil { return err } ctx.Export("amqpExchangeId1", ids.Exchanges[0].Id) nameRegex, err := amqp.GetExchanges(ctx, &amqp.GetExchangesArgs{ InstanceId: "amqp-abc12345", VirtualHostName: "my-VirtualHost", NameRegex: pulumi.StringRef("^my-Exchange"), }, nil) if err != nil { return err } ctx.Export("amqpExchangeId2", nameRegex.Exchanges[0].Id) return nil }) }
```
type GetExchangesResultOutput ¶ added in v3.9.0
type GetExchangesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getExchanges.
func GetExchangesOutput ¶ added in v3.9.0
func GetExchangesOutput(ctx *pulumi.Context, args GetExchangesOutputArgs, opts ...pulumi.InvokeOption) GetExchangesResultOutput
func (GetExchangesResultOutput) ElementType ¶ added in v3.9.0
func (GetExchangesResultOutput) ElementType() reflect.Type
func (GetExchangesResultOutput) Exchanges ¶ added in v3.9.0
func (o GetExchangesResultOutput) Exchanges() GetExchangesExchangeArrayOutput
func (GetExchangesResultOutput) Id ¶ added in v3.9.0
func (o GetExchangesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetExchangesResultOutput) Ids ¶ added in v3.9.0
func (o GetExchangesResultOutput) Ids() pulumi.StringArrayOutput
func (GetExchangesResultOutput) InstanceId ¶ added in v3.9.0
func (o GetExchangesResultOutput) InstanceId() pulumi.StringOutput
func (GetExchangesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetExchangesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetExchangesResultOutput) Names ¶ added in v3.9.0
func (o GetExchangesResultOutput) Names() pulumi.StringArrayOutput
func (GetExchangesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetExchangesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetExchangesResultOutput) ToGetExchangesResultOutput ¶ added in v3.9.0
func (o GetExchangesResultOutput) ToGetExchangesResultOutput() GetExchangesResultOutput
func (GetExchangesResultOutput) ToGetExchangesResultOutputWithContext ¶ added in v3.9.0
func (o GetExchangesResultOutput) ToGetExchangesResultOutputWithContext(ctx context.Context) GetExchangesResultOutput
func (GetExchangesResultOutput) VirtualHostName ¶ added in v3.9.0
func (o GetExchangesResultOutput) VirtualHostName() pulumi.StringOutput
type GetInstancesArgs ¶ added in v3.5.0
type GetInstancesArgs struct { // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails *bool `pulumi:"enableDetails"` // A list of Instance IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Instance name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` // The status of the resource. Status *string `pulumi:"status"` }
A collection of arguments for invoking getInstances.
type GetInstancesInstance ¶ added in v3.5.0
type GetInstancesInstance struct { // OrderCreateTime. CreateTime string `pulumi:"createTime"` // ExpireTime. ExpireTime string `pulumi:"expireTime"` // The ID of the Instance. Id string `pulumi:"id"` // THe instance Id. InstanceId string `pulumi:"instanceId"` // THe instance name. InstanceName string `pulumi:"instanceName"` // The instance type. InstanceType string `pulumi:"instanceType"` // The Pay-as-You-Type Values Include: the Subscription of a Pre-Paid. PaymentType string `pulumi:"paymentType"` // The private endPoint. PrivateEndPoint string `pulumi:"privateEndPoint"` // The public dndpoint. PublicEndpoint string `pulumi:"publicEndpoint"` // Renewal duration. RenewalDuration int `pulumi:"renewalDuration"` // Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. RenewalDurationUnit string `pulumi:"renewalDurationUnit"` // Renew status. RenewalStatus string `pulumi:"renewalStatus"` // The status of the resource. Status string `pulumi:"status"` // Whether to support eip. SupportEip bool `pulumi:"supportEip"` }
type GetInstancesInstanceArgs ¶ added in v3.5.0
type GetInstancesInstanceArgs struct { // OrderCreateTime. CreateTime pulumi.StringInput `pulumi:"createTime"` // ExpireTime. ExpireTime pulumi.StringInput `pulumi:"expireTime"` // The ID of the Instance. Id pulumi.StringInput `pulumi:"id"` // THe instance Id. InstanceId pulumi.StringInput `pulumi:"instanceId"` // THe instance name. InstanceName pulumi.StringInput `pulumi:"instanceName"` // The instance type. InstanceType pulumi.StringInput `pulumi:"instanceType"` // The Pay-as-You-Type Values Include: the Subscription of a Pre-Paid. PaymentType pulumi.StringInput `pulumi:"paymentType"` // The private endPoint. PrivateEndPoint pulumi.StringInput `pulumi:"privateEndPoint"` // The public dndpoint. PublicEndpoint pulumi.StringInput `pulumi:"publicEndpoint"` // Renewal duration. RenewalDuration pulumi.IntInput `pulumi:"renewalDuration"` // Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. RenewalDurationUnit pulumi.StringInput `pulumi:"renewalDurationUnit"` // Renew status. RenewalStatus pulumi.StringInput `pulumi:"renewalStatus"` // The status of the resource. Status pulumi.StringInput `pulumi:"status"` // Whether to support eip. SupportEip pulumi.BoolInput `pulumi:"supportEip"` }
func (GetInstancesInstanceArgs) ElementType ¶ added in v3.5.0
func (GetInstancesInstanceArgs) ElementType() reflect.Type
func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput ¶ added in v3.5.0
func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext ¶ added in v3.5.0
func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
type GetInstancesInstanceArray ¶ added in v3.5.0
type GetInstancesInstanceArray []GetInstancesInstanceInput
func (GetInstancesInstanceArray) ElementType ¶ added in v3.5.0
func (GetInstancesInstanceArray) ElementType() reflect.Type
func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput ¶ added in v3.5.0
func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext ¶ added in v3.5.0
func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
type GetInstancesInstanceArrayInput ¶ added in v3.5.0
type GetInstancesInstanceArrayInput interface { pulumi.Input ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput }
GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:
GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }
type GetInstancesInstanceArrayOutput ¶ added in v3.5.0
type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }
func (GetInstancesInstanceArrayOutput) ElementType ¶ added in v3.5.0
func (GetInstancesInstanceArrayOutput) ElementType() reflect.Type
func (GetInstancesInstanceArrayOutput) Index ¶ added in v3.5.0
func (o GetInstancesInstanceArrayOutput) Index(i pulumi.IntInput) GetInstancesInstanceOutput
func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput ¶ added in v3.5.0
func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext ¶ added in v3.5.0
func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
type GetInstancesInstanceInput ¶ added in v3.5.0
type GetInstancesInstanceInput interface { pulumi.Input ToGetInstancesInstanceOutput() GetInstancesInstanceOutput ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput }
GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:
GetInstancesInstanceArgs{...}
type GetInstancesInstanceOutput ¶ added in v3.5.0
type GetInstancesInstanceOutput struct{ *pulumi.OutputState }
func (GetInstancesInstanceOutput) CreateTime ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) CreateTime() pulumi.StringOutput
OrderCreateTime.
func (GetInstancesInstanceOutput) ElementType ¶ added in v3.5.0
func (GetInstancesInstanceOutput) ElementType() reflect.Type
func (GetInstancesInstanceOutput) ExpireTime ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) ExpireTime() pulumi.StringOutput
ExpireTime.
func (GetInstancesInstanceOutput) Id ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) Id() pulumi.StringOutput
The ID of the Instance.
func (GetInstancesInstanceOutput) InstanceId ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) InstanceId() pulumi.StringOutput
THe instance Id.
func (GetInstancesInstanceOutput) InstanceName ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) InstanceName() pulumi.StringOutput
THe instance name.
func (GetInstancesInstanceOutput) InstanceType ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) InstanceType() pulumi.StringOutput
The instance type.
func (GetInstancesInstanceOutput) PaymentType ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) PaymentType() pulumi.StringOutput
The Pay-as-You-Type Values Include: the Subscription of a Pre-Paid.
func (GetInstancesInstanceOutput) PrivateEndPoint ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) PrivateEndPoint() pulumi.StringOutput
The private endPoint.
func (GetInstancesInstanceOutput) PublicEndpoint ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) PublicEndpoint() pulumi.StringOutput
The public dndpoint.
func (GetInstancesInstanceOutput) RenewalDuration ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) RenewalDuration() pulumi.IntOutput
Renewal duration.
func (GetInstancesInstanceOutput) RenewalDurationUnit ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) RenewalDurationUnit() pulumi.StringOutput
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years.
func (GetInstancesInstanceOutput) RenewalStatus ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) RenewalStatus() pulumi.StringOutput
Renew status.
func (GetInstancesInstanceOutput) Status ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) Status() pulumi.StringOutput
The status of the resource.
func (GetInstancesInstanceOutput) SupportEip ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) SupportEip() pulumi.BoolOutput
Whether to support eip.
func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext ¶ added in v3.5.0
func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
type GetInstancesOutputArgs ¶ added in v3.9.0
type GetInstancesOutputArgs struct { // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // A list of Instance IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter results by Instance name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The status of the resource. Status pulumi.StringPtrInput `pulumi:"status"` }
A collection of arguments for invoking getInstances.
func (GetInstancesOutputArgs) ElementType ¶ added in v3.9.0
func (GetInstancesOutputArgs) ElementType() reflect.Type
type GetInstancesResult ¶ added in v3.5.0
type GetInstancesResult struct { EnableDetails *bool `pulumi:"enableDetails"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` Instances []GetInstancesInstance `pulumi:"instances"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Status *string `pulumi:"status"` }
A collection of values returned by getInstances.
func GetInstances ¶ added in v3.5.0
func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)
This data source provides the Amqp Instances of the current Alibaba Cloud user.
> **NOTE:** Available in v1.128.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := amqp.GetInstances(ctx, &amqp.GetInstancesArgs{ Ids: []string{ "amqp-abc12345", "amqp-abc34567", }, }, nil) if err != nil { return err } ctx.Export("amqpInstanceId1", ids.Instances[0].Id) nameRegex, err := amqp.GetInstances(ctx, &amqp.GetInstancesArgs{ NameRegex: pulumi.StringRef("^my-Instance"), }, nil) if err != nil { return err } ctx.Export("amqpInstanceId2", nameRegex.Instances[0].Id) return nil }) }
```
type GetInstancesResultOutput ¶ added in v3.9.0
type GetInstancesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getInstances.
func GetInstancesOutput ¶ added in v3.9.0
func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput
func (GetInstancesResultOutput) ElementType ¶ added in v3.9.0
func (GetInstancesResultOutput) ElementType() reflect.Type
func (GetInstancesResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetInstancesResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetInstancesResultOutput) Id ¶ added in v3.9.0
func (o GetInstancesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetInstancesResultOutput) Ids ¶ added in v3.9.0
func (o GetInstancesResultOutput) Ids() pulumi.StringArrayOutput
func (GetInstancesResultOutput) Instances ¶ added in v3.9.0
func (o GetInstancesResultOutput) Instances() GetInstancesInstanceArrayOutput
func (GetInstancesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetInstancesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetInstancesResultOutput) Names ¶ added in v3.9.0
func (o GetInstancesResultOutput) Names() pulumi.StringArrayOutput
func (GetInstancesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetInstancesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetInstancesResultOutput) Status ¶ added in v3.9.0
func (o GetInstancesResultOutput) Status() pulumi.StringPtrOutput
func (GetInstancesResultOutput) ToGetInstancesResultOutput ¶ added in v3.9.0
func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput
func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext ¶ added in v3.9.0
func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput
type GetQueuesArgs ¶ added in v3.5.0
type GetQueuesArgs struct { // A list of Queue IDs. Its element value is same as Queue Name. Ids []string `pulumi:"ids"` // The ID of the instance. InstanceId string `pulumi:"instanceId"` // A regex string to filter results by Queue name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` // The name of the virtual host. VirtualHostName string `pulumi:"virtualHostName"` }
A collection of arguments for invoking getQueues.
type GetQueuesOutputArgs ¶ added in v3.9.0
type GetQueuesOutputArgs struct { // A list of Queue IDs. Its element value is same as Queue Name. Ids pulumi.StringArrayInput `pulumi:"ids"` // The ID of the instance. InstanceId pulumi.StringInput `pulumi:"instanceId"` // A regex string to filter results by Queue name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The name of the virtual host. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
A collection of arguments for invoking getQueues.
func (GetQueuesOutputArgs) ElementType ¶ added in v3.9.0
func (GetQueuesOutputArgs) ElementType() reflect.Type
type GetQueuesQueue ¶ added in v3.5.0
type GetQueuesQueue struct { // The attributes for the Queue. Attributes map[string]interface{} `pulumi:"attributes"` // Specifies whether the Auto Delete attribute is configured. AutoDeleteState bool `pulumi:"autoDeleteState"` // CreateTime. CreateTime string `pulumi:"createTime"` // Specifies whether the queue is an exclusive queue. ExclusiveState bool `pulumi:"exclusiveState"` // The ID of the Queue. Its value is same as Queue Name. Id string `pulumi:"id"` // The ID of the instance. InstanceId string `pulumi:"instanceId"` // The last consume time. LastConsumeTime string `pulumi:"lastConsumeTime"` // The queue name. QueueName string `pulumi:"queueName"` // The name of the virtual host. VirtualHostName string `pulumi:"virtualHostName"` }
type GetQueuesQueueArgs ¶ added in v3.5.0
type GetQueuesQueueArgs struct { // The attributes for the Queue. Attributes pulumi.MapInput `pulumi:"attributes"` // Specifies whether the Auto Delete attribute is configured. AutoDeleteState pulumi.BoolInput `pulumi:"autoDeleteState"` // CreateTime. CreateTime pulumi.StringInput `pulumi:"createTime"` // Specifies whether the queue is an exclusive queue. ExclusiveState pulumi.BoolInput `pulumi:"exclusiveState"` // The ID of the Queue. Its value is same as Queue Name. Id pulumi.StringInput `pulumi:"id"` // The ID of the instance. InstanceId pulumi.StringInput `pulumi:"instanceId"` // The last consume time. LastConsumeTime pulumi.StringInput `pulumi:"lastConsumeTime"` // The queue name. QueueName pulumi.StringInput `pulumi:"queueName"` // The name of the virtual host. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
func (GetQueuesQueueArgs) ElementType ¶ added in v3.5.0
func (GetQueuesQueueArgs) ElementType() reflect.Type
func (GetQueuesQueueArgs) ToGetQueuesQueueOutput ¶ added in v3.5.0
func (i GetQueuesQueueArgs) ToGetQueuesQueueOutput() GetQueuesQueueOutput
func (GetQueuesQueueArgs) ToGetQueuesQueueOutputWithContext ¶ added in v3.5.0
func (i GetQueuesQueueArgs) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
type GetQueuesQueueArray ¶ added in v3.5.0
type GetQueuesQueueArray []GetQueuesQueueInput
func (GetQueuesQueueArray) ElementType ¶ added in v3.5.0
func (GetQueuesQueueArray) ElementType() reflect.Type
func (GetQueuesQueueArray) ToGetQueuesQueueArrayOutput ¶ added in v3.5.0
func (i GetQueuesQueueArray) ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput
func (GetQueuesQueueArray) ToGetQueuesQueueArrayOutputWithContext ¶ added in v3.5.0
func (i GetQueuesQueueArray) ToGetQueuesQueueArrayOutputWithContext(ctx context.Context) GetQueuesQueueArrayOutput
type GetQueuesQueueArrayInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type GetQueuesQueueArrayOutput struct{ *pulumi.OutputState }
func (GetQueuesQueueArrayOutput) ElementType ¶ added in v3.5.0
func (GetQueuesQueueArrayOutput) ElementType() reflect.Type
func (GetQueuesQueueArrayOutput) Index ¶ added in v3.5.0
func (o GetQueuesQueueArrayOutput) Index(i pulumi.IntInput) GetQueuesQueueOutput
func (GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutput ¶ added in v3.5.0
func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutput() GetQueuesQueueArrayOutput
func (GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutputWithContext ¶ added in v3.5.0
func (o GetQueuesQueueArrayOutput) ToGetQueuesQueueArrayOutputWithContext(ctx context.Context) GetQueuesQueueArrayOutput
type GetQueuesQueueInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type GetQueuesQueueOutput struct{ *pulumi.OutputState }
func (GetQueuesQueueOutput) Attributes ¶ added in v3.5.0
func (o GetQueuesQueueOutput) Attributes() pulumi.MapOutput
The attributes for the Queue.
func (GetQueuesQueueOutput) AutoDeleteState ¶ added in v3.5.0
func (o GetQueuesQueueOutput) AutoDeleteState() pulumi.BoolOutput
Specifies whether the Auto Delete attribute is configured.
func (GetQueuesQueueOutput) CreateTime ¶ added in v3.5.0
func (o GetQueuesQueueOutput) CreateTime() pulumi.StringOutput
CreateTime.
func (GetQueuesQueueOutput) ElementType ¶ added in v3.5.0
func (GetQueuesQueueOutput) ElementType() reflect.Type
func (GetQueuesQueueOutput) ExclusiveState ¶ added in v3.5.0
func (o GetQueuesQueueOutput) ExclusiveState() pulumi.BoolOutput
Specifies whether the queue is an exclusive queue.
func (GetQueuesQueueOutput) Id ¶ added in v3.5.0
func (o GetQueuesQueueOutput) Id() pulumi.StringOutput
The ID of the Queue. Its value is same as Queue Name.
func (GetQueuesQueueOutput) InstanceId ¶ added in v3.5.0
func (o GetQueuesQueueOutput) InstanceId() pulumi.StringOutput
The ID of the instance.
func (GetQueuesQueueOutput) LastConsumeTime ¶ added in v3.5.0
func (o GetQueuesQueueOutput) LastConsumeTime() pulumi.StringOutput
The last consume time.
func (GetQueuesQueueOutput) QueueName ¶ added in v3.5.0
func (o GetQueuesQueueOutput) QueueName() pulumi.StringOutput
The queue name.
func (GetQueuesQueueOutput) ToGetQueuesQueueOutput ¶ added in v3.5.0
func (o GetQueuesQueueOutput) ToGetQueuesQueueOutput() GetQueuesQueueOutput
func (GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext ¶ added in v3.5.0
func (o GetQueuesQueueOutput) ToGetQueuesQueueOutputWithContext(ctx context.Context) GetQueuesQueueOutput
func (GetQueuesQueueOutput) VirtualHostName ¶ added in v3.5.0
func (o GetQueuesQueueOutput) VirtualHostName() pulumi.StringOutput
The name of the virtual host.
type GetQueuesResult ¶ added in v3.5.0
type GetQueuesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` InstanceId string `pulumi:"instanceId"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Queues []GetQueuesQueue `pulumi:"queues"` VirtualHostName string `pulumi:"virtualHostName"` }
A collection of values returned by getQueues.
func GetQueues ¶ added in v3.5.0
func GetQueues(ctx *pulumi.Context, args *GetQueuesArgs, opts ...pulumi.InvokeOption) (*GetQueuesResult, error)
This data source provides the Amqp Queues of the current Alibaba Cloud user.
> **NOTE:** Available in v1.127.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := amqp.GetQueues(ctx, &amqp.GetQueuesArgs{ InstanceId: "amqp-abc12345", VirtualHostName: "my-VirtualHost", Ids: []string{ "my-Queue-1", "my-Queue-2", }, }, nil) if err != nil { return err } ctx.Export("amqpQueueId1", ids.Queues[0].Id) nameRegex, err := amqp.GetQueues(ctx, &amqp.GetQueuesArgs{ InstanceId: "amqp-abc12345", VirtualHostName: "my-VirtualHost", NameRegex: pulumi.StringRef("^my-Queue"), }, nil) if err != nil { return err } ctx.Export("amqpQueueId2", nameRegex.Queues[0].Id) return nil }) }
```
type GetQueuesResultOutput ¶ added in v3.9.0
type GetQueuesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getQueues.
func GetQueuesOutput ¶ added in v3.9.0
func GetQueuesOutput(ctx *pulumi.Context, args GetQueuesOutputArgs, opts ...pulumi.InvokeOption) GetQueuesResultOutput
func (GetQueuesResultOutput) ElementType ¶ added in v3.9.0
func (GetQueuesResultOutput) ElementType() reflect.Type
func (GetQueuesResultOutput) Id ¶ added in v3.9.0
func (o GetQueuesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetQueuesResultOutput) Ids ¶ added in v3.9.0
func (o GetQueuesResultOutput) Ids() pulumi.StringArrayOutput
func (GetQueuesResultOutput) InstanceId ¶ added in v3.9.0
func (o GetQueuesResultOutput) InstanceId() pulumi.StringOutput
func (GetQueuesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetQueuesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetQueuesResultOutput) Names ¶ added in v3.9.0
func (o GetQueuesResultOutput) Names() pulumi.StringArrayOutput
func (GetQueuesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetQueuesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetQueuesResultOutput) Queues ¶ added in v3.9.0
func (o GetQueuesResultOutput) Queues() GetQueuesQueueArrayOutput
func (GetQueuesResultOutput) ToGetQueuesResultOutput ¶ added in v3.9.0
func (o GetQueuesResultOutput) ToGetQueuesResultOutput() GetQueuesResultOutput
func (GetQueuesResultOutput) ToGetQueuesResultOutputWithContext ¶ added in v3.9.0
func (o GetQueuesResultOutput) ToGetQueuesResultOutputWithContext(ctx context.Context) GetQueuesResultOutput
func (GetQueuesResultOutput) VirtualHostName ¶ added in v3.9.0
func (o GetQueuesResultOutput) VirtualHostName() pulumi.StringOutput
type GetStaticAccountsAccount ¶ added in v3.29.0
type GetStaticAccountsAccount struct { // Access key. AccessKey string `pulumi:"accessKey"` // Create time stamp. Unix timestamp, to millisecond level. CreateTime string `pulumi:"createTime"` // The `key` of the resource supplied above.The value is formulated as `<instance_id>:<access_key>`. Id string `pulumi:"id"` // InstanceId InstanceId string `pulumi:"instanceId"` // The ID of the user's primary account. MasterUid string `pulumi:"masterUid"` // Static password. Password string `pulumi:"password"` // Static username. UserName string `pulumi:"userName"` }
type GetStaticAccountsAccountArgs ¶ added in v3.29.0
type GetStaticAccountsAccountArgs struct { // Access key. AccessKey pulumi.StringInput `pulumi:"accessKey"` // Create time stamp. Unix timestamp, to millisecond level. CreateTime pulumi.StringInput `pulumi:"createTime"` // The `key` of the resource supplied above.The value is formulated as `<instance_id>:<access_key>`. Id pulumi.StringInput `pulumi:"id"` // InstanceId InstanceId pulumi.StringInput `pulumi:"instanceId"` // The ID of the user's primary account. MasterUid pulumi.StringInput `pulumi:"masterUid"` // Static password. Password pulumi.StringInput `pulumi:"password"` // Static username. UserName pulumi.StringInput `pulumi:"userName"` }
func (GetStaticAccountsAccountArgs) ElementType ¶ added in v3.29.0
func (GetStaticAccountsAccountArgs) ElementType() reflect.Type
func (GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutput ¶ added in v3.29.0
func (i GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutput() GetStaticAccountsAccountOutput
func (GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutputWithContext ¶ added in v3.29.0
func (i GetStaticAccountsAccountArgs) ToGetStaticAccountsAccountOutputWithContext(ctx context.Context) GetStaticAccountsAccountOutput
type GetStaticAccountsAccountArray ¶ added in v3.29.0
type GetStaticAccountsAccountArray []GetStaticAccountsAccountInput
func (GetStaticAccountsAccountArray) ElementType ¶ added in v3.29.0
func (GetStaticAccountsAccountArray) ElementType() reflect.Type
func (GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutput ¶ added in v3.29.0
func (i GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutput() GetStaticAccountsAccountArrayOutput
func (GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutputWithContext ¶ added in v3.29.0
func (i GetStaticAccountsAccountArray) ToGetStaticAccountsAccountArrayOutputWithContext(ctx context.Context) GetStaticAccountsAccountArrayOutput
type GetStaticAccountsAccountArrayInput ¶ added in v3.29.0
type GetStaticAccountsAccountArrayInput interface { pulumi.Input ToGetStaticAccountsAccountArrayOutput() GetStaticAccountsAccountArrayOutput ToGetStaticAccountsAccountArrayOutputWithContext(context.Context) GetStaticAccountsAccountArrayOutput }
GetStaticAccountsAccountArrayInput is an input type that accepts GetStaticAccountsAccountArray and GetStaticAccountsAccountArrayOutput values. You can construct a concrete instance of `GetStaticAccountsAccountArrayInput` via:
GetStaticAccountsAccountArray{ GetStaticAccountsAccountArgs{...} }
type GetStaticAccountsAccountArrayOutput ¶ added in v3.29.0
type GetStaticAccountsAccountArrayOutput struct{ *pulumi.OutputState }
func (GetStaticAccountsAccountArrayOutput) ElementType ¶ added in v3.29.0
func (GetStaticAccountsAccountArrayOutput) ElementType() reflect.Type
func (GetStaticAccountsAccountArrayOutput) Index ¶ added in v3.29.0
func (o GetStaticAccountsAccountArrayOutput) Index(i pulumi.IntInput) GetStaticAccountsAccountOutput
func (GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutput ¶ added in v3.29.0
func (o GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutput() GetStaticAccountsAccountArrayOutput
func (GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutputWithContext ¶ added in v3.29.0
func (o GetStaticAccountsAccountArrayOutput) ToGetStaticAccountsAccountArrayOutputWithContext(ctx context.Context) GetStaticAccountsAccountArrayOutput
type GetStaticAccountsAccountInput ¶ added in v3.29.0
type GetStaticAccountsAccountInput interface { pulumi.Input ToGetStaticAccountsAccountOutput() GetStaticAccountsAccountOutput ToGetStaticAccountsAccountOutputWithContext(context.Context) GetStaticAccountsAccountOutput }
GetStaticAccountsAccountInput is an input type that accepts GetStaticAccountsAccountArgs and GetStaticAccountsAccountOutput values. You can construct a concrete instance of `GetStaticAccountsAccountInput` via:
GetStaticAccountsAccountArgs{...}
type GetStaticAccountsAccountOutput ¶ added in v3.29.0
type GetStaticAccountsAccountOutput struct{ *pulumi.OutputState }
func (GetStaticAccountsAccountOutput) AccessKey ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) AccessKey() pulumi.StringOutput
Access key.
func (GetStaticAccountsAccountOutput) CreateTime ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) CreateTime() pulumi.StringOutput
Create time stamp. Unix timestamp, to millisecond level.
func (GetStaticAccountsAccountOutput) ElementType ¶ added in v3.29.0
func (GetStaticAccountsAccountOutput) ElementType() reflect.Type
func (GetStaticAccountsAccountOutput) Id ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) Id() pulumi.StringOutput
The `key` of the resource supplied above.The value is formulated as `<instance_id>:<access_key>`.
func (GetStaticAccountsAccountOutput) InstanceId ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) InstanceId() pulumi.StringOutput
InstanceId
func (GetStaticAccountsAccountOutput) MasterUid ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) MasterUid() pulumi.StringOutput
The ID of the user's primary account.
func (GetStaticAccountsAccountOutput) Password ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) Password() pulumi.StringOutput
Static password.
func (GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutput ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutput() GetStaticAccountsAccountOutput
func (GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutputWithContext ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) ToGetStaticAccountsAccountOutputWithContext(ctx context.Context) GetStaticAccountsAccountOutput
func (GetStaticAccountsAccountOutput) UserName ¶ added in v3.29.0
func (o GetStaticAccountsAccountOutput) UserName() pulumi.StringOutput
Static username.
type GetStaticAccountsArgs ¶ added in v3.29.0
type GetStaticAccountsArgs struct { // The `key` of the resource supplied above.The value is formulated as `<instance_id>:<access_key>`. Ids []string `pulumi:"ids"` // InstanceId InstanceId *string `pulumi:"instanceId"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getStaticAccounts.
type GetStaticAccountsOutputArgs ¶ added in v3.29.0
type GetStaticAccountsOutputArgs struct { // The `key` of the resource supplied above.The value is formulated as `<instance_id>:<access_key>`. Ids pulumi.StringArrayInput `pulumi:"ids"` // InstanceId InstanceId pulumi.StringPtrInput `pulumi:"instanceId"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getStaticAccounts.
func (GetStaticAccountsOutputArgs) ElementType ¶ added in v3.29.0
func (GetStaticAccountsOutputArgs) ElementType() reflect.Type
type GetStaticAccountsResult ¶ added in v3.29.0
type GetStaticAccountsResult struct { // A list of Static Account Entries. Each element contains the following attributes: Accounts []GetStaticAccountsAccount `pulumi:"accounts"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` // Amqp instance ID. InstanceId *string `pulumi:"instanceId"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getStaticAccounts.
func GetStaticAccounts ¶ added in v3.29.0
func GetStaticAccounts(ctx *pulumi.Context, args *GetStaticAccountsArgs, opts ...pulumi.InvokeOption) (*GetStaticAccountsResult, error)
This data source provides Amqp Static Account available to the user.[What is Static Account](https://help.aliyun.com/document_detail/184399.html)
> **NOTE:** Available in 1.195.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := amqp.GetStaticAccounts(ctx, &amqp.GetStaticAccountsArgs{ InstanceId: pulumi.StringRef("amqp-cn-0ju2y01zs001"), }, nil) if err != nil { return err } ctx.Export("alicloudAmqpStaticAccountExampleId", _default.Accounts[0].Id) return nil }) }
```
type GetStaticAccountsResultOutput ¶ added in v3.29.0
type GetStaticAccountsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getStaticAccounts.
func GetStaticAccountsOutput ¶ added in v3.29.0
func GetStaticAccountsOutput(ctx *pulumi.Context, args GetStaticAccountsOutputArgs, opts ...pulumi.InvokeOption) GetStaticAccountsResultOutput
func (GetStaticAccountsResultOutput) Accounts ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) Accounts() GetStaticAccountsAccountArrayOutput
A list of Static Account Entries. Each element contains the following attributes:
func (GetStaticAccountsResultOutput) ElementType ¶ added in v3.29.0
func (GetStaticAccountsResultOutput) ElementType() reflect.Type
func (GetStaticAccountsResultOutput) Id ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetStaticAccountsResultOutput) Ids ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) Ids() pulumi.StringArrayOutput
func (GetStaticAccountsResultOutput) InstanceId ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) InstanceId() pulumi.StringPtrOutput
Amqp instance ID.
func (GetStaticAccountsResultOutput) OutputFile ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutput ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutput() GetStaticAccountsResultOutput
func (GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutputWithContext ¶ added in v3.29.0
func (o GetStaticAccountsResultOutput) ToGetStaticAccountsResultOutputWithContext(ctx context.Context) GetStaticAccountsResultOutput
type GetVirtualHostsArgs ¶
type GetVirtualHostsArgs struct { // A list of Virtual Host IDs. Its element value is same as Virtual Host Name. Ids []string `pulumi:"ids"` // InstanceId. InstanceId string `pulumi:"instanceId"` // A regex string to filter results by Virtual Host name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getVirtualHosts.
type GetVirtualHostsHost ¶
type GetVirtualHostsHostArgs ¶
type GetVirtualHostsHostArgs struct { // The ID of the Virtual Host. Id pulumi.StringInput `pulumi:"id"` // InstanceId. InstanceId pulumi.StringInput `pulumi:"instanceId"` // VirtualHostName. VirtualHostName pulumi.StringInput `pulumi:"virtualHostName"` }
func (GetVirtualHostsHostArgs) ElementType ¶
func (GetVirtualHostsHostArgs) ElementType() reflect.Type
func (GetVirtualHostsHostArgs) ToGetVirtualHostsHostOutput ¶
func (i GetVirtualHostsHostArgs) ToGetVirtualHostsHostOutput() GetVirtualHostsHostOutput
func (GetVirtualHostsHostArgs) ToGetVirtualHostsHostOutputWithContext ¶
func (i GetVirtualHostsHostArgs) ToGetVirtualHostsHostOutputWithContext(ctx context.Context) GetVirtualHostsHostOutput
type GetVirtualHostsHostArray ¶
type GetVirtualHostsHostArray []GetVirtualHostsHostInput
func (GetVirtualHostsHostArray) ElementType ¶
func (GetVirtualHostsHostArray) ElementType() reflect.Type
func (GetVirtualHostsHostArray) ToGetVirtualHostsHostArrayOutput ¶
func (i GetVirtualHostsHostArray) ToGetVirtualHostsHostArrayOutput() GetVirtualHostsHostArrayOutput
func (GetVirtualHostsHostArray) ToGetVirtualHostsHostArrayOutputWithContext ¶
func (i GetVirtualHostsHostArray) ToGetVirtualHostsHostArrayOutputWithContext(ctx context.Context) GetVirtualHostsHostArrayOutput
type GetVirtualHostsHostArrayInput ¶
type GetVirtualHostsHostArrayInput interface { pulumi.Input ToGetVirtualHostsHostArrayOutput() GetVirtualHostsHostArrayOutput ToGetVirtualHostsHostArrayOutputWithContext(context.Context) GetVirtualHostsHostArrayOutput }
GetVirtualHostsHostArrayInput is an input type that accepts GetVirtualHostsHostArray and GetVirtualHostsHostArrayOutput values. You can construct a concrete instance of `GetVirtualHostsHostArrayInput` via:
GetVirtualHostsHostArray{ GetVirtualHostsHostArgs{...} }
type GetVirtualHostsHostArrayOutput ¶
type GetVirtualHostsHostArrayOutput struct{ *pulumi.OutputState }
func (GetVirtualHostsHostArrayOutput) ElementType ¶
func (GetVirtualHostsHostArrayOutput) ElementType() reflect.Type
func (GetVirtualHostsHostArrayOutput) Index ¶
func (o GetVirtualHostsHostArrayOutput) Index(i pulumi.IntInput) GetVirtualHostsHostOutput
func (GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutput ¶
func (o GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutput() GetVirtualHostsHostArrayOutput
func (GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutputWithContext ¶
func (o GetVirtualHostsHostArrayOutput) ToGetVirtualHostsHostArrayOutputWithContext(ctx context.Context) GetVirtualHostsHostArrayOutput
type GetVirtualHostsHostInput ¶
type GetVirtualHostsHostInput interface { pulumi.Input ToGetVirtualHostsHostOutput() GetVirtualHostsHostOutput ToGetVirtualHostsHostOutputWithContext(context.Context) GetVirtualHostsHostOutput }
GetVirtualHostsHostInput is an input type that accepts GetVirtualHostsHostArgs and GetVirtualHostsHostOutput values. You can construct a concrete instance of `GetVirtualHostsHostInput` via:
GetVirtualHostsHostArgs{...}
type GetVirtualHostsHostOutput ¶
type GetVirtualHostsHostOutput struct{ *pulumi.OutputState }
func (GetVirtualHostsHostOutput) ElementType ¶
func (GetVirtualHostsHostOutput) ElementType() reflect.Type
func (GetVirtualHostsHostOutput) Id ¶
func (o GetVirtualHostsHostOutput) Id() pulumi.StringOutput
The ID of the Virtual Host.
func (GetVirtualHostsHostOutput) InstanceId ¶
func (o GetVirtualHostsHostOutput) InstanceId() pulumi.StringOutput
InstanceId.
func (GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutput ¶
func (o GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutput() GetVirtualHostsHostOutput
func (GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutputWithContext ¶
func (o GetVirtualHostsHostOutput) ToGetVirtualHostsHostOutputWithContext(ctx context.Context) GetVirtualHostsHostOutput
func (GetVirtualHostsHostOutput) VirtualHostName ¶
func (o GetVirtualHostsHostOutput) VirtualHostName() pulumi.StringOutput
VirtualHostName.
type GetVirtualHostsOutputArgs ¶ added in v3.9.0
type GetVirtualHostsOutputArgs struct { // A list of Virtual Host IDs. Its element value is same as Virtual Host Name. Ids pulumi.StringArrayInput `pulumi:"ids"` // InstanceId. InstanceId pulumi.StringInput `pulumi:"instanceId"` // A regex string to filter results by Virtual Host name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getVirtualHosts.
func (GetVirtualHostsOutputArgs) ElementType ¶ added in v3.9.0
func (GetVirtualHostsOutputArgs) ElementType() reflect.Type
type GetVirtualHostsResult ¶
type GetVirtualHostsResult struct { Hosts []GetVirtualHostsHost `pulumi:"hosts"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` InstanceId string `pulumi:"instanceId"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getVirtualHosts.
func GetVirtualHosts ¶
func GetVirtualHosts(ctx *pulumi.Context, args *GetVirtualHostsArgs, opts ...pulumi.InvokeOption) (*GetVirtualHostsResult, error)
This data source provides the Amqp Virtual Hosts of the current Alibaba Cloud user.
> **NOTE:** Available in v1.126.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := amqp.GetVirtualHosts(ctx, &amqp.GetVirtualHostsArgs{ InstanceId: "amqp-abc12345", Ids: []string{ "my-VirtualHost-1", "my-VirtualHost-2", }, }, nil) if err != nil { return err } ctx.Export("amqpVirtualHostId1", ids.Hosts[0].Id) nameRegex, err := amqp.GetVirtualHosts(ctx, &amqp.GetVirtualHostsArgs{ InstanceId: "amqp-abc12345", NameRegex: pulumi.StringRef("^my-VirtualHost"), }, nil) if err != nil { return err } ctx.Export("amqpVirtualHostId2", nameRegex.Hosts[0].Id) return nil }) }
```
type GetVirtualHostsResultOutput ¶ added in v3.9.0
type GetVirtualHostsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getVirtualHosts.
func GetVirtualHostsOutput ¶ added in v3.9.0
func GetVirtualHostsOutput(ctx *pulumi.Context, args GetVirtualHostsOutputArgs, opts ...pulumi.InvokeOption) GetVirtualHostsResultOutput
func (GetVirtualHostsResultOutput) ElementType ¶ added in v3.9.0
func (GetVirtualHostsResultOutput) ElementType() reflect.Type
func (GetVirtualHostsResultOutput) Hosts ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) Hosts() GetVirtualHostsHostArrayOutput
func (GetVirtualHostsResultOutput) Id ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetVirtualHostsResultOutput) Ids ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) Ids() pulumi.StringArrayOutput
func (GetVirtualHostsResultOutput) InstanceId ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) InstanceId() pulumi.StringOutput
func (GetVirtualHostsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetVirtualHostsResultOutput) Names ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) Names() pulumi.StringArrayOutput
func (GetVirtualHostsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutput ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutput() GetVirtualHostsResultOutput
func (GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutputWithContext ¶ added in v3.9.0
func (o GetVirtualHostsResultOutput) ToGetVirtualHostsResultOutputWithContext(ctx context.Context) GetVirtualHostsResultOutput
type Instance ¶ added in v3.5.0
type Instance struct { pulumi.CustomResourceState // The instance name. InstanceName pulumi.StringOutput `pulumi:"instanceName"` // The Instance Type. Valid values: `professional`, `enterprise`, `vip`. InstanceType pulumi.StringOutput `pulumi:"instanceType"` // The logistic information This parameter is not required when you create a ApsaraMQ for RabbitMQ instance. You do not need to specify this parameter. Logistics pulumi.StringPtrOutput `pulumi:"logistics"` // The max eip tps. It is valid when `supportEip` is true. The valid value is [128, 45000] with the step size 128. MaxEipTps pulumi.StringPtrOutput `pulumi:"maxEipTps"` // The peak TPS traffic. The smallest valid value is 1000 and the largest value is 100,000. MaxTps pulumi.StringOutput `pulumi:"maxTps"` // The modify type. Valid values: `Downgrade`, `Upgrade`. It is required when updating other attributes. ModifyType pulumi.StringPtrOutput `pulumi:"modifyType"` // The payment type. Valid values: `Subscription`. PaymentType pulumi.StringOutput `pulumi:"paymentType"` // The period. Valid values: `1`, `12`, `2`, `24`, `3`, `6`. Period pulumi.IntPtrOutput `pulumi:"period"` // The queue capacity. The smallest value is 50 and the step size 5. QueueCapacity pulumi.StringOutput `pulumi:"queueCapacity"` // RenewalDuration. Valid values: `1`, `12`, `2`, `3`, `6`. RenewalDuration pulumi.IntPtrOutput `pulumi:"renewalDuration"` // Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: `Month`, `Year`. RenewalDurationUnit pulumi.StringPtrOutput `pulumi:"renewalDurationUnit"` // Whether to renew an instance automatically or not. Default to "ManualRenewal". RenewalStatus pulumi.StringOutput `pulumi:"renewalStatus"` // The status of the resource. Status pulumi.StringOutput `pulumi:"status"` // The storage size. It is valid when `instanceType` is vip. StorageSize pulumi.StringPtrOutput `pulumi:"storageSize"` // Whether to support EIP. SupportEip pulumi.BoolOutput `pulumi:"supportEip"` }
## Import
RabbitMQ (AMQP) Instance can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/instance:Instance example <id>
```
func GetInstance ¶ added in v3.5.0
func GetInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)
GetInstance gets an existing Instance 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 NewInstance ¶ added in v3.5.0
func NewInstance(ctx *pulumi.Context, name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)
NewInstance registers a new resource with the given unique name, arguments, and options.
func (*Instance) ElementType ¶ added in v3.5.0
func (*Instance) ToInstanceOutput ¶ added in v3.5.0
func (i *Instance) ToInstanceOutput() InstanceOutput
func (*Instance) ToInstanceOutputWithContext ¶ added in v3.5.0
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceArgs ¶ added in v3.5.0
type InstanceArgs struct { // The instance name. InstanceName pulumi.StringPtrInput // The Instance Type. Valid values: `professional`, `enterprise`, `vip`. InstanceType pulumi.StringInput // The logistic information This parameter is not required when you create a ApsaraMQ for RabbitMQ instance. You do not need to specify this parameter. Logistics pulumi.StringPtrInput // The max eip tps. It is valid when `supportEip` is true. The valid value is [128, 45000] with the step size 128. MaxEipTps pulumi.StringPtrInput // The peak TPS traffic. The smallest valid value is 1000 and the largest value is 100,000. MaxTps pulumi.StringInput // The modify type. Valid values: `Downgrade`, `Upgrade`. It is required when updating other attributes. ModifyType pulumi.StringPtrInput // The payment type. Valid values: `Subscription`. PaymentType pulumi.StringInput // The period. Valid values: `1`, `12`, `2`, `24`, `3`, `6`. Period pulumi.IntPtrInput // The queue capacity. The smallest value is 50 and the step size 5. QueueCapacity pulumi.StringInput // RenewalDuration. Valid values: `1`, `12`, `2`, `3`, `6`. RenewalDuration pulumi.IntPtrInput // Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: `Month`, `Year`. RenewalDurationUnit pulumi.StringPtrInput // Whether to renew an instance automatically or not. Default to "ManualRenewal". RenewalStatus pulumi.StringPtrInput // The storage size. It is valid when `instanceType` is vip. StorageSize pulumi.StringPtrInput // Whether to support EIP. SupportEip pulumi.BoolInput }
The set of arguments for constructing a Instance resource.
func (InstanceArgs) ElementType ¶ added in v3.5.0
func (InstanceArgs) ElementType() reflect.Type
type InstanceArray ¶ added in v3.5.0
type InstanceArray []InstanceInput
func (InstanceArray) ElementType ¶ added in v3.5.0
func (InstanceArray) ElementType() reflect.Type
func (InstanceArray) ToInstanceArrayOutput ¶ added in v3.5.0
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArray) ToInstanceArrayOutputWithContext ¶ added in v3.5.0
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceArrayInput ¶ added in v3.5.0
type InstanceArrayInput interface { pulumi.Input ToInstanceArrayOutput() InstanceArrayOutput ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput }
InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:
InstanceArray{ InstanceArgs{...} }
type InstanceArrayOutput ¶ added in v3.5.0
type InstanceArrayOutput struct{ *pulumi.OutputState }
func (InstanceArrayOutput) ElementType ¶ added in v3.5.0
func (InstanceArrayOutput) ElementType() reflect.Type
func (InstanceArrayOutput) Index ¶ added in v3.5.0
func (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶ added in v3.5.0
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶ added in v3.5.0
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceInput ¶ added in v3.5.0
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceMap ¶ added in v3.5.0
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType ¶ added in v3.5.0
func (InstanceMap) ElementType() reflect.Type
func (InstanceMap) ToInstanceMapOutput ¶ added in v3.5.0
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMap) ToInstanceMapOutputWithContext ¶ added in v3.5.0
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceMapInput ¶ added in v3.5.0
type InstanceMapInput interface { pulumi.Input ToInstanceMapOutput() InstanceMapOutput ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput }
InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:
InstanceMap{ "key": InstanceArgs{...} }
type InstanceMapOutput ¶ added in v3.5.0
type InstanceMapOutput struct{ *pulumi.OutputState }
func (InstanceMapOutput) ElementType ¶ added in v3.5.0
func (InstanceMapOutput) ElementType() reflect.Type
func (InstanceMapOutput) MapIndex ¶ added in v3.5.0
func (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
func (InstanceMapOutput) ToInstanceMapOutput ¶ added in v3.5.0
func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMapOutput) ToInstanceMapOutputWithContext ¶ added in v3.5.0
func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceOutput ¶ added in v3.5.0
type InstanceOutput struct{ *pulumi.OutputState }
func (InstanceOutput) ElementType ¶ added in v3.5.0
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) InstanceName ¶ added in v3.27.0
func (o InstanceOutput) InstanceName() pulumi.StringOutput
The instance name.
func (InstanceOutput) InstanceType ¶ added in v3.27.0
func (o InstanceOutput) InstanceType() pulumi.StringOutput
The Instance Type. Valid values: `professional`, `enterprise`, `vip`.
func (InstanceOutput) Logistics ¶ added in v3.27.0
func (o InstanceOutput) Logistics() pulumi.StringPtrOutput
The logistic information This parameter is not required when you create a ApsaraMQ for RabbitMQ instance. You do not need to specify this parameter.
func (InstanceOutput) MaxEipTps ¶ added in v3.27.0
func (o InstanceOutput) MaxEipTps() pulumi.StringPtrOutput
The max eip tps. It is valid when `supportEip` is true. The valid value is [128, 45000] with the step size 128.
func (InstanceOutput) MaxTps ¶ added in v3.27.0
func (o InstanceOutput) MaxTps() pulumi.StringOutput
The peak TPS traffic. The smallest valid value is 1000 and the largest value is 100,000.
func (InstanceOutput) ModifyType ¶ added in v3.27.0
func (o InstanceOutput) ModifyType() pulumi.StringPtrOutput
The modify type. Valid values: `Downgrade`, `Upgrade`. It is required when updating other attributes.
func (InstanceOutput) PaymentType ¶ added in v3.27.0
func (o InstanceOutput) PaymentType() pulumi.StringOutput
The payment type. Valid values: `Subscription`.
func (InstanceOutput) Period ¶ added in v3.27.0
func (o InstanceOutput) Period() pulumi.IntPtrOutput
The period. Valid values: `1`, `12`, `2`, `24`, `3`, `6`.
func (InstanceOutput) QueueCapacity ¶ added in v3.27.0
func (o InstanceOutput) QueueCapacity() pulumi.StringOutput
The queue capacity. The smallest value is 50 and the step size 5.
func (InstanceOutput) RenewalDuration ¶ added in v3.27.0
func (o InstanceOutput) RenewalDuration() pulumi.IntPtrOutput
RenewalDuration. Valid values: `1`, `12`, `2`, `3`, `6`.
func (InstanceOutput) RenewalDurationUnit ¶ added in v3.27.0
func (o InstanceOutput) RenewalDurationUnit() pulumi.StringPtrOutput
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: `Month`, `Year`.
func (InstanceOutput) RenewalStatus ¶ added in v3.27.0
func (o InstanceOutput) RenewalStatus() pulumi.StringOutput
Whether to renew an instance automatically or not. Default to "ManualRenewal".
func (InstanceOutput) Status ¶ added in v3.27.0
func (o InstanceOutput) Status() pulumi.StringOutput
The status of the resource.
func (InstanceOutput) StorageSize ¶ added in v3.27.0
func (o InstanceOutput) StorageSize() pulumi.StringPtrOutput
The storage size. It is valid when `instanceType` is vip.
func (InstanceOutput) SupportEip ¶ added in v3.27.0
func (o InstanceOutput) SupportEip() pulumi.BoolOutput
Whether to support EIP.
func (InstanceOutput) ToInstanceOutput ¶ added in v3.5.0
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶ added in v3.5.0
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceState ¶ added in v3.5.0
type InstanceState struct { // The instance name. InstanceName pulumi.StringPtrInput // The Instance Type. Valid values: `professional`, `enterprise`, `vip`. InstanceType pulumi.StringPtrInput // The logistic information This parameter is not required when you create a ApsaraMQ for RabbitMQ instance. You do not need to specify this parameter. Logistics pulumi.StringPtrInput // The max eip tps. It is valid when `supportEip` is true. The valid value is [128, 45000] with the step size 128. MaxEipTps pulumi.StringPtrInput // The peak TPS traffic. The smallest valid value is 1000 and the largest value is 100,000. MaxTps pulumi.StringPtrInput // The modify type. Valid values: `Downgrade`, `Upgrade`. It is required when updating other attributes. ModifyType pulumi.StringPtrInput // The payment type. Valid values: `Subscription`. PaymentType pulumi.StringPtrInput // The period. Valid values: `1`, `12`, `2`, `24`, `3`, `6`. Period pulumi.IntPtrInput // The queue capacity. The smallest value is 50 and the step size 5. QueueCapacity pulumi.StringPtrInput // RenewalDuration. Valid values: `1`, `12`, `2`, `3`, `6`. RenewalDuration pulumi.IntPtrInput // Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: `Month`, `Year`. RenewalDurationUnit pulumi.StringPtrInput // Whether to renew an instance automatically or not. Default to "ManualRenewal". RenewalStatus pulumi.StringPtrInput // The status of the resource. Status pulumi.StringPtrInput // The storage size. It is valid when `instanceType` is vip. StorageSize pulumi.StringPtrInput // Whether to support EIP. SupportEip pulumi.BoolPtrInput }
func (InstanceState) ElementType ¶ added in v3.5.0
func (InstanceState) ElementType() reflect.Type
type Queue ¶ added in v3.5.0
type Queue struct { pulumi.CustomResourceState // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. The queue is automatically deleted after the last subscription from consumers to this queue is canceled. // * false: The Auto Delete attribute is not configured. AutoDeleteState pulumi.BoolPtrOutput `pulumi:"autoDeleteState"` // The validity period after which the queue is automatically deleted. // If the queue is not accessed within a specified period of time, it is automatically deleted. AutoExpireState pulumi.StringPtrOutput `pulumi:"autoExpireState"` // The dead-letter exchange. A dead-letter exchange is used to receive rejected messages. // If a consumer rejects a message that cannot be retried, this message is routed to a specified dead-letter exchange. // Then, the dead-letter exchange routes the message to the queue that is bound to the dead-letter exchange. DeadLetterExchange pulumi.StringPtrOutput `pulumi:"deadLetterExchange"` // The dead letter routing key. DeadLetterRoutingKey pulumi.StringPtrOutput `pulumi:"deadLetterRoutingKey"` // Specifies whether the queue is an exclusive queue. Valid values: // * true: The queue is an exclusive queue. It can be used only for the connection that declares the exclusive queue. After the connection is closed, the exclusive queue is automatically deleted. // * false: The queue is not an exclusive queue. ExclusiveState pulumi.BoolPtrOutput `pulumi:"exclusiveState"` // The ID of the instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // The maximum number of messages that can be stored in the queue. // If this threshold is exceeded, the earliest messages that are routed to the queue are discarded. MaxLength pulumi.StringPtrOutput `pulumi:"maxLength"` // The highest priority supported by the queue. This parameter is set to a positive integer. // Valid values: 0 to 255. Recommended values: 1 to 10 MaximumPriority pulumi.IntPtrOutput `pulumi:"maximumPriority"` // The message TTL of the queue. // If the retention period of a message in the queue exceeds the message TTL of the queue, the message expires. // Message TTL must be set to a non-negative integer, in milliseconds. // For example, if the message TTL of the queue is 1000, messages survive for at most 1 second in the queue. MessageTtl pulumi.StringPtrOutput `pulumi:"messageTtl"` // The name of the queue. // The queue name must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). QueueName pulumi.StringOutput `pulumi:"queueName"` // The name of the virtual host. VirtualHostName pulumi.StringOutput `pulumi:"virtualHostName"` }
Provides a RabbitMQ (AMQP) Queue resource.
For information about RabbitMQ (AMQP) Queue and how to use it, see [What is Queue](https://www.alibabacloud.com/help/en/message-queue-for-rabbitmq/latest/createqueue).
> **NOTE:** Available since v1.127.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{ InstanceType: pulumi.String("enterprise"), MaxTps: pulumi.String("3000"), QueueCapacity: pulumi.String("200"), StorageSize: pulumi.String("700"), SupportEip: pulumi.Bool(false), MaxEipTps: pulumi.String("128"), PaymentType: pulumi.String("Subscription"), Period: pulumi.Int(1), }) if err != nil { return err } defaultVirtualHost, err := amqp.NewVirtualHost(ctx, "defaultVirtualHost", &amqp.VirtualHostArgs{ InstanceId: defaultInstance.ID(), VirtualHostName: pulumi.String("tf-example"), }) if err != nil { return err } _, err = amqp.NewExchange(ctx, "defaultExchange", &amqp.ExchangeArgs{ AutoDeleteState: pulumi.Bool(false), ExchangeName: pulumi.String("tf-example"), ExchangeType: pulumi.String("DIRECT"), InstanceId: defaultInstance.ID(), Internal: pulumi.Bool(false), VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } _, err = amqp.NewQueue(ctx, "example", &amqp.QueueArgs{ InstanceId: defaultInstance.ID(), QueueName: pulumi.String("tf-example"), VirtualHostName: defaultVirtualHost.VirtualHostName, }) if err != nil { return err } return nil }) }
```
## Import
RabbitMQ (AMQP) Queue can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/queue:Queue example <instance_id>:<virtual_host_name>:<queue_name>
```
func GetQueue ¶ added in v3.5.0
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).
func NewQueue ¶ added in v3.5.0
func NewQueue(ctx *pulumi.Context, name string, args *QueueArgs, opts ...pulumi.ResourceOption) (*Queue, error)
NewQueue registers a new resource with the given unique name, arguments, and options.
func (*Queue) ElementType ¶ added in v3.5.0
func (*Queue) ToQueueOutput ¶ added in v3.5.0
func (i *Queue) ToQueueOutput() QueueOutput
func (*Queue) ToQueueOutputWithContext ¶ added in v3.5.0
func (i *Queue) ToQueueOutputWithContext(ctx context.Context) QueueOutput
type QueueArgs ¶ added in v3.5.0
type QueueArgs struct { // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. The queue is automatically deleted after the last subscription from consumers to this queue is canceled. // * false: The Auto Delete attribute is not configured. AutoDeleteState pulumi.BoolPtrInput // The validity period after which the queue is automatically deleted. // If the queue is not accessed within a specified period of time, it is automatically deleted. AutoExpireState pulumi.StringPtrInput // The dead-letter exchange. A dead-letter exchange is used to receive rejected messages. // If a consumer rejects a message that cannot be retried, this message is routed to a specified dead-letter exchange. // Then, the dead-letter exchange routes the message to the queue that is bound to the dead-letter exchange. DeadLetterExchange pulumi.StringPtrInput // The dead letter routing key. DeadLetterRoutingKey pulumi.StringPtrInput // Specifies whether the queue is an exclusive queue. Valid values: // * true: The queue is an exclusive queue. It can be used only for the connection that declares the exclusive queue. After the connection is closed, the exclusive queue is automatically deleted. // * false: The queue is not an exclusive queue. ExclusiveState pulumi.BoolPtrInput // The ID of the instance. InstanceId pulumi.StringInput // The maximum number of messages that can be stored in the queue. // If this threshold is exceeded, the earliest messages that are routed to the queue are discarded. MaxLength pulumi.StringPtrInput // The highest priority supported by the queue. This parameter is set to a positive integer. // Valid values: 0 to 255. Recommended values: 1 to 10 MaximumPriority pulumi.IntPtrInput // The message TTL of the queue. // If the retention period of a message in the queue exceeds the message TTL of the queue, the message expires. // Message TTL must be set to a non-negative integer, in milliseconds. // For example, if the message TTL of the queue is 1000, messages survive for at most 1 second in the queue. MessageTtl pulumi.StringPtrInput // The name of the queue. // The queue name must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). QueueName pulumi.StringInput // The name of the virtual host. VirtualHostName pulumi.StringInput }
The set of arguments for constructing a Queue resource.
func (QueueArgs) ElementType ¶ added in v3.5.0
type QueueArray ¶ added in v3.5.0
type QueueArray []QueueInput
func (QueueArray) ElementType ¶ added in v3.5.0
func (QueueArray) ElementType() reflect.Type
func (QueueArray) ToQueueArrayOutput ¶ added in v3.5.0
func (i QueueArray) ToQueueArrayOutput() QueueArrayOutput
func (QueueArray) ToQueueArrayOutputWithContext ¶ added in v3.5.0
func (i QueueArray) ToQueueArrayOutputWithContext(ctx context.Context) QueueArrayOutput
type QueueArrayInput ¶ added in v3.5.0
type QueueArrayInput interface { pulumi.Input ToQueueArrayOutput() QueueArrayOutput ToQueueArrayOutputWithContext(context.Context) QueueArrayOutput }
QueueArrayInput is an input type that accepts QueueArray and QueueArrayOutput values. You can construct a concrete instance of `QueueArrayInput` via:
QueueArray{ QueueArgs{...} }
type QueueArrayOutput ¶ added in v3.5.0
type QueueArrayOutput struct{ *pulumi.OutputState }
func (QueueArrayOutput) ElementType ¶ added in v3.5.0
func (QueueArrayOutput) ElementType() reflect.Type
func (QueueArrayOutput) Index ¶ added in v3.5.0
func (o QueueArrayOutput) Index(i pulumi.IntInput) QueueOutput
func (QueueArrayOutput) ToQueueArrayOutput ¶ added in v3.5.0
func (o QueueArrayOutput) ToQueueArrayOutput() QueueArrayOutput
func (QueueArrayOutput) ToQueueArrayOutputWithContext ¶ added in v3.5.0
func (o QueueArrayOutput) ToQueueArrayOutputWithContext(ctx context.Context) QueueArrayOutput
type QueueInput ¶ added in v3.5.0
type QueueInput interface { pulumi.Input ToQueueOutput() QueueOutput ToQueueOutputWithContext(ctx context.Context) QueueOutput }
type QueueMap ¶ added in v3.5.0
type QueueMap map[string]QueueInput
func (QueueMap) ElementType ¶ added in v3.5.0
func (QueueMap) ToQueueMapOutput ¶ added in v3.5.0
func (i QueueMap) ToQueueMapOutput() QueueMapOutput
func (QueueMap) ToQueueMapOutputWithContext ¶ added in v3.5.0
func (i QueueMap) ToQueueMapOutputWithContext(ctx context.Context) QueueMapOutput
type QueueMapInput ¶ added in v3.5.0
type QueueMapInput interface { pulumi.Input ToQueueMapOutput() QueueMapOutput ToQueueMapOutputWithContext(context.Context) QueueMapOutput }
QueueMapInput is an input type that accepts QueueMap and QueueMapOutput values. You can construct a concrete instance of `QueueMapInput` via:
QueueMap{ "key": QueueArgs{...} }
type QueueMapOutput ¶ added in v3.5.0
type QueueMapOutput struct{ *pulumi.OutputState }
func (QueueMapOutput) ElementType ¶ added in v3.5.0
func (QueueMapOutput) ElementType() reflect.Type
func (QueueMapOutput) MapIndex ¶ added in v3.5.0
func (o QueueMapOutput) MapIndex(k pulumi.StringInput) QueueOutput
func (QueueMapOutput) ToQueueMapOutput ¶ added in v3.5.0
func (o QueueMapOutput) ToQueueMapOutput() QueueMapOutput
func (QueueMapOutput) ToQueueMapOutputWithContext ¶ added in v3.5.0
func (o QueueMapOutput) ToQueueMapOutputWithContext(ctx context.Context) QueueMapOutput
type QueueOutput ¶ added in v3.5.0
type QueueOutput struct{ *pulumi.OutputState }
func (QueueOutput) AutoDeleteState ¶ added in v3.27.0
func (o QueueOutput) AutoDeleteState() pulumi.BoolPtrOutput
Specifies whether the Auto Delete attribute is configured. Valid values: * true: The Auto Delete attribute is configured. The queue is automatically deleted after the last subscription from consumers to this queue is canceled. * false: The Auto Delete attribute is not configured.
func (QueueOutput) AutoExpireState ¶ added in v3.27.0
func (o QueueOutput) AutoExpireState() pulumi.StringPtrOutput
The validity period after which the queue is automatically deleted. If the queue is not accessed within a specified period of time, it is automatically deleted.
func (QueueOutput) DeadLetterExchange ¶ added in v3.27.0
func (o QueueOutput) DeadLetterExchange() pulumi.StringPtrOutput
The dead-letter exchange. A dead-letter exchange is used to receive rejected messages. If a consumer rejects a message that cannot be retried, this message is routed to a specified dead-letter exchange. Then, the dead-letter exchange routes the message to the queue that is bound to the dead-letter exchange.
func (QueueOutput) DeadLetterRoutingKey ¶ added in v3.27.0
func (o QueueOutput) DeadLetterRoutingKey() pulumi.StringPtrOutput
The dead letter routing key.
func (QueueOutput) ElementType ¶ added in v3.5.0
func (QueueOutput) ElementType() reflect.Type
func (QueueOutput) ExclusiveState ¶ added in v3.27.0
func (o QueueOutput) ExclusiveState() pulumi.BoolPtrOutput
Specifies whether the queue is an exclusive queue. Valid values: * true: The queue is an exclusive queue. It can be used only for the connection that declares the exclusive queue. After the connection is closed, the exclusive queue is automatically deleted. * false: The queue is not an exclusive queue.
func (QueueOutput) InstanceId ¶ added in v3.27.0
func (o QueueOutput) InstanceId() pulumi.StringOutput
The ID of the instance.
func (QueueOutput) MaxLength ¶ added in v3.27.0
func (o QueueOutput) MaxLength() pulumi.StringPtrOutput
The maximum number of messages that can be stored in the queue. If this threshold is exceeded, the earliest messages that are routed to the queue are discarded.
func (QueueOutput) MaximumPriority ¶ added in v3.27.0
func (o QueueOutput) MaximumPriority() pulumi.IntPtrOutput
The highest priority supported by the queue. This parameter is set to a positive integer. Valid values: 0 to 255. Recommended values: 1 to 10
func (QueueOutput) MessageTtl ¶ added in v3.27.0
func (o QueueOutput) MessageTtl() pulumi.StringPtrOutput
The message TTL of the queue. If the retention period of a message in the queue exceeds the message TTL of the queue, the message expires. Message TTL must be set to a non-negative integer, in milliseconds. For example, if the message TTL of the queue is 1000, messages survive for at most 1 second in the queue.
func (QueueOutput) QueueName ¶ added in v3.27.0
func (o QueueOutput) QueueName() pulumi.StringOutput
The name of the queue. The queue name must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@).
func (QueueOutput) ToQueueOutput ¶ added in v3.5.0
func (o QueueOutput) ToQueueOutput() QueueOutput
func (QueueOutput) ToQueueOutputWithContext ¶ added in v3.5.0
func (o QueueOutput) ToQueueOutputWithContext(ctx context.Context) QueueOutput
func (QueueOutput) VirtualHostName ¶ added in v3.27.0
func (o QueueOutput) VirtualHostName() pulumi.StringOutput
The name of the virtual host.
type QueueState ¶ added in v3.5.0
type QueueState struct { // Specifies whether the Auto Delete attribute is configured. Valid values: // * true: The Auto Delete attribute is configured. The queue is automatically deleted after the last subscription from consumers to this queue is canceled. // * false: The Auto Delete attribute is not configured. AutoDeleteState pulumi.BoolPtrInput // The validity period after which the queue is automatically deleted. // If the queue is not accessed within a specified period of time, it is automatically deleted. AutoExpireState pulumi.StringPtrInput // The dead-letter exchange. A dead-letter exchange is used to receive rejected messages. // If a consumer rejects a message that cannot be retried, this message is routed to a specified dead-letter exchange. // Then, the dead-letter exchange routes the message to the queue that is bound to the dead-letter exchange. DeadLetterExchange pulumi.StringPtrInput // The dead letter routing key. DeadLetterRoutingKey pulumi.StringPtrInput // Specifies whether the queue is an exclusive queue. Valid values: // * true: The queue is an exclusive queue. It can be used only for the connection that declares the exclusive queue. After the connection is closed, the exclusive queue is automatically deleted. // * false: The queue is not an exclusive queue. ExclusiveState pulumi.BoolPtrInput // The ID of the instance. InstanceId pulumi.StringPtrInput // The maximum number of messages that can be stored in the queue. // If this threshold is exceeded, the earliest messages that are routed to the queue are discarded. MaxLength pulumi.StringPtrInput // The highest priority supported by the queue. This parameter is set to a positive integer. // Valid values: 0 to 255. Recommended values: 1 to 10 MaximumPriority pulumi.IntPtrInput // The message TTL of the queue. // If the retention period of a message in the queue exceeds the message TTL of the queue, the message expires. // Message TTL must be set to a non-negative integer, in milliseconds. // For example, if the message TTL of the queue is 1000, messages survive for at most 1 second in the queue. MessageTtl pulumi.StringPtrInput // The name of the queue. // The queue name must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). QueueName pulumi.StringPtrInput // The name of the virtual host. VirtualHostName pulumi.StringPtrInput }
func (QueueState) ElementType ¶ added in v3.5.0
func (QueueState) ElementType() reflect.Type
type StaticAccount ¶ added in v3.29.0
type StaticAccount struct { pulumi.CustomResourceState // Access key. AccessKey pulumi.StringOutput `pulumi:"accessKey"` // Create time stamp. Unix timestamp, to millisecond level. CreateTime pulumi.IntOutput `pulumi:"createTime"` // Amqp instance ID. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // The ID of the user's primary account. MasterUid pulumi.StringOutput `pulumi:"masterUid"` // Static password. Password pulumi.StringOutput `pulumi:"password"` // Secret key. SecretKey pulumi.StringOutput `pulumi:"secretKey"` // Static user name. UserName pulumi.StringOutput `pulumi:"userName"` }
Provides a Amqp Static Account resource.
For information about Amqp Static Account and how to use it, see [What is Static Account](https://www.alibabacloud.com/help/en/message-queue-for-rabbitmq/latest/create-a-pair-of-static-username-and-password).
> **NOTE:** Available since v1.195.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") accessKey := "access_key" if param := cfg.Get("accessKey"); param != "" { accessKey = param } secretKey := "secret_key" if param := cfg.Get("secretKey"); param != "" { secretKey = param } defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{ InstanceType: pulumi.String("enterprise"), MaxTps: pulumi.String("3000"), QueueCapacity: pulumi.String("200"), StorageSize: pulumi.String("700"), SupportEip: pulumi.Bool(false), MaxEipTps: pulumi.String("128"), PaymentType: pulumi.String("Subscription"), Period: pulumi.Int(1), }) if err != nil { return err } _, err = amqp.NewStaticAccount(ctx, "defaultStaticAccount", &amqp.StaticAccountArgs{ InstanceId: defaultInstance.ID(), AccessKey: pulumi.String(accessKey), SecretKey: pulumi.String(secretKey), }) if err != nil { return err } return nil }) }
```
## Import
Amqp Static Account can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/staticAccount:StaticAccount example <instance_id>:<access_key>
```
func GetStaticAccount ¶ added in v3.29.0
func GetStaticAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *StaticAccountState, opts ...pulumi.ResourceOption) (*StaticAccount, error)
GetStaticAccount gets an existing StaticAccount 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 NewStaticAccount ¶ added in v3.29.0
func NewStaticAccount(ctx *pulumi.Context, name string, args *StaticAccountArgs, opts ...pulumi.ResourceOption) (*StaticAccount, error)
NewStaticAccount registers a new resource with the given unique name, arguments, and options.
func (*StaticAccount) ElementType ¶ added in v3.29.0
func (*StaticAccount) ElementType() reflect.Type
func (*StaticAccount) ToStaticAccountOutput ¶ added in v3.29.0
func (i *StaticAccount) ToStaticAccountOutput() StaticAccountOutput
func (*StaticAccount) ToStaticAccountOutputWithContext ¶ added in v3.29.0
func (i *StaticAccount) ToStaticAccountOutputWithContext(ctx context.Context) StaticAccountOutput
type StaticAccountArgs ¶ added in v3.29.0
type StaticAccountArgs struct { // Access key. AccessKey pulumi.StringInput // Amqp instance ID. InstanceId pulumi.StringInput // Secret key. SecretKey pulumi.StringInput }
The set of arguments for constructing a StaticAccount resource.
func (StaticAccountArgs) ElementType ¶ added in v3.29.0
func (StaticAccountArgs) ElementType() reflect.Type
type StaticAccountArray ¶ added in v3.29.0
type StaticAccountArray []StaticAccountInput
func (StaticAccountArray) ElementType ¶ added in v3.29.0
func (StaticAccountArray) ElementType() reflect.Type
func (StaticAccountArray) ToStaticAccountArrayOutput ¶ added in v3.29.0
func (i StaticAccountArray) ToStaticAccountArrayOutput() StaticAccountArrayOutput
func (StaticAccountArray) ToStaticAccountArrayOutputWithContext ¶ added in v3.29.0
func (i StaticAccountArray) ToStaticAccountArrayOutputWithContext(ctx context.Context) StaticAccountArrayOutput
type StaticAccountArrayInput ¶ added in v3.29.0
type StaticAccountArrayInput interface { pulumi.Input ToStaticAccountArrayOutput() StaticAccountArrayOutput ToStaticAccountArrayOutputWithContext(context.Context) StaticAccountArrayOutput }
StaticAccountArrayInput is an input type that accepts StaticAccountArray and StaticAccountArrayOutput values. You can construct a concrete instance of `StaticAccountArrayInput` via:
StaticAccountArray{ StaticAccountArgs{...} }
type StaticAccountArrayOutput ¶ added in v3.29.0
type StaticAccountArrayOutput struct{ *pulumi.OutputState }
func (StaticAccountArrayOutput) ElementType ¶ added in v3.29.0
func (StaticAccountArrayOutput) ElementType() reflect.Type
func (StaticAccountArrayOutput) Index ¶ added in v3.29.0
func (o StaticAccountArrayOutput) Index(i pulumi.IntInput) StaticAccountOutput
func (StaticAccountArrayOutput) ToStaticAccountArrayOutput ¶ added in v3.29.0
func (o StaticAccountArrayOutput) ToStaticAccountArrayOutput() StaticAccountArrayOutput
func (StaticAccountArrayOutput) ToStaticAccountArrayOutputWithContext ¶ added in v3.29.0
func (o StaticAccountArrayOutput) ToStaticAccountArrayOutputWithContext(ctx context.Context) StaticAccountArrayOutput
type StaticAccountInput ¶ added in v3.29.0
type StaticAccountInput interface { pulumi.Input ToStaticAccountOutput() StaticAccountOutput ToStaticAccountOutputWithContext(ctx context.Context) StaticAccountOutput }
type StaticAccountMap ¶ added in v3.29.0
type StaticAccountMap map[string]StaticAccountInput
func (StaticAccountMap) ElementType ¶ added in v3.29.0
func (StaticAccountMap) ElementType() reflect.Type
func (StaticAccountMap) ToStaticAccountMapOutput ¶ added in v3.29.0
func (i StaticAccountMap) ToStaticAccountMapOutput() StaticAccountMapOutput
func (StaticAccountMap) ToStaticAccountMapOutputWithContext ¶ added in v3.29.0
func (i StaticAccountMap) ToStaticAccountMapOutputWithContext(ctx context.Context) StaticAccountMapOutput
type StaticAccountMapInput ¶ added in v3.29.0
type StaticAccountMapInput interface { pulumi.Input ToStaticAccountMapOutput() StaticAccountMapOutput ToStaticAccountMapOutputWithContext(context.Context) StaticAccountMapOutput }
StaticAccountMapInput is an input type that accepts StaticAccountMap and StaticAccountMapOutput values. You can construct a concrete instance of `StaticAccountMapInput` via:
StaticAccountMap{ "key": StaticAccountArgs{...} }
type StaticAccountMapOutput ¶ added in v3.29.0
type StaticAccountMapOutput struct{ *pulumi.OutputState }
func (StaticAccountMapOutput) ElementType ¶ added in v3.29.0
func (StaticAccountMapOutput) ElementType() reflect.Type
func (StaticAccountMapOutput) MapIndex ¶ added in v3.29.0
func (o StaticAccountMapOutput) MapIndex(k pulumi.StringInput) StaticAccountOutput
func (StaticAccountMapOutput) ToStaticAccountMapOutput ¶ added in v3.29.0
func (o StaticAccountMapOutput) ToStaticAccountMapOutput() StaticAccountMapOutput
func (StaticAccountMapOutput) ToStaticAccountMapOutputWithContext ¶ added in v3.29.0
func (o StaticAccountMapOutput) ToStaticAccountMapOutputWithContext(ctx context.Context) StaticAccountMapOutput
type StaticAccountOutput ¶ added in v3.29.0
type StaticAccountOutput struct{ *pulumi.OutputState }
func (StaticAccountOutput) AccessKey ¶ added in v3.29.0
func (o StaticAccountOutput) AccessKey() pulumi.StringOutput
Access key.
func (StaticAccountOutput) CreateTime ¶ added in v3.29.0
func (o StaticAccountOutput) CreateTime() pulumi.IntOutput
Create time stamp. Unix timestamp, to millisecond level.
func (StaticAccountOutput) ElementType ¶ added in v3.29.0
func (StaticAccountOutput) ElementType() reflect.Type
func (StaticAccountOutput) InstanceId ¶ added in v3.29.0
func (o StaticAccountOutput) InstanceId() pulumi.StringOutput
Amqp instance ID.
func (StaticAccountOutput) MasterUid ¶ added in v3.29.0
func (o StaticAccountOutput) MasterUid() pulumi.StringOutput
The ID of the user's primary account.
func (StaticAccountOutput) Password ¶ added in v3.29.0
func (o StaticAccountOutput) Password() pulumi.StringOutput
Static password.
func (StaticAccountOutput) SecretKey ¶ added in v3.29.0
func (o StaticAccountOutput) SecretKey() pulumi.StringOutput
Secret key.
func (StaticAccountOutput) ToStaticAccountOutput ¶ added in v3.29.0
func (o StaticAccountOutput) ToStaticAccountOutput() StaticAccountOutput
func (StaticAccountOutput) ToStaticAccountOutputWithContext ¶ added in v3.29.0
func (o StaticAccountOutput) ToStaticAccountOutputWithContext(ctx context.Context) StaticAccountOutput
func (StaticAccountOutput) UserName ¶ added in v3.29.0
func (o StaticAccountOutput) UserName() pulumi.StringOutput
Static user name.
type StaticAccountState ¶ added in v3.29.0
type StaticAccountState struct { // Access key. AccessKey pulumi.StringPtrInput // Create time stamp. Unix timestamp, to millisecond level. CreateTime pulumi.IntPtrInput // Amqp instance ID. InstanceId pulumi.StringPtrInput // The ID of the user's primary account. MasterUid pulumi.StringPtrInput // Static password. Password pulumi.StringPtrInput // Secret key. SecretKey pulumi.StringPtrInput // Static user name. UserName pulumi.StringPtrInput }
func (StaticAccountState) ElementType ¶ added in v3.29.0
func (StaticAccountState) ElementType() reflect.Type
type VirtualHost ¶
type VirtualHost struct { pulumi.CustomResourceState // InstanceId. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // VirtualHostName. VirtualHostName pulumi.StringOutput `pulumi:"virtualHostName"` }
Provides a RabbitMQ (AMQP) Virtual Host resource.
For information about RabbitMQ (AMQP) Virtual Host and how to use it, see [What is Virtual Host](https://www.alibabacloud.com/help/en/message-queue-for-rabbitmq/latest/createvirtualhost).
> **NOTE:** Available since v1.126.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{ InstanceType: pulumi.String("professional"), MaxTps: pulumi.String("1000"), QueueCapacity: pulumi.String("50"), SupportEip: pulumi.Bool(true), MaxEipTps: pulumi.String("128"), PaymentType: pulumi.String("Subscription"), Period: pulumi.Int(1), }) if err != nil { return err } _, err = amqp.NewVirtualHost(ctx, "defaultVirtualHost", &amqp.VirtualHostArgs{ InstanceId: defaultInstance.ID(), VirtualHostName: pulumi.String("tf-example"), }) if err != nil { return err } return nil }) }
```
## Import
RabbitMQ (AMQP) Virtual Host can be imported using the id, e.g.
```sh
$ pulumi import alicloud:amqp/virtualHost:VirtualHost example <instance_id>:<virtual_host_name>
```
func GetVirtualHost ¶
func GetVirtualHost(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VirtualHostState, opts ...pulumi.ResourceOption) (*VirtualHost, error)
GetVirtualHost gets an existing VirtualHost 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 NewVirtualHost ¶
func NewVirtualHost(ctx *pulumi.Context, name string, args *VirtualHostArgs, opts ...pulumi.ResourceOption) (*VirtualHost, error)
NewVirtualHost registers a new resource with the given unique name, arguments, and options.
func (*VirtualHost) ElementType ¶
func (*VirtualHost) ElementType() reflect.Type
func (*VirtualHost) ToVirtualHostOutput ¶
func (i *VirtualHost) ToVirtualHostOutput() VirtualHostOutput
func (*VirtualHost) ToVirtualHostOutputWithContext ¶
func (i *VirtualHost) ToVirtualHostOutputWithContext(ctx context.Context) VirtualHostOutput
type VirtualHostArgs ¶
type VirtualHostArgs struct { // InstanceId. InstanceId pulumi.StringInput // VirtualHostName. VirtualHostName pulumi.StringInput }
The set of arguments for constructing a VirtualHost resource.
func (VirtualHostArgs) ElementType ¶
func (VirtualHostArgs) ElementType() reflect.Type
type VirtualHostArray ¶
type VirtualHostArray []VirtualHostInput
func (VirtualHostArray) ElementType ¶
func (VirtualHostArray) ElementType() reflect.Type
func (VirtualHostArray) ToVirtualHostArrayOutput ¶
func (i VirtualHostArray) ToVirtualHostArrayOutput() VirtualHostArrayOutput
func (VirtualHostArray) ToVirtualHostArrayOutputWithContext ¶
func (i VirtualHostArray) ToVirtualHostArrayOutputWithContext(ctx context.Context) VirtualHostArrayOutput
type VirtualHostArrayInput ¶
type VirtualHostArrayInput interface { pulumi.Input ToVirtualHostArrayOutput() VirtualHostArrayOutput ToVirtualHostArrayOutputWithContext(context.Context) VirtualHostArrayOutput }
VirtualHostArrayInput is an input type that accepts VirtualHostArray and VirtualHostArrayOutput values. You can construct a concrete instance of `VirtualHostArrayInput` via:
VirtualHostArray{ VirtualHostArgs{...} }
type VirtualHostArrayOutput ¶
type VirtualHostArrayOutput struct{ *pulumi.OutputState }
func (VirtualHostArrayOutput) ElementType ¶
func (VirtualHostArrayOutput) ElementType() reflect.Type
func (VirtualHostArrayOutput) Index ¶
func (o VirtualHostArrayOutput) Index(i pulumi.IntInput) VirtualHostOutput
func (VirtualHostArrayOutput) ToVirtualHostArrayOutput ¶
func (o VirtualHostArrayOutput) ToVirtualHostArrayOutput() VirtualHostArrayOutput
func (VirtualHostArrayOutput) ToVirtualHostArrayOutputWithContext ¶
func (o VirtualHostArrayOutput) ToVirtualHostArrayOutputWithContext(ctx context.Context) VirtualHostArrayOutput
type VirtualHostInput ¶
type VirtualHostInput interface { pulumi.Input ToVirtualHostOutput() VirtualHostOutput ToVirtualHostOutputWithContext(ctx context.Context) VirtualHostOutput }
type VirtualHostMap ¶
type VirtualHostMap map[string]VirtualHostInput
func (VirtualHostMap) ElementType ¶
func (VirtualHostMap) ElementType() reflect.Type
func (VirtualHostMap) ToVirtualHostMapOutput ¶
func (i VirtualHostMap) ToVirtualHostMapOutput() VirtualHostMapOutput
func (VirtualHostMap) ToVirtualHostMapOutputWithContext ¶
func (i VirtualHostMap) ToVirtualHostMapOutputWithContext(ctx context.Context) VirtualHostMapOutput
type VirtualHostMapInput ¶
type VirtualHostMapInput interface { pulumi.Input ToVirtualHostMapOutput() VirtualHostMapOutput ToVirtualHostMapOutputWithContext(context.Context) VirtualHostMapOutput }
VirtualHostMapInput is an input type that accepts VirtualHostMap and VirtualHostMapOutput values. You can construct a concrete instance of `VirtualHostMapInput` via:
VirtualHostMap{ "key": VirtualHostArgs{...} }
type VirtualHostMapOutput ¶
type VirtualHostMapOutput struct{ *pulumi.OutputState }
func (VirtualHostMapOutput) ElementType ¶
func (VirtualHostMapOutput) ElementType() reflect.Type
func (VirtualHostMapOutput) MapIndex ¶
func (o VirtualHostMapOutput) MapIndex(k pulumi.StringInput) VirtualHostOutput
func (VirtualHostMapOutput) ToVirtualHostMapOutput ¶
func (o VirtualHostMapOutput) ToVirtualHostMapOutput() VirtualHostMapOutput
func (VirtualHostMapOutput) ToVirtualHostMapOutputWithContext ¶
func (o VirtualHostMapOutput) ToVirtualHostMapOutputWithContext(ctx context.Context) VirtualHostMapOutput
type VirtualHostOutput ¶
type VirtualHostOutput struct{ *pulumi.OutputState }
func (VirtualHostOutput) ElementType ¶
func (VirtualHostOutput) ElementType() reflect.Type
func (VirtualHostOutput) InstanceId ¶ added in v3.27.0
func (o VirtualHostOutput) InstanceId() pulumi.StringOutput
InstanceId.
func (VirtualHostOutput) ToVirtualHostOutput ¶
func (o VirtualHostOutput) ToVirtualHostOutput() VirtualHostOutput
func (VirtualHostOutput) ToVirtualHostOutputWithContext ¶
func (o VirtualHostOutput) ToVirtualHostOutputWithContext(ctx context.Context) VirtualHostOutput
func (VirtualHostOutput) VirtualHostName ¶ added in v3.27.0
func (o VirtualHostOutput) VirtualHostName() pulumi.StringOutput
VirtualHostName.
type VirtualHostState ¶
type VirtualHostState struct { // InstanceId. InstanceId pulumi.StringPtrInput // VirtualHostName. VirtualHostName pulumi.StringPtrInput }
func (VirtualHostState) ElementType ¶
func (VirtualHostState) ElementType() reflect.Type