lacework.IntegrationOciCfg
Explore with Pulumi AI
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
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Home
Region string - The home region of the tenant to be integrated with Lacework.
- Tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- Tenant
Name string - The name of the tenant to be integrated with Lacework.
- User
Ocid string - The OCID of the OCI user used used in the integration.
- Enabled bool
- Integration
Oci stringCfg Id - Name string
- The OCI Configuration integration name.
- Retries double
- The number of attempts to create the external integration.
- Credentials
Integration
Oci Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Home
Region string - The home region of the tenant to be integrated with Lacework.
- Tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- Tenant
Name string - The name of the tenant to be integrated with Lacework.
- User
Ocid string - The OCID of the OCI user used used in the integration.
- Enabled bool
- Integration
Oci stringCfg Id - Name string
- The OCI Configuration integration name.
- Retries float64
- The number of attempts to create the external integration.
- credentials
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- home
Region String - The home region of the tenant to be integrated with Lacework.
- tenant
Id String - The OCID of the tenant to be integrated with Lacework.
- tenant
Name String - The name of the tenant to be integrated with Lacework.
- user
Ocid String - The OCID of the OCI user used used in the integration.
- enabled Boolean
- integration
Oci StringCfg Id - name String
- The OCI Configuration integration name.
- retries Double
- The number of attempts to create the external integration.
- credentials
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- home
Region string - The home region of the tenant to be integrated with Lacework.
- tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- tenant
Name string - The name of the tenant to be integrated with Lacework.
- user
Ocid string - The OCID of the OCI user used used in the integration.
- enabled boolean
- integration
Oci stringCfg Id - name string
- The OCI Configuration integration name.
- retries number
- The number of attempts to create the external integration.
- credentials
Integration
Oci Cfg Credentials Args - 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_ strcfg_ id - 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.
- home
Region String - The home region of the tenant to be integrated with Lacework.
- tenant
Id String - The OCID of the tenant to be integrated with Lacework.
- tenant
Name String - The name of the tenant to be integrated with Lacework.
- user
Ocid String - The OCID of the OCI user used used in the integration.
- enabled Boolean
- integration
Oci StringCfg Id - 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:
- 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 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.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- Home
Region string - The home region of the tenant to be integrated with Lacework.
- Integration
Oci stringCfg Id - Intg
Guid string - Name string
- The OCI Configuration integration name.
- Org
Level bool - Retries double
- The number of attempts to create the external integration.
- Tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- Tenant
Name string - The name of the tenant to be integrated with Lacework.
- Type
Name string - User
Ocid string - The OCID of the OCI user used used in the integration.
- Created
Or stringUpdated By - Created
Or stringUpdated Time - Credentials
Integration
Oci Cfg Credentials Args - The credentials needed by the integration. See Credentials below for details.
- Enabled bool
- Home
Region string - The home region of the tenant to be integrated with Lacework.
- Integration
Oci stringCfg Id - Intg
Guid string - Name string
- The OCI Configuration integration name.
- Org
Level bool - Retries float64
- The number of attempts to create the external integration.
- Tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- Tenant
Name string - The name of the tenant to be integrated with Lacework.
- Type
Name string - User
Ocid string - The OCID of the OCI user used used in the integration.
- created
Or StringUpdated By - created
Or StringUpdated Time - credentials
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled Boolean
- home
Region String - The home region of the tenant to be integrated with Lacework.
- integration
Oci StringCfg Id - intg
Guid String - name String
- The OCI Configuration integration name.
- org
Level Boolean - retries Double
- The number of attempts to create the external integration.
- tenant
Id String - The OCID of the tenant to be integrated with Lacework.
- tenant
Name String - The name of the tenant to be integrated with Lacework.
- type
Name String - user
Ocid String - The OCID of the OCI user used used in the integration.
- created
Or stringUpdated By - created
Or stringUpdated Time - credentials
Integration
Oci Cfg Credentials - The credentials needed by the integration. See Credentials below for details.
- enabled boolean
- home
Region string - The home region of the tenant to be integrated with Lacework.
- integration
Oci stringCfg Id - intg
Guid string - name string
- The OCI Configuration integration name.
- org
Level boolean - retries number
- The number of attempts to create the external integration.
- tenant
Id string - The OCID of the tenant to be integrated with Lacework.
- tenant
Name string - The name of the tenant to be integrated with Lacework.
- type
Name string - user
Ocid string - The OCID of the OCI user used used in the integration.
- created_
or_ strupdated_ by - created_
or_ strupdated_ time - credentials
Integration
Oci Cfg Credentials Args - 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_ strcfg_ id - 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.
- created
Or StringUpdated By - created
Or StringUpdated Time - credentials Property Map
- The credentials needed by the integration. See Credentials below for details.
- enabled Boolean
- home
Region String - The home region of the tenant to be integrated with Lacework.
- integration
Oci StringCfg Id - intg
Guid String - name String
- The OCI Configuration integration name.
- org
Level Boolean - retries Number
- The number of attempts to create the external integration.
- tenant
Id String - The OCID of the tenant to be integrated with Lacework.
- tenant
Name String - The name of the tenant to be integrated with Lacework.
- type
Name String - user
Ocid 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.
- Private
Key string - The private key used for authentication in PEM format.
- Fingerprint string
- The fingerprint of the public key used for authentication.
- Private
Key string - The private key used for authentication in PEM format.
- fingerprint String
- The fingerprint of the public key used for authentication.
- private
Key String - The private key used for authentication in PEM format.
- fingerprint string
- The fingerprint of the public key used for authentication.
- private
Key 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.
- private
Key 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.