Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.amqp.getBindings
Explore with Pulumi AI
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:
- Instance
Id string - Instance Id.
- Virtual
Host stringName - Virtualhost Name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Instance
Id string - Instance Id.
- Virtual
Host stringName - Virtualhost Name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- instance
Id String - Instance Id.
- virtual
Host StringName - Virtualhost Name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- instance
Id string - Instance Id.
- virtual
Host stringName - Virtualhost Name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- instance_
id str - Instance Id.
- virtual_
host_ strname - Virtualhost Name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- instance
Id String - Instance Id.
- virtual
Host StringName - Virtualhost Name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getBindings Result
The following output properties are available:
- Bindings
List<Pulumi.
Ali Cloud. Amqp. Outputs. Get Bindings Binding> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instance
Id string - Virtual
Host stringName - Output
File string
- Bindings
[]Get
Bindings Binding - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instance
Id string - Virtual
Host stringName - Output
File string
- bindings
List<Get
Bindings Binding> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - virtual
Host StringName - output
File String
- bindings
Get
Bindings Binding[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instance
Id string - virtual
Host stringName - output
File string
- bindings
Sequence[Get
Bindings Binding] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instance_
id str - virtual_
host_ strname - output_
file str
- bindings List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instance
Id String - virtual
Host StringName - output
File 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.
- Binding
Key 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 (.
- Binding
Type string - The Target Binding Types.
- Destination
Name 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>
. - Instance
Id string - Instance Id.
- Source
Exchange string - The Source Exchange Name.
- Virtual
Host stringName - 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.
- Binding
Key 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 (.
- Binding
Type string - The Target Binding Types.
- Destination
Name 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>
. - Instance
Id string - Instance Id.
- Source
Exchange string - The Source Exchange Name.
- Virtual
Host stringName - 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.
- binding
Key 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 (.
- binding
Type String - The Target Binding Types.
- destination
Name 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>
. - instance
Id String - Instance Id.
- source
Exchange String - The Source Exchange Name.
- virtual
Host StringName - 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.
- binding
Key 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 (.
- binding
Type string - The Target Binding Types.
- destination
Name 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>
. - instance
Id string - Instance Id.
- source
Exchange string - The Source Exchange Name.
- virtual
Host stringName - 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_ strname - 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.
- binding
Key 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 (.
- binding
Type String - The Target Binding Types.
- destination
Name 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>
. - instance
Id String - Instance Id.
- source
Exchange String - The Source Exchange Name.
- virtual
Host StringName - 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.