Azure Classic

v5.19.0 published on Friday, Sep 16, 2022 by Pulumi

DataCollectionRuleAssociation

Manages a Data Collection Rule Association.

Create a DataCollectionRuleAssociation Resource

new DataCollectionRuleAssociation(name: string, args: DataCollectionRuleAssociationArgs, opts?: CustomResourceOptions);
@overload
def DataCollectionRuleAssociation(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  data_collection_endpoint_id: Optional[str] = None,
                                  data_collection_rule_id: Optional[str] = None,
                                  description: Optional[str] = None,
                                  name: Optional[str] = None,
                                  target_resource_id: Optional[str] = None)
@overload
def DataCollectionRuleAssociation(resource_name: str,
                                  args: DataCollectionRuleAssociationArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewDataCollectionRuleAssociation(ctx *Context, name string, args DataCollectionRuleAssociationArgs, opts ...ResourceOption) (*DataCollectionRuleAssociation, error)
public DataCollectionRuleAssociation(string name, DataCollectionRuleAssociationArgs args, CustomResourceOptions? opts = null)
public DataCollectionRuleAssociation(String name, DataCollectionRuleAssociationArgs args)
public DataCollectionRuleAssociation(String name, DataCollectionRuleAssociationArgs args, CustomResourceOptions options)
type: azure:monitoring:DataCollectionRuleAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DataCollectionRuleAssociationArgs
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 DataCollectionRuleAssociationArgs
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 DataCollectionRuleAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DataCollectionRuleAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DataCollectionRuleAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DataCollectionRuleAssociation 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 DataCollectionRuleAssociation resource accepts the following input properties:

TargetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

DataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

DataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

Description string

The description of the Data Collection Rule Association.

Name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

TargetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

DataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

DataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

Description string

The description of the Data Collection Rule Association.

Name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId String

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId String

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId String

The ID of the Data Collection Rule which will be associated to the target resource.

description String

The description of the Data Collection Rule Association.

name String

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

description string

The description of the Data Collection Rule Association.

name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

target_resource_id str

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

data_collection_endpoint_id str

The ID of the Data Collection Endpoint which will be associated to the target resource.

data_collection_rule_id str

The ID of the Data Collection Rule which will be associated to the target resource.

description str

The description of the Data Collection Rule Association.

name str

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId String

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId String

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId String

The ID of the Data Collection Rule which will be associated to the target resource.

description String

The description of the Data Collection Rule Association.

name String

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

Outputs

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

Get an existing DataCollectionRuleAssociation 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?: DataCollectionRuleAssociationState, opts?: CustomResourceOptions): DataCollectionRuleAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data_collection_endpoint_id: Optional[str] = None,
        data_collection_rule_id: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        target_resource_id: Optional[str] = None) -> DataCollectionRuleAssociation
func GetDataCollectionRuleAssociation(ctx *Context, name string, id IDInput, state *DataCollectionRuleAssociationState, opts ...ResourceOption) (*DataCollectionRuleAssociation, error)
public static DataCollectionRuleAssociation Get(string name, Input<string> id, DataCollectionRuleAssociationState? state, CustomResourceOptions? opts = null)
public static DataCollectionRuleAssociation get(String name, Output<String> id, DataCollectionRuleAssociationState 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.
The following state arguments are supported:
DataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

DataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

Description string

The description of the Data Collection Rule Association.

Name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

TargetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

DataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

DataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

Description string

The description of the Data Collection Rule Association.

Name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

TargetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId String

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId String

The ID of the Data Collection Rule which will be associated to the target resource.

description String

The description of the Data Collection Rule Association.

name String

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId String

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId string

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId string

The ID of the Data Collection Rule which will be associated to the target resource.

description string

The description of the Data Collection Rule Association.

name string

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId string

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

data_collection_endpoint_id str

The ID of the Data Collection Endpoint which will be associated to the target resource.

data_collection_rule_id str

The ID of the Data Collection Rule which will be associated to the target resource.

description str

The description of the Data Collection Rule Association.

name str

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

target_resource_id str

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

dataCollectionEndpointId String

The ID of the Data Collection Endpoint which will be associated to the target resource.

dataCollectionRuleId String

The ID of the Data Collection Rule which will be associated to the target resource.

description String

The description of the Data Collection Rule Association.

name String

The name which should be used for this Data Collection Rule. Changing this forces a new Data Collection Rule to be created.

targetResourceId String

The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.

Import

Data Collection Rules Association can be imported using the resource id, e.g.

 $ pulumi import azure:monitoring/dataCollectionRuleAssociation:DataCollectionRuleAssociation example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/dca1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.