All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.security.kotlin.AutomationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.security.kotlin

import com.pulumi.azurenative.security.AutomationArgs.builder
import com.pulumi.azurenative.security.kotlin.inputs.AutomationScopeArgs
import com.pulumi.azurenative.security.kotlin.inputs.AutomationScopeArgsBuilder
import com.pulumi.azurenative.security.kotlin.inputs.AutomationSourceArgs
import com.pulumi.azurenative.security.kotlin.inputs.AutomationSourceArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The security automation resource.
 * Azure REST API version: 2019-01-01-preview. Prior API version in Azure Native 1.x: 2019-01-01-preview.
 * Other available API versions: 2023-12-01-preview.
 * ## Example Usage
 * ### Create or update a security automation for all assessments (including all severities)
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var automation = new AzureNative.Security.Automation("automation", new()
 *     {
 *         Actions = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationActionLogicAppArgs
 *             {
 *                 ActionType = "LogicApp",
 *                 LogicAppResourceId = "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 *                 Uri = "https://exampleTriggerUri1.com",
 *             },
 *         },
 *         AutomationName = "exampleAutomation",
 *         Description = "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment",
 *         IsEnabled = true,
 *         Location = "Central US",
 *         ResourceGroupName = "exampleResourceGroup",
 *         Scopes = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationScopeArgs
 *             {
 *                 Description = "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5",
 *                 ScopePath = "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup",
 *             },
 *         },
 *         Sources = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationSourceArgs
 *             {
 *                 EventSource = AzureNative.Security.EventSource.Assessments,
 *             },
 *         },
 *         Tags = null,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := security.NewAutomation(ctx, "automation", &security.AutomationArgs{
 * 			Actions: pulumi.Array{
 * 				security.AutomationActionLogicApp{
 * 					ActionType:         "LogicApp",
 * 					LogicAppResourceId: "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 * 					Uri:                "https://exampleTriggerUri1.com",
 * 				},
 * 			},
 * 			AutomationName:    pulumi.String("exampleAutomation"),
 * 			Description:       pulumi.String("An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment"),
 * 			IsEnabled:         pulumi.Bool(true),
 * 			Location:          pulumi.String("Central US"),
 * 			ResourceGroupName: pulumi.String("exampleResourceGroup"),
 * 			Scopes: security.AutomationScopeArray{
 * 				&security.AutomationScopeArgs{
 * 					Description: pulumi.String("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5"),
 * 					ScopePath:   pulumi.String("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup"),
 * 				},
 * 			},
 * 			Sources: security.AutomationSourceArray{
 * 				&security.AutomationSourceArgs{
 * 					EventSource: pulumi.String(security.EventSourceAssessments),
 * 				},
 * 			},
 * 			Tags: nil,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.security.Automation;
 * import com.pulumi.azurenative.security.AutomationArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationScopeArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationSourceArgs;
 * 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 automation = new Automation("automation", AutomationArgs.builder()
 *             .actions(AutomationActionLogicAppArgs.builder()
 *                 .actionType("LogicApp")
 *                 .logicAppResourceId("/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
 *                 .uri("https://exampleTriggerUri1.com")
 *                 .build())
 *             .automationName("exampleAutomation")
 *             .description("An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment")
 *             .isEnabled(true)
 *             .location("Central US")
 *             .resourceGroupName("exampleResourceGroup")
 *             .scopes(AutomationScopeArgs.builder()
 *                 .description("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
 *                 .scopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")
 *                 .build())
 *             .sources(AutomationSourceArgs.builder()
 *                 .eventSource("Assessments")
 *                 .build())
 *             .tags()
 *             .build());
 *     }
 * }
 * ```
 * ### Create or update a security automation for all high severity assessments
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var automation = new AzureNative.Security.Automation("automation", new()
 *     {
 *         Actions = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationActionLogicAppArgs
 *             {
 *                 ActionType = "LogicApp",
 *                 LogicAppResourceId = "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 *                 Uri = "https://exampleTriggerUri1.com",
 *             },
 *         },
 *         AutomationName = "exampleAutomation",
 *         Description = "An example of a security automation that triggers one LogicApp resource (myTest1) on any high severity security assessment",
 *         IsEnabled = true,
 *         Location = "Central US",
 *         ResourceGroupName = "exampleResourceGroup",
 *         Scopes = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationScopeArgs
 *             {
 *                 Description = "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5",
 *                 ScopePath = "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup",
 *             },
 *         },
 *         Sources = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationSourceArgs
 *             {
 *                 EventSource = AzureNative.Security.EventSource.Assessments,
 *                 RuleSets = new[]
 *                 {
 *                     new AzureNative.Security.Inputs.AutomationRuleSetArgs
 *                     {
 *                         Rules = new[]
 *                         {
 *                             new AzureNative.Security.Inputs.AutomationTriggeringRuleArgs
 *                             {
 *                                 ExpectedValue = "High",
 *                                 Operator = AzureNative.Security.Operator.EqualsValue,
 *                                 PropertyJPath = "properties.metadata.severity",
 *                                 PropertyType = AzureNative.Security.PropertyType.String,
 *                             },
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         Tags = null,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := security.NewAutomation(ctx, "automation", &security.AutomationArgs{
 * 			Actions: pulumi.Array{
 * 				security.AutomationActionLogicApp{
 * 					ActionType:         "LogicApp",
 * 					LogicAppResourceId: "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 * 					Uri:                "https://exampleTriggerUri1.com",
 * 				},
 * 			},
 * 			AutomationName:    pulumi.String("exampleAutomation"),
 * 			Description:       pulumi.String("An example of a security automation that triggers one LogicApp resource (myTest1) on any high severity security assessment"),
 * 			IsEnabled:         pulumi.Bool(true),
 * 			Location:          pulumi.String("Central US"),
 * 			ResourceGroupName: pulumi.String("exampleResourceGroup"),
 * 			Scopes: security.AutomationScopeArray{
 * 				&security.AutomationScopeArgs{
 * 					Description: pulumi.String("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5"),
 * 					ScopePath:   pulumi.String("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup"),
 * 				},
 * 			},
 * 			Sources: security.AutomationSourceArray{
 * 				&security.AutomationSourceArgs{
 * 					EventSource: pulumi.String(security.EventSourceAssessments),
 * 					RuleSets: security.AutomationRuleSetArray{
 * 						&security.AutomationRuleSetArgs{
 * 							Rules: security.AutomationTriggeringRuleArray{
 * 								&security.AutomationTriggeringRuleArgs{
 * 									ExpectedValue: pulumi.String("High"),
 * 									Operator:      pulumi.String(security.OperatorEquals),
 * 									PropertyJPath: pulumi.String("properties.metadata.severity"),
 * 									PropertyType:  pulumi.String(security.PropertyTypeString),
 * 								},
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Tags: nil,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.security.Automation;
 * import com.pulumi.azurenative.security.AutomationArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationScopeArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationSourceArgs;
 * 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 automation = new Automation("automation", AutomationArgs.builder()
 *             .actions(AutomationActionLogicAppArgs.builder()
 *                 .actionType("LogicApp")
 *                 .logicAppResourceId("/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
 *                 .uri("https://exampleTriggerUri1.com")
 *                 .build())
 *             .automationName("exampleAutomation")
 *             .description("An example of a security automation that triggers one LogicApp resource (myTest1) on any high severity security assessment")
 *             .isEnabled(true)
 *             .location("Central US")
 *             .resourceGroupName("exampleResourceGroup")
 *             .scopes(AutomationScopeArgs.builder()
 *                 .description("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
 *                 .scopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")
 *                 .build())
 *             .sources(AutomationSourceArgs.builder()
 *                 .eventSource("Assessments")
 *                 .ruleSets(AutomationRuleSetArgs.builder()
 *                     .rules(AutomationTriggeringRuleArgs.builder()
 *                         .expectedValue("High")
 *                         .operator("Equals")
 *                         .propertyJPath("properties.metadata.severity")
 *                         .propertyType("String")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .tags()
 *             .build());
 *     }
 * }
 * ```
 * ### Disable or enable a security automation
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var automation = new AzureNative.Security.Automation("automation", new()
 *     {
 *         Actions = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationActionLogicAppArgs
 *             {
 *                 ActionType = "LogicApp",
 *                 LogicAppResourceId = "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 *                 Uri = "https://exampleTriggerUri1.com",
 *             },
 *         },
 *         AutomationName = "exampleAutomation",
 *         Description = "An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment of type customAssessment",
 *         IsEnabled = false,
 *         Location = "Central US",
 *         ResourceGroupName = "exampleResourceGroup",
 *         Scopes = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationScopeArgs
 *             {
 *                 Description = "A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5",
 *                 ScopePath = "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup",
 *             },
 *         },
 *         Sources = new[]
 *         {
 *             new AzureNative.Security.Inputs.AutomationSourceArgs
 *             {
 *                 EventSource = AzureNative.Security.EventSource.Assessments,
 *                 RuleSets = new[]
 *                 {
 *                     new AzureNative.Security.Inputs.AutomationRuleSetArgs
 *                     {
 *                         Rules = new[]
 *                         {
 *                             new AzureNative.Security.Inputs.AutomationTriggeringRuleArgs
 *                             {
 *                                 ExpectedValue = "customAssessment",
 *                                 Operator = AzureNative.Security.Operator.EqualsValue,
 *                                 PropertyJPath = "$.Entity.AssessmentType",
 *                                 PropertyType = AzureNative.Security.PropertyType.String,
 *                             },
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         Tags = null,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := security.NewAutomation(ctx, "automation", &security.AutomationArgs{
 * 			Actions: pulumi.Array{
 * 				security.AutomationActionLogicApp{
 * 					ActionType:         "LogicApp",
 * 					LogicAppResourceId: "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
 * 					Uri:                "https://exampleTriggerUri1.com",
 * 				},
 * 			},
 * 			AutomationName:    pulumi.String("exampleAutomation"),
 * 			Description:       pulumi.String("An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment of type customAssessment"),
 * 			IsEnabled:         pulumi.Bool(false),
 * 			Location:          pulumi.String("Central US"),
 * 			ResourceGroupName: pulumi.String("exampleResourceGroup"),
 * 			Scopes: security.AutomationScopeArray{
 * 				&security.AutomationScopeArgs{
 * 					Description: pulumi.String("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5"),
 * 					ScopePath:   pulumi.String("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup"),
 * 				},
 * 			},
 * 			Sources: security.AutomationSourceArray{
 * 				&security.AutomationSourceArgs{
 * 					EventSource: pulumi.String(security.EventSourceAssessments),
 * 					RuleSets: security.AutomationRuleSetArray{
 * 						&security.AutomationRuleSetArgs{
 * 							Rules: security.AutomationTriggeringRuleArray{
 * 								&security.AutomationTriggeringRuleArgs{
 * 									ExpectedValue: pulumi.String("customAssessment"),
 * 									Operator:      pulumi.String(security.OperatorEquals),
 * 									PropertyJPath: pulumi.String("$.Entity.AssessmentType"),
 * 									PropertyType:  pulumi.String(security.PropertyTypeString),
 * 								},
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Tags: nil,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.security.Automation;
 * import com.pulumi.azurenative.security.AutomationArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationScopeArgs;
 * import com.pulumi.azurenative.security.inputs.AutomationSourceArgs;
 * 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 automation = new Automation("automation", AutomationArgs.builder()
 *             .actions(AutomationActionLogicAppArgs.builder()
 *                 .actionType("LogicApp")
 *                 .logicAppResourceId("/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1")
 *                 .uri("https://exampleTriggerUri1.com")
 *                 .build())
 *             .automationName("exampleAutomation")
 *             .description("An example of a security automation that triggers one LogicApp resource (myTest1) on any security assessment of type customAssessment")
 *             .isEnabled(false)
 *             .location("Central US")
 *             .resourceGroupName("exampleResourceGroup")
 *             .scopes(AutomationScopeArgs.builder()
 *                 .description("A description that helps to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5")
 *                 .scopePath("/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup")
 *                 .build())
 *             .sources(AutomationSourceArgs.builder()
 *                 .eventSource("Assessments")
 *                 .ruleSets(AutomationRuleSetArgs.builder()
 *                     .rules(AutomationTriggeringRuleArgs.builder()
 *                         .expectedValue("customAssessment")
 *                         .operator("Equals")
 *                         .propertyJPath("$.Entity.AssessmentType")
 *                         .propertyType("String")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .tags()
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:security:Automation exampleAutomation /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations/{automationName}
 * ```
 * @property actions A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
 * @property automationName The security automation name.
 * @property description The security automation description.
 * @property isEnabled Indicates whether the security automation is enabled.
 * @property kind Kind of the resource
 * @property location Location where the resource is stored
 * @property resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
 * @property scopes A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
 * @property sources A collection of the source event types which evaluate the security automation set of rules.
 * @property tags A list of key value pairs that describe the resource.
 */
public data class AutomationArgs(
    public val actions: Output>? = null,
    public val automationName: Output? = null,
    public val description: Output? = null,
    public val isEnabled: Output? = null,
    public val kind: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val scopes: Output>? = null,
    public val sources: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.AutomationArgs =
        com.pulumi.azurenative.security.AutomationArgs.builder()
            .actions(actions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .automationName(automationName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .isEnabled(isEnabled?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AutomationArgs].
 */
@PulumiTagMarker
public class AutomationArgsBuilder internal constructor() {
    private var actions: Output>? = null

    private var automationName: Output? = null

    private var description: Output? = null

    private var isEnabled: Output? = null

    private var kind: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var scopes: Output>? = null

    private var sources: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     */
    @JvmName("snvmvmwofrikljex")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

    @JvmName("chfkbcxiofkgfkos")
    public suspend fun actions(vararg values: Output) {
        this.actions = Output.all(values.asList())
    }

    /**
     * @param values A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     */
    @JvmName("ebsnbwhmguiscbuw")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value The security automation name.
     */
    @JvmName("npucuxxdhqqvpcoy")
    public suspend fun automationName(`value`: Output) {
        this.automationName = value
    }

    /**
     * @param value The security automation description.
     */
    @JvmName("nyfylumjnpfjmdsv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Indicates whether the security automation is enabled.
     */
    @JvmName("blbdvafkjhjbaddw")
    public suspend fun isEnabled(`value`: Output) {
        this.isEnabled = value
    }

    /**
     * @param value Kind of the resource
     */
    @JvmName("amnkiflivwccqwvu")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Location where the resource is stored
     */
    @JvmName("oeuspjlrweememik")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the resource group within the user's subscription. The name is case insensitive.
     */
    @JvmName("csmoapwyfhyylmcr")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("jfoywnfpnlnwcdrp")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

    @JvmName("iwqanutmsvwjsfbq")
    public suspend fun scopes(vararg values: Output) {
        this.scopes = Output.all(values.asList())
    }

    /**
     * @param values A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("pnccxrrroypraujp")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("hmbbhmrsyqsrnqnu")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

    @JvmName("recknxaepesmftba")
    public suspend fun sources(vararg values: Output) {
        this.sources = Output.all(values.asList())
    }

    /**
     * @param values A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("rfpbdsabqslcoarb")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value A list of key value pairs that describe the resource.
     */
    @JvmName("oaalfvtkqhynwdeu")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     */
    @JvmName("nhvdixpkolvqwsgl")
    public suspend fun actions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param values A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     */
    @JvmName("lxglcgtgvdvcfamx")
    public suspend fun actions(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param value The security automation name.
     */
    @JvmName("ihhxpprwbiltugpt")
    public suspend fun automationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automationName = mapped
    }

    /**
     * @param value The security automation description.
     */
    @JvmName("gpvtijllchmsotet")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Indicates whether the security automation is enabled.
     */
    @JvmName("dxkhartayblpnlia")
    public suspend fun isEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isEnabled = mapped
    }

    /**
     * @param value Kind of the resource
     */
    @JvmName("wjdnohuvkjkicegd")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Location where the resource is stored
     */
    @JvmName("birjvkgfbretjrvu")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the resource group within the user's subscription. The name is case insensitive.
     */
    @JvmName("lkvurjueclninawx")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("naewscdhmibrbwhd")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param argument A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("kdwrkpsnuiyxrlkg")
    public suspend fun scopes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutomationScopeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("lblqdjdevlkrldgu")
    public suspend fun scopes(vararg argument: suspend AutomationScopeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutomationScopeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param argument A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("ncdwdydtmyuyfcng")
    public suspend fun scopes(argument: suspend AutomationScopeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AutomationScopeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.scopes = mapped
    }

    /**
     * @param values A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     */
    @JvmName("bqabeunjsujxcnif")
    public suspend fun scopes(vararg values: AutomationScopeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("yfpaagjxesyhblbx")
    public suspend fun sources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param argument A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("lcvtmjkxqrxmewal")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutomationSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("aflubshoxdeeuwox")
    public suspend fun sources(vararg argument: suspend AutomationSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutomationSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("lcfegnjnrwkjsbhg")
    public suspend fun sources(argument: suspend AutomationSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AutomationSourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values A collection of the source event types which evaluate the security automation set of rules.
     */
    @JvmName("bqueuixbfsbpgyfu")
    public suspend fun sources(vararg values: AutomationSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    /**
     * @param value A list of key value pairs that describe the resource.
     */
    @JvmName("lbmuipccqndhbytk")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A list of key value pairs that describe the resource.
     */
    @JvmName("xenojqwhgxrriohj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AutomationArgs = AutomationArgs(
        actions = actions,
        automationName = automationName,
        description = description,
        isEnabled = isEnabled,
        kind = kind,
        location = location,
        resourceGroupName = resourceGroupName,
        scopes = scopes,
        sources = sources,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy