Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

@aws-cdk/aws-healthlake

The CDK Construct Library for AWS::HealthLake


AWS icon

AWS

640 Weekly downloads

Author Amazon Web Services

Published

Repository github.com

License Apache-2.0

Registry www.npmjs.com


CfnFHIRDatastore

A CloudFormation AWS::HealthLake::FHIRDatastore.

Creates a Data Store that can ingest and export FHIR formatted data.

Please note that when a user tries to do an Update operation via CloudFormation, changes to the Data Store name, Type Version, PreloadDataConfig, or SSEConfiguration will delete their existing Data Store for the stack and create a new one. This will lead to potential loss of data.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html

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.healthlake.*;
CfnFHIRDatastore cfnFHIRDatastore = CfnFHIRDatastore.Builder.create(this, "MyCfnFHIRDatastore")
.datastoreTypeVersion("datastoreTypeVersion")
// the properties below are optional
.datastoreName("datastoreName")
.preloadDataConfig(PreloadDataConfigProperty.builder()
.preloadDataType("preloadDataType")
.build())
.sseConfiguration(SseConfigurationProperty.builder()
.kmsEncryptionConfig(KmsEncryptionConfigProperty.builder()
.cmkType("cmkType")
// the properties below are optional
.kmsKeyId("kmsKeyId")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();

Initializers

import software.amazon.awscdk.services.healthlake.CfnFHIRDatastore;
CfnFHIRDatastore.Builder.create(Construct scope, java.lang.String id)
.datastoreTypeVersion(java.lang.String)
// .datastoreName(java.lang.String)
// .preloadDataConfig(PreloadDataConfigProperty)
// .preloadDataConfig(IResolvable)
// .sseConfiguration(IResolvable)
// .sseConfiguration(SseConfigurationProperty)
// .tags(java.util.List<CfnTag>)
.build();
NameTypeDescription
scopeConstruct- scope in which this resource is defined.
idjava.lang.String- scoped id of the resource.
datastoreTypeVersionjava.lang.StringThe FHIR version of the Data Store.
datastoreNamejava.lang.StringThe user generated name for the Data Store.
preloadDataConfigPreloadDataConfigProperty OR IResolvableThe preloaded data configuration for the Data Store.
sseConfigurationIResolvable OR SseConfigurationPropertyThe server-side encryption key configuration for a customer provided encryption key specified for creating a Data Store.
tagsjava.util.List<CfnTag>An array of key-value pairs to apply to this resource.
scopeRequired

scope in which this resource is defined.

idRequired
  • Type: java.lang.String

scoped id of the resource.

datastoreTypeVersionRequired
  • Type: java.lang.String

The FHIR version of the Data Store.

The only supported version is R4.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-datastoretypeversion

datastoreNameOptional
  • Type: java.lang.String

The user generated name for the Data Store.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-datastorename

preloadDataConfigOptional

The preloaded data configuration for the Data Store.

Only data preloaded from Synthea is supported.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-preloaddataconfig

sseConfigurationOptional

The server-side encryption key configuration for a customer provided encryption key specified for creating a Data Store.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-sseconfiguration

tagsOptional

An array of key-value pairs to apply to this resource.

For more information, see Tag .

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-tags

Methods

NameDescription
toStringReturns a string representation of this construct.
overrideLogicalIdOverrides the auto-generated logical ID with a specific ID.
addDeletionOverrideSyntactic sugar for addOverride(path, undefined).
addDependsOnIndicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
addMetadataAdd a value to the CloudFormation Resource Metadata.
addOverrideAdds an override to the synthesized CloudFormation resource.
addPropertyDeletionOverrideAdds an override that deletes the value of a property from the resource definition.
addPropertyOverrideAdds an override to a resource property.
applyRemovalPolicySets the deletion policy of the resource based on the removal policy specified.
getAttReturns a token for an runtime attribute of this resource.
getMetadataRetrieve a value value from the CloudFormation Resource Metadata.
inspectExamines the CloudFormation resource and discloses attributes.
toString
public java.lang.String toString()

Returns a string representation of this construct.

overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.

addDeletionOverride
public void addDeletionOverride(java.lang.String path)

Syntactic sugar for addOverride(path, undefined).

pathRequired
  • Type: java.lang.String

The path of the value to delete.

addDependsOn
public void addDependsOn(CfnResource target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

targetRequired
addMetadata
public void addMetadata(java.lang.String key, java.lang.Object value)

Add a value to the CloudFormation Resource Metadata.

[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.)

keyRequired
  • Type: java.lang.String
valueRequired
  • Type: java.lang.Object
addOverride
public void addOverride(java.lang.String path, java.lang.Object value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example,

cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');

would add the overrides

"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

pathRequired
  • Type: java.lang.String

The path of the property, you can use dot notation to override values in complex types.

Any intermdediate keys will be created as needed.

valueRequired
  • Type: java.lang.Object

The value.

Could be primitive or complex.

addPropertyDeletionOverride
public void addPropertyDeletionOverride(java.lang.String propertyPath)

Adds an override that deletes the value of a property from the resource definition.

propertyPathRequired
  • Type: java.lang.String

The path to the property.

addPropertyOverride
public void addPropertyOverride(java.lang.String propertyPath, java.lang.Object value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

propertyPathRequired
  • Type: java.lang.String

The path of the property.

valueRequired
  • Type: java.lang.Object

The value.

applyRemovalPolicy
public void applyRemovalPolicy()
public void applyRemovalPolicy(RemovalPolicy policy)
public void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)

Sets the deletion policy of the resource based on the removal policy specified.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

policyOptional
optionsOptional
getAtt
public Reference getAtt(java.lang.String attributeName)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

attributeNameRequired
  • Type: java.lang.String

The name of the attribute.

getMetadata
public java.lang.Object getMetadata(java.lang.String key)

Retrieve a value value from the CloudFormation Resource Metadata.

[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.)

keyRequired
  • Type: java.lang.String
inspect
public void inspect(TreeInspector inspector)

Examines the CloudFormation resource and discloses attributes.

inspectorRequired

tree inspector to collect and process attributes.

Static Functions

NameDescription
isConstructReturn whether the given object is a Construct.
isCfnElementReturns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).
isCfnResourceCheck whether the given construct is a CfnResource.
isConstruct
import software.amazon.awscdk.services.healthlake.CfnFHIRDatastore;
CfnFHIRDatastore.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired
  • Type: java.lang.Object
isCfnElement
import software.amazon.awscdk.services.healthlake.CfnFHIRDatastore;
CfnFHIRDatastore.isCfnElement(java.lang.Object x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

xRequired
  • Type: java.lang.Object
isCfnResource
import software.amazon.awscdk.services.healthlake.CfnFHIRDatastore;
CfnFHIRDatastore.isCfnResource(IConstruct construct)

Check whether the given construct is a CfnResource.

constructRequired

Properties

NameTypeDescription
nodeConstructNodeThe construct tree node associated with this construct.
creationStackjava.util.List<java.lang.String>No description.
logicalIdjava.lang.StringThe logical ID for this CloudFormation stack element.
stackStackThe stack in which this element is defined.
refjava.lang.StringReturn a string that will be resolved to a CloudFormation { Ref } for this element.
cfnOptionsICfnResourceOptionsOptions for this resource, such as condition, update policy etc.
cfnResourceTypejava.lang.StringAWS resource type.
attrCreatedAtNanosjava.lang.NumberNo description.
attrCreatedAtSecondsjava.lang.StringNo description.
attrDatastoreArnjava.lang.StringThe Data Store ARN is generated during the creation of the Data Store and can be found in the output from the initial Data Store creation request.
attrDatastoreEndpointjava.lang.StringThe endpoint for the created Data Store.
attrDatastoreIdjava.lang.StringThe Amazon generated Data Store id.
attrDatastoreStatusjava.lang.StringThe status of the FHIR Data Store.
tagsTagManagerAn array of key-value pairs to apply to this resource.
datastoreTypeVersionjava.lang.StringThe FHIR version of the Data Store.
datastoreNamejava.lang.StringThe user generated name for the Data Store.
preloadDataConfigPreloadDataConfigProperty OR IResolvableThe preloaded data configuration for the Data Store.
sseConfigurationIResolvable OR SseConfigurationPropertyThe server-side encryption key configuration for a customer provided encryption key specified for creating a Data Store.
nodeRequired
public ConstructNode getNode();

The construct tree node associated with this construct.

creationStackRequired
public java.util.List<java.lang.String> getCreationStack();
  • Type: java.util.List<java.lang.String>
logicalIdRequired
public java.lang.String getLogicalId();
  • Type: java.lang.String

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

stackRequired
public Stack getStack();

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

refRequired
public java.lang.String getRef();
  • Type: java.lang.String

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

cfnOptionsRequired
public ICfnResourceOptions getCfnOptions();

Options for this resource, such as condition, update policy etc.

cfnResourceTypeRequired
public java.lang.String getCfnResourceType();
  • Type: java.lang.String

AWS resource type.

attrCreatedAtNanosRequired
public java.lang.Number getAttrCreatedAtNanos();
  • Type: java.lang.Number
attrCreatedAtSecondsRequired
public java.lang.String getAttrCreatedAtSeconds();
  • Type: java.lang.String
attrDatastoreArnRequired
public java.lang.String getAttrDatastoreArn();
  • Type: java.lang.String

The Data Store ARN is generated during the creation of the Data Store and can be found in the output from the initial Data Store creation request.

attrDatastoreEndpointRequired
public java.lang.String getAttrDatastoreEndpoint();
  • Type: java.lang.String

The endpoint for the created Data Store.

attrDatastoreIdRequired
public java.lang.String getAttrDatastoreId();
  • Type: java.lang.String

The Amazon generated Data Store id.

This id is in the output from the initial Data Store creation call.

attrDatastoreStatusRequired
public java.lang.String getAttrDatastoreStatus();
  • Type: java.lang.String

The status of the FHIR Data Store.

Possible statuses are ‘CREATING’, ‘ACTIVE’, ‘DELETING’, ‘DELETED’.

tagsRequired
public TagManager getTags();

An array of key-value pairs to apply to this resource.

For more information, see Tag .

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-tags

datastoreTypeVersionRequired
public java.lang.String getDatastoreTypeVersion();
  • Type: java.lang.String

The FHIR version of the Data Store.

The only supported version is R4.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-datastoretypeversion

datastoreNameOptional
public java.lang.String getDatastoreName();
  • Type: java.lang.String

The user generated name for the Data Store.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-datastorename

preloadDataConfigOptional
public java.lang.Object getPreloadDataConfig();

The preloaded data configuration for the Data Store.

Only data preloaded from Synthea is supported.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-preloaddataconfig

sseConfigurationOptional
public java.lang.Object getSseConfiguration();

The server-side encryption key configuration for a customer provided encryption key specified for creating a Data Store.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-healthlake-fhirdatastore.html#cfn-healthlake-fhirdatastore-sseconfiguration

Constants

NameTypeDescription
CFN_RESOURCE_TYPE_NAMEjava.lang.StringThe CloudFormation resource type name for this resource class.
CFN_RESOURCE_TYPE_NAMERequired
public java.lang.String getCfnResourceTypeName();
  • Type: java.lang.String

The CloudFormation resource type name for this resource class.