1. Packages
  2. Dynatrace
  3. API Docs
  4. HubSubscriptions
Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse

dynatrace.HubSubscriptions

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse

    Create HubSubscriptions Resource

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

    Constructor syntax

    new HubSubscriptions(name: string, args?: HubSubscriptionsArgs, opts?: CustomResourceOptions);
    @overload
    def HubSubscriptions(resource_name: str,
                         args: Optional[HubSubscriptionsArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def HubSubscriptions(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         token_subscriptions: Optional[HubSubscriptionsTokenSubscriptionsArgs] = None)
    func NewHubSubscriptions(ctx *Context, name string, args *HubSubscriptionsArgs, opts ...ResourceOption) (*HubSubscriptions, error)
    public HubSubscriptions(string name, HubSubscriptionsArgs? args = null, CustomResourceOptions? opts = null)
    public HubSubscriptions(String name, HubSubscriptionsArgs args)
    public HubSubscriptions(String name, HubSubscriptionsArgs args, CustomResourceOptions options)
    
    type: dynatrace:HubSubscriptions
    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 HubSubscriptionsArgs
    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 HubSubscriptionsArgs
    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 HubSubscriptionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubSubscriptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubSubscriptionsArgs
    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 hubSubscriptionsResource = new Dynatrace.HubSubscriptions("hubSubscriptionsResource", new()
    {
        TokenSubscriptions = new Dynatrace.Inputs.HubSubscriptionsTokenSubscriptionsArgs
        {
            TokenSubscriptions = new[]
            {
                new Dynatrace.Inputs.HubSubscriptionsTokenSubscriptionsTokenSubscriptionArgs
                {
                    Enabled = false,
                    Name = "string",
                    Token = "string",
                    Description = "string",
                },
            },
        },
    });
    
    example, err := dynatrace.NewHubSubscriptions(ctx, "hubSubscriptionsResource", &dynatrace.HubSubscriptionsArgs{
    	TokenSubscriptions: &dynatrace.HubSubscriptionsTokenSubscriptionsArgs{
    		TokenSubscriptions: dynatrace.HubSubscriptionsTokenSubscriptionsTokenSubscriptionArray{
    			&dynatrace.HubSubscriptionsTokenSubscriptionsTokenSubscriptionArgs{
    				Enabled:     pulumi.Bool(false),
    				Name:        pulumi.String("string"),
    				Token:       pulumi.String("string"),
    				Description: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var hubSubscriptionsResource = new HubSubscriptions("hubSubscriptionsResource", HubSubscriptionsArgs.builder()
        .tokenSubscriptions(HubSubscriptionsTokenSubscriptionsArgs.builder()
            .tokenSubscriptions(HubSubscriptionsTokenSubscriptionsTokenSubscriptionArgs.builder()
                .enabled(false)
                .name("string")
                .token("string")
                .description("string")
                .build())
            .build())
        .build());
    
    hub_subscriptions_resource = dynatrace.HubSubscriptions("hubSubscriptionsResource", token_subscriptions=dynatrace.HubSubscriptionsTokenSubscriptionsArgs(
        token_subscriptions=[dynatrace.HubSubscriptionsTokenSubscriptionsTokenSubscriptionArgs(
            enabled=False,
            name="string",
            token="string",
            description="string",
        )],
    ))
    
    const hubSubscriptionsResource = new dynatrace.HubSubscriptions("hubSubscriptionsResource", {tokenSubscriptions: {
        tokenSubscriptions: [{
            enabled: false,
            name: "string",
            token: "string",
            description: "string",
        }],
    }});
    
    type: dynatrace:HubSubscriptions
    properties:
        tokenSubscriptions:
            tokenSubscriptions:
                - description: string
                  enabled: false
                  name: string
                  token: string
    

    HubSubscriptions Resource Properties

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

    Inputs

    The HubSubscriptions resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HubSubscriptions 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 HubSubscriptions Resource

    Get an existing HubSubscriptions 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?: HubSubscriptionsState, opts?: CustomResourceOptions): HubSubscriptions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            token_subscriptions: Optional[HubSubscriptionsTokenSubscriptionsArgs] = None) -> HubSubscriptions
    func GetHubSubscriptions(ctx *Context, name string, id IDInput, state *HubSubscriptionsState, opts ...ResourceOption) (*HubSubscriptions, error)
    public static HubSubscriptions Get(string name, Input<string> id, HubSubscriptionsState? state, CustomResourceOptions? opts = null)
    public static HubSubscriptions get(String name, Output<String> id, HubSubscriptionsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.

    Supporting Types

    HubSubscriptionsTokenSubscriptions, HubSubscriptionsTokenSubscriptionsArgs

    HubSubscriptionsTokenSubscriptionsTokenSubscription, HubSubscriptionsTokenSubscriptionsTokenSubscriptionArgs

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name of subscription
    Token string
    Subscription token
    Description string
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name of subscription
    Token string
    Subscription token
    Description string
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name of subscription
    token String
    Subscription token
    description String
    no documentation available
    enabled boolean
    This setting is enabled (true) or disabled (false)
    name string
    Name of subscription
    token string
    Subscription token
    description string
    no documentation available
    enabled bool
    This setting is enabled (true) or disabled (false)
    name str
    Name of subscription
    token str
    Subscription token
    description str
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name of subscription
    token String
    Subscription token
    description String
    no documentation available

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse