azure

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Integration

type Integration struct {
	pulumi.CustomResourceState

	ClientId     pulumi.StringOutput    `pulumi:"clientId"`
	ClientSecret pulumi.StringOutput    `pulumi:"clientSecret"`
	HostFilters  pulumi.StringPtrOutput `pulumi:"hostFilters"`
	TenantName   pulumi.StringOutput    `pulumi:"tenantName"`
}

Provides a Datadog - Microsoft Azure integration resource. This can be used to create and manage the integrations.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-datadog/sdk/v2/go/datadog/azure"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azure.NewIntegration(ctx, "sandbox", &azure.IntegrationArgs{
			ClientId:     pulumi.String("<azure_client_id>"),
			ClientSecret: pulumi.String("<azure_client_secret_key>"),
			HostFilters:  pulumi.String("examplefilter:true,example:true"),
			TenantName:   pulumi.String("<azure_tenant_name>"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Microsoft Azure integrations can be imported using their `tenant name` and `client id` separated with a colon (`:`).

```sh

$ pulumi import datadog:azure/integration:Integration sandbox ${tenant_name}:${client_id}

```

func GetIntegration

func GetIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IntegrationState, opts ...pulumi.ResourceOption) (*Integration, error)

GetIntegration gets an existing Integration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewIntegration

func NewIntegration(ctx *pulumi.Context,
	name string, args *IntegrationArgs, opts ...pulumi.ResourceOption) (*Integration, error)

NewIntegration registers a new resource with the given unique name, arguments, and options.

func (Integration) ElementType added in v2.11.0

func (Integration) ElementType() reflect.Type

func (Integration) ToIntegrationOutput added in v2.11.0

func (i Integration) ToIntegrationOutput() IntegrationOutput

func (Integration) ToIntegrationOutputWithContext added in v2.11.0

func (i Integration) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput

type IntegrationArgs

type IntegrationArgs struct {
	ClientId     pulumi.StringInput
	ClientSecret pulumi.StringInput
	HostFilters  pulumi.StringPtrInput
	TenantName   pulumi.StringInput
}

The set of arguments for constructing a Integration resource.

func (IntegrationArgs) ElementType

func (IntegrationArgs) ElementType() reflect.Type

type IntegrationInput added in v2.11.0

type IntegrationInput interface {
	pulumi.Input

	ToIntegrationOutput() IntegrationOutput
	ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
}

type IntegrationOutput added in v2.11.0

type IntegrationOutput struct {
	*pulumi.OutputState
}

func (IntegrationOutput) ElementType added in v2.11.0

func (IntegrationOutput) ElementType() reflect.Type

func (IntegrationOutput) ToIntegrationOutput added in v2.11.0

func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput

func (IntegrationOutput) ToIntegrationOutputWithContext added in v2.11.0

func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput

type IntegrationState

type IntegrationState struct {
	ClientId     pulumi.StringPtrInput
	ClientSecret pulumi.StringPtrInput
	HostFilters  pulumi.StringPtrInput
	TenantName   pulumi.StringPtrInput
}

func (IntegrationState) ElementType

func (IntegrationState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL