Documentation ¶
Index ¶
Constants ¶
View Source
const (
LaceworkProviderVersion = ">= 1.9.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateOciTfConfigurationArgs ¶
type GenerateOciTfConfigurationArgs struct { // Should we configure CSPM integration in LW? Config bool // Optional name for config ConfigName string // Lacework profile to use LaceworkProfile string // Tenant OCID TenantOcid string // OCI user email OciUserEmail string }
func NewTerraform ¶
func NewTerraform(enableConfig bool, mods ...OciTerraformModifier, ) *GenerateOciTfConfigurationArgs
NewTerraform returns an instance of the GenerateOciTfConfigurationArgs struct
Note: Additional configuration details may be set using modifiers of the OciTerraformModifier type
Basic usage: Initialize a new OciTerraformModifier struct then use generate to create a string output of the required HCL.
hcl, err := aws.NewTerraform( true, oci.WithTenancyOcid("ocid1.tenancy...abc"), oci.WithUserEmail("a@b.c"), ).Generate()
func (*GenerateOciTfConfigurationArgs) Generate ¶
func (args *GenerateOciTfConfigurationArgs) Generate() (string, error)
Generate new Terraform code based on the supplied args.
type OciTerraformModifier ¶
type OciTerraformModifier func(c *GenerateOciTfConfigurationArgs)
func WithConfigName ¶
func WithConfigName(name string) OciTerraformModifier
Set the name Lacework will use for the name
func WithLaceworkProfile ¶
func WithLaceworkProfile(name string) OciTerraformModifier
Set the Lacework profile to use for integration
func WithTenantOcid ¶
func WithTenantOcid(ocid string) OciTerraformModifier
Set the OCID of the tenant to be integrated
func WithUserEmail ¶
func WithUserEmail(email string) OciTerraformModifier
Set the email for the OCI user created for the integration
Click to show internal directories.
Click to hide internal directories.