1. Packages
  2. Datadog Provider
  3. API Docs
  4. confluent
  5. IntegrationResource
Datadog v4.33.2 published on Tuesday, Sep 24, 2024 by Pulumi

datadog.confluent.IntegrationResource

Explore with Pulumi AI

datadog logo
Datadog v4.33.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Provides a Datadog IntegrationConfluentResource resource. This can be used to create and manage Datadog integration_confluent_resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const foo = new datadog.confluent.IntegrationAccount("foo", {
        apiKey: "TESTAPIKEY123",
        apiSecret: "test-api-secret-123",
        tags: [
            "mytag",
            "mytag2:myvalue",
        ],
    });
    // Create new integration_confluent_resource resource
    const fooIntegrationResource = new datadog.confluent.IntegrationResource("foo", {
        accountId: foo.id,
        resourceId: "123456",
        resourceType: "kafka",
        tags: [
            "mytag",
            "mytag2:myvalue",
        ],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    foo = datadog.confluent.IntegrationAccount("foo",
        api_key="TESTAPIKEY123",
        api_secret="test-api-secret-123",
        tags=[
            "mytag",
            "mytag2:myvalue",
        ])
    # Create new integration_confluent_resource resource
    foo_integration_resource = datadog.confluent.IntegrationResource("foo",
        account_id=foo.id,
        resource_id="123456",
        resource_type="kafka",
        tags=[
            "mytag",
            "mytag2:myvalue",
        ])
    
    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 {
    		foo, 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
    		}
    		// Create new integration_confluent_resource resource
    		_, err = confluent.NewIntegrationResource(ctx, "foo", &confluent.IntegrationResourceArgs{
    			AccountId:    foo.ID(),
    			ResourceId:   pulumi.String("123456"),
    			ResourceType: pulumi.String("kafka"),
    			Tags: pulumi.StringArray{
    				pulumi.String("mytag"),
    				pulumi.String("mytag2:myvalue"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Datadog.Confluent.IntegrationAccount("foo", new()
        {
            ApiKey = "TESTAPIKEY123",
            ApiSecret = "test-api-secret-123",
            Tags = new[]
            {
                "mytag",
                "mytag2:myvalue",
            },
        });
    
        // Create new integration_confluent_resource resource
        var fooIntegrationResource = new Datadog.Confluent.IntegrationResource("foo", new()
        {
            AccountId = foo.Id,
            ResourceId = "123456",
            ResourceType = "kafka",
            Tags = new[]
            {
                "mytag",
                "mytag2:myvalue",
            },
        });
    
    });
    
    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 com.pulumi.datadog.confluent.IntegrationResource;
    import com.pulumi.datadog.confluent.IntegrationResourceArgs;
    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 foo = new IntegrationAccount("foo", IntegrationAccountArgs.builder()
                .apiKey("TESTAPIKEY123")
                .apiSecret("test-api-secret-123")
                .tags(            
                    "mytag",
                    "mytag2:myvalue")
                .build());
    
            // Create new integration_confluent_resource resource
            var fooIntegrationResource = new IntegrationResource("fooIntegrationResource", IntegrationResourceArgs.builder()
                .accountId(foo.id())
                .resourceId("123456")
                .resourceType("kafka")
                .tags(            
                    "mytag",
                    "mytag2:myvalue")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: datadog:confluent:IntegrationAccount
        properties:
          apiKey: TESTAPIKEY123
          apiSecret: test-api-secret-123
          tags:
            - mytag
            - mytag2:myvalue
      # Create new integration_confluent_resource resource
      fooIntegrationResource:
        type: datadog:confluent:IntegrationResource
        name: foo
        properties:
          accountId: ${foo.id}
          resourceId: '123456'
          resourceType: kafka
          tags:
            - mytag
            - mytag2:myvalue
    

    Create IntegrationResource Resource

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

    Constructor syntax

    new IntegrationResource(name: string, args: IntegrationResourceArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationResource(resource_name: str,
                            args: IntegrationResourceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationResource(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            account_id: Optional[str] = None,
                            resource_id: Optional[str] = None,
                            enable_custom_metrics: Optional[bool] = None,
                            resource_type: Optional[str] = None,
                            tags: Optional[Sequence[str]] = None)
    func NewIntegrationResource(ctx *Context, name string, args IntegrationResourceArgs, opts ...ResourceOption) (*IntegrationResource, error)
    public IntegrationResource(string name, IntegrationResourceArgs args, CustomResourceOptions? opts = null)
    public IntegrationResource(String name, IntegrationResourceArgs args)
    public IntegrationResource(String name, IntegrationResourceArgs args, CustomResourceOptions options)
    
    type: datadog:confluent:IntegrationResource
    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 IntegrationResourceArgs
    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 IntegrationResourceArgs
    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 IntegrationResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationResourceArgs
    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 integrationResourceResource = new Datadog.Confluent.IntegrationResource("integrationResourceResource", new()
    {
        AccountId = "string",
        ResourceId = "string",
        EnableCustomMetrics = false,
        ResourceType = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := confluent.NewIntegrationResource(ctx, "integrationResourceResource", &confluent.IntegrationResourceArgs{
    	AccountId:           pulumi.String("string"),
    	ResourceId:          pulumi.String("string"),
    	EnableCustomMetrics: pulumi.Bool(false),
    	ResourceType:        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var integrationResourceResource = new IntegrationResource("integrationResourceResource", IntegrationResourceArgs.builder()
        .accountId("string")
        .resourceId("string")
        .enableCustomMetrics(false)
        .resourceType("string")
        .tags("string")
        .build());
    
    integration_resource_resource = datadog.confluent.IntegrationResource("integrationResourceResource",
        account_id="string",
        resource_id="string",
        enable_custom_metrics=False,
        resource_type="string",
        tags=["string"])
    
    const integrationResourceResource = new datadog.confluent.IntegrationResource("integrationResourceResource", {
        accountId: "string",
        resourceId: "string",
        enableCustomMetrics: false,
        resourceType: "string",
        tags: ["string"],
    });
    
    type: datadog:confluent:IntegrationResource
    properties:
        accountId: string
        enableCustomMetrics: false
        resourceId: string
        resourceType: string
        tags:
            - string
    

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

    AccountId string
    Confluent Account ID.
    ResourceId string
    The ID associated with a Confluent resource.
    EnableCustomMetrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    ResourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    Tags List<string>
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    AccountId string
    Confluent Account ID.
    ResourceId string
    The ID associated with a Confluent resource.
    EnableCustomMetrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    ResourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    Tags []string
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId String
    Confluent Account ID.
    resourceId String
    The ID associated with a Confluent resource.
    enableCustomMetrics Boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceType String
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags List<String>
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId string
    Confluent Account ID.
    resourceId string
    The ID associated with a Confluent resource.
    enableCustomMetrics boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags string[]
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    account_id str
    Confluent Account ID.
    resource_id str
    The ID associated with a Confluent resource.
    enable_custom_metrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resource_type str
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags Sequence[str]
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId String
    Confluent Account ID.
    resourceId String
    The ID associated with a Confluent resource.
    enableCustomMetrics Boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceType String
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    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 IntegrationResource 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 IntegrationResource Resource

    Get an existing IntegrationResource 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?: IntegrationResourceState, opts?: CustomResourceOptions): IntegrationResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            enable_custom_metrics: Optional[bool] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> IntegrationResource
    func GetIntegrationResource(ctx *Context, name string, id IDInput, state *IntegrationResourceState, opts ...ResourceOption) (*IntegrationResource, error)
    public static IntegrationResource Get(string name, Input<string> id, IntegrationResourceState? state, CustomResourceOptions? opts = null)
    public static IntegrationResource get(String name, Output<String> id, IntegrationResourceState 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:
    AccountId string
    Confluent Account ID.
    EnableCustomMetrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    ResourceId string
    The ID associated with a Confluent resource.
    ResourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    Tags List<string>
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    AccountId string
    Confluent Account ID.
    EnableCustomMetrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    ResourceId string
    The ID associated with a Confluent resource.
    ResourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    Tags []string
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId String
    Confluent Account ID.
    enableCustomMetrics Boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceId String
    The ID associated with a Confluent resource.
    resourceType String
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags List<String>
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId string
    Confluent Account ID.
    enableCustomMetrics boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceId string
    The ID associated with a Confluent resource.
    resourceType string
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags string[]
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    account_id str
    Confluent Account ID.
    enable_custom_metrics bool
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resource_id str
    The ID associated with a Confluent resource.
    resource_type str
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags Sequence[str]
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    accountId String
    Confluent Account ID.
    enableCustomMetrics Boolean
    Enable the custom.consumer_lag_offset metric, which contains extra metric tags. Defaults to false.
    resourceId String
    The ID associated with a Confluent resource.
    resourceType String
    The resource type of the Resource. Can be kafka, connector, ksql, or schema_registry.
    tags List<String>
    A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.

    Import

    $ pulumi import datadog:confluent/integrationResource:IntegrationResource new_list "confluent_account_id:confluent_resource_id"
    

    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.33.2 published on Tuesday, Sep 24, 2024 by Pulumi