1. Packages
  2. Dynatrace
  3. API Docs
  4. ServiceSplitting
Dynatrace v0.30.0 published on Friday, Jul 4, 2025 by Pulumiverse

dynatrace.ServiceSplitting

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.30.0 published on Friday, Jul 4, 2025 by Pulumiverse

    This resource requires the API token scopes Read settings (settings.read) and Write settings (settings.write)

    Dynatrace Documentation

    • Services - https://docs.dynatrace.com/docs/observe/applications-and-microservices/services

    • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:service-splitting-rules)

    Resource Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      '#name#':
        type: dynatrace:ServiceSplitting
        properties:
          enabled: false
          rule:
            condition: matchesValue(k8s.cluster.name, "terraform")
            description: Example description
            ruleName: '#name#'
            serviceSplittingAttributes:
              serviceSplittingAttribute:
                - key: Attribute-1
                - key: Attribute-2
                - key: Attribute-3
          scope: environment
    

    Create ServiceSplitting Resource

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

    Constructor syntax

    new ServiceSplitting(name: string, args: ServiceSplittingArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceSplitting(resource_name: str,
                         args: ServiceSplittingArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceSplitting(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         enabled: Optional[bool] = None,
                         rule: Optional[ServiceSplittingRuleArgs] = None,
                         insert_after: Optional[str] = None,
                         scope: Optional[str] = None)
    func NewServiceSplitting(ctx *Context, name string, args ServiceSplittingArgs, opts ...ResourceOption) (*ServiceSplitting, error)
    public ServiceSplitting(string name, ServiceSplittingArgs args, CustomResourceOptions? opts = null)
    public ServiceSplitting(String name, ServiceSplittingArgs args)
    public ServiceSplitting(String name, ServiceSplittingArgs args, CustomResourceOptions options)
    
    type: dynatrace:ServiceSplitting
    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 ServiceSplittingArgs
    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 ServiceSplittingArgs
    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 ServiceSplittingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceSplittingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceSplittingArgs
    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 serviceSplittingResource = new Dynatrace.ServiceSplitting("serviceSplittingResource", new()
    {
        Enabled = false,
        Rule = new Dynatrace.Inputs.ServiceSplittingRuleArgs
        {
            RuleName = "string",
            Condition = "string",
            Description = "string",
            ServiceSplittingAttributes = new Dynatrace.Inputs.ServiceSplittingRuleServiceSplittingAttributesArgs
            {
                ServiceSplittingAttributes = new[]
                {
                    new Dynatrace.Inputs.ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttributeArgs
                    {
                        Key = "string",
                    },
                },
            },
        },
        InsertAfter = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewServiceSplitting(ctx, "serviceSplittingResource", &dynatrace.ServiceSplittingArgs{
    	Enabled: pulumi.Bool(false),
    	Rule: &dynatrace.ServiceSplittingRuleArgs{
    		RuleName:    pulumi.String("string"),
    		Condition:   pulumi.String("string"),
    		Description: pulumi.String("string"),
    		ServiceSplittingAttributes: &dynatrace.ServiceSplittingRuleServiceSplittingAttributesArgs{
    			ServiceSplittingAttributes: dynatrace.ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttributeArray{
    				&dynatrace.ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttributeArgs{
    					Key: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	InsertAfter: pulumi.String("string"),
    	Scope:       pulumi.String("string"),
    })
    
    var serviceSplittingResource = new ServiceSplitting("serviceSplittingResource", ServiceSplittingArgs.builder()
        .enabled(false)
        .rule(ServiceSplittingRuleArgs.builder()
            .ruleName("string")
            .condition("string")
            .description("string")
            .serviceSplittingAttributes(ServiceSplittingRuleServiceSplittingAttributesArgs.builder()
                .serviceSplittingAttributes(ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttributeArgs.builder()
                    .key("string")
                    .build())
                .build())
            .build())
        .insertAfter("string")
        .scope("string")
        .build());
    
    service_splitting_resource = dynatrace.ServiceSplitting("serviceSplittingResource",
        enabled=False,
        rule={
            "rule_name": "string",
            "condition": "string",
            "description": "string",
            "service_splitting_attributes": {
                "service_splitting_attributes": [{
                    "key": "string",
                }],
            },
        },
        insert_after="string",
        scope="string")
    
    const serviceSplittingResource = new dynatrace.ServiceSplitting("serviceSplittingResource", {
        enabled: false,
        rule: {
            ruleName: "string",
            condition: "string",
            description: "string",
            serviceSplittingAttributes: {
                serviceSplittingAttributes: [{
                    key: "string",
                }],
            },
        },
        insertAfter: "string",
        scope: "string",
    });
    
    type: dynatrace:ServiceSplitting
    properties:
        enabled: false
        insertAfter: string
        rule:
            condition: string
            description: string
            ruleName: string
            serviceSplittingAttributes:
                serviceSplittingAttributes:
                    - key: string
        scope: string
    

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

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Rule Pulumiverse.Dynatrace.Inputs.ServiceSplittingRule
    Rule
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Rule ServiceSplittingRuleArgs
    Rule
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    rule ServiceSplittingRule
    Rule
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    scope String
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    rule ServiceSplittingRule
    Rule
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    rule ServiceSplittingRuleArgs
    Rule
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    scope str
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    rule Property Map
    Rule
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    scope String
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.

    Outputs

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

    Get an existing ServiceSplitting 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?: ServiceSplittingState, opts?: CustomResourceOptions): ServiceSplitting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            rule: Optional[ServiceSplittingRuleArgs] = None,
            scope: Optional[str] = None) -> ServiceSplitting
    func GetServiceSplitting(ctx *Context, name string, id IDInput, state *ServiceSplittingState, opts ...ResourceOption) (*ServiceSplitting, error)
    public static ServiceSplitting Get(string name, Input<string> id, ServiceSplittingState? state, CustomResourceOptions? opts = null)
    public static ServiceSplitting get(String name, Output<String> id, ServiceSplittingState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:ServiceSplitting    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:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Rule Pulumiverse.Dynatrace.Inputs.ServiceSplittingRule
    Rule
    Scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Rule ServiceSplittingRuleArgs
    Rule
    Scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    rule ServiceSplittingRule
    Rule
    scope String
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    rule ServiceSplittingRule
    Rule
    scope string
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    rule ServiceSplittingRuleArgs
    Rule
    scope str
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    rule Property Map
    Rule
    scope String
    The scope of this setting (CLOUDAPPLICATIONNAMESPACE, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.

    Supporting Types

    ServiceSplittingRule, ServiceSplittingRuleArgs

    RuleName string
    Rule name
    Condition string
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    Description string
    no documentation available
    ServiceSplittingAttributes Pulumiverse.Dynatrace.Inputs.ServiceSplittingRuleServiceSplittingAttributes
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.
    RuleName string
    Rule name
    Condition string
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    Description string
    no documentation available
    ServiceSplittingAttributes ServiceSplittingRuleServiceSplittingAttributes
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.
    ruleName String
    Rule name
    condition String
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    description String
    no documentation available
    serviceSplittingAttributes ServiceSplittingRuleServiceSplittingAttributes
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.
    ruleName string
    Rule name
    condition string
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    description string
    no documentation available
    serviceSplittingAttributes ServiceSplittingRuleServiceSplittingAttributes
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.
    rule_name str
    Rule name
    condition str
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    description str
    no documentation available
    service_splitting_attributes ServiceSplittingRuleServiceSplittingAttributes
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.
    ruleName String
    Rule name
    condition String
    Limits the scope of the service splitting rule using DQL matcher conditions on resource attributes.. A rule is applied only if the condition matches, otherwise the ruleset evaluation continues.
    description String
    no documentation available
    serviceSplittingAttributes Property Map
    Define the entire set of resource attributes that should split your services in the matching scope.. Each attribute that exists will contribute to the final service ID.

    ServiceSplittingRuleServiceSplittingAttributes, ServiceSplittingRuleServiceSplittingAttributesArgs

    ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttribute, ServiceSplittingRuleServiceSplittingAttributesServiceSplittingAttributeArgs

    Key string
    Attribute key
    Key string
    Attribute key
    key String
    Attribute key
    key string
    Attribute key
    key str
    Attribute key
    key String
    Attribute key

    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.30.0 published on Friday, Jul 4, 2025 by Pulumiverse