1. Packages
  2. Datadog Provider
  3. API Docs
  4. SyntheticsConcurrencyCap
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.SyntheticsConcurrencyCap

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    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});
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Example Usage (Synthetics Concurrency Cap Configuration)
    this = datadog.SyntheticsConcurrencyCap("this", on_demand_concurrency_cap=1)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      # Example Usage (Synthetics Concurrency Cap Configuration)
      this:
        type: datadog:SyntheticsConcurrencyCap
        properties:
          onDemandConcurrencyCap: 1
    

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

    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 int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    OnDemandConcurrencyCap int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap Integer
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap number
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    on_demand_concurrency_cap int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap Number
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.

    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)
    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:
    OnDemandConcurrencyCap int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    OnDemandConcurrencyCap int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap Integer
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap number
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    on_demand_concurrency_cap int
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.
    onDemandConcurrencyCap Number
    Value of the on-demand concurrency cap, customizing the number of Synthetic tests run in parallel.

    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>
    

    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.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi