# AutomationRulesActionV2Property

Allows you to configure automated responses.

- Source: Generated at build time
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const automationRulesActionV2Property: securityhub.CfnAutomationRuleV2.AutomationRulesActionV2Property = {
  type: 'type',

  // the properties below are optional
  externalIntegrationConfiguration: {
    connectorArn: 'connectorArn',
  },
  findingFieldsUpdate: {
    comment: 'comment',
    severityId: 123,
    statusId: 123,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityhub as securityhub

automation_rules_action_v2_property = securityhub.CfnAutomationRuleV2.AutomationRulesActionV2Property(
    type="type",

    # the properties below are optional
    external_integration_configuration=securityhub.CfnAutomationRuleV2.ExternalIntegrationConfigurationProperty(
        connector_arn="connectorArn"
    ),
    finding_fields_update=securityhub.CfnAutomationRuleV2.AutomationRulesFindingFieldsUpdateV2Property(
        comment="comment",
        severity_id=123,
        status_id=123
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityhub.*;

AutomationRulesActionV2Property automationRulesActionV2Property = AutomationRulesActionV2Property.builder()
        .type("type")

        // the properties below are optional
        .externalIntegrationConfiguration(ExternalIntegrationConfigurationProperty.builder()
                .connectorArn("connectorArn")
                .build())
        .findingFieldsUpdate(AutomationRulesFindingFieldsUpdateV2Property.builder()
                .comment("comment")
                .severityId(123)
                .statusId(123)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityHub;

var automationRulesActionV2Property = new AutomationRulesActionV2Property {
    Type = "type",

    // the properties below are optional
    ExternalIntegrationConfiguration = new ExternalIntegrationConfigurationProperty {
        ConnectorArn = "connectorArn"
    },
    FindingFieldsUpdate = new AutomationRulesFindingFieldsUpdateV2Property {
        Comment = "comment",
        SeverityId = 123,
        StatusId = 123
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

automationRulesActionV2Property := &AutomationRulesActionV2Property{
	Type: jsii.String("type"),

	// the properties below are optional
	ExternalIntegrationConfiguration: &ExternalIntegrationConfigurationProperty{
		ConnectorArn: jsii.String("connectorArn"),
	},
	FindingFieldsUpdate: &AutomationRulesFindingFieldsUpdateV2Property{
		Comment: jsii.String("comment"),
		SeverityId: jsii.Number(123),
		StatusId: jsii.Number(123),
	},
}
```

## Properties

- `externalIntegrationConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.ExternalIntegrationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.ExternalIntegrationConfigurationProperty.html) — The settings for integrating automation rule actions with external systems or service.

- `findingFieldsUpdate`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.AutomationRulesFindingFieldsUpdateV2Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.AutomationRulesFindingFieldsUpdateV2Property.html) — Specifies that the automation rule action is an update to a finding field.

- `type`: string (required) — Specifies the type of action that Security Hub CSPM takes when a finding matches the defined criteria of a rule.
