ResourceActionProperty Struct
Specifies a resource action.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
}
};
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
cloudFormationActionoptionalIResolvable | CfnTestCase.cloud_formation_actionoptionaltyping.Union[IResolvable, CloudFormationActionProperty]cloudFormationActionoptionalIResolvableCloudFormationActionoptionalIResolvableCloudFormationActionoptionalinterface{} #The CloudFormation action of the resource action.
m2ManagedApplicationActionoptionalIResolvable | CfnTestCase.m2_managed_application_actionoptionaltyping.Union[IResolvable, M2ManagedApplicationActionProperty]m2ManagedApplicationActionoptionalIResolvableM2ManagedApplicationActionoptionalIResolvableM2ManagedApplicationActionoptionalinterface{} #The Mainframe Modernization managed application action of the resource action.
m2NonManagedApplicationActionoptionalIResolvable | CfnTestCase.m2_non_managed_application_actionoptionaltyping.Union[IResolvable, M2NonManagedApplicationActionProperty]m2NonManagedApplicationActionoptionalIResolvableM2NonManagedApplicationActionoptionalIResolvableM2NonManagedApplicationActionoptionalinterface{} #The Mainframe Modernization non-managed application action of the resource action.