dynatrace.HubSubscriptions
Explore with Pulumi AI
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={
"token_subscriptions": [{
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HubSubscriptions resource accepts the following input properties:
- Token
Subscriptions HubSubscriptions Token Subscriptions Args - Subscriptions
- token
Subscriptions HubSubscriptions Token Subscriptions - Subscriptions
- token
Subscriptions HubSubscriptions Token Subscriptions - Subscriptions
- token
Subscriptions Property Map - Subscriptions
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.
- Token
Subscriptions HubSubscriptions Token Subscriptions Args - Subscriptions
- token
Subscriptions HubSubscriptions Token Subscriptions - Subscriptions
- token
Subscriptions HubSubscriptions Token Subscriptions - Subscriptions
- token
Subscriptions Property Map - Subscriptions
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.