MountProperty Struct
Attaches a data source to the container filesystem for a task at a customer-supplied relative path under the service-owned mount root.
| 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_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const mountProperty: iotsitewise.CfnTask.MountProperty = {
name: 'name',
relativePath: 'relativePath',
source: {
s3AccessPoint: {
accessPointArn: 'accessPointArn',
// the properties below are optional
prefix: 'prefix',
},
},
storageType: 'storageType',
};
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_iotsitewise as iotsitewise
mount_property = iotsitewise.CfnTask.MountProperty(
name="name",
relative_path="relativePath",
source=iotsitewise.CfnTask.MountSourceProperty(
s3_access_point=iotsitewise.CfnTask.S3AccessPointSourceProperty(
access_point_arn="accessPointArn",
# the properties below are optional
prefix="prefix"
)
),
storage_type="storageType"
)
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.iotsitewise.*;
MountProperty mountProperty = MountProperty.builder()
.name("name")
.relativePath("relativePath")
.source(MountSourceProperty.builder()
.s3AccessPoint(S3AccessPointSourceProperty.builder()
.accessPointArn("accessPointArn")
// the properties below are optional
.prefix("prefix")
.build())
.build())
.storageType("storageType")
.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.IoTSiteWise;
var mountProperty = new MountProperty {
Name = "name",
RelativePath = "relativePath",
Source = new MountSourceProperty {
S3AccessPoint = new S3AccessPointSourceProperty {
AccessPointArn = "accessPointArn",
// the properties below are optional
Prefix = "prefix"
}
},
StorageType = "storageType"
};
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"
mountProperty := &MountProperty{
Name: jsii.String("name"),
RelativePath: jsii.String("relativePath"),
Source: &MountSourceProperty{
S3AccessPoint: &S3AccessPointSourceProperty{
AccessPointArn: jsii.String("accessPointArn"),
// the properties below are optional
Prefix: jsii.String("prefix"),
},
},
StorageType: jsii.String("storageType"),
}
Properties
A unique name for the mount within the task.
relativePathstringrelative_pathstrrelativePathStringRelativePathstringRelativePath*string required #The relative path under the service-owned mount root where this mount is attached inside the container.
sourceIResolvable | CfnTask.MountSourcePropertysourcetyping.Union[IResolvable, MountSourceProperty]sourceIResolvableSourceIResolvableSourceinterface{} required #The data source configuration for a mount.
The type of storage used for the mount inside the container.