# ResourceActionProperty

Specifies a resource action.

- Source: Generated at build time
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apptest as apptest } from 'aws-cdk-lib';
const resourceActionProperty: apptest.CfnTestCase.ResourceActionProperty = {
  cloudFormationAction: {
    resource: 'resource',

    // the properties below are optional
    actionType: 'actionType',
  },
  m2ManagedApplicationAction: {
    actionType: 'actionType',
    resource: 'resource',

    // the properties below are optional
    properties: {
      forceStop: false,
      importDataSetLocation: 'importDataSetLocation',
    },
  },
  m2NonManagedApplicationAction: {
    actionType: 'actionType',
    resource: 'resource',
  },
};
```

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_apptest as apptest

resource_action_property = apptest.CfnTestCase.ResourceActionProperty(
    cloud_formation_action=apptest.CfnTestCase.CloudFormationActionProperty(
        resource="resource",

        # the properties below are optional
        action_type="actionType"
    ),
    m2_managed_application_action=apptest.CfnTestCase.M2ManagedApplicationActionProperty(
        action_type="actionType",
        resource="resource",

        # the properties below are optional
        properties=apptest.CfnTestCase.M2ManagedActionPropertiesProperty(
            force_stop=False,
            import_data_set_location="importDataSetLocation"
        )
    ),
    m2_non_managed_application_action=apptest.CfnTestCase.M2NonManagedApplicationActionProperty(
        action_type="actionType",
        resource="resource"
    )
)
```

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.apptest.*;

ResourceActionProperty resourceActionProperty = ResourceActionProperty.builder()
        .cloudFormationAction(CloudFormationActionProperty.builder()
                .resource("resource")

                // the properties below are optional
                .actionType("actionType")
                .build())
        .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder()
                .actionType("actionType")
                .resource("resource")

                // the properties below are optional
                .properties(M2ManagedActionPropertiesProperty.builder()
                        .forceStop(false)
                        .importDataSetLocation("importDataSetLocation")
                        .build())
                .build())
        .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder()
                .actionType("actionType")
                .resource("resource")
                .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.AppTest;

var resourceActionProperty = new ResourceActionProperty {
    CloudFormationAction = new CloudFormationActionProperty {
        Resource = "resource",

        // the properties below are optional
        ActionType = "actionType"
    },
    M2ManagedApplicationAction = new M2ManagedApplicationActionProperty {
        ActionType = "actionType",
        Resource = "resource",

        // the properties below are optional
        Properties = new M2ManagedActionPropertiesProperty {
            ForceStop = false,
            ImportDataSetLocation = "importDataSetLocation"
        }
    },
    M2NonManagedApplicationAction = new M2NonManagedApplicationActionProperty {
        ActionType = "actionType",
        Resource = "resource"
    }
};
```

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"

resourceActionProperty := &ResourceActionProperty{
	CloudFormationAction: &CloudFormationActionProperty{
		Resource: jsii.String("resource"),

		// the properties below are optional
		ActionType: jsii.String("actionType"),
	},
	M2ManagedApplicationAction: &M2ManagedApplicationActionProperty{
		ActionType: jsii.String("actionType"),
		Resource: jsii.String("resource"),

		// the properties below are optional
		Properties: &M2ManagedActionPropertiesProperty{
			ForceStop: jsii.Boolean(false),
			ImportDataSetLocation: jsii.String("importDataSetLocation"),
		},
	},
	M2NonManagedApplicationAction: &M2NonManagedApplicationActionProperty{
		ActionType: jsii.String("actionType"),
		Resource: jsii.String("resource"),
	},
}
```

## Properties

- `cloudFormationAction`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.CloudFormationActionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.CloudFormationActionProperty.html) — The CloudFormation action of the resource action.

- `m2ManagedApplicationAction`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.M2ManagedApplicationActionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.M2ManagedApplicationActionProperty.html) — The Mainframe Modernization managed application action of the resource action.

- `m2NonManagedApplicationAction`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.M2NonManagedApplicationActionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.M2NonManagedApplicationActionProperty.html) — The Mainframe Modernization non-managed application action of the resource action.
