| 1 |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. |
| 2 |
|
| 3 |
// Package healthlakeiface provides an interface to enable mocking the Amazon HealthLake service client |
| 4 |
// for testing your code. |
| 5 |
// |
| 6 |
// It is important to note that this interface will have breaking changes |
| 7 |
// when the service model is updated and adds new API operations, paginators, |
| 8 |
// and waiters. |
| 9 |
package healthlakeiface |
| 10 |
|
| 11 |
import ( |
| 12 |
"github.com/aws/aws-sdk-go/aws" |
| 13 |
"github.com/aws/aws-sdk-go/aws/request" |
| 14 |
"github.com/aws/aws-sdk-go/service/healthlake" |
| 15 |
) |
| 16 |
|
| 17 |
// HealthLakeAPI provides an interface to enable mocking the |
| 18 |
// healthlake.HealthLake service client's API operation, |
| 19 |
// paginators, and waiters. This make unit testing your code that calls out |
| 20 |
// to the SDK's service client's calls easier. |
| 21 |
// |
| 22 |
// The best way to use this interface is so the SDK's service client's calls |
| 23 |
// can be stubbed out for unit testing your code with the SDK without needing |
| 24 |
// to inject custom request handlers into the SDK's request pipeline. |
| 25 |
// |
| 26 |
// // myFunc uses an SDK service client to make a request to |
| 27 |
// // Amazon HealthLake. |
| 28 |
// func myFunc(svc healthlakeiface.HealthLakeAPI) bool { |
| 29 |
// // Make svc.CreateFHIRDatastore request |
| 30 |
// } |
| 31 |
// |
| 32 |
// func main() { |
| 33 |
// sess := session.New() |
| 34 |
// svc := healthlake.New(sess) |
| 35 |
// |
| 36 |
// myFunc(svc) |
| 37 |
// } |
| 38 |
// |
| 39 |
// In your _test.go file: |
| 40 |
// |
| 41 |
// // Define a mock struct to be used in your unit tests of myFunc. |
| 42 |
// type mockHealthLakeClient struct { |
| 43 |
// healthlakeiface.HealthLakeAPI |
| 44 |
// } |
| 45 |
// func (m *mockHealthLakeClient) CreateFHIRDatastore(input *healthlake.CreateFHIRDatastoreInput) (*healthlake.CreateFHIRDatastoreOutput, error) { |
| 46 |
// // mock response/functionality |
| 47 |
// } |
| 48 |
// |
| 49 |
// func TestMyFunc(t *testing.T) { |
| 50 |
// // Setup Test |
| 51 |
// mockSvc := &mockHealthLakeClient{} |
| 52 |
// |
| 53 |
// myfunc(mockSvc) |
| 54 |
// |
| 55 |
// // Verify myFunc's functionality |
| 56 |
// } |
| 57 |
// |
| 58 |
// It is important to note that this interface will have breaking changes |
| 59 |
// when the service model is updated and adds new API operations, paginators, |
| 60 |
// and waiters. Its suggested to use the pattern above for testing, or using |
| 61 |
// tooling to generate mocks to satisfy the interfaces. |
| 62 |
type HealthLakeAPI interface { |
| 63 |
CreateFHIRDatastore(*healthlake.CreateFHIRDatastoreInput) (*healthlake.CreateFHIRDatastoreOutput, error) |
| 64 |
CreateFHIRDatastoreWithContext(aws.Context, *healthlake.CreateFHIRDatastoreInput, ...request.Option) (*healthlake.CreateFHIRDatastoreOutput, error) |
| 65 |
CreateFHIRDatastoreRequest(*healthlake.CreateFHIRDatastoreInput) (*request.Request, *healthlake.CreateFHIRDatastoreOutput) |
| 66 |
|
| 67 |
DeleteFHIRDatastore(*healthlake.DeleteFHIRDatastoreInput) (*healthlake.DeleteFHIRDatastoreOutput, error) |
| 68 |
DeleteFHIRDatastoreWithContext(aws.Context, *healthlake.DeleteFHIRDatastoreInput, ...request.Option) (*healthlake.DeleteFHIRDatastoreOutput, error) |
| 69 |
DeleteFHIRDatastoreRequest(*healthlake.DeleteFHIRDatastoreInput) (*request.Request, *healthlake.DeleteFHIRDatastoreOutput) |
| 70 |
|
| 71 |
DescribeFHIRDatastore(*healthlake.DescribeFHIRDatastoreInput) (*healthlake.DescribeFHIRDatastoreOutput, error) |
| 72 |
DescribeFHIRDatastoreWithContext(aws.Context, *healthlake.DescribeFHIRDatastoreInput, ...request.Option) (*healthlake.DescribeFHIRDatastoreOutput, error) |
| 73 |
DescribeFHIRDatastoreRequest(*healthlake.DescribeFHIRDatastoreInput) (*request.Request, *healthlake.DescribeFHIRDatastoreOutput) |
| 74 |
|
| 75 |
DescribeFHIRExportJob(*healthlake.DescribeFHIRExportJobInput) (*healthlake.DescribeFHIRExportJobOutput, error) |
| 76 |
DescribeFHIRExportJobWithContext(aws.Context, *healthlake.DescribeFHIRExportJobInput, ...request.Option) (*healthlake.DescribeFHIRExportJobOutput, error) |
| 77 |
DescribeFHIRExportJobRequest(*healthlake.DescribeFHIRExportJobInput) (*request.Request, *healthlake.DescribeFHIRExportJobOutput) |
| 78 |
|
| 79 |
DescribeFHIRImportJob(*healthlake.DescribeFHIRImportJobInput) (*healthlake.DescribeFHIRImportJobOutput, error) |
| 80 |
DescribeFHIRImportJobWithContext(aws.Context, *healthlake.DescribeFHIRImportJobInput, ...request.Option) (*healthlake.DescribeFHIRImportJobOutput, error) |
| 81 |
DescribeFHIRImportJobRequest(*healthlake.DescribeFHIRImportJobInput) (*request.Request, *healthlake.DescribeFHIRImportJobOutput) |
| 82 |
|
| 83 |
ListFHIRDatastores(*healthlake.ListFHIRDatastoresInput) (*healthlake.ListFHIRDatastoresOutput, error) |
| 84 |
ListFHIRDatastoresWithContext(aws.Context, *healthlake.ListFHIRDatastoresInput, ...request.Option) (*healthlake.ListFHIRDatastoresOutput, error) |
| 85 |
ListFHIRDatastoresRequest(*healthlake.ListFHIRDatastoresInput) (*request.Request, *healthlake.ListFHIRDatastoresOutput) |
| 86 |
|
| 87 |
ListFHIRDatastoresPages(*healthlake.ListFHIRDatastoresInput, func(*healthlake.ListFHIRDatastoresOutput, bool) bool) error |
| 88 |
ListFHIRDatastoresPagesWithContext(aws.Context, *healthlake.ListFHIRDatastoresInput, func(*healthlake.ListFHIRDatastoresOutput, bool) bool, ...request.Option) error |
| 89 |
|
| 90 |
ListFHIRExportJobs(*healthlake.ListFHIRExportJobsInput) (*healthlake.ListFHIRExportJobsOutput, error) |
| 91 |
ListFHIRExportJobsWithContext(aws.Context, *healthlake.ListFHIRExportJobsInput, ...request.Option) (*healthlake.ListFHIRExportJobsOutput, error) |
| 92 |
ListFHIRExportJobsRequest(*healthlake.ListFHIRExportJobsInput) (*request.Request, *healthlake.ListFHIRExportJobsOutput) |
| 93 |
|
| 94 |
ListFHIRExportJobsPages(*healthlake.ListFHIRExportJobsInput, func(*healthlake.ListFHIRExportJobsOutput, bool) bool) error |
| 95 |
ListFHIRExportJobsPagesWithContext(aws.Context, *healthlake.ListFHIRExportJobsInput, func(*healthlake.ListFHIRExportJobsOutput, bool) bool, ...request.Option) error |
| 96 |
|
| 97 |
ListFHIRImportJobs(*healthlake.ListFHIRImportJobsInput) (*healthlake.ListFHIRImportJobsOutput, error) |
| 98 |
ListFHIRImportJobsWithContext(aws.Context, *healthlake.ListFHIRImportJobsInput, ...request.Option) (*healthlake.ListFHIRImportJobsOutput, error) |
| 99 |
ListFHIRImportJobsRequest(*healthlake.ListFHIRImportJobsInput) (*request.Request, *healthlake.ListFHIRImportJobsOutput) |
| 100 |
|
| 101 |
ListFHIRImportJobsPages(*healthlake.ListFHIRImportJobsInput, func(*healthlake.ListFHIRImportJobsOutput, bool) bool) error |
| 102 |
ListFHIRImportJobsPagesWithContext(aws.Context, *healthlake.ListFHIRImportJobsInput, func(*healthlake.ListFHIRImportJobsOutput, bool) bool, ...request.Option) error |
| 103 |
|
| 104 |
ListTagsForResource(*healthlake.ListTagsForResourceInput) (*healthlake.ListTagsForResourceOutput, error) |
| 105 |
ListTagsForResourceWithContext(aws.Context, *healthlake.ListTagsForResourceInput, ...request.Option) (*healthlake.ListTagsForResourceOutput, error) |
| 106 |
ListTagsForResourceRequest(*healthlake.ListTagsForResourceInput) (*request.Request, *healthlake.ListTagsForResourceOutput) |
| 107 |
|
| 108 |
StartFHIRExportJob(*healthlake.StartFHIRExportJobInput) (*healthlake.StartFHIRExportJobOutput, error) |
| 109 |
StartFHIRExportJobWithContext(aws.Context, *healthlake.StartFHIRExportJobInput, ...request.Option) (*healthlake.StartFHIRExportJobOutput, error) |
| 110 |
StartFHIRExportJobRequest(*healthlake.StartFHIRExportJobInput) (*request.Request, *healthlake.StartFHIRExportJobOutput) |
| 111 |
|
| 112 |
StartFHIRImportJob(*healthlake.StartFHIRImportJobInput) (*healthlake.StartFHIRImportJobOutput, error) |
| 113 |
StartFHIRImportJobWithContext(aws.Context, *healthlake.StartFHIRImportJobInput, ...request.Option) (*healthlake.StartFHIRImportJobOutput, error) |
| 114 |
StartFHIRImportJobRequest(*healthlake.StartFHIRImportJobInput) (*request.Request, *healthlake.StartFHIRImportJobOutput) |
| 115 |
|
| 116 |
TagResource(*healthlake.TagResourceInput) (*healthlake.TagResourceOutput, error) |
| 117 |
TagResourceWithContext(aws.Context, *healthlake.TagResourceInput, ...request.Option) (*healthlake.TagResourceOutput, error) |
| 118 |
TagResourceRequest(*healthlake.TagResourceInput) (*request.Request, *healthlake.TagResourceOutput) |
| 119 |
|
| 120 |
UntagResource(*healthlake.UntagResourceInput) (*healthlake.UntagResourceOutput, error) |
| 121 |
UntagResourceWithContext(aws.Context, *healthlake.UntagResourceInput, ...request.Option) (*healthlake.UntagResourceOutput, error) |
| 122 |
UntagResourceRequest(*healthlake.UntagResourceInput) (*request.Request, *healthlake.UntagResourceOutput) |
| 123 |
} |
| 124 |
|
| 125 |
var _ HealthLakeAPI = (*healthlake.HealthLake)(nil) |