CloudAMQP v3.20.0 published on Thursday, Sep 5, 2024 by Pulumi
cloudamqp.getPlugins
Explore with Pulumi AI
Use this data source to retrieve information about installed and available plugins for the CloudAMQP instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const plugins = cloudamqp.getPlugins({
instanceId: instance.id,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
plugins = cloudamqp.get_plugins(instance_id=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, &cloudamqp.GetPluginsArgs{
InstanceId: instance.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var plugins = CloudAmqp.GetPlugins.Invoke(new()
{
InstanceId = instance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.CloudamqpFunctions;
import com.pulumi.cloudamqp.inputs.GetPluginsArgs;
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 plugins = CloudamqpFunctions.getPlugins(GetPluginsArgs.builder()
.instanceId(instance.id())
.build());
}
}
variables:
plugins:
fn::invoke:
Function: cloudamqp:getPlugins
Arguments:
instanceId: ${instance.id}
Attributes reference
All attributes reference are computed
id
- The identifier for this resource.plugins
- An array of plugins. Eachplugins
block consists of the fields documented below.sleep
- (Optional) Configurable sleep time (seconds) for retries when requesting information about plugins. Default set to 10 seconds. Available from v1.29.0timeout
- (Optional) - Configurable timeout time (seconds) for retries when requesting information about plugins. Default set to 1800 seconds. Available from v1.29.0
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
.
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:
- Instance
Id int - The CloudAMQP instance identifier.
- Instance
Id int - The CloudAMQP instance identifier.
- instance
Id Integer - The CloudAMQP instance identifier.
- instance
Id number - The CloudAMQP instance identifier.
- instance_
id int - The CloudAMQP instance identifier.
- instance
Id Number - The CloudAMQP instance identifier.
getPlugins Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id int - Plugins
List<Pulumi.
Cloud Amqp. Outputs. Get Plugins Plugin>
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id int - Plugins
[]Get
Plugins Plugin
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Integer - plugins
List<Get
Plugins Plugin>
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id number - plugins
Get
Plugins Plugin[]
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id int - plugins
Sequence[Get
Plugins Plugin]
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Number - plugins List<Property Map>
Supporting Types
GetPluginsPlugin
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.