Private Link Services For SCCPowershell Args
data class PrivateLinkServicesForSCCPowershellArgs(val identity: Output<ServicesResourceIdentityArgs>? = null, val kind: Output<Kind>? = null, val location: Output<String>? = null, val properties: Output<ServicesPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PrivateLinkServicesForSCCPowershellArgs>
The description of the service. Uses Azure REST API version 2021-03-08.
Example Usage
Create or Update a service with all parameters
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateLinkServicesForSCCPowershell = new AzureNative.SecurityAndCompliance.PrivateLinkServicesForSCCPowershell("privateLinkServicesForSCCPowershell", new()
{
Identity = new AzureNative.SecurityAndCompliance.Inputs.ServicesResourceIdentityArgs
{
Type = AzureNative.SecurityAndCompliance.ManagedServiceIdentityType.SystemAssigned,
},
Kind = AzureNative.SecurityAndCompliance.Kind.Fhir_R4,
Location = "westus2",
Properties = new AzureNative.SecurityAndCompliance.Inputs.ServicesPropertiesArgs
{
AccessPolicies = new[]
{
new AzureNative.SecurityAndCompliance.Inputs.ServiceAccessPolicyEntryArgs
{
ObjectId = "c487e7d1-3210-41a3-8ccc-e9372b78da47",
},
new AzureNative.SecurityAndCompliance.Inputs.ServiceAccessPolicyEntryArgs
{
ObjectId = "5b307da8-43d4-492b-8b66-b0294ade872f",
},
},
AuthenticationConfiguration = new AzureNative.SecurityAndCompliance.Inputs.ServiceAuthenticationConfigurationInfoArgs
{
Audience = "https://azurehealthcareapis.com",
Authority = "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc",
SmartProxyEnabled = true,
},
CorsConfiguration = new AzureNative.SecurityAndCompliance.Inputs.ServiceCorsConfigurationInfoArgs
{
AllowCredentials = false,
Headers = new[]
{
"*",
},
MaxAge = 1440,
Methods = new[]
{
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT",
},
Origins = new[]
{
"*",
},
},
CosmosDbConfiguration = new AzureNative.SecurityAndCompliance.Inputs.ServiceCosmosDbConfigurationInfoArgs
{
KeyVaultKeyUri = "https://my-vault.vault.azure.net/keys/my-key",
OfferThroughput = 1000,
},
ExportConfiguration = new AzureNative.SecurityAndCompliance.Inputs.ServiceExportConfigurationInfoArgs
{
StorageAccountName = "existingStorageAccount",
},
PrivateEndpointConnections = new() { },
PublicNetworkAccess = AzureNative.SecurityAndCompliance.PublicNetworkAccess.Disabled,
},
ResourceGroupName = "rg1",
ResourceName = "service1",
Tags = null,
});
});
Content copied to clipboard
package main
import (
securityandcompliance "github.com/pulumi/pulumi-azure-native-sdk/securityandcompliance/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securityandcompliance.NewPrivateLinkServicesForSCCPowershell(ctx, "privateLinkServicesForSCCPowershell", &securityandcompliance.PrivateLinkServicesForSCCPowershellArgs{
Identity: &securityandcompliance.ServicesResourceIdentityArgs{
Type: pulumi.String(securityandcompliance.ManagedServiceIdentityTypeSystemAssigned),
},
Kind: securityandcompliance.Kind_Fhir_R4,
Location: pulumi.String("westus2"),
Properties: &securityandcompliance.ServicesPropertiesArgs{
AccessPolicies: securityandcompliance.ServiceAccessPolicyEntryArray{
&securityandcompliance.ServiceAccessPolicyEntryArgs{
ObjectId: pulumi.String("c487e7d1-3210-41a3-8ccc-e9372b78da47"),
},
&securityandcompliance.ServiceAccessPolicyEntryArgs{
ObjectId: pulumi.String("5b307da8-43d4-492b-8b66-b0294ade872f"),
},
},
AuthenticationConfiguration: &securityandcompliance.ServiceAuthenticationConfigurationInfoArgs{
Audience: pulumi.String("https://azurehealthcareapis.com"),
Authority: pulumi.String("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc"),
SmartProxyEnabled: pulumi.Bool(true),
},
CorsConfiguration: &securityandcompliance.ServiceCorsConfigurationInfoArgs{
AllowCredentials: pulumi.Bool(false),
Headers: pulumi.StringArray{
pulumi.String("*"),
},
MaxAge: pulumi.Float64(1440),
Methods: pulumi.StringArray{
pulumi.String("DELETE"),
pulumi.String("GET"),
pulumi.String("OPTIONS"),
pulumi.String("PATCH"),
pulumi.String("POST"),
pulumi.String("PUT"),
},
Origins: pulumi.StringArray{
pulumi.String("*"),
},
},
CosmosDbConfiguration: &securityandcompliance.ServiceCosmosDbConfigurationInfoArgs{
KeyVaultKeyUri: pulumi.String("https://my-vault.vault.azure.net/keys/my-key"),
OfferThroughput: pulumi.Float64(1000),
},
ExportConfiguration: &securityandcompliance.ServiceExportConfigurationInfoArgs{
StorageAccountName: pulumi.String("existingStorageAccount"),
},
PrivateEndpointConnections: securityandcompliance.PrivateEndpointConnectionArray{},
PublicNetworkAccess: pulumi.String(securityandcompliance.PublicNetworkAccessDisabled),
},
ResourceGroupName: pulumi.String("rg1"),
ResourceName: pulumi.String("service1"),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securityandcompliance.PrivateLinkServicesForSCCPowershell;
import com.pulumi.azurenative.securityandcompliance.PrivateLinkServicesForSCCPowershellArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServicesResourceIdentityArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServicesPropertiesArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServiceAuthenticationConfigurationInfoArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServiceCorsConfigurationInfoArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServiceCosmosDbConfigurationInfoArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServiceExportConfigurationInfoArgs;
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 privateLinkServicesForSCCPowershell = new PrivateLinkServicesForSCCPowershell("privateLinkServicesForSCCPowershell", PrivateLinkServicesForSCCPowershellArgs.builder()
.identity(ServicesResourceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.kind("fhir-R4")
.location("westus2")
.properties(ServicesPropertiesArgs.builder()
.accessPolicies(
ServiceAccessPolicyEntryArgs.builder()
.objectId("c487e7d1-3210-41a3-8ccc-e9372b78da47")
.build(),
ServiceAccessPolicyEntryArgs.builder()
.objectId("5b307da8-43d4-492b-8b66-b0294ade872f")
.build())
.authenticationConfiguration(ServiceAuthenticationConfigurationInfoArgs.builder()
.audience("https://azurehealthcareapis.com")
.authority("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc")
.smartProxyEnabled(true)
.build())
.corsConfiguration(ServiceCorsConfigurationInfoArgs.builder()
.allowCredentials(false)
.headers("*")
.maxAge(1440.0)
.methods(
"DELETE",
"GET",
"OPTIONS",
"PATCH",
"POST",
"PUT")
.origins("*")
.build())
.cosmosDbConfiguration(ServiceCosmosDbConfigurationInfoArgs.builder()
.keyVaultKeyUri("https://my-vault.vault.azure.net/keys/my-key")
.offerThroughput(1000.0)
.build())
.exportConfiguration(ServiceExportConfigurationInfoArgs.builder()
.storageAccountName("existingStorageAccount")
.build())
.privateEndpointConnections()
.publicNetworkAccess("Disabled")
.build())
.resourceGroupName("rg1")
.resourceName("service1")
.tags(Map.ofEntries(
))
.build());
}
}
Content copied to clipboard
Create or Update a service with minimum parameters
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateLinkServicesForSCCPowershell = new AzureNative.SecurityAndCompliance.PrivateLinkServicesForSCCPowershell("privateLinkServicesForSCCPowershell", new()
{
Kind = AzureNative.SecurityAndCompliance.Kind.Fhir_R4,
Location = "westus2",
Properties = new AzureNative.SecurityAndCompliance.Inputs.ServicesPropertiesArgs
{
AccessPolicies = new[]
{
new AzureNative.SecurityAndCompliance.Inputs.ServiceAccessPolicyEntryArgs
{
ObjectId = "c487e7d1-3210-41a3-8ccc-e9372b78da47",
},
},
},
ResourceGroupName = "rg1",
ResourceName = "service2",
Tags = null,
});
});
Content copied to clipboard
package main
import (
securityandcompliance "github.com/pulumi/pulumi-azure-native-sdk/securityandcompliance/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securityandcompliance.NewPrivateLinkServicesForSCCPowershell(ctx, "privateLinkServicesForSCCPowershell", &securityandcompliance.PrivateLinkServicesForSCCPowershellArgs{
Kind: securityandcompliance.Kind_Fhir_R4,
Location: pulumi.String("westus2"),
Properties: &securityandcompliance.ServicesPropertiesArgs{
AccessPolicies: securityandcompliance.ServiceAccessPolicyEntryArray{
&securityandcompliance.ServiceAccessPolicyEntryArgs{
ObjectId: pulumi.String("c487e7d1-3210-41a3-8ccc-e9372b78da47"),
},
},
},
ResourceGroupName: pulumi.String("rg1"),
ResourceName: pulumi.String("service2"),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securityandcompliance.PrivateLinkServicesForSCCPowershell;
import com.pulumi.azurenative.securityandcompliance.PrivateLinkServicesForSCCPowershellArgs;
import com.pulumi.azurenative.securityandcompliance.inputs.ServicesPropertiesArgs;
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 privateLinkServicesForSCCPowershell = new PrivateLinkServicesForSCCPowershell("privateLinkServicesForSCCPowershell", PrivateLinkServicesForSCCPowershellArgs.builder()
.kind("fhir-R4")
.location("westus2")
.properties(ServicesPropertiesArgs.builder()
.accessPolicies(ServiceAccessPolicyEntryArgs.builder()
.objectId("c487e7d1-3210-41a3-8ccc-e9372b78da47")
.build())
.build())
.resourceGroupName("rg1")
.resourceName("service2")
.tags(Map.ofEntries(
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:securityandcompliance:PrivateLinkServicesForSCCPowershell service2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForSCCPowershell/{resourceName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(identity: Output<ServicesResourceIdentityArgs>? = null, kind: Output<Kind>? = null, location: Output<String>? = null, properties: Output<ServicesPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Setting indicating whether the service has a managed identity associated with it.
Link copied to clipboard
The common properties of a service.
Link copied to clipboard
The name of the resource group that contains the service instance.
Link copied to clipboard
The name of the service instance.