1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. UseractionsSubscriptionAmqp
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.UseractionsSubscriptionAmqp

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Resource provides access to user action logs and client subscription via AMQP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const subs = new edgecenter.UseractionsSubscriptionAmqp("subs", {
        connectionString: "amqps://guest:guest@192.168.123.20:5671/user_action_events",
        receiveChildClientEvents: true,
        routingKey: "foo",
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    subs = edgecenter.UseractionsSubscriptionAmqp("subs",
        connection_string="amqps://guest:guest@192.168.123.20:5671/user_action_events",
        receive_child_client_events=True,
        routing_key="foo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewUseractionsSubscriptionAmqp(ctx, "subs", &edgecenter.UseractionsSubscriptionAmqpArgs{
    			ConnectionString:         pulumi.String("amqps://guest:guest@192.168.123.20:5671/user_action_events"),
    			ReceiveChildClientEvents: pulumi.Bool(true),
    			RoutingKey:               pulumi.String("foo"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var subs = new Edgecenter.UseractionsSubscriptionAmqp("subs", new()
        {
            ConnectionString = "amqps://guest:guest@192.168.123.20:5671/user_action_events",
            ReceiveChildClientEvents = true,
            RoutingKey = "foo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.UseractionsSubscriptionAmqp;
    import com.pulumi.edgecenter.UseractionsSubscriptionAmqpArgs;
    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) {
            var subs = new UseractionsSubscriptionAmqp("subs", UseractionsSubscriptionAmqpArgs.builder()
                .connectionString("amqps://guest:guest@192.168.123.20:5671/user_action_events")
                .receiveChildClientEvents(true)
                .routingKey("foo")
                .build());
    
        }
    }
    
    resources:
      subs:
        type: edgecenter:UseractionsSubscriptionAmqp
        properties:
          connectionString: amqps://guest:guest@192.168.123.20:5671/user_action_events
          # exchange                    = "abce"
          receiveChildClientEvents: true
          routingKey: foo
    

    Create UseractionsSubscriptionAmqp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UseractionsSubscriptionAmqp(name: string, args: UseractionsSubscriptionAmqpArgs, opts?: CustomResourceOptions);
    @overload
    def UseractionsSubscriptionAmqp(resource_name: str,
                                    args: UseractionsSubscriptionAmqpArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def UseractionsSubscriptionAmqp(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    connection_string: Optional[str] = None,
                                    exchange: Optional[str] = None,
                                    receive_child_client_events: Optional[bool] = None,
                                    routing_key: Optional[str] = None,
                                    useractions_subscription_amqp_id: Optional[str] = None)
    func NewUseractionsSubscriptionAmqp(ctx *Context, name string, args UseractionsSubscriptionAmqpArgs, opts ...ResourceOption) (*UseractionsSubscriptionAmqp, error)
    public UseractionsSubscriptionAmqp(string name, UseractionsSubscriptionAmqpArgs args, CustomResourceOptions? opts = null)
    public UseractionsSubscriptionAmqp(String name, UseractionsSubscriptionAmqpArgs args)
    public UseractionsSubscriptionAmqp(String name, UseractionsSubscriptionAmqpArgs args, CustomResourceOptions options)
    
    type: edgecenter:UseractionsSubscriptionAmqp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UseractionsSubscriptionAmqpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UseractionsSubscriptionAmqpArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UseractionsSubscriptionAmqpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UseractionsSubscriptionAmqpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UseractionsSubscriptionAmqpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var useractionsSubscriptionAmqpResource = new Edgecenter.UseractionsSubscriptionAmqp("useractionsSubscriptionAmqpResource", new()
    {
        ConnectionString = "string",
        Exchange = "string",
        ReceiveChildClientEvents = false,
        RoutingKey = "string",
        UseractionsSubscriptionAmqpId = "string",
    });
    
    example, err := edgecenter.NewUseractionsSubscriptionAmqp(ctx, "useractionsSubscriptionAmqpResource", &edgecenter.UseractionsSubscriptionAmqpArgs{
    	ConnectionString:              pulumi.String("string"),
    	Exchange:                      pulumi.String("string"),
    	ReceiveChildClientEvents:      pulumi.Bool(false),
    	RoutingKey:                    pulumi.String("string"),
    	UseractionsSubscriptionAmqpId: pulumi.String("string"),
    })
    
    var useractionsSubscriptionAmqpResource = new UseractionsSubscriptionAmqp("useractionsSubscriptionAmqpResource", UseractionsSubscriptionAmqpArgs.builder()
        .connectionString("string")
        .exchange("string")
        .receiveChildClientEvents(false)
        .routingKey("string")
        .useractionsSubscriptionAmqpId("string")
        .build());
    
    useractions_subscription_amqp_resource = edgecenter.UseractionsSubscriptionAmqp("useractionsSubscriptionAmqpResource",
        connection_string="string",
        exchange="string",
        receive_child_client_events=False,
        routing_key="string",
        useractions_subscription_amqp_id="string")
    
    const useractionsSubscriptionAmqpResource = new edgecenter.UseractionsSubscriptionAmqp("useractionsSubscriptionAmqpResource", {
        connectionString: "string",
        exchange: "string",
        receiveChildClientEvents: false,
        routingKey: "string",
        useractionsSubscriptionAmqpId: "string",
    });
    
    type: edgecenter:UseractionsSubscriptionAmqp
    properties:
        connectionString: string
        exchange: string
        receiveChildClientEvents: false
        routingKey: string
        useractionsSubscriptionAmqpId: string
    

    UseractionsSubscriptionAmqp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The UseractionsSubscriptionAmqp resource accepts the following input properties:

    ConnectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    Exchange string
    Exchange name.
    ReceiveChildClientEvents bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    RoutingKey string
    Routing key.
    UseractionsSubscriptionAmqpId string
    The ID of this resource.
    ConnectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    Exchange string
    Exchange name.
    ReceiveChildClientEvents bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    RoutingKey string
    Routing key.
    UseractionsSubscriptionAmqpId string
    The ID of this resource.
    connectionString String
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange String
    Exchange name.
    receiveChildClientEvents Boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey String
    Routing key.
    useractionsSubscriptionAmqpId String
    The ID of this resource.
    connectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange string
    Exchange name.
    receiveChildClientEvents boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey string
    Routing key.
    useractionsSubscriptionAmqpId string
    The ID of this resource.
    connection_string str
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange str
    Exchange name.
    receive_child_client_events bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routing_key str
    Routing key.
    useractions_subscription_amqp_id str
    The ID of this resource.
    connectionString String
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange String
    Exchange name.
    receiveChildClientEvents Boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey String
    Routing key.
    useractionsSubscriptionAmqpId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UseractionsSubscriptionAmqp resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing UseractionsSubscriptionAmqp Resource

    Get an existing UseractionsSubscriptionAmqp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UseractionsSubscriptionAmqpState, opts?: CustomResourceOptions): UseractionsSubscriptionAmqp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connection_string: Optional[str] = None,
            exchange: Optional[str] = None,
            receive_child_client_events: Optional[bool] = None,
            routing_key: Optional[str] = None,
            useractions_subscription_amqp_id: Optional[str] = None) -> UseractionsSubscriptionAmqp
    func GetUseractionsSubscriptionAmqp(ctx *Context, name string, id IDInput, state *UseractionsSubscriptionAmqpState, opts ...ResourceOption) (*UseractionsSubscriptionAmqp, error)
    public static UseractionsSubscriptionAmqp Get(string name, Input<string> id, UseractionsSubscriptionAmqpState? state, CustomResourceOptions? opts = null)
    public static UseractionsSubscriptionAmqp get(String name, Output<String> id, UseractionsSubscriptionAmqpState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:UseractionsSubscriptionAmqp    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConnectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    Exchange string
    Exchange name.
    ReceiveChildClientEvents bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    RoutingKey string
    Routing key.
    UseractionsSubscriptionAmqpId string
    The ID of this resource.
    ConnectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    Exchange string
    Exchange name.
    ReceiveChildClientEvents bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    RoutingKey string
    Routing key.
    UseractionsSubscriptionAmqpId string
    The ID of this resource.
    connectionString String
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange String
    Exchange name.
    receiveChildClientEvents Boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey String
    Routing key.
    useractionsSubscriptionAmqpId String
    The ID of this resource.
    connectionString string
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange string
    Exchange name.
    receiveChildClientEvents boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey string
    Routing key.
    useractionsSubscriptionAmqpId string
    The ID of this resource.
    connection_string str
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange str
    Exchange name.
    receive_child_client_events bool
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routing_key str
    Routing key.
    useractions_subscription_amqp_id str
    The ID of this resource.
    connectionString String
    A connection string of the following structure "scheme://username:password@host:port/virtual_host".
    exchange String
    Exchange name.
    receiveChildClientEvents Boolean
    Set to true if you would like to receive user action logs of all clients with resellerid matching the current clientid. Defaults to false.
    routingKey String
    Routing key.
    useractionsSubscriptionAmqpId String
    The ID of this resource.

    Import

    import using <subscription_id> format

    $ pulumi import edgecenter:index/useractionsSubscriptionAmqp:UseractionsSubscriptionAmqp subs 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center