/
getFhirService.go
163 lines (137 loc) · 7.09 KB
/
getFhirService.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package healthcare
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Use this data source to access information about an existing Healthcare FHIR Service(Fast Healthcare Interoperability Resources).
func LookupFhirService(ctx *pulumi.Context, args *LookupFhirServiceArgs, opts ...pulumi.InvokeOption) (*LookupFhirServiceResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupFhirServiceResult
err := ctx.Invoke("azure:healthcare/getFhirService:getFhirService", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getFhirService.
type LookupFhirServiceArgs struct {
// The name of the Healthcare FHIR Service.
Name string `pulumi:"name"`
// The map of tags assigned to the Healthcare FHIR Service.
Tags map[string]string `pulumi:"tags"`
// The id of the Healthcare Workspace in which the Healthcare FHIR Service exists.
WorkspaceId string `pulumi:"workspaceId"`
}
// A collection of values returned by getFhirService.
type LookupFhirServiceResult struct {
// The list of the access policies of the service instance.
AccessPolicyObjectIds []string `pulumi:"accessPolicyObjectIds"`
// The `authentication` block as defined below.
Authentications []GetFhirServiceAuthentication `pulumi:"authentications"`
// The name of the storage account which the operation configuration information is exported to.
ConfigurationExportStorageAccountName string `pulumi:"configurationExportStorageAccountName"`
// The list of azure container registry settings used for convert data operation of the service instance.
ContainerRegistryLoginServerUrls []string `pulumi:"containerRegistryLoginServerUrls"`
// The `cors` block as defined below.
Cors []GetFhirServiceCor `pulumi:"cors"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The `identity` block as defined below.
Identities []GetFhirServiceIdentity `pulumi:"identities"`
// The kind of the Healthcare FHIR Service.
Kind string `pulumi:"kind"`
// The Azure Region where the Healthcare FHIR Service is located.
Location string `pulumi:"location"`
Name string `pulumi:"name"`
// The map of tags assigned to the Healthcare FHIR Service.
Tags map[string]string `pulumi:"tags"`
WorkspaceId string `pulumi:"workspaceId"`
}
func LookupFhirServiceOutput(ctx *pulumi.Context, args LookupFhirServiceOutputArgs, opts ...pulumi.InvokeOption) LookupFhirServiceResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupFhirServiceResult, error) {
args := v.(LookupFhirServiceArgs)
r, err := LookupFhirService(ctx, &args, opts...)
var s LookupFhirServiceResult
if r != nil {
s = *r
}
return s, err
}).(LookupFhirServiceResultOutput)
}
// A collection of arguments for invoking getFhirService.
type LookupFhirServiceOutputArgs struct {
// The name of the Healthcare FHIR Service.
Name pulumi.StringInput `pulumi:"name"`
// The map of tags assigned to the Healthcare FHIR Service.
Tags pulumi.StringMapInput `pulumi:"tags"`
// The id of the Healthcare Workspace in which the Healthcare FHIR Service exists.
WorkspaceId pulumi.StringInput `pulumi:"workspaceId"`
}
func (LookupFhirServiceOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupFhirServiceArgs)(nil)).Elem()
}
// A collection of values returned by getFhirService.
type LookupFhirServiceResultOutput struct{ *pulumi.OutputState }
func (LookupFhirServiceResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupFhirServiceResult)(nil)).Elem()
}
func (o LookupFhirServiceResultOutput) ToLookupFhirServiceResultOutput() LookupFhirServiceResultOutput {
return o
}
func (o LookupFhirServiceResultOutput) ToLookupFhirServiceResultOutputWithContext(ctx context.Context) LookupFhirServiceResultOutput {
return o
}
// The list of the access policies of the service instance.
func (o LookupFhirServiceResultOutput) AccessPolicyObjectIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupFhirServiceResult) []string { return v.AccessPolicyObjectIds }).(pulumi.StringArrayOutput)
}
// The `authentication` block as defined below.
func (o LookupFhirServiceResultOutput) Authentications() GetFhirServiceAuthenticationArrayOutput {
return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceAuthentication { return v.Authentications }).(GetFhirServiceAuthenticationArrayOutput)
}
// The name of the storage account which the operation configuration information is exported to.
func (o LookupFhirServiceResultOutput) ConfigurationExportStorageAccountName() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.ConfigurationExportStorageAccountName }).(pulumi.StringOutput)
}
// The list of azure container registry settings used for convert data operation of the service instance.
func (o LookupFhirServiceResultOutput) ContainerRegistryLoginServerUrls() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupFhirServiceResult) []string { return v.ContainerRegistryLoginServerUrls }).(pulumi.StringArrayOutput)
}
// The `cors` block as defined below.
func (o LookupFhirServiceResultOutput) Cors() GetFhirServiceCorArrayOutput {
return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceCor { return v.Cors }).(GetFhirServiceCorArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupFhirServiceResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Id }).(pulumi.StringOutput)
}
// The `identity` block as defined below.
func (o LookupFhirServiceResultOutput) Identities() GetFhirServiceIdentityArrayOutput {
return o.ApplyT(func(v LookupFhirServiceResult) []GetFhirServiceIdentity { return v.Identities }).(GetFhirServiceIdentityArrayOutput)
}
// The kind of the Healthcare FHIR Service.
func (o LookupFhirServiceResultOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Kind }).(pulumi.StringOutput)
}
// The Azure Region where the Healthcare FHIR Service is located.
func (o LookupFhirServiceResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LookupFhirServiceResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.Name }).(pulumi.StringOutput)
}
// The map of tags assigned to the Healthcare FHIR Service.
func (o LookupFhirServiceResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupFhirServiceResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
func (o LookupFhirServiceResultOutput) WorkspaceId() pulumi.StringOutput {
return o.ApplyT(func(v LookupFhirServiceResult) string { return v.WorkspaceId }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupFhirServiceResultOutput{})
}