1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. amqp
  5. getBindings
Alibaba Cloud v3.69.0 published on Monday, Dec 9, 2024 by Pulumi

alicloud.amqp.getBindings

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.69.0 published on Monday, Dec 9, 2024 by Pulumi

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

    NOTE: Available in v1.135.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const examples = alicloud.amqp.getBindings({
        instanceId: "amqp-cn-xxxxx",
        virtualHostName: "my-vh",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    examples = alicloud.amqp.get_bindings(instance_id="amqp-cn-xxxxx",
        virtual_host_name="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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var examples = AliCloud.Amqp.GetBindings.Invoke(new()
        {
            InstanceId = "amqp-cn-xxxxx",
            VirtualHostName = "my-vh",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    File name where to save data source results (after running pulumi preview).
    InstanceId string
    Instance Id.
    VirtualHostName string
    Virtualhost Name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    instanceId String
    Instance Id.
    virtualHostName String
    Virtualhost Name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    instanceId string
    Instance Id.
    virtualHostName string
    Virtualhost Name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    instance_id str
    Instance Id.
    virtual_host_name str
    Virtualhost Name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    instanceId String
    Instance Id.
    virtualHostName String
    Virtualhost Name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.69.0 published on Monday, Dec 9, 2024 by Pulumi