1. Packages
  2. CloudAMQP
  3. API Docs
  4. getPluginsCommunity
CloudAMQP v3.18.0 published on Thursday, Jun 13, 2024 by Pulumi

cloudamqp.getPluginsCommunity

Explore with Pulumi AI

cloudamqp logo
CloudAMQP v3.18.0 published on Thursday, Jun 13, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudamqp from "@pulumi/cloudamqp";
    
    const communitPlugins = cloudamqp.getPluginsCommunity({
        instanceId: instance.id,
    });
    
    import pulumi
    import pulumi_cloudamqp as cloudamqp
    
    communit_plugins = cloudamqp.get_plugins_community(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.GetPluginsCommunity(ctx, &cloudamqp.GetPluginsCommunityArgs{
    			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 communitPlugins = CloudAmqp.GetPluginsCommunity.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.GetPluginsCommunityArgs;
    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 communitPlugins = CloudamqpFunctions.getPluginsCommunity(GetPluginsCommunityArgs.builder()
                .instanceId(instance.id())
                .build());
    
        }
    }
    
    variables:
      communitPlugins:
        fn::invoke:
          Function: cloudamqp:getPluginsCommunity
          Arguments:
            instanceId: ${instance.id}
    

    Attributes reference

    All attributes reference are computed

    • id - The identifier for this resource.
    • plugins - An array of community plugins. Each plugins block consists of the fields documented below.
    • sleep - (Optional) Configurable sleep time (seconds) for retries when requesting information about community plugins. Default set to 10 seconds. Available from v1.29.0
    • timeout - (Optional) - Configurable timeout time (seconds) for retries when requesting information about community plugins. Default set to 1800 seconds. Available from v1.29.0

    The plugins block consists of

    • name - The type of the recipient.
    • require - Min. required Rabbit MQ version to be used.
    • description - Description of what the plugin does.

    Dependency

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

    Using getPluginsCommunity

    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 getPluginsCommunity(args: GetPluginsCommunityArgs, opts?: InvokeOptions): Promise<GetPluginsCommunityResult>
    function getPluginsCommunityOutput(args: GetPluginsCommunityOutputArgs, opts?: InvokeOptions): Output<GetPluginsCommunityResult>
    def get_plugins_community(instance_id: Optional[int] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPluginsCommunityResult
    def get_plugins_community_output(instance_id: Optional[pulumi.Input[int]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPluginsCommunityResult]
    func GetPluginsCommunity(ctx *Context, args *GetPluginsCommunityArgs, opts ...InvokeOption) (*GetPluginsCommunityResult, error)
    func GetPluginsCommunityOutput(ctx *Context, args *GetPluginsCommunityOutputArgs, opts ...InvokeOption) GetPluginsCommunityResultOutput

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

    public static class GetPluginsCommunity 
    {
        public static Task<GetPluginsCommunityResult> InvokeAsync(GetPluginsCommunityArgs args, InvokeOptions? opts = null)
        public static Output<GetPluginsCommunityResult> Invoke(GetPluginsCommunityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPluginsCommunityResult> getPluginsCommunity(GetPluginsCommunityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cloudamqp:index/getPluginsCommunity:getPluginsCommunity
      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.

    getPluginsCommunity 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.GetPluginsCommunityPlugin>
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId int
    Plugins []GetPluginsCommunityPlugin
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Integer
    plugins List<GetPluginsCommunityPlugin>
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId number
    plugins GetPluginsCommunityPlugin[]
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id int
    plugins Sequence[GetPluginsCommunityPlugin]
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Number
    plugins List<Property Map>

    Supporting Types

    GetPluginsCommunityPlugin

    Description string
    Name string
    Require string
    Sleep int
    Configurable sleep time in seconds between retries for plugins
    Timeout int
    Configurable timeout time in seconds for plugins
    Description string
    Name string
    Require string
    Sleep int
    Configurable sleep time in seconds between retries for plugins
    Timeout int
    Configurable timeout time in seconds for plugins
    description String
    name String
    require String
    sleep Integer
    Configurable sleep time in seconds between retries for plugins
    timeout Integer
    Configurable timeout time in seconds for plugins
    description string
    name string
    require string
    sleep number
    Configurable sleep time in seconds between retries for plugins
    timeout number
    Configurable timeout time in seconds for plugins
    description str
    name str
    require str
    sleep int
    Configurable sleep time in seconds between retries for plugins
    timeout int
    Configurable timeout time in seconds for plugins
    description String
    name String
    require String
    sleep Number
    Configurable sleep time in seconds between retries for plugins
    timeout Number
    Configurable timeout time in seconds for plugins

    Package Details

    Repository
    CloudAMQP pulumi/pulumi-cloudamqp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudamqp Terraform Provider.
    cloudamqp logo
    CloudAMQP v3.18.0 published on Thursday, Jun 13, 2024 by Pulumi