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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args IntegrationServiceArgs
- 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 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 string
- The unique name of the resource.
- args IntegrationServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
example, err := fastly.NewIntegrationService(ctx, "integrationServiceResource", &fastly.IntegrationServiceArgs{
ServiceId: pulumi.String("string"),
AccountId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var integrationServiceResource = new IntegrationService("integrationServiceResource", IntegrationServiceArgs.builder()
.serviceId("string")
.accountId("string")
.tags("string")
.build());
integration_service_resource = datadog.fastly.IntegrationService("integrationServiceResource",
service_id="string",
account_id="string",
tags=["string"])
const integrationServiceResource = new datadog.fastly.IntegrationService("integrationServiceResource", {
serviceId: "string",
accountId: "string",
tags: ["string"],
});
type: datadog:fastly:IntegrationService
properties:
accountId: string
serviceId: string
tags:
- string
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
The IntegrationService resource accepts the following input properties:
- service_
id str - The ID of the Fastly service.
- account_
id str - Fastly Account id.
- Sequence[str]
- 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)
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.
- account_
id str - Fastly Account id.
- service_
id str - The ID of the Fastly service.
- Sequence[str]
- A list of tags for the Fastly service.
Import
$ pulumi import datadog:fastly/integrationService:IntegrationService new_list "account-id:service-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.