ApplicationKey

Provides a Datadog Application Key resource. This can be used to create and manage Datadog Application Keys.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new Datadog Application Key
        var foo = new Datadog.ApplicationKey("foo", new Datadog.ApplicationKeyArgs
        {
            Name = "foo-application",
        });
    }

}
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 {
		_, err := datadog.NewApplicationKey(ctx, "foo", &datadog.ApplicationKeyArgs{
			Name: pulumi.String("foo-application"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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

    public static void stack(Context ctx) {
        var foo = new ApplicationKey("foo", ApplicationKeyArgs.builder()        
            .name("foo-application")
            .build());

    }
}
import pulumi
import pulumi_datadog as datadog

# Create a new Datadog Application Key
foo = datadog.ApplicationKey("foo", name="foo-application")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

// Create a new Datadog Application Key
const foo = new datadog.ApplicationKey("foo", {
    name: "foo-application",
});
resources:
  foo:
    type: datadog:ApplicationKey
    properties:
      name: foo-application

Create ApplicationKey Resource

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

name string
The unique name of the resource.
args ApplicationKeyArgs
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 ApplicationKeyArgs
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 ApplicationKeyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationKeyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationKeyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ApplicationKey Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ApplicationKey resource accepts the following input properties:

Name string

Name for Application Key.

Name string

Name for Application Key.

name String

Name for Application Key.

name string

Name for Application Key.

name str

Name for Application Key.

name String

Name for Application Key.

Outputs

All input properties are implicitly available as output properties. Additionally, the ApplicationKey resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Key string

The value of the Application Key.

Id string

The provider-assigned unique ID for this managed resource.

Key string

The value of the Application Key.

id String

The provider-assigned unique ID for this managed resource.

key String

The value of the Application Key.

id string

The provider-assigned unique ID for this managed resource.

key string

The value of the Application Key.

id str

The provider-assigned unique ID for this managed resource.

key str

The value of the Application Key.

id String

The provider-assigned unique ID for this managed resource.

key String

The value of the Application Key.

Look up Existing ApplicationKey Resource

Get an existing ApplicationKey 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?: ApplicationKeyState, opts?: CustomResourceOptions): ApplicationKey
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        key: Optional[str] = None,
        name: Optional[str] = None) -> ApplicationKey
func GetApplicationKey(ctx *Context, name string, id IDInput, state *ApplicationKeyState, opts ...ResourceOption) (*ApplicationKey, error)
public static ApplicationKey Get(string name, Input<string> id, ApplicationKeyState? state, CustomResourceOptions? opts = null)
public static ApplicationKey get(String name, Output<String> id, ApplicationKeyState 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:
Key string

The value of the Application Key.

Name string

Name for Application Key.

Key string

The value of the Application Key.

Name string

Name for Application Key.

key String

The value of the Application Key.

name String

Name for Application Key.

key string

The value of the Application Key.

name string

Name for Application Key.

key str

The value of the Application Key.

name str

Name for Application Key.

key String

The value of the Application Key.

name String

Name for Application Key.

Import

 $ pulumi import datadog:index/applicationKey:ApplicationKey foo 11111111-2222-3333-4444-555555555555

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.