azure-native.healthcareapis.IotConnectorFhirDestination
Explore with Pulumi AI
IoT Connector FHIR destination definition. API Version: 2022-05-15.
Example Usage
Create or update an Iot Connector FHIR destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iotConnectorFhirDestination = new AzureNative.HealthcareApis.IotConnectorFhirDestination("iotConnectorFhirDestination", new()
{
FhirDestinationName = "dest1",
FhirMapping = new AzureNative.HealthcareApis.Inputs.IotMappingPropertiesArgs
{
Content =
{
{ "template", new[]
{
{
{ "template",
{
{ "codes", new[]
{
{
{ "code", "8867-4" },
{ "display", "Heart rate" },
{ "system", "http://loinc.org" },
},
} },
{ "periodInterval", 60 },
{ "typeName", "heartrate" },
{ "value",
{
{ "defaultPeriod", 5000 },
{ "unit", "count/min" },
{ "valueName", "hr" },
{ "valueType", "SampledData" },
} },
} },
{ "templateType", "CodeValueFhir" },
},
} },
{ "templateType", "CollectionFhirTemplate" },
},
},
FhirServiceResourceId = "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
IotConnectorName = "blue",
Location = "westus",
ResourceGroupName = "testRG",
ResourceIdentityResolutionType = "Create",
WorkspaceName = "workspace1",
});
});
package main
import (
healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := healthcareapis.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestination", &healthcareapis.IotConnectorFhirDestinationArgs{
FhirDestinationName: pulumi.String("dest1"),
FhirMapping: &healthcareapis.IotMappingPropertiesArgs{
Content: pulumi.Any{
Template: []map[string]interface{}{
map[string]interface{}{
"template": map[string]interface{}{
"codes": []map[string]interface{}{
map[string]interface{}{
"code": "8867-4",
"display": "Heart rate",
"system": "http://loinc.org",
},
},
"periodInterval": 60,
"typeName": "heartrate",
"value": map[string]interface{}{
"defaultPeriod": 5000,
"unit": "count/min",
"valueName": "hr",
"valueType": "SampledData",
},
},
"templateType": "CodeValueFhir",
},
},
TemplateType: "CollectionFhirTemplate",
},
},
FhirServiceResourceId: pulumi.String("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice"),
IotConnectorName: pulumi.String("blue"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("testRG"),
ResourceIdentityResolutionType: pulumi.String("Create"),
WorkspaceName: pulumi.String("workspace1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.healthcareapis.IotConnectorFhirDestination;
import com.pulumi.azurenative.healthcareapis.IotConnectorFhirDestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var iotConnectorFhirDestination = new IotConnectorFhirDestination("iotConnectorFhirDestination", IotConnectorFhirDestinationArgs.builder()
.fhirDestinationName("dest1")
.fhirMapping(Map.of("content", Map.ofEntries(
Map.entry("template", IotMappingPropertiesArgs.builder()
.template(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.templateType("CodeValueFhir")
.build()),
Map.entry("templateType", "CollectionFhirTemplate")
)))
.fhirServiceResourceId("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice")
.iotConnectorName("blue")
.location("westus")
.resourceGroupName("testRG")
.resourceIdentityResolutionType("Create")
.workspaceName("workspace1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
iot_connector_fhir_destination = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination",
fhir_destination_name="dest1",
fhir_mapping=azure_native.healthcareapis.IotMappingPropertiesArgs(
content={
"template": [{
"template": {
"codes": [{
"code": "8867-4",
"display": "Heart rate",
"system": "http://loinc.org",
}],
"periodInterval": 60,
"typeName": "heartrate",
"value": {
"defaultPeriod": 5000,
"unit": "count/min",
"valueName": "hr",
"valueType": "SampledData",
},
},
"templateType": "CodeValueFhir",
}],
"templateType": "CollectionFhirTemplate",
},
),
fhir_service_resource_id="subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
iot_connector_name="blue",
location="westus",
resource_group_name="testRG",
resource_identity_resolution_type="Create",
workspace_name="workspace1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const iotConnectorFhirDestination = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination", {
fhirDestinationName: "dest1",
fhirMapping: {
content: {
template: [{
template: {
codes: [{
code: "8867-4",
display: "Heart rate",
system: "http://loinc.org",
}],
periodInterval: 60,
typeName: "heartrate",
value: {
defaultPeriod: 5000,
unit: "count/min",
valueName: "hr",
valueType: "SampledData",
},
},
templateType: "CodeValueFhir",
}],
templateType: "CollectionFhirTemplate",
},
},
fhirServiceResourceId: "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
iotConnectorName: "blue",
location: "westus",
resourceGroupName: "testRG",
resourceIdentityResolutionType: "Create",
workspaceName: "workspace1",
});
resources:
iotConnectorFhirDestination:
type: azure-native:healthcareapis:IotConnectorFhirDestination
properties:
fhirDestinationName: dest1
fhirMapping:
content:
template:
- template:
codes:
- code: 8867-4
display: Heart rate
system: http://loinc.org
periodInterval: 60
typeName: heartrate
value:
defaultPeriod: 5000
unit: count/min
valueName: hr
valueType: SampledData
templateType: CodeValueFhir
templateType: CollectionFhirTemplate
fhirServiceResourceId: subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice
iotConnectorName: blue
location: westus
resourceGroupName: testRG
resourceIdentityResolutionType: Create
workspaceName: workspace1
Create IotConnectorFhirDestination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IotConnectorFhirDestination(name: string, args: IotConnectorFhirDestinationArgs, opts?: CustomResourceOptions);
@overload
def IotConnectorFhirDestination(resource_name: str,
args: IotConnectorFhirDestinationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IotConnectorFhirDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
fhir_mapping: Optional[IotMappingPropertiesArgs] = None,
fhir_service_resource_id: Optional[str] = None,
iot_connector_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_identity_resolution_type: Optional[Union[str, IotIdentityResolutionType]] = None,
workspace_name: Optional[str] = None,
fhir_destination_name: Optional[str] = None,
location: Optional[str] = None)
func NewIotConnectorFhirDestination(ctx *Context, name string, args IotConnectorFhirDestinationArgs, opts ...ResourceOption) (*IotConnectorFhirDestination, error)
public IotConnectorFhirDestination(string name, IotConnectorFhirDestinationArgs args, CustomResourceOptions? opts = null)
public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args)
public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args, CustomResourceOptions options)
type: azure-native:healthcareapis:IotConnectorFhirDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var iotConnectorFhirDestinationResource = new AzureNative.Healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", new()
{
FhirMapping =
{
{ "content", "any" },
},
FhirServiceResourceId = "string",
IotConnectorName = "string",
ResourceGroupName = "string",
ResourceIdentityResolutionType = "string",
WorkspaceName = "string",
FhirDestinationName = "string",
Location = "string",
});
example, err := healthcareapis.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestinationResource", &healthcareapis.IotConnectorFhirDestinationArgs{
FhirMapping: map[string]interface{}{
"content": "any",
},
FhirServiceResourceId: "string",
IotConnectorName: "string",
ResourceGroupName: "string",
ResourceIdentityResolutionType: "string",
WorkspaceName: "string",
FhirDestinationName: "string",
Location: "string",
})
var iotConnectorFhirDestinationResource = new IotConnectorFhirDestination("iotConnectorFhirDestinationResource", IotConnectorFhirDestinationArgs.builder()
.fhirMapping(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.fhirServiceResourceId("string")
.iotConnectorName("string")
.resourceGroupName("string")
.resourceIdentityResolutionType("string")
.workspaceName("string")
.fhirDestinationName("string")
.location("string")
.build());
iot_connector_fhir_destination_resource = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource",
fhir_mapping={
content: any,
},
fhir_service_resource_id=string,
iot_connector_name=string,
resource_group_name=string,
resource_identity_resolution_type=string,
workspace_name=string,
fhir_destination_name=string,
location=string)
const iotConnectorFhirDestinationResource = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", {
fhirMapping: {
content: "any",
},
fhirServiceResourceId: "string",
iotConnectorName: "string",
resourceGroupName: "string",
resourceIdentityResolutionType: "string",
workspaceName: "string",
fhirDestinationName: "string",
location: "string",
});
type: azure-native:healthcareapis:IotConnectorFhirDestination
properties:
fhirDestinationName: string
fhirMapping:
content: any
fhirServiceResourceId: string
iotConnectorName: string
location: string
resourceGroupName: string
resourceIdentityResolutionType: string
workspaceName: string
IotConnectorFhirDestination Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IotConnectorFhirDestination resource accepts the following input properties:
- Fhir
Mapping Pulumi.Azure Native. Healthcare Apis. Inputs. Iot Mapping Properties - FHIR Mappings
- Fhir
Service stringResource Id - Fully qualified resource id of the FHIR service to connect to.
- Iot
Connector stringName - The name of IoT Connector resource.
- Resource
Group stringName - The name of the resource group that contains the service instance.
- Resource
Identity string | Pulumi.Resolution Type Azure Native. Healthcare Apis. Iot Identity Resolution Type - Determines how resource identity is resolved on the destination.
- Workspace
Name string - The name of workspace resource.
- Fhir
Destination stringName - The name of IoT Connector FHIR destination resource.
- Location string
- The resource location.
- Fhir
Mapping IotMapping Properties Args - FHIR Mappings
- Fhir
Service stringResource Id - Fully qualified resource id of the FHIR service to connect to.
- Iot
Connector stringName - The name of IoT Connector resource.
- Resource
Group stringName - The name of the resource group that contains the service instance.
- Resource
Identity string | IotResolution Type Identity Resolution Type - Determines how resource identity is resolved on the destination.
- Workspace
Name string - The name of workspace resource.
- Fhir
Destination stringName - The name of IoT Connector FHIR destination resource.
- Location string
- The resource location.
- fhir
Mapping IotMapping Properties - FHIR Mappings
- fhir
Service StringResource Id - Fully qualified resource id of the FHIR service to connect to.
- iot
Connector StringName - The name of IoT Connector resource.
- resource
Group StringName - The name of the resource group that contains the service instance.
- resource
Identity String | IotResolution Type Identity Resolution Type - Determines how resource identity is resolved on the destination.
- workspace
Name String - The name of workspace resource.
- fhir
Destination StringName - The name of IoT Connector FHIR destination resource.
- location String
- The resource location.
- fhir
Mapping IotMapping Properties - FHIR Mappings
- fhir
Service stringResource Id - Fully qualified resource id of the FHIR service to connect to.
- iot
Connector stringName - The name of IoT Connector resource.
- resource
Group stringName - The name of the resource group that contains the service instance.
- resource
Identity string | IotResolution Type Identity Resolution Type - Determines how resource identity is resolved on the destination.
- workspace
Name string - The name of workspace resource.
- fhir
Destination stringName - The name of IoT Connector FHIR destination resource.
- location string
- The resource location.
- fhir_
mapping IotMapping Properties Args - FHIR Mappings
- fhir_
service_ strresource_ id - Fully qualified resource id of the FHIR service to connect to.
- iot_
connector_ strname - The name of IoT Connector resource.
- resource_
group_ strname - The name of the resource group that contains the service instance.
- resource_
identity_ str | Iotresolution_ type Identity Resolution Type - Determines how resource identity is resolved on the destination.
- workspace_
name str - The name of workspace resource.
- fhir_
destination_ strname - The name of IoT Connector FHIR destination resource.
- location str
- The resource location.
- fhir
Mapping Property Map - FHIR Mappings
- fhir
Service StringResource Id - Fully qualified resource id of the FHIR service to connect to.
- iot
Connector StringName - The name of IoT Connector resource.
- resource
Group StringName - The name of the resource group that contains the service instance.
- resource
Identity String | "Create" | "Lookup"Resolution Type - Determines how resource identity is resolved on the destination.
- workspace
Name String - The name of workspace resource.
- fhir
Destination StringName - The name of IoT Connector FHIR destination resource.
- location String
- The resource location.
Outputs
All input properties are implicitly available as output properties. Additionally, the IotConnectorFhirDestination resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name.
- System
Data Pulumi.Azure Native. Healthcare Apis. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The resource type.
- Etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The resource type.
- Etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- The resource type.
- etag String
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- The resource type.
- etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- The resource type.
- etag str
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The resource type.
- etag String
- An etag associated with the resource, used for optimistic concurrency when editing it.
Supporting Types
IotIdentityResolutionType, IotIdentityResolutionTypeArgs
- Create
- Create
- Lookup
- Lookup
- Iot
Identity Resolution Type Create - Create
- Iot
Identity Resolution Type Lookup - Lookup
- Create
- Create
- Lookup
- Lookup
- Create
- Create
- Lookup
- Lookup
- CREATE
- Create
- LOOKUP
- Lookup
- "Create"
- Create
- "Lookup"
- Lookup
IotMappingProperties, IotMappingPropertiesArgs
- Content object
- The mapping.
- Content interface{}
- The mapping.
- content Object
- The mapping.
- content any
- The mapping.
- content Any
- The mapping.
- content Any
- The mapping.
IotMappingPropertiesResponse, IotMappingPropertiesResponseArgs
- Content object
- The mapping.
- Content interface{}
- The mapping.
- content Object
- The mapping.
- content any
- The mapping.
- content Any
- The mapping.
- content Any
- The mapping.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:healthcareapis:IotConnectorFhirDestination dest1 /subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotconnectors/blue/fhirdestinations/dest1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0