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

datadog.fastly.IntegrationService

Explore with Pulumi AI

Provides a Datadog IntegrationFastlyService resource. This can be used to create and manage Datadog integration_fastly_service.

Example Usage

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

const foo = new datadog.fastly.IntegrationAccount("foo", {
    apiKey: "ABCDEFG123",
    name: "test-name",
});
// Create new integration_fastly_service resource
const fooIntegrationService = new datadog.fastly.IntegrationService("foo", {
    accountId: foo.id,
    tags: [
        "mytag",
        "mytag2:myvalue",
    ],
    serviceId: "my-service-id",
});
Copy
import pulumi
import pulumi_datadog as datadog

foo = datadog.fastly.IntegrationAccount("foo",
    api_key="ABCDEFG123",
    name="test-name")
# Create new integration_fastly_service resource
foo_integration_service = datadog.fastly.IntegrationService("foo",
    account_id=foo.id,
    tags=[
        "mytag",
        "mytag2:myvalue",
    ],
    service_id="my-service-id")
Copy
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 {
		foo, err := fastly.NewIntegrationAccount(ctx, "foo", &fastly.IntegrationAccountArgs{
			ApiKey: pulumi.String("ABCDEFG123"),
			Name:   pulumi.String("test-name"),
		})
		if err != nil {
			return err
		}
		// Create new integration_fastly_service resource
		_, err = fastly.NewIntegrationService(ctx, "foo", &fastly.IntegrationServiceArgs{
			AccountId: foo.ID(),
			Tags: pulumi.StringArray{
				pulumi.String("mytag"),
				pulumi.String("mytag2:myvalue"),
			},
			ServiceId: pulumi.String("my-service-id"),
		})
		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(() => 
{
    var foo = new Datadog.Fastly.IntegrationAccount("foo", new()
    {
        ApiKey = "ABCDEFG123",
        Name = "test-name",
    });

    // Create new integration_fastly_service resource
    var fooIntegrationService = new Datadog.Fastly.IntegrationService("foo", new()
    {
        AccountId = foo.Id,
        Tags = new[]
        {
            "mytag",
            "mytag2:myvalue",
        },
        ServiceId = "my-service-id",
    });

});
Copy
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 com.pulumi.datadog.fastly.IntegrationService;
import com.pulumi.datadog.fastly.IntegrationServiceArgs;
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("ABCDEFG123")
            .name("test-name")
            .build());

        // Create new integration_fastly_service resource
        var fooIntegrationService = new IntegrationService("fooIntegrationService", IntegrationServiceArgs.builder()
            .accountId(foo.id())
            .tags(            
                "mytag",
                "mytag2:myvalue")
            .serviceId("my-service-id")
            .build());

    }
}
Copy
resources:
  foo:
    type: datadog:fastly:IntegrationAccount
    properties:
      apiKey: ABCDEFG123
      name: test-name
  # Create new integration_fastly_service resource
  fooIntegrationService:
    type: datadog:fastly:IntegrationService
    name: foo
    properties:
      accountId: ${foo.id}
      tags:
        - mytag
        - mytag2:myvalue
      serviceId: my-service-id
Copy

Create IntegrationService Resource

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

Constructor syntax

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

@overload
def IntegrationService(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       service_id: Optional[str] = None,
                       account_id: Optional[str] = None,
                       tags: Optional[Sequence[str]] = None)
func NewIntegrationService(ctx *Context, name string, args IntegrationServiceArgs, opts ...ResourceOption) (*IntegrationService, error)
public IntegrationService(string name, IntegrationServiceArgs args, CustomResourceOptions? opts = null)
public IntegrationService(String name, IntegrationServiceArgs args)
public IntegrationService(String name, IntegrationServiceArgs args, CustomResourceOptions options)
type: datadog:fastly:IntegrationService
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. IntegrationServiceArgs
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. IntegrationServiceArgs
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. IntegrationServiceArgs
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. IntegrationServiceArgs
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. IntegrationServiceArgs
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 integrationServiceResource = new Datadog.Fastly.IntegrationService("integrationServiceResource", new()
{
    ServiceId = "string",
    AccountId = "string",
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := fastly.NewIntegrationService(ctx, "integrationServiceResource", &fastly.IntegrationServiceArgs{
	ServiceId: pulumi.String("string"),
	AccountId: pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var integrationServiceResource = new IntegrationService("integrationServiceResource", IntegrationServiceArgs.builder()
    .serviceId("string")
    .accountId("string")
    .tags("string")
    .build());
Copy
integration_service_resource = datadog.fastly.IntegrationService("integrationServiceResource",
    service_id="string",
    account_id="string",
    tags=["string"])
Copy
const integrationServiceResource = new datadog.fastly.IntegrationService("integrationServiceResource", {
    serviceId: "string",
    accountId: "string",
    tags: ["string"],
});
Copy
type: datadog:fastly:IntegrationService
properties:
    accountId: string
    serviceId: string
    tags:
        - string
Copy

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

ServiceId This property is required. string
The ID of the Fastly service.
AccountId string
Fastly Account id.
Tags List<string>
A list of tags for the Fastly service.
ServiceId This property is required. string
The ID of the Fastly service.
AccountId string
Fastly Account id.
Tags []string
A list of tags for the Fastly service.
serviceId This property is required. String
The ID of the Fastly service.
accountId String
Fastly Account id.
tags List<String>
A list of tags for the Fastly service.
serviceId This property is required. string
The ID of the Fastly service.
accountId string
Fastly Account id.
tags string[]
A list of tags for the Fastly service.
service_id This property is required. str
The ID of the Fastly service.
account_id str
Fastly Account id.
tags Sequence[str]
A list of tags for the Fastly service.
serviceId This property is required. String
The ID of the Fastly service.
accountId String
Fastly Account id.
tags List<String>
A list of tags for the Fastly service.

Outputs

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

Get an existing IntegrationService 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?: IntegrationServiceState, opts?: CustomResourceOptions): IntegrationService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        service_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> IntegrationService
func GetIntegrationService(ctx *Context, name string, id IDInput, state *IntegrationServiceState, opts ...ResourceOption) (*IntegrationService, error)
public static IntegrationService Get(string name, Input<string> id, IntegrationServiceState? state, CustomResourceOptions? opts = null)
public static IntegrationService get(String name, Output<String> id, IntegrationServiceState state, CustomResourceOptions options)
resources:  _:    type: datadog:fastly:IntegrationService    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:
AccountId string
Fastly Account id.
ServiceId string
The ID of the Fastly service.
Tags List<string>
A list of tags for the Fastly service.
AccountId string
Fastly Account id.
ServiceId string
The ID of the Fastly service.
Tags []string
A list of tags for the Fastly service.
accountId String
Fastly Account id.
serviceId String
The ID of the Fastly service.
tags List<String>
A list of tags for the Fastly service.
accountId string
Fastly Account id.
serviceId string
The ID of the Fastly service.
tags string[]
A list of tags for the Fastly service.
account_id str
Fastly Account id.
service_id str
The ID of the Fastly service.
tags Sequence[str]
A list of tags for the Fastly service.
accountId String
Fastly Account id.
serviceId String
The ID of the Fastly service.
tags List<String>
A list of tags for the Fastly service.

Import

$ pulumi import datadog:fastly/integrationService:IntegrationService new_list "account-id:service-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.