1. Packages
  2. Dynatrace
  3. API Docs
  4. GenericRelationships
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.GenericRelationships

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Create GenericRelationships Resource

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

    Constructor syntax

    new GenericRelationships(name: string, args: GenericRelationshipsArgs, opts?: CustomResourceOptions);
    @overload
    def GenericRelationships(resource_name: str,
                             args: GenericRelationshipsArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def GenericRelationships(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             created_by: Optional[str] = None,
                             enabled: Optional[bool] = None,
                             from_type: Optional[str] = None,
                             sources: Optional[GenericRelationshipsSourcesArgs] = None,
                             to_type: Optional[str] = None,
                             type_of_relation: Optional[str] = None,
                             from_role: Optional[str] = None,
                             to_role: Optional[str] = None)
    func NewGenericRelationships(ctx *Context, name string, args GenericRelationshipsArgs, opts ...ResourceOption) (*GenericRelationships, error)
    public GenericRelationships(string name, GenericRelationshipsArgs args, CustomResourceOptions? opts = null)
    public GenericRelationships(String name, GenericRelationshipsArgs args)
    public GenericRelationships(String name, GenericRelationshipsArgs args, CustomResourceOptions options)
    
    type: dynatrace:GenericRelationships
    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 GenericRelationshipsArgs
    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 GenericRelationshipsArgs
    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 GenericRelationshipsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GenericRelationshipsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GenericRelationshipsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var genericRelationshipsResource = new Dynatrace.GenericRelationships("genericRelationshipsResource", new()
    {
        CreatedBy = "string",
        Enabled = false,
        FromType = "string",
        Sources = new Dynatrace.Inputs.GenericRelationshipsSourcesArgs
        {
            Sources = new[]
            {
                new Dynatrace.Inputs.GenericRelationshipsSourcesSourceArgs
                {
                    SourceType = "string",
                    Condition = "string",
                    MappingRules = new Dynatrace.Inputs.GenericRelationshipsSourcesSourceMappingRulesArgs
                    {
                        MappingRules = new[]
                        {
                            new Dynatrace.Inputs.GenericRelationshipsSourcesSourceMappingRulesMappingRuleArgs
                            {
                                DestinationProperty = "string",
                                DestinationTransformation = "string",
                                SourceProperty = "string",
                                SourceTransformation = "string",
                            },
                        },
                    },
                },
            },
        },
        ToType = "string",
        TypeOfRelation = "string",
        FromRole = "string",
        ToRole = "string",
    });
    
    example, err := dynatrace.NewGenericRelationships(ctx, "genericRelationshipsResource", &dynatrace.GenericRelationshipsArgs{
    	CreatedBy: pulumi.String("string"),
    	Enabled:   pulumi.Bool(false),
    	FromType:  pulumi.String("string"),
    	Sources: &dynatrace.GenericRelationshipsSourcesArgs{
    		Sources: dynatrace.GenericRelationshipsSourcesSourceArray{
    			&dynatrace.GenericRelationshipsSourcesSourceArgs{
    				SourceType: pulumi.String("string"),
    				Condition:  pulumi.String("string"),
    				MappingRules: &dynatrace.GenericRelationshipsSourcesSourceMappingRulesArgs{
    					MappingRules: dynatrace.GenericRelationshipsSourcesSourceMappingRulesMappingRuleArray{
    						&dynatrace.GenericRelationshipsSourcesSourceMappingRulesMappingRuleArgs{
    							DestinationProperty:       pulumi.String("string"),
    							DestinationTransformation: pulumi.String("string"),
    							SourceProperty:            pulumi.String("string"),
    							SourceTransformation:      pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    	ToType:         pulumi.String("string"),
    	TypeOfRelation: pulumi.String("string"),
    	FromRole:       pulumi.String("string"),
    	ToRole:         pulumi.String("string"),
    })
    
    var genericRelationshipsResource = new GenericRelationships("genericRelationshipsResource", GenericRelationshipsArgs.builder()        
        .createdBy("string")
        .enabled(false)
        .fromType("string")
        .sources(GenericRelationshipsSourcesArgs.builder()
            .sources(GenericRelationshipsSourcesSourceArgs.builder()
                .sourceType("string")
                .condition("string")
                .mappingRules(GenericRelationshipsSourcesSourceMappingRulesArgs.builder()
                    .mappingRules(GenericRelationshipsSourcesSourceMappingRulesMappingRuleArgs.builder()
                        .destinationProperty("string")
                        .destinationTransformation("string")
                        .sourceProperty("string")
                        .sourceTransformation("string")
                        .build())
                    .build())
                .build())
            .build())
        .toType("string")
        .typeOfRelation("string")
        .fromRole("string")
        .toRole("string")
        .build());
    
    generic_relationships_resource = dynatrace.GenericRelationships("genericRelationshipsResource",
        created_by="string",
        enabled=False,
        from_type="string",
        sources=dynatrace.GenericRelationshipsSourcesArgs(
            sources=[dynatrace.GenericRelationshipsSourcesSourceArgs(
                source_type="string",
                condition="string",
                mapping_rules=dynatrace.GenericRelationshipsSourcesSourceMappingRulesArgs(
                    mapping_rules=[dynatrace.GenericRelationshipsSourcesSourceMappingRulesMappingRuleArgs(
                        destination_property="string",
                        destination_transformation="string",
                        source_property="string",
                        source_transformation="string",
                    )],
                ),
            )],
        ),
        to_type="string",
        type_of_relation="string",
        from_role="string",
        to_role="string")
    
    const genericRelationshipsResource = new dynatrace.GenericRelationships("genericRelationshipsResource", {
        createdBy: "string",
        enabled: false,
        fromType: "string",
        sources: {
            sources: [{
                sourceType: "string",
                condition: "string",
                mappingRules: {
                    mappingRules: [{
                        destinationProperty: "string",
                        destinationTransformation: "string",
                        sourceProperty: "string",
                        sourceTransformation: "string",
                    }],
                },
            }],
        },
        toType: "string",
        typeOfRelation: "string",
        fromRole: "string",
        toRole: "string",
    });
    
    type: dynatrace:GenericRelationships
    properties:
        createdBy: string
        enabled: false
        fromRole: string
        fromType: string
        sources:
            sources:
                - condition: string
                  mappingRules:
                    mappingRules:
                        - destinationProperty: string
                          destinationTransformation: string
                          sourceProperty: string
                          sourceTransformation: string
                  sourceType: string
        toRole: string
        toType: string
        typeOfRelation: string
    

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

    CreatedBy string
    The user or extension that created this relationship.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    FromType string
    Define an entity type as the source of the relationship.
    Sources Lbrlabs.PulumiPackage.Dynatrace.Inputs.GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    ToType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    TypeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    FromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    ToRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    CreatedBy string
    The user or extension that created this relationship.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    FromType string
    Define an entity type as the source of the relationship.
    Sources GenericRelationshipsSourcesArgs
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    ToType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    TypeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    FromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    ToRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    createdBy String
    The user or extension that created this relationship.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    fromType String
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toType String
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation String
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    fromRole String
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    toRole String
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    createdBy string
    The user or extension that created this relationship.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    fromType string
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    fromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    toRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    created_by str
    The user or extension that created this relationship.
    enabled bool
    This setting is enabled (true) or disabled (false)
    from_type str
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSourcesArgs
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    to_type str
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    type_of_relation str
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    from_role str
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    to_role str
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    createdBy String
    The user or extension that created this relationship.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    fromType String
    Define an entity type as the source of the relationship.
    sources Property Map
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toType String
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation String
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    fromRole String
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    toRole String
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.

    Outputs

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

    Get an existing GenericRelationships 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?: GenericRelationshipsState, opts?: CustomResourceOptions): GenericRelationships
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_by: Optional[str] = None,
            enabled: Optional[bool] = None,
            from_role: Optional[str] = None,
            from_type: Optional[str] = None,
            sources: Optional[GenericRelationshipsSourcesArgs] = None,
            to_role: Optional[str] = None,
            to_type: Optional[str] = None,
            type_of_relation: Optional[str] = None) -> GenericRelationships
    func GetGenericRelationships(ctx *Context, name string, id IDInput, state *GenericRelationshipsState, opts ...ResourceOption) (*GenericRelationships, error)
    public static GenericRelationships Get(string name, Input<string> id, GenericRelationshipsState? state, CustomResourceOptions? opts = null)
    public static GenericRelationships get(String name, Output<String> id, GenericRelationshipsState 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:
    CreatedBy string
    The user or extension that created this relationship.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    FromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    FromType string
    Define an entity type as the source of the relationship.
    Sources Lbrlabs.PulumiPackage.Dynatrace.Inputs.GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    ToRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    ToType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    TypeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    CreatedBy string
    The user or extension that created this relationship.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    FromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    FromType string
    Define an entity type as the source of the relationship.
    Sources GenericRelationshipsSourcesArgs
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    ToRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    ToType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    TypeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    createdBy String
    The user or extension that created this relationship.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    fromRole String
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    fromType String
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toRole String
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    toType String
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation String
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    createdBy string
    The user or extension that created this relationship.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    fromRole string
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    fromType string
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSources
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toRole string
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    toType string
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation string
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    created_by str
    The user or extension that created this relationship.
    enabled bool
    This setting is enabled (true) or disabled (false)
    from_role str
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    from_type str
    Define an entity type as the source of the relationship.
    sources GenericRelationshipsSourcesArgs
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    to_role str
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    to_type str
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    type_of_relation str
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS
    createdBy String
    The user or extension that created this relationship.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    fromRole String
    Specify a role for the source entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the source type is considered for the relationship.
    fromType String
    Define an entity type as the source of the relationship.
    sources Property Map
    Specify all sources which should be evaluated for this relationship rule. The relationship is only created when any of the filters match.
    toRole String
    Specify a role for the destination entity. If both source and destination type are the same, referring different roles will allow identification of a relationships direction. If role is left blank, any role of the destination type is considered for the relationship.
    toType String
    Define an entity type as the destination of the relationship. You can choose the same type as the source type. In this case you also may assign different roles for source and destination for having directed relationships.
    typeOfRelation String
    Possible Values: CALLS, CHILD_OF, INSTANCE_OF, PART_OF, RUNS_ON, SAME_AS

    Supporting Types

    GenericRelationshipsSources, GenericRelationshipsSourcesArgs

    GenericRelationshipsSourcesSource, GenericRelationshipsSourcesSourceArgs

    GenericRelationshipsSourcesSourceMappingRules, GenericRelationshipsSourcesSourceMappingRulesArgs

    GenericRelationshipsSourcesSourceMappingRulesMappingRule, GenericRelationshipsSourcesSourceMappingRulesMappingRuleArgs

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs