1. Packages
  2. Datadog
  3. API Docs
  4. fastly
  5. IntegrationAccount
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

datadog.fastly.IntegrationAccount

Explore with Pulumi AI

datadog logo
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

    Provides a Datadog IntegrationFastlyAccount resource. This can be used to create and manage Datadog integration_fastly_account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new integration_fastly_account resource
    const foo = new datadog.fastly.IntegrationAccount("foo", {
        apiKey: "ABCDEFG123",
        name: "test-name",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new integration_fastly_account resource
    foo = datadog.fastly.IntegrationAccount("foo",
        api_key="ABCDEFG123",
        name="test-name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create new integration_fastly_account resource
    		_, err := fastly.NewIntegrationAccount(ctx, "foo", &fastly.IntegrationAccountArgs{
    			ApiKey: pulumi.String("ABCDEFG123"),
    			Name:   pulumi.String("test-name"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new integration_fastly_account resource
        var foo = new Datadog.Fastly.IntegrationAccount("foo", new()
        {
            ApiKey = "ABCDEFG123",
            Name = "test-name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.fastly.IntegrationAccount;
    import com.pulumi.datadog.fastly.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_fastly_account resource
            var foo = new IntegrationAccount("foo", IntegrationAccountArgs.builder()
                .apiKey("ABCDEFG123")
                .name("test-name")
                .build());
    
        }
    }
    
    resources:
      # Create new integration_fastly_account resource
      foo:
        type: datadog:fastly:IntegrationAccount
        properties:
          apiKey: ABCDEFG123
          name: test-name
    

    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,
                           name: Optional[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:fastly:IntegrationAccount
    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 IntegrationAccountArgs
    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 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 string
    The unique name of the resource.
    args IntegrationAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 exampleintegrationAccountResourceResourceFromFastlyintegrationAccount = new Datadog.Fastly.IntegrationAccount("exampleintegrationAccountResourceResourceFromFastlyintegrationAccount", new()
    {
        ApiKey = "string",
        Name = "string",
    });
    
    example, err := fastly.NewIntegrationAccount(ctx, "exampleintegrationAccountResourceResourceFromFastlyintegrationAccount", &fastly.IntegrationAccountArgs{
    	ApiKey: pulumi.String("string"),
    	Name:   pulumi.String("string"),
    })
    
    var exampleintegrationAccountResourceResourceFromFastlyintegrationAccount = new IntegrationAccount("exampleintegrationAccountResourceResourceFromFastlyintegrationAccount", IntegrationAccountArgs.builder()
        .apiKey("string")
        .name("string")
        .build());
    
    exampleintegration_account_resource_resource_from_fastlyintegration_account = datadog.fastly.IntegrationAccount("exampleintegrationAccountResourceResourceFromFastlyintegrationAccount",
        api_key="string",
        name="string")
    
    const exampleintegrationAccountResourceResourceFromFastlyintegrationAccount = new datadog.fastly.IntegrationAccount("exampleintegrationAccountResourceResourceFromFastlyintegrationAccount", {
        apiKey: "string",
        name: "string",
    });
    
    type: datadog:fastly:IntegrationAccount
    properties:
        apiKey: string
        name: string
    

    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

    The IntegrationAccount resource accepts the following input properties:

    ApiKey string
    The API key for the Fastly account.
    Name string
    The name of the Fastly account.
    ApiKey string
    The API key for the Fastly account.
    Name string
    The name of the Fastly account.
    apiKey String
    The API key for the Fastly account.
    name String
    The name of the Fastly account.
    apiKey string
    The API key for the Fastly account.
    name string
    The name of the Fastly account.
    api_key str
    The API key for the Fastly account.
    name str
    The name of the Fastly account.
    apiKey String
    The API key for the Fastly account.
    name String
    The name of the Fastly account.

    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,
            name: Optional[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)
    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:
    ApiKey string
    The API key for the Fastly account.
    Name string
    The name of the Fastly account.
    ApiKey string
    The API key for the Fastly account.
    Name string
    The name of the Fastly account.
    apiKey String
    The API key for the Fastly account.
    name String
    The name of the Fastly account.
    apiKey string
    The API key for the Fastly account.
    name string
    The name of the Fastly account.
    api_key str
    The API key for the Fastly account.
    name str
    The name of the Fastly account.
    apiKey String
    The API key for the Fastly account.
    name String
    The name of the Fastly account.

    Import

    $ pulumi import datadog:fastly/integrationAccount:IntegrationAccount new_list "a8f5f167f44f4964e6c998dee827110c"
    

    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.28.1 published on Monday, Jun 24, 2024 by Pulumi