ActionProperty Struct
Information needed to run the "containerAction" to produce data set contents.
| 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_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const actionProperty: iotanalytics.CfnDataset.ActionProperty = {
actionName: 'actionName',
// the properties below are optional
containerAction: {
executionRoleArn: 'executionRoleArn',
image: 'image',
resourceConfiguration: {
computeType: 'computeType',
volumeSizeInGb: 123,
},
// the properties below are optional
variables: [{
variableName: 'variableName',
// the properties below are optional
datasetContentVersionValue: {
datasetName: 'datasetName',
},
doubleValue: 123,
outputFileUriValue: {
fileName: 'fileName',
},
stringValue: 'stringValue',
}],
},
queryAction: {
sqlQuery: 'sqlQuery',
// the properties below are optional
filters: [{
deltaTime: {
offsetSeconds: 123,
timeExpression: 'timeExpression',
},
}],
},
};
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_iotanalytics as iotanalytics
action_property = iotanalytics.CfnDataset.ActionProperty(
action_name="actionName",
# the properties below are optional
container_action=iotanalytics.CfnDataset.ContainerActionProperty(
execution_role_arn="executionRoleArn",
image="image",
resource_configuration=iotanalytics.CfnDataset.ResourceConfigurationProperty(
compute_type="computeType",
volume_size_in_gb=123
),
# the properties below are optional
variables=[iotanalytics.CfnDataset.VariableProperty(
variable_name="variableName",
# the properties below are optional
dataset_content_version_value=iotanalytics.CfnDataset.DatasetContentVersionValueProperty(
dataset_name="datasetName"
),
double_value=123,
output_file_uri_value=iotanalytics.CfnDataset.OutputFileUriValueProperty(
file_name="fileName"
),
string_value="stringValue"
)]
),
query_action=iotanalytics.CfnDataset.QueryActionProperty(
sql_query="sqlQuery",
# the properties below are optional
filters=[iotanalytics.CfnDataset.FilterProperty(
delta_time=iotanalytics.CfnDataset.DeltaTimeProperty(
offset_seconds=123,
time_expression="timeExpression"
)
)]
)
)
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.iotanalytics.*;
ActionProperty actionProperty = ActionProperty.builder()
.actionName("actionName")
// the properties below are optional
.containerAction(ContainerActionProperty.builder()
.executionRoleArn("executionRoleArn")
.image("image")
.resourceConfiguration(ResourceConfigurationProperty.builder()
.computeType("computeType")
.volumeSizeInGb(123)
.build())
// the properties below are optional
.variables(List.of(VariableProperty.builder()
.variableName("variableName")
// the properties below are optional
.datasetContentVersionValue(DatasetContentVersionValueProperty.builder()
.datasetName("datasetName")
.build())
.doubleValue(123)
.outputFileUriValue(OutputFileUriValueProperty.builder()
.fileName("fileName")
.build())
.stringValue("stringValue")
.build()))
.build())
.queryAction(QueryActionProperty.builder()
.sqlQuery("sqlQuery")
// the properties below are optional
.filters(List.of(FilterProperty.builder()
.deltaTime(DeltaTimeProperty.builder()
.offsetSeconds(123)
.timeExpression("timeExpression")
.build())
.build()))
.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.IoTAnalytics;
var actionProperty = new ActionProperty {
ActionName = "actionName",
// the properties below are optional
ContainerAction = new ContainerActionProperty {
ExecutionRoleArn = "executionRoleArn",
Image = "image",
ResourceConfiguration = new ResourceConfigurationProperty {
ComputeType = "computeType",
VolumeSizeInGb = 123
},
// the properties below are optional
Variables = new [] { new VariableProperty {
VariableName = "variableName",
// the properties below are optional
DatasetContentVersionValue = new DatasetContentVersionValueProperty {
DatasetName = "datasetName"
},
DoubleValue = 123,
OutputFileUriValue = new OutputFileUriValueProperty {
FileName = "fileName"
},
StringValue = "stringValue"
} }
},
QueryAction = new QueryActionProperty {
SqlQuery = "sqlQuery",
// the properties below are optional
Filters = new [] { new FilterProperty {
DeltaTime = new DeltaTimeProperty {
OffsetSeconds = 123,
TimeExpression = "timeExpression"
}
} }
}
};
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"
actionProperty := &ActionProperty{
ActionName: jsii.String("actionName"),
// the properties below are optional
ContainerAction: &ContainerActionProperty{
ExecutionRoleArn: jsii.String("executionRoleArn"),
Image: jsii.String("image"),
ResourceConfiguration: &ResourceConfigurationProperty{
ComputeType: jsii.String("computeType"),
VolumeSizeInGb: jsii.Number(123),
},
// the properties below are optional
Variables: []interface{}{
&VariableProperty{
VariableName: jsii.String("variableName"),
// the properties below are optional
DatasetContentVersionValue: &DatasetContentVersionValueProperty{
DatasetName: jsii.String("datasetName"),
},
DoubleValue: jsii.Number(123),
OutputFileUriValue: &OutputFileUriValueProperty{
FileName: jsii.String("fileName"),
},
StringValue: jsii.String("stringValue"),
},
},
},
QueryAction: &QueryActionProperty{
SqlQuery: jsii.String("sqlQuery"),
// the properties below are optional
Filters: []interface{}{
&FilterProperty{
DeltaTime: &DeltaTimeProperty{
OffsetSeconds: jsii.Number(123),
TimeExpression: jsii.String("timeExpression"),
},
},
},
},
}
Properties
The name of the data set action by which data set contents are automatically created.
containerActionoptionalIResolvable | CfnDataset.container_actionoptionaltyping.Union[IResolvable, ContainerActionProperty]containerActionoptionalIResolvableContainerActionoptionalIResolvableContainerActionoptionalinterface{} #Information which allows the system to run a containerized application in order to create the data set contents.
The application must be in a Docker container along with any needed support libraries.
queryActionoptionalIResolvable | CfnDataset.QueryActionPropertyquery_actionoptionaltyping.Union[IResolvable, QueryActionProperty]queryActionoptionalIResolvableQueryActionoptionalIResolvableQueryActionoptionalinterface{} #An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.