ContainerActionProperty 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 containerActionProperty: iotanalytics.CfnDataset.ContainerActionProperty = {
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',
}],
};
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
container_action_property = 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"
)]
)
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.*;
ContainerActionProperty containerActionProperty = 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();
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 containerActionProperty = 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"
} }
};
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"
containerActionProperty := &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"),
},
},
}
Properties
executionRoleArnstringexecution_role_arnstrexecutionRoleArnStringExecutionRoleArnstringExecutionRoleArn*string required #The ARN of the role which gives permission to the system to access needed resources in order to run the "containerAction".
This includes, at minimum, permission to retrieve the data set contents which are the input to the containerized application.
The ARN of the Docker container stored in your account.
The Docker container contains an application and needed support libraries and is used to generate data set contents.
resourceConfigurationIResolvable | CfnDataset.resource_configurationtyping.Union[IResolvable, ResourceConfigurationProperty]resourceConfigurationIResolvableResourceConfigurationIResolvableResourceConfigurationinterface{} required #Configuration of the resource which executes the "containerAction".
variablesoptionalIResolvable | IResolvable | CfnDataset.VariableProperty[]variablesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VariableProperty]]]variablesoptionalIResolvableVariablesoptionalIResolvableVariablesoptionalinterface{} #The values of variables used within the context of the execution of the containerized application (basically, parameters passed to the application).
Each variable must have a name and a value given by one of "stringValue", "datasetContentVersionValue", or "outputFileUriValue".