![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.securityhub.kotlin.outputs.GetAutomationRuleResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.securityhub.kotlin.outputs
import com.pulumi.awsnative.securityhub.kotlin.enums.AutomationRuleRuleStatus
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property actions One or more actions to update finding fields if a finding matches the conditions specified in ``Criteria``.
* @property createdAt A timestamp that indicates when the rule was created.
* Uses the `date-time` format specified in [RFC 3339 section 5.6, Internet Date/Time Format](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc3339#section-5.6) . The value cannot contain spaces. For example, `2020-03-22T13:22:13.933Z` .
* @property createdBy The principal that created the rule. For example, `arn:aws:sts::123456789012:assumed-role/Developer-Role/JaneDoe` .
* @property criteria A set of [Security Finding Format (ASFF)](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-format.html) finding field attributes and corresponding expected values that ASH uses to filter findings. If a rule is enabled and a finding matches the criteria specified in this parameter, ASH applies the rule action to the finding.
* @property description A description of the rule.
* @property isTerminal Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
* @property ruleArn The Amazon Resource Name (ARN) of the automation rule that you create. For example, `arn:aws:securityhub:us-east-1:123456789012:automation-rule/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111` .
* @property ruleName The name of the rule.
* @property ruleOrder An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
* @property ruleStatus Whether the rule is active after it is created. If this parameter is equal to ``ENABLED``, ASH applies the rule to findings and finding updates after the rule is created.
* @property tags User-defined tags associated with an automation rule.
* @property updatedAt A timestamp that indicates when the rule was most recently updated.
* Uses the `date-time` format specified in [RFC 3339 section 5.6, Internet Date/Time Format](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc3339#section-5.6) . The value cannot contain spaces. For example, `2020-03-22T13:22:13.933Z` .
*/
public data class GetAutomationRuleResult(
public val actions: List? = null,
public val createdAt: String? = null,
public val createdBy: String? = null,
public val criteria: AutomationRulesFindingFilters? = null,
public val description: String? = null,
public val isTerminal: Boolean? = null,
public val ruleArn: String? = null,
public val ruleName: String? = null,
public val ruleOrder: Int? = null,
public val ruleStatus: AutomationRuleRuleStatus? = null,
public val tags: Map? = null,
public val updatedAt: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.securityhub.outputs.GetAutomationRuleResult): GetAutomationRuleResult = GetAutomationRuleResult(
actions = javaType.actions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.securityhub.kotlin.outputs.AutomationRulesAction.Companion.toKotlin(args0)
})
}),
createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
createdBy = javaType.createdBy().map({ args0 -> args0 }).orElse(null),
criteria = javaType.criteria().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.securityhub.kotlin.outputs.AutomationRulesFindingFilters.Companion.toKotlin(args0)
})
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
isTerminal = javaType.isTerminal().map({ args0 -> args0 }).orElse(null),
ruleArn = javaType.ruleArn().map({ args0 -> args0 }).orElse(null),
ruleName = javaType.ruleName().map({ args0 -> args0 }).orElse(null),
ruleOrder = javaType.ruleOrder().map({ args0 -> args0 }).orElse(null),
ruleStatus = javaType.ruleStatus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.securityhub.kotlin.enums.AutomationRuleRuleStatus.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy