1. Packages
  2. Datadog
  3. API Docs
  4. ServiceAccountApplicationKey
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.ServiceAccountApplicationKey

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Provides a Datadog service_account_application_key resource. This can be used to create and manage Datadog service account application keys.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new service_account_application_key resource
        var foo = new Datadog.ServiceAccountApplicationKey("foo", new()
        {
            Name = "Application key for managing dashboards",
            ServiceAccountId = "00000000-0000-1234-0000-000000000000",
        });
    
    });
    
    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.NewServiceAccountApplicationKey(ctx, "foo", &datadog.ServiceAccountApplicationKeyArgs{
    			Name:             pulumi.String("Application key for managing dashboards"),
    			ServiceAccountId: pulumi.String("00000000-0000-1234-0000-000000000000"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.ServiceAccountApplicationKey;
    import com.pulumi.datadog.ServiceAccountApplicationKeyArgs;
    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 ServiceAccountApplicationKey("foo", ServiceAccountApplicationKeyArgs.builder()        
                .name("Application key for managing dashboards")
                .serviceAccountId("00000000-0000-1234-0000-000000000000")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new service_account_application_key resource
    foo = datadog.ServiceAccountApplicationKey("foo",
        name="Application key for managing dashboards",
        service_account_id="00000000-0000-1234-0000-000000000000")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new service_account_application_key resource
    const foo = new datadog.ServiceAccountApplicationKey("foo", {
        name: "Application key for managing dashboards",
        serviceAccountId: "00000000-0000-1234-0000-000000000000",
    });
    
    resources:
      # Create new service_account_application_key resource
      foo:
        type: datadog:ServiceAccountApplicationKey
        properties:
          name: Application key for managing dashboards
          serviceAccountId: 00000000-0000-1234-0000-000000000000
    

    Create ServiceAccountApplicationKey Resource

    new ServiceAccountApplicationKey(name: string, args: ServiceAccountApplicationKeyArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccountApplicationKey(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     name: Optional[str] = None,
                                     service_account_id: Optional[str] = None)
    @overload
    def ServiceAccountApplicationKey(resource_name: str,
                                     args: ServiceAccountApplicationKeyArgs,
                                     opts: Optional[ResourceOptions] = None)
    func NewServiceAccountApplicationKey(ctx *Context, name string, args ServiceAccountApplicationKeyArgs, opts ...ResourceOption) (*ServiceAccountApplicationKey, error)
    public ServiceAccountApplicationKey(string name, ServiceAccountApplicationKeyArgs args, CustomResourceOptions? opts = null)
    public ServiceAccountApplicationKey(String name, ServiceAccountApplicationKeyArgs args)
    public ServiceAccountApplicationKey(String name, ServiceAccountApplicationKeyArgs args, CustomResourceOptions options)
    
    type: datadog:ServiceAccountApplicationKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServiceAccountApplicationKeyArgs
    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 ServiceAccountApplicationKeyArgs
    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 ServiceAccountApplicationKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountApplicationKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountApplicationKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Name string

    Name of the application key.

    ServiceAccountId string

    ID of the service account that owns this key.

    Name string

    Name of the application key.

    ServiceAccountId string

    ID of the service account that owns this key.

    name String

    Name of the application key.

    serviceAccountId String

    ID of the service account that owns this key.

    name string

    Name of the application key.

    serviceAccountId string

    ID of the service account that owns this key.

    name str

    Name of the application key.

    service_account_id str

    ID of the service account that owns this key.

    name String

    Name of the application key.

    serviceAccountId String

    ID of the service account that owns this key.

    Outputs

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

    CreatedAt string

    Creation date of the application key.

    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    The value of the service account application key. This value cannot be imported.

    Last4 string

    The last four characters of the application key.

    CreatedAt string

    Creation date of the application key.

    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    The value of the service account application key. This value cannot be imported.

    Last4 string

    The last four characters of the application key.

    createdAt String

    Creation date of the application key.

    id String

    The provider-assigned unique ID for this managed resource.

    key String

    The value of the service account application key. This value cannot be imported.

    last4 String

    The last four characters of the application key.

    createdAt string

    Creation date of the application key.

    id string

    The provider-assigned unique ID for this managed resource.

    key string

    The value of the service account application key. This value cannot be imported.

    last4 string

    The last four characters of the application key.

    created_at str

    Creation date of the application key.

    id str

    The provider-assigned unique ID for this managed resource.

    key str

    The value of the service account application key. This value cannot be imported.

    last4 str

    The last four characters of the application key.

    createdAt String

    Creation date of the application key.

    id String

    The provider-assigned unique ID for this managed resource.

    key String

    The value of the service account application key. This value cannot be imported.

    last4 String

    The last four characters of the application key.

    Look up Existing ServiceAccountApplicationKey Resource

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

    Creation date of the application key.

    Key string

    The value of the service account application key. This value cannot be imported.

    Last4 string

    The last four characters of the application key.

    Name string

    Name of the application key.

    ServiceAccountId string

    ID of the service account that owns this key.

    CreatedAt string

    Creation date of the application key.

    Key string

    The value of the service account application key. This value cannot be imported.

    Last4 string

    The last four characters of the application key.

    Name string

    Name of the application key.

    ServiceAccountId string

    ID of the service account that owns this key.

    createdAt String

    Creation date of the application key.

    key String

    The value of the service account application key. This value cannot be imported.

    last4 String

    The last four characters of the application key.

    name String

    Name of the application key.

    serviceAccountId String

    ID of the service account that owns this key.

    createdAt string

    Creation date of the application key.

    key string

    The value of the service account application key. This value cannot be imported.

    last4 string

    The last four characters of the application key.

    name string

    Name of the application key.

    serviceAccountId string

    ID of the service account that owns this key.

    created_at str

    Creation date of the application key.

    key str

    The value of the service account application key. This value cannot be imported.

    last4 str

    The last four characters of the application key.

    name str

    Name of the application key.

    service_account_id str

    ID of the service account that owns this key.

    createdAt String

    Creation date of the application key.

    key String

    The value of the service account application key. This value cannot be imported.

    last4 String

    The last four characters of the application key.

    name String

    Name of the application key.

    serviceAccountId String

    ID of the service account that owns this key.

    Import

    Importing a service account’s application key cannot import the value of the key.

     $ pulumi import datadog:index/serviceAccountApplicationKey:ServiceAccountApplicationKey this "<service_account_id>:<application_key_id>"
    

    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.23.0 published on Wednesday, Sep 27, 2023 by Pulumi