Skip to content

Commit

Permalink
feat(client-healthlake): This release adds a new request parameter to…
Browse files Browse the repository at this point in the history
… the CreateFHIRDatastore API operation. IdentityProviderConfiguration specifies how you want to authenticate incoming requests to your Healthlake Data Store.
  • Loading branch information
awstools committed May 31, 2023
1 parent d78d640 commit 3580eb8
Show file tree
Hide file tree
Showing 15 changed files with 840 additions and 373 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export interface CreateFHIRDatastoreCommandOutput extends CreateFHIRDatastoreRes
* const client = new HealthLakeClient(config);
* const input = { // CreateFHIRDatastoreRequest
* DatastoreName: "STRING_VALUE",
* DatastoreTypeVersion: "STRING_VALUE", // required
* DatastoreTypeVersion: "R4", // required
* SseConfiguration: { // SseConfiguration
* KmsEncryptionConfig: { // KmsEncryptionConfig
* CmkType: "STRING_VALUE", // required
* CmkType: "CUSTOMER_MANAGED_KMS_KEY" || "AWS_OWNED_KMS_KEY", // required
* KmsKeyId: "STRING_VALUE",
* },
* },
* PreloadDataConfig: { // PreloadDataConfig
* PreloadDataType: "STRING_VALUE", // required
* PreloadDataType: "SYNTHEA", // required
* },
* ClientToken: "STRING_VALUE",
* Tags: [ // TagList
Expand All @@ -62,13 +62,19 @@ export interface CreateFHIRDatastoreCommandOutput extends CreateFHIRDatastoreRes
* Value: "STRING_VALUE", // required
* },
* ],
* IdentityProviderConfiguration: { // IdentityProviderConfiguration
* AuthorizationStrategy: "SMART_ON_FHIR_V1" || "AWS_AUTH", // required
* FineGrainedAuthorizationEnabled: true || false,
* Metadata: "STRING_VALUE",
* IdpLambdaArn: "STRING_VALUE",
* },
* };
* const command = new CreateFHIRDatastoreCommand(input);
* const response = await client.send(command);
* // { // CreateFHIRDatastoreResponse
* // DatastoreId: "STRING_VALUE", // required
* // DatastoreArn: "STRING_VALUE", // required
* // DatastoreStatus: "STRING_VALUE", // required
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
* // DatastoreEndpoint: "STRING_VALUE", // required
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export interface DeleteFHIRDatastoreCommandOutput extends DeleteFHIRDatastoreRes
* // const { HealthLakeClient, DeleteFHIRDatastoreCommand } = require("@aws-sdk/client-healthlake"); // CommonJS import
* const client = new HealthLakeClient(config);
* const input = { // DeleteFHIRDatastoreRequest
* DatastoreId: "STRING_VALUE",
* DatastoreId: "STRING_VALUE", // required
* };
* const command = new DeleteFHIRDatastoreCommand(input);
* const response = await client.send(command);
* // { // DeleteFHIRDatastoreResponse
* // DatastoreId: "STRING_VALUE", // required
* // DatastoreArn: "STRING_VALUE", // required
* // DatastoreStatus: "STRING_VALUE", // required
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
* // DatastoreEndpoint: "STRING_VALUE", // required
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface DescribeFHIRDatastoreCommandOutput extends DescribeFHIRDatastor
* // const { HealthLakeClient, DescribeFHIRDatastoreCommand } = require("@aws-sdk/client-healthlake"); // CommonJS import
* const client = new HealthLakeClient(config);
* const input = { // DescribeFHIRDatastoreRequest
* DatastoreId: "STRING_VALUE",
* DatastoreId: "STRING_VALUE", // required
* };
* const command = new DescribeFHIRDatastoreCommand(input);
* const response = await client.send(command);
Expand All @@ -55,18 +55,24 @@ export interface DescribeFHIRDatastoreCommandOutput extends DescribeFHIRDatastor
* // DatastoreId: "STRING_VALUE", // required
* // DatastoreArn: "STRING_VALUE", // required
* // DatastoreName: "STRING_VALUE",
* // DatastoreStatus: "STRING_VALUE", // required
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
* // CreatedAt: new Date("TIMESTAMP"),
* // DatastoreTypeVersion: "STRING_VALUE", // required
* // DatastoreTypeVersion: "R4", // required
* // DatastoreEndpoint: "STRING_VALUE", // required
* // SseConfiguration: { // SseConfiguration
* // KmsEncryptionConfig: { // KmsEncryptionConfig
* // CmkType: "STRING_VALUE", // required
* // CmkType: "CUSTOMER_MANAGED_KMS_KEY" || "AWS_OWNED_KMS_KEY", // required
* // KmsKeyId: "STRING_VALUE",
* // },
* // },
* // PreloadDataConfig: { // PreloadDataConfig
* // PreloadDataType: "STRING_VALUE", // required
* // PreloadDataType: "SYNTHEA", // required
* // },
* // IdentityProviderConfiguration: { // IdentityProviderConfiguration
* // AuthorizationStrategy: "SMART_ON_FHIR_V1" || "AWS_AUTH", // required
* // FineGrainedAuthorizationEnabled: true || false,
* // Metadata: "STRING_VALUE",
* // IdpLambdaArn: "STRING_VALUE",
* // },
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface DescribeFHIRExportJobCommandOutput extends DescribeFHIRExportJo
* // ExportJobProperties: { // ExportJobProperties
* // JobId: "STRING_VALUE", // required
* // JobName: "STRING_VALUE",
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // SubmitTime: new Date("TIMESTAMP"), // required
* // EndTime: new Date("TIMESTAMP"),
* // DatastoreId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface DescribeFHIRImportJobCommandOutput extends DescribeFHIRImportJo
* // ImportJobProperties: { // ImportJobProperties
* // JobId: "STRING_VALUE", // required
* // JobName: "STRING_VALUE",
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // SubmitTime: new Date("TIMESTAMP"), // required
* // EndTime: new Date("TIMESTAMP"),
* // DatastoreId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface ListFHIRDatastoresCommandOutput extends ListFHIRDatastoresRespo
* const input = { // ListFHIRDatastoresRequest
* Filter: { // DatastoreFilter
* DatastoreName: "STRING_VALUE",
* DatastoreStatus: "STRING_VALUE",
* DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED",
* CreatedBefore: new Date("TIMESTAMP"),
* CreatedAfter: new Date("TIMESTAMP"),
* },
Expand All @@ -62,18 +62,24 @@ export interface ListFHIRDatastoresCommandOutput extends ListFHIRDatastoresRespo
* // DatastoreId: "STRING_VALUE", // required
* // DatastoreArn: "STRING_VALUE", // required
* // DatastoreName: "STRING_VALUE",
* // DatastoreStatus: "STRING_VALUE", // required
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
* // CreatedAt: new Date("TIMESTAMP"),
* // DatastoreTypeVersion: "STRING_VALUE", // required
* // DatastoreTypeVersion: "R4", // required
* // DatastoreEndpoint: "STRING_VALUE", // required
* // SseConfiguration: { // SseConfiguration
* // KmsEncryptionConfig: { // KmsEncryptionConfig
* // CmkType: "STRING_VALUE", // required
* // CmkType: "CUSTOMER_MANAGED_KMS_KEY" || "AWS_OWNED_KMS_KEY", // required
* // KmsKeyId: "STRING_VALUE",
* // },
* // },
* // PreloadDataConfig: { // PreloadDataConfig
* // PreloadDataType: "STRING_VALUE", // required
* // PreloadDataType: "SYNTHEA", // required
* // },
* // IdentityProviderConfiguration: { // IdentityProviderConfiguration
* // AuthorizationStrategy: "SMART_ON_FHIR_V1" || "AWS_AUTH", // required
* // FineGrainedAuthorizationEnabled: true || false,
* // Metadata: "STRING_VALUE",
* // IdpLambdaArn: "STRING_VALUE",
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface ListFHIRExportJobsCommandOutput extends ListFHIRExportJobsRespo
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* JobName: "STRING_VALUE",
* JobStatus: "STRING_VALUE",
* JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED",
* SubmittedBefore: new Date("TIMESTAMP"),
* SubmittedAfter: new Date("TIMESTAMP"),
* };
Expand All @@ -61,7 +61,7 @@ export interface ListFHIRExportJobsCommandOutput extends ListFHIRExportJobsRespo
* // { // ExportJobProperties
* // JobId: "STRING_VALUE", // required
* // JobName: "STRING_VALUE",
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // SubmitTime: new Date("TIMESTAMP"), // required
* // EndTime: new Date("TIMESTAMP"),
* // DatastoreId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface ListFHIRImportJobsCommandOutput extends ListFHIRImportJobsRespo
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* JobName: "STRING_VALUE",
* JobStatus: "STRING_VALUE",
* JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED",
* SubmittedBefore: new Date("TIMESTAMP"),
* SubmittedAfter: new Date("TIMESTAMP"),
* };
Expand All @@ -61,7 +61,7 @@ export interface ListFHIRImportJobsCommandOutput extends ListFHIRImportJobsRespo
* // { // ImportJobProperties
* // JobId: "STRING_VALUE", // required
* // JobName: "STRING_VALUE",
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // SubmitTime: new Date("TIMESTAMP"), // required
* // EndTime: new Date("TIMESTAMP"),
* // DatastoreId: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface StartFHIRExportJobCommandOutput extends StartFHIRExportJobRespo
* const response = await client.send(command);
* // { // StartFHIRExportJobResponse
* // JobId: "STRING_VALUE", // required
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // DatastoreId: "STRING_VALUE",
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface StartFHIRImportJobCommandOutput extends StartFHIRImportJobRespo
* const response = await client.send(command);
* // { // StartFHIRImportJobResponse
* // JobId: "STRING_VALUE", // required
* // JobStatus: "STRING_VALUE", // required
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED_WITH_ERRORS" || "COMPLETED" || "FAILED" || "CANCEL_SUBMITTED" || "CANCEL_IN_PROGRESS" || "CANCEL_COMPLETED" || "CANCEL_FAILED", // required
* // DatastoreId: "STRING_VALUE",
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
/**
* @public
* <p>
* Adds a user specifed key and value tag to a Data Store.
* Adds a user specified key and value tag to a Data Store.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
35 changes: 18 additions & 17 deletions clients/client-healthlake/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/healthlake.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 3580eb8

Please sign in to comment.