1. Packages
  2. Cyral Provider
  3. API Docs
  4. IntegrationDatadog
cyral 4.16.3 published on Monday, Apr 14, 2025 by cyralinc

cyral.IntegrationDatadog

Explore with Pulumi AI

DEPRECATED If configuring Datadog for logging purposes, use resource cyral.IntegrationLogging instead.

Example Usage

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

const someResourceName = new cyral.IntegrationDatadog("someResourceName", {apiKey: ""});
Copy
import pulumi
import pulumi_cyral as cyral

some_resource_name = cyral.IntegrationDatadog("someResourceName", api_key="")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cyral/v4/cyral"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cyral.NewIntegrationDatadog(ctx, "someResourceName", &cyral.IntegrationDatadogArgs{
			ApiKey: pulumi.String(""),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cyral = Pulumi.Cyral;

return await Deployment.RunAsync(() => 
{
    var someResourceName = new Cyral.IntegrationDatadog("someResourceName", new()
    {
        ApiKey = "",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cyral.IntegrationDatadog;
import com.pulumi.cyral.IntegrationDatadogArgs;
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) {
        var someResourceName = new IntegrationDatadog("someResourceName", IntegrationDatadogArgs.builder()
            .apiKey("")
            .build());

    }
}
Copy
resources:
  someResourceName:
    type: cyral:IntegrationDatadog
    properties:
      apiKey: ""
Copy

Create IntegrationDatadog Resource

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

Constructor syntax

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

@overload
def IntegrationDatadog(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       api_key: Optional[str] = None,
                       name: Optional[str] = None)
func NewIntegrationDatadog(ctx *Context, name string, args IntegrationDatadogArgs, opts ...ResourceOption) (*IntegrationDatadog, error)
public IntegrationDatadog(string name, IntegrationDatadogArgs args, CustomResourceOptions? opts = null)
public IntegrationDatadog(String name, IntegrationDatadogArgs args)
public IntegrationDatadog(String name, IntegrationDatadogArgs args, CustomResourceOptions options)
type: cyral:IntegrationDatadog
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. IntegrationDatadogArgs
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. IntegrationDatadogArgs
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. IntegrationDatadogArgs
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. IntegrationDatadogArgs
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. IntegrationDatadogArgs
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 integrationDatadogResource = new Cyral.IntegrationDatadog("integrationDatadogResource", new()
{
    ApiKey = "string",
    Name = "string",
});
Copy
example, err := cyral.NewIntegrationDatadog(ctx, "integrationDatadogResource", &cyral.IntegrationDatadogArgs{
ApiKey: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var integrationDatadogResource = new IntegrationDatadog("integrationDatadogResource", IntegrationDatadogArgs.builder()
    .apiKey("string")
    .name("string")
    .build());
Copy
integration_datadog_resource = cyral.IntegrationDatadog("integrationDatadogResource",
    api_key="string",
    name="string")
Copy
const integrationDatadogResource = new cyral.IntegrationDatadog("integrationDatadogResource", {
    apiKey: "string",
    name: "string",
});
Copy
type: cyral:IntegrationDatadog
properties:
    apiKey: string
    name: string
Copy

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

ApiKey This property is required. string
Datadog API key.
Name string
Integration name that will be used internally in the control plane.
ApiKey This property is required. string
Datadog API key.
Name string
Integration name that will be used internally in the control plane.
apiKey This property is required. String
Datadog API key.
name String
Integration name that will be used internally in the control plane.
apiKey This property is required. string
Datadog API key.
name string
Integration name that will be used internally in the control plane.
api_key This property is required. str
Datadog API key.
name str
Integration name that will be used internally in the control plane.
apiKey This property is required. String
Datadog API key.
name String
Integration name that will be used internally in the control plane.

Outputs

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

Get an existing IntegrationDatadog 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?: IntegrationDatadogState, opts?: CustomResourceOptions): IntegrationDatadog
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_key: Optional[str] = None,
        name: Optional[str] = None) -> IntegrationDatadog
func GetIntegrationDatadog(ctx *Context, name string, id IDInput, state *IntegrationDatadogState, opts ...ResourceOption) (*IntegrationDatadog, error)
public static IntegrationDatadog Get(string name, Input<string> id, IntegrationDatadogState? state, CustomResourceOptions? opts = null)
public static IntegrationDatadog get(String name, Output<String> id, IntegrationDatadogState state, CustomResourceOptions options)
resources:  _:    type: cyral:IntegrationDatadog    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:
ApiKey string
Datadog API key.
Name string
Integration name that will be used internally in the control plane.
ApiKey string
Datadog API key.
Name string
Integration name that will be used internally in the control plane.
apiKey String
Datadog API key.
name String
Integration name that will be used internally in the control plane.
apiKey string
Datadog API key.
name string
Integration name that will be used internally in the control plane.
api_key str
Datadog API key.
name str
Integration name that will be used internally in the control plane.
apiKey String
Datadog API key.
name String
Integration name that will be used internally in the control plane.

Package Details

Repository
cyral cyralinc/terraform-provider-cyral
License
Notes
This Pulumi package is based on the cyral Terraform Provider.