EnterprisePolicyArgs

data class EnterprisePolicyArgs(val encryption: Output<PropertiesEncryptionArgs>? = null, val enterprisePolicyName: Output<String>? = null, val healthStatus: Output<Either<String, HealthStatus>>? = null, val identity: Output<EnterprisePolicyIdentityArgs>? = null, val kind: Output<Either<String, EnterprisePolicyKind>>? = null, val location: Output<String>? = null, val lockbox: Output<PropertiesLockboxArgs>? = null, val networkInjection: Output<PropertiesNetworkInjectionArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EnterprisePolicyArgs>

Definition of the EnterprisePolicy. Uses Azure REST API version 2020-10-30-preview. In version 1.x of the Azure Native provider, it used API version 2020-10-30-preview.

Example Usage

Create or update EnterprisePolicy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var enterprisePolicy = new AzureNative.PowerPlatform.EnterprisePolicy("enterprisePolicy", new()
{
EnterprisePolicyName = "enterprisePolicy",
Identity = new AzureNative.PowerPlatform.Inputs.EnterprisePolicyIdentityArgs
{
Type = AzureNative.PowerPlatform.ResourceIdentityType.SystemAssigned,
},
Kind = AzureNative.PowerPlatform.EnterprisePolicyKind.Lockbox,
Location = "East US",
ResourceGroupName = "resourceGroup",
Tags =
{
{ "Organization", "Administration" },
},
});
});
package main
import (
powerplatform "github.com/pulumi/pulumi-azure-native-sdk/powerplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := powerplatform.NewEnterprisePolicy(ctx, "enterprisePolicy", &powerplatform.EnterprisePolicyArgs{
EnterprisePolicyName: pulumi.String("enterprisePolicy"),
Identity: &powerplatform.EnterprisePolicyIdentityArgs{
Type: powerplatform.ResourceIdentityTypeSystemAssigned,
},
Kind: pulumi.String(powerplatform.EnterprisePolicyKindLockbox),
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("resourceGroup"),
Tags: pulumi.StringMap{
"Organization": pulumi.String("Administration"),
},
})
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.powerplatform.EnterprisePolicy;
import com.pulumi.azurenative.powerplatform.EnterprisePolicyArgs;
import com.pulumi.azurenative.powerplatform.inputs.EnterprisePolicyIdentityArgs;
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 enterprisePolicy = new EnterprisePolicy("enterprisePolicy", EnterprisePolicyArgs.builder()
.enterprisePolicyName("enterprisePolicy")
.identity(EnterprisePolicyIdentityArgs.builder()
.type("SystemAssigned")
.build())
.kind("Lockbox")
.location("East US")
.resourceGroupName("resourceGroup")
.tags(Map.of("Organization", "Administration"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:powerplatform:EnterprisePolicy enterprisePolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerPlatform/enterprisePolicies/{enterprisePolicyName}

Constructors

Link copied to clipboard
constructor(encryption: Output<PropertiesEncryptionArgs>? = null, enterprisePolicyName: Output<String>? = null, healthStatus: Output<Either<String, HealthStatus>>? = null, identity: Output<EnterprisePolicyIdentityArgs>? = null, kind: Output<Either<String, EnterprisePolicyKind>>? = null, location: Output<String>? = null, lockbox: Output<PropertiesLockboxArgs>? = null, networkInjection: Output<PropertiesNetworkInjectionArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

The encryption settings for a configuration store.

Link copied to clipboard
val enterprisePolicyName: Output<String>? = null

Name of the EnterprisePolicy.

Link copied to clipboard
val healthStatus: Output<Either<String, HealthStatus>>? = null

The health status of the resource.

Link copied to clipboard

The identity of the EnterprisePolicy.

Link copied to clipboard
val kind: Output<Either<String, EnterprisePolicyKind>>? = null

The kind (type) of Enterprise Policy.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val lockbox: Output<PropertiesLockboxArgs>? = null

Settings concerning lockbox.

Link copied to clipboard

Settings concerning network injection.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): EnterprisePolicyArgs