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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
accountAbc:
type: lacework:IntegrationAzureCfg
properties:
credentials:
clientId: 1234abcd-abcd-1234-ab12-abcd1234abcd
clientSecret: ABCD1234abcd1234abdc1234ABCD1234abcdefxxx=
tenantId: abbc1234-abc1-123a-1234-abcd1234abcd
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 string
- The unique name of the resource.
- args IntegrationAzureCfgArgs
- 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 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 string
- The unique name of the resource.
- args IntegrationAzureCfgArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationAzureCfgArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
example, err := lacework.NewIntegrationAzureCfg(ctx, "integrationAzureCfgResource", &lacework.IntegrationAzureCfgArgs{
Credentials: &lacework.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),
})
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());
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)
const integrationAzureCfgResource = new lacework.IntegrationAzureCfg("integrationAzureCfgResource", {
credentials: {
clientId: "string",
clientSecret: "string",
},
tenantId: "string",
enabled: false,
integrationAzureCfgId: "string",
name: "string",
retries: 0,
});
type: lacework:IntegrationAzureCfg
properties:
credentials:
clientId: string
clientSecret: string
enabled: false
integrationAzureCfgId: string
name: string
retries: 0
tenantId: string
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
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Tenant
Id string - The directory tenant ID.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Azure stringCfg Id - Name string
- The Azure Config integration name.
- Retries double
- The number of attempts to create the external integration. Defaults to
5
.
- Credentials
Integration
Azure Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Tenant
Id string - The directory tenant ID.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Azure stringCfg Id - Name string
- The Azure Config integration name.
- Retries float64
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- tenant
Id String - The directory tenant ID.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Azure StringCfg Id - name String
- The Azure Config integration name.
- retries Double
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- tenant
Id string - The directory tenant ID.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Azure stringCfg Id - name string
- The Azure Config integration name.
- retries number
- The number of attempts to create the external integration. Defaults to
5
.
- credentials
Integration
Azure Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- tenant_
id str - The directory tenant ID.
- enabled bool
- The state of the external integration. Defaults to
true
. - integration_
azure_ strcfg_ id - name str
- The Azure Config integration name.
- retries float
- The number of attempts to create the external integration. Defaults to
5
.
- credentials Property Map
- The credentials needed by the integration. See Credentials below for details.
- tenant
Id String - The directory tenant ID.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Azure StringCfg Id - 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:
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Id string
- The provider-assigned unique ID for this managed resource.
- Intg
Guid string - Org
Level bool - Type
Name string
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Id string
- The provider-assigned unique ID for this managed resource.
- Intg
Guid string - Org
Level bool - Type
Name string
- created
Or StringUpdated By - created
Or StringUpdated Time - id String
- The provider-assigned unique ID for this managed resource.
- intg
Guid String - org
Level Boolean - type
Name String
- created
Or stringUpdated By - created
Or stringUpdated Time - id string
- The provider-assigned unique ID for this managed resource.
- intg
Guid string - org
Level boolean - type
Name string
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - id str
- The provider-assigned unique ID for this managed resource.
- intg_
guid str - org_
level bool - type_
name str
- created
Or StringUpdated By - created
Or StringUpdated Time - id String
- The provider-assigned unique ID for this managed resource.
- intg
Guid String - org
Level Boolean - type
Name 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
- 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.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Azure stringCfg Id - Intg
Guid string - Name string
- The Azure Config integration name.
- Org
Level bool - Retries double
- The number of attempts to create the external integration. Defaults to
5
. - Tenant
Id string - The directory tenant ID.
- Type
Name string
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Azure Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- The state of the external integration. Defaults to
true
. - Integration
Azure stringCfg Id - Intg
Guid string - Name string
- The Azure Config integration name.
- Org
Level bool - Retries float64
- The number of attempts to create the external integration. Defaults to
5
. - Tenant
Id string - The directory tenant ID.
- Type
Name string
- created
Or StringUpdated By - created
Or StringUpdated Time - credentials
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled Boolean
- The state of the external integration. Defaults to
true
. - integration
Azure StringCfg Id - intg
Guid String - name String
- The Azure Config integration name.
- org
Level Boolean - retries Double
- The number of attempts to create the external integration. Defaults to
5
. - tenant
Id String - The directory tenant ID.
- type
Name String
- created
Or stringUpdated By - created
Or stringUpdated Time - credentials
Integration
Azure Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled boolean
- The state of the external integration. Defaults to
true
. - integration
Azure stringCfg Id - intg
Guid string - name string
- The Azure Config integration name.
- org
Level boolean - retries number
- The number of attempts to create the external integration. Defaults to
5
. - tenant
Id string - The directory tenant ID.
- type
Name string
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - credentials
Integration
Azure Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- enabled bool
- The state of the external integration. Defaults to
true
. - integration_
azure_ strcfg_ id - 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
- created
Or StringUpdated By - created
Or StringUpdated Time - 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
. - integration
Azure StringCfg Id - intg
Guid String - name String
- The Azure Config integration name.
- org
Level Boolean - retries Number
- The number of attempts to create the external integration. Defaults to
5
. - tenant
Id String - The directory tenant ID.
- type
Name String
Supporting Types
IntegrationAzureCfgCredentials, IntegrationAzureCfgCredentialsArgs
- Client
Id string - The application client ID.
- Client
Secret string - The client secret.
- Client
Id string - The application client ID.
- Client
Secret string - The client secret.
- client
Id String - The application client ID.
- client
Secret String - The client secret.
- client
Id string - The application client ID.
- client
Secret string - The client secret.
- client_
id str - The application client ID.
- client_
secret str - The client secret.
- client
Id String - The application client ID.
- client
Secret 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
-> 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.