SyntheticsPrivateLocation
Provides a Datadog synthetics private location resource. This can be used to create and manage Datadog synthetics private locations.
Example Usage
using Pulumi;
using Datadog = Pulumi.Datadog;
class MyStack : Stack
{
public MyStack()
{
var privateLocation = new Datadog.SyntheticsPrivateLocation("privateLocation", new Datadog.SyntheticsPrivateLocationArgs
{
Description = "Description of the private location",
Name = "First private location",
Tags =
{
"foo:bar",
"env:test",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v3/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.NewSyntheticsPrivateLocation(ctx, "privateLocation", &datadog.SyntheticsPrivateLocationArgs{
Description: pulumi.String("Description of the private location"),
Name: pulumi.String("First private location"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
pulumi.String("env:test"),
},
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_datadog as datadog
private_location = datadog.SyntheticsPrivateLocation("privateLocation",
description="Description of the private location",
name="First private location",
tags=[
"foo:bar",
"env:test",
])
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const privateLocation = new datadog.SyntheticsPrivateLocation("private_location", {
description: "Description of the private location",
name: "First private location",
tags: [
"foo:bar",
"env:test",
],
});
Create a SyntheticsPrivateLocation Resource
new SyntheticsPrivateLocation(name: string, args: SyntheticsPrivateLocationArgs, opts?: CustomResourceOptions);
@overload
def SyntheticsPrivateLocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
@overload
def SyntheticsPrivateLocation(resource_name: str,
args: SyntheticsPrivateLocationArgs,
opts: Optional[ResourceOptions] = None)
func NewSyntheticsPrivateLocation(ctx *Context, name string, args SyntheticsPrivateLocationArgs, opts ...ResourceOption) (*SyntheticsPrivateLocation, error)
public SyntheticsPrivateLocation(string name, SyntheticsPrivateLocationArgs args, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args SyntheticsPrivateLocationArgs
- 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 SyntheticsPrivateLocationArgs
- 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 SyntheticsPrivateLocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SyntheticsPrivateLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SyntheticsPrivateLocation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SyntheticsPrivateLocation resource accepts the following input properties:
- Name string
- Synthetics private location name.
- Description string
- Description of the private location.
- List<string>
- A list of tags to associate with your synthetics private location.
- Name string
- Synthetics private location name.
- Description string
- Description of the private location.
- []string
- A list of tags to associate with your synthetics private location.
- name string
- Synthetics private location name.
- description string
- Description of the private location.
- string[]
- A list of tags to associate with your synthetics private location.
- name str
- Synthetics private location name.
- description str
- Description of the private location.
- Sequence[str]
- A list of tags to associate with your synthetics private location.
Outputs
All input properties are implicitly available as output properties. Additionally, the SyntheticsPrivateLocation resource produces the following output properties:
Look up an Existing SyntheticsPrivateLocation Resource
Get an existing SyntheticsPrivateLocation 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?: SyntheticsPrivateLocationState, opts?: CustomResourceOptions): SyntheticsPrivateLocation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> SyntheticsPrivateLocation
func GetSyntheticsPrivateLocation(ctx *Context, name string, id IDInput, state *SyntheticsPrivateLocationState, opts ...ResourceOption) (*SyntheticsPrivateLocation, error)
public static SyntheticsPrivateLocation Get(string name, Input<string> id, SyntheticsPrivateLocationState? state, CustomResourceOptions? opts = null)
- 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.
The following state arguments are supported:
- Config string
- Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration.
- Description string
- Description of the private location.
- Name string
- Synthetics private location name.
- List<string>
- A list of tags to associate with your synthetics private location.
- Config string
- Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration.
- Description string
- Description of the private location.
- Name string
- Synthetics private location name.
- []string
- A list of tags to associate with your synthetics private location.
- config string
- Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration.
- description string
- Description of the private location.
- name string
- Synthetics private location name.
- string[]
- A list of tags to associate with your synthetics private location.
- config str
- Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration.
- description str
- Description of the private location.
- name str
- Synthetics private location name.
- Sequence[str]
- A list of tags to associate with your synthetics private location.
Import
Synthetics private locations can be imported using their string ID, e.g.
$ pulumi import datadog:index/syntheticsPrivateLocation:SyntheticsPrivateLocation bar pl:private-location-name-abcdef123456
Package Details
- Repository
- https://github.com/pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.