CloudAMQP

Pulumi Official
Package maintained by Pulumi
v3.6.2 published on Wednesday, Apr 6, 2022 by Pulumi

getPlugins

Use this data source to retrieve information about installed and available plugins for the CloudAMQP instance.

⚠️ From our go API wrapper v1.4.0 there is support for multiple retries when requesting information about plugins. This was introduced to avoid ReadPlugin error 400: Timeout talking to backend.

Attributes reference

All attributes reference are computed

  • id - The identifier for this resource.
  • plugins - An array of plugins. Each plugins block consists of the fields documented below.

The plugins block consist of

  • name - The type of the recipient.
  • version - Rabbit MQ version that the plugins are shipped with.
  • description - Description of what the plugin does.
  • enabled - Enable or disable information for the plugin.

Dependency

This data source depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id.

Example Usage

using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;

class MyStack : Stack
{
    public MyStack()
    {
        var plugins = Output.Create(CloudAmqp.GetPlugins.InvokeAsync(new CloudAmqp.GetPluginsArgs
        {
            InstanceId = cloudamqp_instance.Instance.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudamqp.GetPlugins(ctx, &GetPluginsArgs{
			InstanceId: cloudamqp_instance.Instance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_cloudamqp as cloudamqp

plugins = cloudamqp.get_plugins(instance_id=cloudamqp_instance["instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";

const plugins = cloudamqp.getPlugins({
    instanceId: cloudamqp_instance.instance.id,
});

Coming soon!

Using getPlugins

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 getPlugins(args: GetPluginsArgs, opts?: InvokeOptions): Promise<GetPluginsResult>
function getPluginsOutput(args: GetPluginsOutputArgs, opts?: InvokeOptions): Output<GetPluginsResult>
def get_plugins(instance_id: Optional[int] = None,
                opts: Optional[InvokeOptions] = None) -> GetPluginsResult
def get_plugins_output(instance_id: Optional[pulumi.Input[int]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetPluginsResult]
func GetPlugins(ctx *Context, args *GetPluginsArgs, opts ...InvokeOption) (*GetPluginsResult, error)
func GetPluginsOutput(ctx *Context, args *GetPluginsOutputArgs, opts ...InvokeOption) GetPluginsResultOutput

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

public static class GetPlugins 
{
    public static Task<GetPluginsResult> InvokeAsync(GetPluginsArgs args, InvokeOptions? opts = null)
    public static Output<GetPluginsResult> Invoke(GetPluginsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPluginsResult> getPlugins(GetPluginsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: cloudamqp:index/getPlugins:getPlugins
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId int

The CloudAMQP instance identifier.

InstanceId int

The CloudAMQP instance identifier.

instanceId Integer

The CloudAMQP instance identifier.

instanceId number

The CloudAMQP instance identifier.

instance_id int

The CloudAMQP instance identifier.

instanceId Number

The CloudAMQP instance identifier.

getPlugins Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Plugins List<Pulumi.CloudAmqp.Outputs.GetPluginsPlugin>
Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Plugins []GetPluginsPlugin
id String

The provider-assigned unique ID for this managed resource.

instanceId Integer
plugins ListPluginsPlugin>
id string

The provider-assigned unique ID for this managed resource.

instanceId number
plugins GetPluginsPlugin[]
id str

The provider-assigned unique ID for this managed resource.

instance_id int
plugins Sequence[GetPluginsPlugin]
id String

The provider-assigned unique ID for this managed resource.

instanceId Number
plugins List

Supporting Types

GetPluginsPlugin

Description string
Enabled bool
Name string
Version string
Description string
Enabled bool
Name string
Version string
description String
enabled Boolean
name String
version String
description string
enabled boolean
name string
version string
description String
enabled Boolean
name String
version String

Package Details

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

This Pulumi package is based on the cloudamqp Terraform Provider.