Documentation ¶
Index ¶
- type AzureTerraformModifier
- func WithAdApplicationId(AdApplicationId string) AzureTerraformModifier
- func WithAdApplicationPassword(AdApplicationPassword string) AzureTerraformModifier
- func WithAdServicePrincipalId(AdServicePrincipalId string) AzureTerraformModifier
- func WithAllSubscriptions(allSubscriptions bool) AzureTerraformModifier
- func WithAuditLogIntegrationName(name string) AzureTerraformModifier
- func WithConfigIntegrationName(name string) AzureTerraformModifier
- func WithCreateAdIntegration(enableAdIntegration bool) AzureTerraformModifier
- func WithExistingStorageAccount(existingStorageAccount bool) AzureTerraformModifier
- func WithManagementGroup(enableManagentGroup bool) AzureTerraformModifier
- func WithManagementGroupId(managementGroupId string) AzureTerraformModifier
- func WithStorageAccountName(storageAccountName string) AzureTerraformModifier
- func WithStorageAccountResourceGroup(storageAccountResourceGroup string) AzureTerraformModifier
- func WithStorageLocation(location string) AzureTerraformModifier
- func WithSubscriptionIds(subscriptionIds []string) AzureTerraformModifier
- type GenerateAzureTfConfigurationArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureTerraformModifier ¶
type AzureTerraformModifier func(c *GenerateAzureTfConfigurationArgs)
func WithAdApplicationId ¶
func WithAdApplicationId(AdApplicationId string) AzureTerraformModifier
WithAdApplicationId Set Active Directory application id
func WithAdApplicationPassword ¶
func WithAdApplicationPassword(AdApplicationPassword string) AzureTerraformModifier
WithAdApplicationPassword Set the Active Directory password
func WithAdServicePrincipalId ¶
func WithAdServicePrincipalId(AdServicePrincipalId string) AzureTerraformModifier
WithAdServicePrincipalId Set Active Directory principal id
func WithAllSubscriptions ¶
func WithAllSubscriptions(allSubscriptions bool) AzureTerraformModifier
WithAllSubscriptions Grant read access to ALL subscriptions within the selected Tenant (overrides 'subscription_ids')
func WithAuditLogIntegrationName ¶
func WithAuditLogIntegrationName(name string) AzureTerraformModifier
WithAuditLogIntegrationName Set the Config Integration name to be displayed on the Lacework UI
func WithConfigIntegrationName ¶
func WithConfigIntegrationName(name string) AzureTerraformModifier
WithConfigIntegrationName Set the Config Integration name to be displayed on the Lacework UI
func WithCreateAdIntegration ¶
func WithCreateAdIntegration(enableAdIntegration bool) AzureTerraformModifier
WithCreateAdIntegration Set the Config Integration name to be displayed on the Lacework UI
func WithExistingStorageAccount ¶
func WithExistingStorageAccount(existingStorageAccount bool) AzureTerraformModifier
WithExistingStorageAccount Use an existing Storage Account
func WithManagementGroup ¶
func WithManagementGroup(enableManagentGroup bool) AzureTerraformModifier
WithManagementGroup Enable the Management Group to allow AD to be reader on management group rather then subscription
func WithManagementGroupId ¶
func WithManagementGroupId(managementGroupId string) AzureTerraformModifier
WithManagementGroupId The Group Id to add reader permissions
func WithStorageAccountName ¶
func WithStorageAccountName(storageAccountName string) AzureTerraformModifier
WithStorageAccountName The name of the Storage Account
func WithStorageAccountResourceGroup ¶
func WithStorageAccountResourceGroup(storageAccountResourceGroup string) AzureTerraformModifier
WithStorageAccountResourceGroup The Resource Group for the existing Storage Account
func WithStorageLocation ¶
func WithStorageLocation(location string) AzureTerraformModifier
WithStorageLocation The Azure region where storage account for logging is
func WithSubscriptionIds ¶
func WithSubscriptionIds(subscriptionIds []string) AzureTerraformModifier
WithSubscriptionIds List of subscriptions to to enable logging
type GenerateAzureTfConfigurationArgs ¶
type GenerateAzureTfConfigurationArgs struct { // Should we configure Activity Log integration in LW? ActivityLog bool // Should we add Config integration in LW? Config bool // Should we create an Active Directory integration CreateAdIntegration bool // If Config is true, give the user the opportunity to name their integration. Defaults to "TF Config" ConfigIntegrationName string // If ActivityLog is true, give the user the opportunity to name their integration. Defaults to "TF activity log" ActivityLogIntegrationName string // Active Directory application Id AdApplicationId string // Active Directory password AdApplicationPassword string // Active Directory Enterprise app object id AdServicePrincipalId string // Should we use the management group, rather than subscription ManagementGroup bool // Management Group ID to set ManagementGroupId string // List of subscription Ids SubscriptionIds []string // Grant read access to ALL subscriptions AllSubscriptions bool // Storage Account name StorageAccountName string // Storage Account Resource Group StorageAccountResourceGroup string // Should we use existing storage account ExistingStorageAccount bool // Azure region where the storage account for logging resides StorageLocation string }
func NewTerraform ¶
func NewTerraform(enableConfig bool, enableActivityLog bool, createAdIntegration bool, mods ...AzureTerraformModifier) *GenerateAzureTfConfigurationArgs
NewTerraform returns an instance of the GenerateAzureTfConfigurationArgs struct with the provided enabled settings (config/activity log).
Note: Additional configuration details may be set using modifiers of the AzureTerraformModifier type
func (*GenerateAzureTfConfigurationArgs) Generate ¶
func (args *GenerateAzureTfConfigurationArgs) Generate() (string, error)
Generate new Terraform code based on the supplied args.