1. Packages
  2. Lacework Provider
  3. API Docs
  4. IntegrationAzureCfg
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

lacework.IntegrationAzureCfg

Explore with Pulumi AI

Use this resource to configure an Azure Config integration to analyze configuration compliance.

Example Usage

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

const accountAbc = new lacework.IntegrationAzureCfg("accountAbc", {
    credentials: {
        clientId: "1234abcd-abcd-1234-ab12-abcd1234abcd",
        clientSecret: "ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=",
    },
    tenantId: "abbc1234-abc1-123a-1234-abcd1234abcd",
});
Copy
import pulumi
import pulumi_lacework as lacework

account_abc = lacework.IntegrationAzureCfg("accountAbc",
    credentials={
        "client_id": "1234abcd-abcd-1234-ab12-abcd1234abcd",
        "client_secret": "ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=",
    },
    tenant_id="abbc1234-abc1-123a-1234-abcd1234abcd")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewIntegrationAzureCfg(ctx, "accountAbc", &lacework.IntegrationAzureCfgArgs{
			Credentials: &lacework.IntegrationAzureCfgCredentialsArgs{
				ClientId:     pulumi.String("1234abcd-abcd-1234-ab12-abcd1234abcd"),
				ClientSecret: pulumi.String("ABCD1234abcd1234abdc1234ABCD1234abcdefxxx="),
			},
			TenantId: pulumi.String("abbc1234-abc1-123a-1234-abcd1234abcd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var accountAbc = new Lacework.IntegrationAzureCfg("accountAbc", new()
    {
        Credentials = new Lacework.Inputs.IntegrationAzureCfgCredentialsArgs
        {
            ClientId = "1234abcd-abcd-1234-ab12-abcd1234abcd",
            ClientSecret = "ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=",
        },
        TenantId = "abbc1234-abc1-123a-1234-abcd1234abcd",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.IntegrationAzureCfg;
import com.pulumi.lacework.IntegrationAzureCfgArgs;
import com.pulumi.lacework.inputs.IntegrationAzureCfgCredentialsArgs;
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 accountAbc = new IntegrationAzureCfg("accountAbc", IntegrationAzureCfgArgs.builder()
            .credentials(IntegrationAzureCfgCredentialsArgs.builder()
                .clientId("1234abcd-abcd-1234-ab12-abcd1234abcd")
                .clientSecret("ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=")
                .build())
            .tenantId("abbc1234-abc1-123a-1234-abcd1234abcd")
            .build());

    }
}
Copy
resources:
  accountAbc:
    type: lacework:IntegrationAzureCfg
    properties:
      credentials:
        clientId: 1234abcd-abcd-1234-ab12-abcd1234abcd
        clientSecret: ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=
      tenantId: abbc1234-abc1-123a-1234-abcd1234abcd
Copy

Create IntegrationAzureCfg Resource

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

Constructor syntax

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

@overload
def IntegrationAzureCfg(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        credentials: Optional[IntegrationAzureCfgCredentialsArgs] = None,
                        tenant_id: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        integration_azure_cfg_id: Optional[str] = None,
                        name: Optional[str] = None,
                        retries: Optional[float] = None)
func NewIntegrationAzureCfg(ctx *Context, name string, args IntegrationAzureCfgArgs, opts ...ResourceOption) (*IntegrationAzureCfg, error)
public IntegrationAzureCfg(string name, IntegrationAzureCfgArgs args, CustomResourceOptions? opts = null)
public IntegrationAzureCfg(String name, IntegrationAzureCfgArgs args)
public IntegrationAzureCfg(String name, IntegrationAzureCfgArgs args, CustomResourceOptions options)
type: lacework:IntegrationAzureCfg
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. IntegrationAzureCfgArgs
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. IntegrationAzureCfgArgs
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. IntegrationAzureCfgArgs
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. IntegrationAzureCfgArgs
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. IntegrationAzureCfgArgs
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 integrationAzureCfgResource = new Lacework.IntegrationAzureCfg("integrationAzureCfgResource", new()
{
    Credentials = new Lacework.Inputs.IntegrationAzureCfgCredentialsArgs
    {
        ClientId = "string",
        ClientSecret = "string",
    },
    TenantId = "string",
    Enabled = false,
    IntegrationAzureCfgId = "string",
    Name = "string",
    Retries = 0,
});
Copy
example, err := lacework.NewIntegrationAzureCfg(ctx, "integrationAzureCfgResource", &lacework.IntegrationAzureCfgArgs{
Credentials: &.IntegrationAzureCfgCredentialsArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
},
TenantId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IntegrationAzureCfgId: pulumi.String("string"),
Name: pulumi.String("string"),
Retries: pulumi.Float64(0),
})
Copy
var integrationAzureCfgResource = new IntegrationAzureCfg("integrationAzureCfgResource", IntegrationAzureCfgArgs.builder()
    .credentials(IntegrationAzureCfgCredentialsArgs.builder()
        .clientId("string")
        .clientSecret("string")
        .build())
    .tenantId("string")
    .enabled(false)
    .integrationAzureCfgId("string")
    .name("string")
    .retries(0)
    .build());
Copy
integration_azure_cfg_resource = lacework.IntegrationAzureCfg("integrationAzureCfgResource",
    credentials={
        "client_id": "string",
        "client_secret": "string",
    },
    tenant_id="string",
    enabled=False,
    integration_azure_cfg_id="string",
    name="string",
    retries=0)
Copy
const integrationAzureCfgResource = new lacework.IntegrationAzureCfg("integrationAzureCfgResource", {
    credentials: {
        clientId: "string",
        clientSecret: "string",
    },
    tenantId: "string",
    enabled: false,
    integrationAzureCfgId: "string",
    name: "string",
    retries: 0,
});
Copy
type: lacework:IntegrationAzureCfg
properties:
    credentials:
        clientId: string
        clientSecret: string
    enabled: false
    integrationAzureCfgId: string
    name: string
    retries: 0
    tenantId: string
Copy

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

Credentials This property is required. IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
TenantId This property is required. string
The directory tenant ID.
Enabled bool
The state of the external integration. Defaults to true.
IntegrationAzureCfgId string
Name string
The Azure Config integration name.
Retries double
The number of attempts to create the external integration. Defaults to 5.
Credentials This property is required. IntegrationAzureCfgCredentialsArgs
The credentials needed by the integration. See Credentials below for details.
TenantId This property is required. string
The directory tenant ID.
Enabled bool
The state of the external integration. Defaults to true.
IntegrationAzureCfgId string
Name string
The Azure Config integration name.
Retries float64
The number of attempts to create the external integration. Defaults to 5.
credentials This property is required. IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
tenantId This property is required. String
The directory tenant ID.
enabled Boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId String
name String
The Azure Config integration name.
retries Double
The number of attempts to create the external integration. Defaults to 5.
credentials This property is required. IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
tenantId This property is required. string
The directory tenant ID.
enabled boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId string
name string
The Azure Config integration name.
retries number
The number of attempts to create the external integration. Defaults to 5.
credentials This property is required. IntegrationAzureCfgCredentialsArgs
The credentials needed by the integration. See Credentials below for details.
tenant_id This property is required. str
The directory tenant ID.
enabled bool
The state of the external integration. Defaults to true.
integration_azure_cfg_id str
name str
The Azure Config integration name.
retries float
The number of attempts to create the external integration. Defaults to 5.
credentials This property is required. Property Map
The credentials needed by the integration. See Credentials below for details.
tenantId This property is required. String
The directory tenant ID.
enabled Boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId String
name String
The Azure Config integration name.
retries Number
The number of attempts to create the external integration. Defaults to 5.

Outputs

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

CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Id string
The provider-assigned unique ID for this managed resource.
IntgGuid string
OrgLevel bool
TypeName string
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Id string
The provider-assigned unique ID for this managed resource.
IntgGuid string
OrgLevel bool
TypeName string
createdOrUpdatedBy String
createdOrUpdatedTime String
id String
The provider-assigned unique ID for this managed resource.
intgGuid String
orgLevel Boolean
typeName String
createdOrUpdatedBy string
createdOrUpdatedTime string
id string
The provider-assigned unique ID for this managed resource.
intgGuid string
orgLevel boolean
typeName string
created_or_updated_by str
created_or_updated_time str
id str
The provider-assigned unique ID for this managed resource.
intg_guid str
org_level bool
type_name str
createdOrUpdatedBy String
createdOrUpdatedTime String
id String
The provider-assigned unique ID for this managed resource.
intgGuid String
orgLevel Boolean
typeName String

Look up Existing IntegrationAzureCfg Resource

Get an existing IntegrationAzureCfg 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?: IntegrationAzureCfgState, opts?: CustomResourceOptions): IntegrationAzureCfg
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_or_updated_by: Optional[str] = None,
        created_or_updated_time: Optional[str] = None,
        credentials: Optional[IntegrationAzureCfgCredentialsArgs] = None,
        enabled: Optional[bool] = None,
        integration_azure_cfg_id: Optional[str] = None,
        intg_guid: Optional[str] = None,
        name: Optional[str] = None,
        org_level: Optional[bool] = None,
        retries: Optional[float] = None,
        tenant_id: Optional[str] = None,
        type_name: Optional[str] = None) -> IntegrationAzureCfg
func GetIntegrationAzureCfg(ctx *Context, name string, id IDInput, state *IntegrationAzureCfgState, opts ...ResourceOption) (*IntegrationAzureCfg, error)
public static IntegrationAzureCfg Get(string name, Input<string> id, IntegrationAzureCfgState? state, CustomResourceOptions? opts = null)
public static IntegrationAzureCfg get(String name, Output<String> id, IntegrationAzureCfgState state, CustomResourceOptions options)
resources:  _:    type: lacework:IntegrationAzureCfg    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:
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Credentials IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
Enabled bool
The state of the external integration. Defaults to true.
IntegrationAzureCfgId string
IntgGuid string
Name string
The Azure Config integration name.
OrgLevel bool
Retries double
The number of attempts to create the external integration. Defaults to 5.
TenantId string
The directory tenant ID.
TypeName string
CreatedOrUpdatedBy string
CreatedOrUpdatedTime string
Credentials IntegrationAzureCfgCredentialsArgs
The credentials needed by the integration. See Credentials below for details.
Enabled bool
The state of the external integration. Defaults to true.
IntegrationAzureCfgId string
IntgGuid string
Name string
The Azure Config integration name.
OrgLevel bool
Retries float64
The number of attempts to create the external integration. Defaults to 5.
TenantId string
The directory tenant ID.
TypeName string
createdOrUpdatedBy String
createdOrUpdatedTime String
credentials IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
enabled Boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId String
intgGuid String
name String
The Azure Config integration name.
orgLevel Boolean
retries Double
The number of attempts to create the external integration. Defaults to 5.
tenantId String
The directory tenant ID.
typeName String
createdOrUpdatedBy string
createdOrUpdatedTime string
credentials IntegrationAzureCfgCredentials
The credentials needed by the integration. See Credentials below for details.
enabled boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId string
intgGuid string
name string
The Azure Config integration name.
orgLevel boolean
retries number
The number of attempts to create the external integration. Defaults to 5.
tenantId string
The directory tenant ID.
typeName string
created_or_updated_by str
created_or_updated_time str
credentials IntegrationAzureCfgCredentialsArgs
The credentials needed by the integration. See Credentials below for details.
enabled bool
The state of the external integration. Defaults to true.
integration_azure_cfg_id str
intg_guid str
name str
The Azure Config integration name.
org_level bool
retries float
The number of attempts to create the external integration. Defaults to 5.
tenant_id str
The directory tenant ID.
type_name str
createdOrUpdatedBy String
createdOrUpdatedTime String
credentials Property Map
The credentials needed by the integration. See Credentials below for details.
enabled Boolean
The state of the external integration. Defaults to true.
integrationAzureCfgId String
intgGuid String
name String
The Azure Config integration name.
orgLevel Boolean
retries Number
The number of attempts to create the external integration. Defaults to 5.
tenantId String
The directory tenant ID.
typeName String

Supporting Types

IntegrationAzureCfgCredentials
, IntegrationAzureCfgCredentialsArgs

ClientId This property is required. string
The application client ID.
ClientSecret This property is required. string
The client secret.
ClientId This property is required. string
The application client ID.
ClientSecret This property is required. string
The client secret.
clientId This property is required. String
The application client ID.
clientSecret This property is required. String
The client secret.
clientId This property is required. string
The application client ID.
clientSecret This property is required. string
The client secret.
client_id This property is required. str
The application client ID.
client_secret This property is required. str
The client secret.
clientId This property is required. String
The application client ID.
clientSecret This property is required. String
The client secret.

Import

A Lacework Azure Config integration can be imported using a INT_GUID, e.g.

$ pulumi import lacework:index/integrationAzureCfg:IntegrationAzureCfg account_abc EXAMPLE_1234BAE1E42182964D23973F44CFEA3C4AB63B99E9A1EC5
Copy

-> Note: To retrieve the INT_GUID from existing integrations in your account, use the Lacework CLI command lacework cloud-account list. To install this tool follow this documentation.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
lacework lacework/terraform-provider-lacework
License
Notes
This Pulumi package is based on the lacework Terraform Provider.