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

lacework.IntegrationOciCfg

Explore with Pulumi AI

lacework logo
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

    Use this resource to configure an OCI Configuration integration to analyze OCI compliance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as lacework from "@pulumi/lacework";
    
    const accountAbc = new lacework.IntegrationOciCfg("accountAbc", {
        credentials: {
            fingerprint: "00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f",
            privateKey: `-----BEGIN PRIVATE KEY-----
     ... -----END PRIVATE KEY-----
    
    `,
        },
        homeRegion: "us-sanjose-1",
        tenantId: "ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890",
        tenantName: "tenant_xyz",
        userOcid: "ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890",
    });
    
    import pulumi
    import pulumi_lacework as lacework
    
    account_abc = lacework.IntegrationOciCfg("accountAbc",
        credentials={
            "fingerprint": "00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f",
            "private_key": """-----BEGIN PRIVATE KEY-----
     ... -----END PRIVATE KEY-----
    
    """,
        },
        home_region="us-sanjose-1",
        tenant_id="ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890",
        tenant_name="tenant_xyz",
        user_ocid="ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890")
    
    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.NewIntegrationOciCfg(ctx, "accountAbc", &lacework.IntegrationOciCfgArgs{
    			Credentials: &lacework.IntegrationOciCfgCredentialsArgs{
    				Fingerprint: pulumi.String("00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f"),
    				PrivateKey:  pulumi.String("-----BEGIN PRIVATE KEY-----\n ... -----END PRIVATE KEY-----\n\n"),
    			},
    			HomeRegion: pulumi.String("us-sanjose-1"),
    			TenantId:   pulumi.String("ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890"),
    			TenantName: pulumi.String("tenant_xyz"),
    			UserOcid:   pulumi.String("ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890"),
    		})
    		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.IntegrationOciCfg("accountAbc", new()
        {
            Credentials = new Lacework.Inputs.IntegrationOciCfgCredentialsArgs
            {
                Fingerprint = "00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f",
                PrivateKey = @"-----BEGIN PRIVATE KEY-----
     ... -----END PRIVATE KEY-----
    
    ",
            },
            HomeRegion = "us-sanjose-1",
            TenantId = "ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890",
            TenantName = "tenant_xyz",
            UserOcid = "ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.lacework.IntegrationOciCfg;
    import com.pulumi.lacework.IntegrationOciCfgArgs;
    import com.pulumi.lacework.inputs.IntegrationOciCfgCredentialsArgs;
    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 IntegrationOciCfg("accountAbc", IntegrationOciCfgArgs.builder()
                .credentials(IntegrationOciCfgCredentialsArgs.builder()
                    .fingerprint("00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f")
                    .privateKey("""
    -----BEGIN PRIVATE KEY-----
     ... -----END PRIVATE KEY-----
    
                    """)
                    .build())
                .homeRegion("us-sanjose-1")
                .tenantId("ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890")
                .tenantName("tenant_xyz")
                .userOcid("ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890")
                .build());
    
        }
    }
    
    resources:
      accountAbc:
        type: lacework:IntegrationOciCfg
        properties:
          credentials:
            fingerprint: 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f
            privateKey: |+
              -----BEGIN PRIVATE KEY-----
               ... -----END PRIVATE KEY-----          
    
          homeRegion: us-sanjose-1
          tenantId: ocid1.tenancy.oc1..abcdefghijklmnopqrstuvxyz1234567890
          tenantName: tenant_xyz
          userOcid: ocid1.user.oc1..abcdefghijklmnopqrstuvxyz1234567890
    

    Create IntegrationOciCfg Resource

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

    Constructor syntax

    new IntegrationOciCfg(name: string, args: IntegrationOciCfgArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationOciCfg(resource_name: str,
                          args: IntegrationOciCfgArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationOciCfg(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          credentials: Optional[IntegrationOciCfgCredentialsArgs] = None,
                          home_region: Optional[str] = None,
                          tenant_id: Optional[str] = None,
                          tenant_name: Optional[str] = None,
                          user_ocid: Optional[str] = None,
                          enabled: Optional[bool] = None,
                          integration_oci_cfg_id: Optional[str] = None,
                          name: Optional[str] = None,
                          retries: Optional[float] = None)
    func NewIntegrationOciCfg(ctx *Context, name string, args IntegrationOciCfgArgs, opts ...ResourceOption) (*IntegrationOciCfg, error)
    public IntegrationOciCfg(string name, IntegrationOciCfgArgs args, CustomResourceOptions? opts = null)
    public IntegrationOciCfg(String name, IntegrationOciCfgArgs args)
    public IntegrationOciCfg(String name, IntegrationOciCfgArgs args, CustomResourceOptions options)
    
    type: lacework:IntegrationOciCfg
    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 IntegrationOciCfgArgs
    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 IntegrationOciCfgArgs
    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 IntegrationOciCfgArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationOciCfgArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationOciCfgArgs
    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 integrationOciCfgResource = new Lacework.IntegrationOciCfg("integrationOciCfgResource", new()
    {
        Credentials = new Lacework.Inputs.IntegrationOciCfgCredentialsArgs
        {
            Fingerprint = "string",
            PrivateKey = "string",
        },
        HomeRegion = "string",
        TenantId = "string",
        TenantName = "string",
        UserOcid = "string",
        Enabled = false,
        IntegrationOciCfgId = "string",
        Name = "string",
        Retries = 0,
    });
    
    example, err := lacework.NewIntegrationOciCfg(ctx, "integrationOciCfgResource", &lacework.IntegrationOciCfgArgs{
    	Credentials: &lacework.IntegrationOciCfgCredentialsArgs{
    		Fingerprint: pulumi.String("string"),
    		PrivateKey:  pulumi.String("string"),
    	},
    	HomeRegion:          pulumi.String("string"),
    	TenantId:            pulumi.String("string"),
    	TenantName:          pulumi.String("string"),
    	UserOcid:            pulumi.String("string"),
    	Enabled:             pulumi.Bool(false),
    	IntegrationOciCfgId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Retries:             pulumi.Float64(0),
    })
    
    var integrationOciCfgResource = new IntegrationOciCfg("integrationOciCfgResource", IntegrationOciCfgArgs.builder()
        .credentials(IntegrationOciCfgCredentialsArgs.builder()
            .fingerprint("string")
            .privateKey("string")
            .build())
        .homeRegion("string")
        .tenantId("string")
        .tenantName("string")
        .userOcid("string")
        .enabled(false)
        .integrationOciCfgId("string")
        .name("string")
        .retries(0)
        .build());
    
    integration_oci_cfg_resource = lacework.IntegrationOciCfg("integrationOciCfgResource",
        credentials={
            "fingerprint": "string",
            "private_key": "string",
        },
        home_region="string",
        tenant_id="string",
        tenant_name="string",
        user_ocid="string",
        enabled=False,
        integration_oci_cfg_id="string",
        name="string",
        retries=0)
    
    const integrationOciCfgResource = new lacework.IntegrationOciCfg("integrationOciCfgResource", {
        credentials: {
            fingerprint: "string",
            privateKey: "string",
        },
        homeRegion: "string",
        tenantId: "string",
        tenantName: "string",
        userOcid: "string",
        enabled: false,
        integrationOciCfgId: "string",
        name: "string",
        retries: 0,
    });
    
    type: lacework:IntegrationOciCfg
    properties:
        credentials:
            fingerprint: string
            privateKey: string
        enabled: false
        homeRegion: string
        integrationOciCfgId: string
        name: string
        retries: 0
        tenantId: string
        tenantName: string
        userOcid: string
    

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

    Credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    HomeRegion string
    The home region of the tenant to be integrated with Lacework.
    TenantId string
    The OCID of the tenant to be integrated with Lacework.
    TenantName string
    The name of the tenant to be integrated with Lacework.
    UserOcid string
    The OCID of the OCI user used used in the integration.
    Enabled bool
    IntegrationOciCfgId string
    Name string
    The OCI Configuration integration name.
    Retries double
    The number of attempts to create the external integration.
    Credentials IntegrationOciCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    HomeRegion string
    The home region of the tenant to be integrated with Lacework.
    TenantId string
    The OCID of the tenant to be integrated with Lacework.
    TenantName string
    The name of the tenant to be integrated with Lacework.
    UserOcid string
    The OCID of the OCI user used used in the integration.
    Enabled bool
    IntegrationOciCfgId string
    Name string
    The OCI Configuration integration name.
    Retries float64
    The number of attempts to create the external integration.
    credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    homeRegion String
    The home region of the tenant to be integrated with Lacework.
    tenantId String
    The OCID of the tenant to be integrated with Lacework.
    tenantName String
    The name of the tenant to be integrated with Lacework.
    userOcid String
    The OCID of the OCI user used used in the integration.
    enabled Boolean
    integrationOciCfgId String
    name String
    The OCI Configuration integration name.
    retries Double
    The number of attempts to create the external integration.
    credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    homeRegion string
    The home region of the tenant to be integrated with Lacework.
    tenantId string
    The OCID of the tenant to be integrated with Lacework.
    tenantName string
    The name of the tenant to be integrated with Lacework.
    userOcid string
    The OCID of the OCI user used used in the integration.
    enabled boolean
    integrationOciCfgId string
    name string
    The OCI Configuration integration name.
    retries number
    The number of attempts to create the external integration.
    credentials IntegrationOciCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    home_region str
    The home region of the tenant to be integrated with Lacework.
    tenant_id str
    The OCID of the tenant to be integrated with Lacework.
    tenant_name str
    The name of the tenant to be integrated with Lacework.
    user_ocid str
    The OCID of the OCI user used used in the integration.
    enabled bool
    integration_oci_cfg_id str
    name str
    The OCI Configuration integration name.
    retries float
    The number of attempts to create the external integration.
    credentials Property Map
    The credentials needed by the integration. See Credentials below for details.
    homeRegion String
    The home region of the tenant to be integrated with Lacework.
    tenantId String
    The OCID of the tenant to be integrated with Lacework.
    tenantName String
    The name of the tenant to be integrated with Lacework.
    userOcid String
    The OCID of the OCI user used used in the integration.
    enabled Boolean
    integrationOciCfgId String
    name String
    The OCI Configuration integration name.
    retries Number
    The number of attempts to create the external integration.

    Outputs

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

    Get an existing IntegrationOciCfg 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?: IntegrationOciCfgState, opts?: CustomResourceOptions): IntegrationOciCfg
    @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[IntegrationOciCfgCredentialsArgs] = None,
            enabled: Optional[bool] = None,
            home_region: Optional[str] = None,
            integration_oci_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,
            tenant_name: Optional[str] = None,
            type_name: Optional[str] = None,
            user_ocid: Optional[str] = None) -> IntegrationOciCfg
    func GetIntegrationOciCfg(ctx *Context, name string, id IDInput, state *IntegrationOciCfgState, opts ...ResourceOption) (*IntegrationOciCfg, error)
    public static IntegrationOciCfg Get(string name, Input<string> id, IntegrationOciCfgState? state, CustomResourceOptions? opts = null)
    public static IntegrationOciCfg get(String name, Output<String> id, IntegrationOciCfgState state, CustomResourceOptions options)
    resources:  _:    type: lacework:IntegrationOciCfg    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.
    The following state arguments are supported:
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    HomeRegion string
    The home region of the tenant to be integrated with Lacework.
    IntegrationOciCfgId string
    IntgGuid string
    Name string
    The OCI Configuration integration name.
    OrgLevel bool
    Retries double
    The number of attempts to create the external integration.
    TenantId string
    The OCID of the tenant to be integrated with Lacework.
    TenantName string
    The name of the tenant to be integrated with Lacework.
    TypeName string
    UserOcid string
    The OCID of the OCI user used used in the integration.
    CreatedOrUpdatedBy string
    CreatedOrUpdatedTime string
    Credentials IntegrationOciCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    Enabled bool
    HomeRegion string
    The home region of the tenant to be integrated with Lacework.
    IntegrationOciCfgId string
    IntgGuid string
    Name string
    The OCI Configuration integration name.
    OrgLevel bool
    Retries float64
    The number of attempts to create the external integration.
    TenantId string
    The OCID of the tenant to be integrated with Lacework.
    TenantName string
    The name of the tenant to be integrated with Lacework.
    TypeName string
    UserOcid string
    The OCID of the OCI user used used in the integration.
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    homeRegion String
    The home region of the tenant to be integrated with Lacework.
    integrationOciCfgId String
    intgGuid String
    name String
    The OCI Configuration integration name.
    orgLevel Boolean
    retries Double
    The number of attempts to create the external integration.
    tenantId String
    The OCID of the tenant to be integrated with Lacework.
    tenantName String
    The name of the tenant to be integrated with Lacework.
    typeName String
    userOcid String
    The OCID of the OCI user used used in the integration.
    createdOrUpdatedBy string
    createdOrUpdatedTime string
    credentials IntegrationOciCfgCredentials
    The credentials needed by the integration. See Credentials below for details.
    enabled boolean
    homeRegion string
    The home region of the tenant to be integrated with Lacework.
    integrationOciCfgId string
    intgGuid string
    name string
    The OCI Configuration integration name.
    orgLevel boolean
    retries number
    The number of attempts to create the external integration.
    tenantId string
    The OCID of the tenant to be integrated with Lacework.
    tenantName string
    The name of the tenant to be integrated with Lacework.
    typeName string
    userOcid string
    The OCID of the OCI user used used in the integration.
    created_or_updated_by str
    created_or_updated_time str
    credentials IntegrationOciCfgCredentialsArgs
    The credentials needed by the integration. See Credentials below for details.
    enabled bool
    home_region str
    The home region of the tenant to be integrated with Lacework.
    integration_oci_cfg_id str
    intg_guid str
    name str
    The OCI Configuration integration name.
    org_level bool
    retries float
    The number of attempts to create the external integration.
    tenant_id str
    The OCID of the tenant to be integrated with Lacework.
    tenant_name str
    The name of the tenant to be integrated with Lacework.
    type_name str
    user_ocid str
    The OCID of the OCI user used used in the integration.
    createdOrUpdatedBy String
    createdOrUpdatedTime String
    credentials Property Map
    The credentials needed by the integration. See Credentials below for details.
    enabled Boolean
    homeRegion String
    The home region of the tenant to be integrated with Lacework.
    integrationOciCfgId String
    intgGuid String
    name String
    The OCI Configuration integration name.
    orgLevel Boolean
    retries Number
    The number of attempts to create the external integration.
    tenantId String
    The OCID of the tenant to be integrated with Lacework.
    tenantName String
    The name of the tenant to be integrated with Lacework.
    typeName String
    userOcid String
    The OCID of the OCI user used used in the integration.

    Supporting Types

    IntegrationOciCfgCredentials, IntegrationOciCfgCredentialsArgs

    Fingerprint string
    The fingerprint of the public key used for authentication.
    PrivateKey string
    The private key used for authentication in PEM format.
    Fingerprint string
    The fingerprint of the public key used for authentication.
    PrivateKey string
    The private key used for authentication in PEM format.
    fingerprint String
    The fingerprint of the public key used for authentication.
    privateKey String
    The private key used for authentication in PEM format.
    fingerprint string
    The fingerprint of the public key used for authentication.
    privateKey string
    The private key used for authentication in PEM format.
    fingerprint str
    The fingerprint of the public key used for authentication.
    private_key str
    The private key used for authentication in PEM format.
    fingerprint String
    The fingerprint of the public key used for authentication.
    privateKey String
    The private key used for authentication in PEM format.

    Import

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

    $ pulumi import lacework:index/integrationOciCfg:IntegrationOciCfg 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.
    lacework logo
    lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework