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

datadog.confluent.IntegrationAccount

Explore with Pulumi AI

Provides a Datadog IntegrationConfluentAccount resource. This can be used to create and manage Datadog integration_confluent_account.

Example Usage

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

// Create new integration_confluent_account resource
const foo = new datadog.confluent.IntegrationAccount("foo", {
    apiKey: "TESTAPIKEY123",
    apiSecret: "test-api-secret-123",
    tags: [
        "mytag",
        "mytag2:myvalue",
    ],
});
Copy
import pulumi
import pulumi_datadog as datadog

# Create new integration_confluent_account resource
foo = datadog.confluent.IntegrationAccount("foo",
    api_key="TESTAPIKEY123",
    api_secret="test-api-secret-123",
    tags=[
        "mytag",
        "mytag2:myvalue",
    ])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create new integration_confluent_account resource
		_, err := confluent.NewIntegrationAccount(ctx, "foo", &confluent.IntegrationAccountArgs{
			ApiKey:    pulumi.String("TESTAPIKEY123"),
			ApiSecret: pulumi.String("test-api-secret-123"),
			Tags: pulumi.StringArray{
				pulumi.String("mytag"),
				pulumi.String("mytag2:myvalue"),
			},
		})
		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(() => 
{
    // Create new integration_confluent_account resource
    var foo = new Datadog.Confluent.IntegrationAccount("foo", new()
    {
        ApiKey = "TESTAPIKEY123",
        ApiSecret = "test-api-secret-123",
        Tags = new[]
        {
            "mytag",
            "mytag2:myvalue",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.confluent.IntegrationAccount;
import com.pulumi.datadog.confluent.IntegrationAccountArgs;
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) {
        // Create new integration_confluent_account resource
        var foo = new IntegrationAccount("foo", IntegrationAccountArgs.builder()
            .apiKey("TESTAPIKEY123")
            .apiSecret("test-api-secret-123")
            .tags(            
                "mytag",
                "mytag2:myvalue")
            .build());

    }
}
Copy
resources:
  # Create new integration_confluent_account resource
  foo:
    type: datadog:confluent:IntegrationAccount
    properties:
      apiKey: TESTAPIKEY123
      apiSecret: test-api-secret-123
      tags:
        - mytag
        - mytag2:myvalue
Copy

Create IntegrationAccount Resource

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

Constructor syntax

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

@overload
def IntegrationAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       api_key: Optional[str] = None,
                       api_secret: Optional[str] = None,
                       tags: Optional[Sequence[str]] = None)
func NewIntegrationAccount(ctx *Context, name string, args IntegrationAccountArgs, opts ...ResourceOption) (*IntegrationAccount, error)
public IntegrationAccount(string name, IntegrationAccountArgs args, CustomResourceOptions? opts = null)
public IntegrationAccount(String name, IntegrationAccountArgs args)
public IntegrationAccount(String name, IntegrationAccountArgs args, CustomResourceOptions options)
type: datadog:confluent:IntegrationAccount
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. IntegrationAccountArgs
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. IntegrationAccountArgs
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. IntegrationAccountArgs
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. IntegrationAccountArgs
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. IntegrationAccountArgs
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 exampleintegrationAccountResourceResourceFromConfluentintegrationAccount = new Datadog.Confluent.IntegrationAccount("exampleintegrationAccountResourceResourceFromConfluentintegrationAccount", new()
{
    ApiKey = "string",
    ApiSecret = "string",
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := confluent.NewIntegrationAccount(ctx, "exampleintegrationAccountResourceResourceFromConfluentintegrationAccount", &confluent.IntegrationAccountArgs{
	ApiKey:    pulumi.String("string"),
	ApiSecret: pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var exampleintegrationAccountResourceResourceFromConfluentintegrationAccount = new IntegrationAccount("exampleintegrationAccountResourceResourceFromConfluentintegrationAccount", IntegrationAccountArgs.builder()
    .apiKey("string")
    .apiSecret("string")
    .tags("string")
    .build());
Copy
exampleintegration_account_resource_resource_from_confluentintegration_account = datadog.confluent.IntegrationAccount("exampleintegrationAccountResourceResourceFromConfluentintegrationAccount",
    api_key="string",
    api_secret="string",
    tags=["string"])
Copy
const exampleintegrationAccountResourceResourceFromConfluentintegrationAccount = new datadog.confluent.IntegrationAccount("exampleintegrationAccountResourceResourceFromConfluentintegrationAccount", {
    apiKey: "string",
    apiSecret: "string",
    tags: ["string"],
});
Copy
type: datadog:confluent:IntegrationAccount
properties:
    apiKey: string
    apiSecret: string
    tags:
        - string
Copy

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

ApiKey This property is required. string
The API key associated with your Confluent account.
ApiSecret This property is required. string
The API secret associated with your Confluent account.
Tags List<string>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
ApiKey This property is required. string
The API key associated with your Confluent account.
ApiSecret This property is required. string
The API secret associated with your Confluent account.
Tags []string
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey This property is required. String
The API key associated with your Confluent account.
apiSecret This property is required. String
The API secret associated with your Confluent account.
tags List<String>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey This property is required. string
The API key associated with your Confluent account.
apiSecret This property is required. string
The API secret associated with your Confluent account.
tags string[]
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
api_key This property is required. str
The API key associated with your Confluent account.
api_secret This property is required. str
The API secret associated with your Confluent account.
tags Sequence[str]
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey This property is required. String
The API key associated with your Confluent account.
apiSecret This property is required. String
The API secret associated with your Confluent account.
tags List<String>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.

Outputs

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

Get an existing IntegrationAccount 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?: IntegrationAccountState, opts?: CustomResourceOptions): IntegrationAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_key: Optional[str] = None,
        api_secret: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> IntegrationAccount
func GetIntegrationAccount(ctx *Context, name string, id IDInput, state *IntegrationAccountState, opts ...ResourceOption) (*IntegrationAccount, error)
public static IntegrationAccount Get(string name, Input<string> id, IntegrationAccountState? state, CustomResourceOptions? opts = null)
public static IntegrationAccount get(String name, Output<String> id, IntegrationAccountState state, CustomResourceOptions options)
resources:  _:    type: datadog:confluent:IntegrationAccount    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
The API key associated with your Confluent account.
ApiSecret string
The API secret associated with your Confluent account.
Tags List<string>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
ApiKey string
The API key associated with your Confluent account.
ApiSecret string
The API secret associated with your Confluent account.
Tags []string
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey String
The API key associated with your Confluent account.
apiSecret String
The API secret associated with your Confluent account.
tags List<String>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey string
The API key associated with your Confluent account.
apiSecret string
The API secret associated with your Confluent account.
tags string[]
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
api_key str
The API key associated with your Confluent account.
api_secret str
The API secret associated with your Confluent account.
tags Sequence[str]
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
apiKey String
The API key associated with your Confluent account.
apiSecret String
The API secret associated with your Confluent account.
tags List<String>
A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.

Import

Confluent account ID can be retrieved using the ListConfluentAccounts endpoint

https://docs.datadoghq.com/api/latest/confluent-cloud/#list-confluent-accounts

$ pulumi import datadog:confluent/integrationAccount:IntegrationAccount new_list "<ID>"
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.