1. Packages
  2. Datadog Provider
  3. API Docs
  4. SyntheticsConcurrencyCap
Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi

datadog.SyntheticsConcurrencyCap

Explore with Pulumi AI

Provides a Datadog Synthetics On Demand Concurrency Cap API resource. This can be used to manage the Concurrency Cap for Synthetic tests.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

// Example Usage (Synthetics Concurrency Cap Configuration)
const _this = new datadog.SyntheticsConcurrencyCap("this", {onDemandConcurrencyCap: 1});
Copy
import pulumi
import pulumi_datadog as datadog

# Example Usage (Synthetics Concurrency Cap Configuration)
this = datadog.SyntheticsConcurrencyCap("this", on_demand_concurrency_cap=1)
Copy
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Example Usage (Synthetics Concurrency Cap Configuration)
		_, err := datadog.NewSyntheticsConcurrencyCap(ctx, "this", &datadog.SyntheticsConcurrencyCapArgs{
			OnDemandConcurrencyCap: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    // Example Usage (Synthetics Concurrency Cap Configuration)
    var @this = new Datadog.SyntheticsConcurrencyCap("this", new()
    {
        OnDemandConcurrencyCap = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.SyntheticsConcurrencyCap;
import com.pulumi.datadog.SyntheticsConcurrencyCapArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        // Example Usage (Synthetics Concurrency Cap Configuration)
        var this_ = new SyntheticsConcurrencyCap("this", SyntheticsConcurrencyCapArgs.builder()
            .onDemandConcurrencyCap(1)
            .build());

    }
}
Copy
resources:
  # Example Usage (Synthetics Concurrency Cap Configuration)
  this:
    type: datadog:SyntheticsConcurrencyCap
    properties:
      onDemandConcurrencyCap: 1
Copy

Create SyntheticsConcurrencyCap Resource

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

Constructor syntax

new SyntheticsConcurrencyCap(name: string, args: SyntheticsConcurrencyCapArgs, opts?: CustomResourceOptions);
@overload
def SyntheticsConcurrencyCap(resource_name: str,
                             args: SyntheticsConcurrencyCapArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def SyntheticsConcurrencyCap(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             on_demand_concurrency_cap: Optional[int] = None)
func NewSyntheticsConcurrencyCap(ctx *Context, name string, args SyntheticsConcurrencyCapArgs, opts ...ResourceOption) (*SyntheticsConcurrencyCap, error)
public SyntheticsConcurrencyCap(string name, SyntheticsConcurrencyCapArgs args, CustomResourceOptions? opts = null)
public SyntheticsConcurrencyCap(String name, SyntheticsConcurrencyCapArgs args)
public SyntheticsConcurrencyCap(String name, SyntheticsConcurrencyCapArgs args, CustomResourceOptions options)
type: datadog:SyntheticsConcurrencyCap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SyntheticsConcurrencyCapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SyntheticsConcurrencyCapArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SyntheticsConcurrencyCapArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SyntheticsConcurrencyCapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SyntheticsConcurrencyCapArgs
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 syntheticsConcurrencyCapResource = new Datadog.SyntheticsConcurrencyCap("syntheticsConcurrencyCapResource", new()
{
    OnDemandConcurrencyCap = 0,
});
Copy
example, err := datadog.NewSyntheticsConcurrencyCap(ctx, "syntheticsConcurrencyCapResource", &datadog.SyntheticsConcurrencyCapArgs{
	OnDemandConcurrencyCap: pulumi.Int(0),
})
Copy
var syntheticsConcurrencyCapResource = new SyntheticsConcurrencyCap("syntheticsConcurrencyCapResource", SyntheticsConcurrencyCapArgs.builder()
    .onDemandConcurrencyCap(0)
    .build());
Copy
synthetics_concurrency_cap_resource = datadog.SyntheticsConcurrencyCap("syntheticsConcurrencyCapResource", on_demand_concurrency_cap=0)
Copy
const syntheticsConcurrencyCapResource = new datadog.SyntheticsConcurrencyCap("syntheticsConcurrencyCapResource", {onDemandConcurrencyCap: 0});
Copy
type: datadog:SyntheticsConcurrencyCap
properties:
    onDemandConcurrencyCap: 0
Copy

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

OnDemandConcurrencyCap This property is required. int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
OnDemandConcurrencyCap This property is required. int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap This property is required. Integer
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap This property is required. number
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
on_demand_concurrency_cap This property is required. int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap This property is required. Number
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.

Outputs

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

Get an existing SyntheticsConcurrencyCap 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?: SyntheticsConcurrencyCapState, opts?: CustomResourceOptions): SyntheticsConcurrencyCap
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        on_demand_concurrency_cap: Optional[int] = None) -> SyntheticsConcurrencyCap
func GetSyntheticsConcurrencyCap(ctx *Context, name string, id IDInput, state *SyntheticsConcurrencyCapState, opts ...ResourceOption) (*SyntheticsConcurrencyCap, error)
public static SyntheticsConcurrencyCap Get(string name, Input<string> id, SyntheticsConcurrencyCapState? state, CustomResourceOptions? opts = null)
public static SyntheticsConcurrencyCap get(String name, Output<String> id, SyntheticsConcurrencyCapState state, CustomResourceOptions options)
resources:  _:    type: datadog:SyntheticsConcurrencyCap    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
OnDemandConcurrencyCap int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
OnDemandConcurrencyCap int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap Integer
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap number
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
on_demand_concurrency_cap int
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.
onDemandConcurrencyCap Number
Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel. Value must be at least 1.

Import

The Synthetics concurrency cap can be imported. can be whatever you specify in your code. Datadog does not store the name on the server.

$ pulumi import datadog:index/syntheticsConcurrencyCap:SyntheticsConcurrencyCap this <name>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.