@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.862Z") @Stability(value=Stable) public class CfnDatastore extends CfnResource implements IInspectable
Example:
// 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.*;
CfnDatastore cfnDatastore = CfnDatastore.Builder.create(this, "MyCfnDatastore")
.datastoreName("datastoreName")
.datastorePartitions(DatastorePartitionsProperty.builder()
.partitions(List.of(DatastorePartitionProperty.builder()
.partition(PartitionProperty.builder()
.attributeName("attributeName")
.build())
.timestampPartition(TimestampPartitionProperty.builder()
.attributeName("attributeName")
// the properties below are optional
.timestampFormat("timestampFormat")
.build())
.build()))
.build())
.datastoreStorage(DatastoreStorageProperty.builder()
.customerManagedS3(CustomerManagedS3Property.builder()
.bucket("bucket")
.roleArn("roleArn")
// the properties below are optional
.keyPrefix("keyPrefix")
.build())
.iotSiteWiseMultiLayerStorage(IotSiteWiseMultiLayerStorageProperty.builder()
.customerManagedS3Storage(CustomerManagedS3StorageProperty.builder()
.bucket("bucket")
// the properties below are optional
.keyPrefix("keyPrefix")
.build())
.build())
.serviceManagedS3(ServiceManagedS3Property.builder().build())
.build())
.fileFormatConfiguration(FileFormatConfigurationProperty.builder()
.jsonConfiguration(JsonConfigurationProperty.builder().build())
.parquetConfiguration(ParquetConfigurationProperty.builder()
.schemaDefinition(SchemaDefinitionProperty.builder()
.columns(List.of(ColumnProperty.builder()
.name("name")
.type("type")
.build()))
.build())
.build())
.build())
.retentionPeriod(RetentionPeriodProperty.builder()
.numberOfDays(123)
.unlimited(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDatastore(software.constructs.Construct scope,
String id)
Create a new `AWS::IoTAnalytics::Datastore`.
|
|
CfnDatastore(software.constructs.Construct scope,
String id,
CfnDatastoreProps props)
Create a new `AWS::IoTAnalytics::Datastore`.
|
protected |
CfnDatastore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDatastore(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatastoreName()
`AWS::IoTAnalytics::Datastore.DatastoreName`.
|
Object |
getDatastorePartitions()
`AWS::IoTAnalytics::Datastore.DatastorePartitions`.
|
Object |
getDatastoreStorage()
`AWS::IoTAnalytics::Datastore.DatastoreStorage`.
|
Object |
getFileFormatConfiguration()
`AWS::IoTAnalytics::Datastore.FileFormatConfiguration`.
|
Object |
getRetentionPeriod()
`AWS::IoTAnalytics::Datastore.RetentionPeriod`.
|
TagManager |
getTags()
`AWS::IoTAnalytics::Datastore.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatastoreName(String value)
`AWS::IoTAnalytics::Datastore.DatastoreName`.
|
void |
setDatastorePartitions(CfnDatastore.DatastorePartitionsProperty value)
`AWS::IoTAnalytics::Datastore.DatastorePartitions`.
|
void |
setDatastorePartitions(IResolvable value)
`AWS::IoTAnalytics::Datastore.DatastorePartitions`.
|
void |
setDatastoreStorage(CfnDatastore.DatastoreStorageProperty value)
`AWS::IoTAnalytics::Datastore.DatastoreStorage`.
|
void |
setDatastoreStorage(IResolvable value)
`AWS::IoTAnalytics::Datastore.DatastoreStorage`.
|
void |
setFileFormatConfiguration(CfnDatastore.FileFormatConfigurationProperty value)
`AWS::IoTAnalytics::Datastore.FileFormatConfiguration`.
|
void |
setFileFormatConfiguration(IResolvable value)
`AWS::IoTAnalytics::Datastore.FileFormatConfiguration`.
|
void |
setRetentionPeriod(CfnDatastore.RetentionPeriodProperty value)
`AWS::IoTAnalytics::Datastore.RetentionPeriod`.
|
void |
setRetentionPeriod(IResolvable value)
`AWS::IoTAnalytics::Datastore.RetentionPeriod`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDatastore(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDatastore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDatastore(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnDatastoreProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnDatastore(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDatastoreName()
@Stability(value=Stable)
public void setDatastoreName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDatastorePartitions()
@Stability(value=Stable)
public void setDatastorePartitions(@Nullable
CfnDatastore.DatastorePartitionsProperty value)
@Stability(value=Stable)
public void setDatastorePartitions(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDatastoreStorage()
@Stability(value=Stable)
public void setDatastoreStorage(@Nullable
CfnDatastore.DatastoreStorageProperty value)
@Stability(value=Stable)
public void setDatastoreStorage(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getFileFormatConfiguration()
@Stability(value=Stable)
public void setFileFormatConfiguration(@Nullable
CfnDatastore.FileFormatConfigurationProperty value)
@Stability(value=Stable)
public void setFileFormatConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getRetentionPeriod()
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
CfnDatastore.RetentionPeriodProperty value)
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.