Service
Manages a Healthcare Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Healthcare.Service("example", new Azure.Healthcare.ServiceArgs
{
AccessPolicyObjectIds =
{
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
},
AuthenticationConfiguration = new Azure.Healthcare.Inputs.ServiceAuthenticationConfigurationArgs
{
Audience = "https://azurehealthcareapis.com/",
Authority = "https://login.microsoftonline.com/$%7Bdata.azurerm_client_config.current.tenant_id%7D",
SmartProxyEnabled = true,
},
CorsConfiguration = new Azure.Healthcare.Inputs.ServiceCorsConfigurationArgs
{
AllowCredentials = true,
AllowedHeaders =
{
"x-tempo-*",
"x-tempo2-*",
},
AllowedMethods =
{
"GET",
"PUT",
},
AllowedOrigins =
{
"http://www.example.com",
"http://www.example2.com",
},
MaxAgeInSeconds = 500,
},
CosmosdbThroughput = 2000,
Kind = "fhir-R4",
Location = "westus2",
ResourceGroupName = "sample-resource-group",
Tags =
{
{ "environment", "testenv" },
{ "purpose", "AcceptanceTests" },
},
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/healthcare"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err = healthcare.NewService(ctx, "example", &healthcare.ServiceArgs{
AccessPolicyObjectIds: pulumi.StringArray{
pulumi.String("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
},
AuthenticationConfiguration: &healthcare.ServiceAuthenticationConfigurationArgs{
Audience: pulumi.String("https://azurehealthcareapis.com/"),
Authority: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v", "https://login.microsoftonline.com/", "$", "%", "7Bdata.azurerm_client_config.current.tenant_id", "%", "7D")),
SmartProxyEnabled: pulumi.Bool(true),
},
CorsConfiguration: &healthcare.ServiceCorsConfigurationArgs{
AllowCredentials: pulumi.Bool(true),
AllowedHeaders: pulumi.StringArray{
pulumi.String("x-tempo-*"),
pulumi.String("x-tempo2-*"),
},
AllowedMethods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("PUT"),
},
AllowedOrigins: pulumi.StringArray{
pulumi.String("http://www.example.com"),
pulumi.String("http://www.example2.com"),
},
MaxAgeInSeconds: pulumi.Int(500),
},
CosmosdbThroughput: pulumi.Int(2000),
Kind: pulumi.String("fhir-R4"),
Location: pulumi.String("westus2"),
ResourceGroupName: pulumi.String("sample-resource-group"),
Tags: pulumi.Map{
"environment": pulumi.String("testenv"),
"purpose": pulumi.String("AcceptanceTests"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.healthcare.Service("example",
access_policy_object_ids=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
authentication_configuration={
"audience": "https://azurehealthcareapis.com/",
"authority": "https://login.microsoftonline.com/$%7Bdata.azurerm_client_config.current.tenant_id%7D",
"smartProxyEnabled": "true",
},
cors_configuration={
"allowCredentials": "true",
"allowedHeaders": [
"x-tempo-*",
"x-tempo2-*",
],
"allowedMethods": [
"GET",
"PUT",
],
"allowedOrigins": [
"http://www.example.com",
"http://www.example2.com",
],
"maxAgeInSeconds": "500",
},
cosmosdb_throughput="2000",
kind="fhir-R4",
location="westus2",
resource_group_name="sample-resource-group",
tags={
"environment": "testenv",
"purpose": "AcceptanceTests",
})import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.healthcare.Service("example", {
accessPolicyObjectIds: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
authenticationConfiguration: {
audience: "https://azurehealthcareapis.com/",
authority: "https://login.microsoftonline.com/$%7Bdata.azurerm_client_config.current.tenant_id%7D",
smartProxyEnabled: true,
},
corsConfiguration: {
allowCredentials: true,
allowedHeaders: [
"x-tempo-*",
"x-tempo2-*",
],
allowedMethods: [
"GET",
"PUT",
],
allowedOrigins: [
"http://www.example.com",
"http://www.example2.com",
],
maxAgeInSeconds: 500,
},
cosmosdbThroughput: 2000,
kind: "fhir-R4",
location: "westus2",
resourceGroupName: "sample-resource-group",
tags: {
environment: "testenv",
purpose: "AcceptanceTests",
},
});Create a Service Resource
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);def Service(resource_name, opts=None, access_policy_object_ids=None, authentication_configuration=None, cors_configuration=None, cosmosdb_throughput=None, kind=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Service resource accepts the following input properties:
- Resource
Group stringName The name of the Resource Group in which to create the Service.
- Access
Policy List<string>Object Ids - Authentication
Configuration ServiceAuthentication Configuration Args An
authentication_configurationblock as defined below.- Cors
Configuration ServiceCors Configuration Args A
cors_configurationblock as defined below.- Cosmosdb
Throughput int The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- Kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- Location string
Specifies the supported Azure Region where the Service should be created.
- Name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the Resource Group in which to create the Service.
- Access
Policy []stringObject Ids - Authentication
Configuration ServiceAuthentication Configuration An
authentication_configurationblock as defined below.- Cors
Configuration ServiceCors Configuration A
cors_configurationblock as defined below.- Cosmosdb
Throughput int The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- Kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- Location string
Specifies the supported Azure Region where the Service should be created.
- Name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the Resource Group in which to create the Service.
- access
Policy string[]Object Ids - authentication
Configuration ServiceAuthentication Configuration An
authentication_configurationblock as defined below.- cors
Configuration ServiceCors Configuration A
cors_configurationblock as defined below.- cosmosdb
Throughput number The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- location string
Specifies the supported Azure Region where the Service should be created.
- name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the Resource Group in which to create the Service.
- access_
policy_ List[str]object_ ids - authentication_
configuration Dict[ServiceAuthentication Configuration] An
authentication_configurationblock as defined below.- cors_
configuration Dict[ServiceCors Configuration] A
cors_configurationblock as defined below.- cosmosdb_
throughput float The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- kind str
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- location str
Specifies the supported Azure Region where the Service should be created.
- name str
The name of the service instance. Used for service endpoint, must be unique within the audience.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
Look up an Existing Service Resource
Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Servicestatic get(resource_name, id, opts=None, access_policy_object_ids=None, authentication_configuration=None, cors_configuration=None, cosmosdb_throughput=None, kind=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Access
Policy List<string>Object Ids - Authentication
Configuration ServiceAuthentication Configuration Args An
authentication_configurationblock as defined below.- Cors
Configuration ServiceCors Configuration Args A
cors_configurationblock as defined below.- Cosmosdb
Throughput int The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- Kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- Location string
Specifies the supported Azure Region where the Service should be created.
- Name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- Resource
Group stringName The name of the Resource Group in which to create the Service.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Access
Policy []stringObject Ids - Authentication
Configuration ServiceAuthentication Configuration An
authentication_configurationblock as defined below.- Cors
Configuration ServiceCors Configuration A
cors_configurationblock as defined below.- Cosmosdb
Throughput int The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- Kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- Location string
Specifies the supported Azure Region where the Service should be created.
- Name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- Resource
Group stringName The name of the Resource Group in which to create the Service.
- map[string]string
A mapping of tags to assign to the resource.
- access
Policy string[]Object Ids - authentication
Configuration ServiceAuthentication Configuration An
authentication_configurationblock as defined below.- cors
Configuration ServiceCors Configuration A
cors_configurationblock as defined below.- cosmosdb
Throughput number The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- kind string
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- location string
Specifies the supported Azure Region where the Service should be created.
- name string
The name of the service instance. Used for service endpoint, must be unique within the audience.
- resource
Group stringName The name of the Resource Group in which to create the Service.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- access_
policy_ List[str]object_ ids - authentication_
configuration Dict[ServiceAuthentication Configuration] An
authentication_configurationblock as defined below.- cors_
configuration Dict[ServiceCors Configuration] A
cors_configurationblock as defined below.- cosmosdb_
throughput float The provisioned throughput for the backing database. Range of
400-1000. Defaults to400.- kind str
The type of the service. Values at time of publication are:
fhir,fhir-Stu3andfhir-R4. Default value isfhir.- location str
Specifies the supported Azure Region where the Service should be created.
- name str
The name of the service instance. Used for service endpoint, must be unique within the audience.
- resource_
group_ strname The name of the Resource Group in which to create the Service.
- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
ServiceAuthenticationConfiguration
- Audience string
The intended audience to receive authentication tokens for the service. The default value is https://azurehealthcareapis.com
- string
The Azure Active Directory (tenant) that serves as the authentication authority to access the service. The default authority is the Directory defined in the authentication scheme in use when running this provider. Authority must be registered to Azure AD and in the following format: https://{Azure-AD-endpoint}/{tenant-id}.
- Smart
Proxy boolEnabled Enables the ‘SMART on FHIR’ option for mobile and web implementations.
- Audience string
The intended audience to receive authentication tokens for the service. The default value is https://azurehealthcareapis.com
- string
The Azure Active Directory (tenant) that serves as the authentication authority to access the service. The default authority is the Directory defined in the authentication scheme in use when running this provider. Authority must be registered to Azure AD and in the following format: https://{Azure-AD-endpoint}/{tenant-id}.
- Smart
Proxy boolEnabled Enables the ‘SMART on FHIR’ option for mobile and web implementations.
- audience string
The intended audience to receive authentication tokens for the service. The default value is https://azurehealthcareapis.com
- string
The Azure Active Directory (tenant) that serves as the authentication authority to access the service. The default authority is the Directory defined in the authentication scheme in use when running this provider. Authority must be registered to Azure AD and in the following format: https://{Azure-AD-endpoint}/{tenant-id}.
- smart
Proxy booleanEnabled Enables the ‘SMART on FHIR’ option for mobile and web implementations.
- audience str
The intended audience to receive authentication tokens for the service. The default value is https://azurehealthcareapis.com
- str
The Azure Active Directory (tenant) that serves as the authentication authority to access the service. The default authority is the Directory defined in the authentication scheme in use when running this provider. Authority must be registered to Azure AD and in the following format: https://{Azure-AD-endpoint}/{tenant-id}.
- smart
Proxy boolEnabled Enables the ‘SMART on FHIR’ option for mobile and web implementations.
ServiceCorsConfiguration
- Allow
Credentials bool If credentials are allowed via CORS.
- Allowed
Headers List<string> A set of headers to be allowed via CORS.
- Allowed
Methods List<string> The methods to be allowed via CORS.
- Allowed
Origins List<string> A set of origins to be allowed via CORS.
- Max
Age intIn Seconds The max age to be allowed via CORS.
- Allow
Credentials bool If credentials are allowed via CORS.
- Allowed
Headers []string A set of headers to be allowed via CORS.
- Allowed
Methods []string The methods to be allowed via CORS.
- Allowed
Origins []string A set of origins to be allowed via CORS.
- Max
Age intIn Seconds The max age to be allowed via CORS.
- allow
Credentials boolean If credentials are allowed via CORS.
- allowed
Headers string[] A set of headers to be allowed via CORS.
- allowed
Methods string[] The methods to be allowed via CORS.
- allowed
Origins string[] A set of origins to be allowed via CORS.
- max
Age numberIn Seconds The max age to be allowed via CORS.
- allow
Credentials bool If credentials are allowed via CORS.
- allowed
Headers List[str] A set of headers to be allowed via CORS.
- allowed
Methods List[str] The methods to be allowed via CORS.
- allowed
Origins List[str] A set of origins to be allowed via CORS.
- max
Age floatIn Seconds The max age to be allowed via CORS.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.