Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

getBindings

This data source provides the Amqp Bindings of the current Alibaba Cloud user.

NOTE: Available in v1.135.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var examples = Output.Create(AliCloud.Amqp.GetBindings.InvokeAsync(new AliCloud.Amqp.GetBindingsArgs
        {
            InstanceId = "amqp-cn-xxxxx",
            VirtualHostName = "my-vh",
        }));
    }

}
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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.amqp.AmqpFunctions;
import com.pulumi.alicloud.amqp.inputs.GetBindingsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var examples = AmqpFunctions.getBindings(GetBindingsArgs.builder()
            .instanceId("amqp-cn-xxxxx")
            .virtualHostName("my-vh")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

examples = alicloud.amqp.get_bindings(instance_id="amqp-cn-xxxxx",
    virtual_host_name="my-vh")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const examples = pulumi.output(alicloud.amqp.getBindings({
    instanceId: "amqp-cn-xxxxx",
    virtualHostName: "my-vh",
}));
variables:
  examples:
    Fn::Invoke:
      Function: alicloud:amqp:getBindings
      Arguments:
        instanceId: amqp-cn-xxxxx
        virtualHostName: my-vh

Using getBindings

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getBindings(args: GetBindingsArgs, opts?: InvokeOptions): Promise<GetBindingsResult>
function getBindingsOutput(args: GetBindingsOutputArgs, opts?: InvokeOptions): Output<GetBindingsResult>
def get_bindings(instance_id: Optional[str] = None,
                 output_file: Optional[str] = None,
                 virtual_host_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetBindingsResult
def get_bindings_output(instance_id: Optional[pulumi.Input[str]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 virtual_host_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetBindingsResult]
func GetBindings(ctx *Context, args *GetBindingsArgs, opts ...InvokeOption) (*GetBindingsResult, error)
func GetBindingsOutput(ctx *Context, args *GetBindingsOutputArgs, opts ...InvokeOption) GetBindingsResultOutput

> Note: This function is named GetBindings in the Go SDK.

public static class GetBindings 
{
    public static Task<GetBindingsResult> InvokeAsync(GetBindingsArgs args, InvokeOptions? opts = null)
    public static Output<GetBindingsResult> Invoke(GetBindingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBindingsResult> getBindings(GetBindingsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:amqp/getBindings:getBindings
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId string

Instance Id.

VirtualHostName string

Virtualhost Name.

OutputFile string
InstanceId string

Instance Id.

VirtualHostName string

Virtualhost Name.

OutputFile string
instanceId String

Instance Id.

virtualHostName String

Virtualhost Name.

outputFile String
instanceId string

Instance Id.

virtualHostName string

Virtualhost Name.

outputFile string
instance_id str

Instance Id.

virtual_host_name str

Virtualhost Name.

output_file str
instanceId String

Instance Id.

virtualHostName String

Virtualhost Name.

outputFile String

getBindings Result

The following output properties are available:

Bindings List<Pulumi.AliCloud.Amqp.Outputs.GetBindingsBinding>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
InstanceId string
VirtualHostName string
OutputFile string
Bindings []GetBindingsBinding
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
InstanceId string
VirtualHostName string
OutputFile string
bindings List<GetBindingsBinding>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
instanceId String
virtualHostName String
outputFile String
bindings GetBindingsBinding[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
instanceId string
virtualHostName string
outputFile string
bindings Sequence[GetBindingsBinding]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
instance_id str
virtual_host_name str
output_file str
bindings List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
instanceId String
virtualHostName String
outputFile String

Supporting Types

GetBindingsBinding

Argument string

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.

BindingKey string

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

BindingType string

The Target Binding Types.

DestinationName string

The Target Queue Or Exchange of the Name.

Id string

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

InstanceId string

Instance Id.

SourceExchange string

The Source Exchange Name.

VirtualHostName string

Virtualhost Name.

Argument string

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.

BindingKey string

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

BindingType string

The Target Binding Types.

DestinationName string

The Target Queue Or Exchange of the Name.

Id string

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

InstanceId string

Instance Id.

SourceExchange string

The Source Exchange Name.

VirtualHostName string

Virtualhost Name.

argument String

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.

bindingKey String

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

bindingType String

The Target Binding Types.

destinationName String

The Target Queue Or Exchange of the Name.

id String

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

instanceId String

Instance Id.

sourceExchange String

The Source Exchange Name.

virtualHostName String

Virtualhost Name.

argument string

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.

bindingKey string

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

bindingType string

The Target Binding Types.

destinationName string

The Target Queue Or Exchange of the Name.

id string

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

instanceId string

Instance Id.

sourceExchange string

The Source Exchange Name.

virtualHostName string

Virtualhost Name.

argument str

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.

binding_key str

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

binding_type str

The Target Binding Types.

destination_name str

The Target Queue Or Exchange of the Name.

id str

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

instance_id str

Instance Id.

source_exchange str

The Source Exchange Name.

virtual_host_name str

Virtualhost Name.

argument String

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.

bindingKey String

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

bindingType String

The Target Binding Types.

destinationName String

The Target Queue Or Exchange of the Name.

id String

The ID of the Binding. The value formats as <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>.

instanceId String

Instance Id.

sourceExchange String

The Source Exchange Name.

virtualHostName String

Virtualhost Name.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.