LedgerArgs

data class LedgerArgs(val azureadBasedServicePrincipals: Output<List<LedgerAzureadBasedServicePrincipalArgs>>? = null, val certificateBasedSecurityPrincipals: Output<List<LedgerCertificateBasedSecurityPrincipalArgs>>? = null, val ledgerType: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LedgerArgs>

Manages a Confidential Ledger.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.confidentialledger.Ledger;
import com.pulumi.azure.confidentialledger.LedgerArgs;
import com.pulumi.azure.confidentialledger.inputs.LedgerAzureadBasedServicePrincipalArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var ledger = new Ledger("ledger", LedgerArgs.builder()
.resourceGroupName(example.name())
.location(example.location())
.ledgerType("Private")
.azureadBasedServicePrincipals(LedgerAzureadBasedServicePrincipalArgs.builder()
.principalId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.ledgerRoleName("Administrator")
.build())
.build());
}
}

Import

Confidential Ledgers can be imported using the resource id, e.g.

$ pulumi import azure:confidentialledger/ledger:Ledger example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-group/providers/Microsoft.ConfidentialLedger/ledgers/example-ledger

Constructors

Link copied to clipboard
fun LedgerArgs(azureadBasedServicePrincipals: Output<List<LedgerAzureadBasedServicePrincipalArgs>>? = null, certificateBasedSecurityPrincipals: Output<List<LedgerCertificateBasedSecurityPrincipalArgs>>? = null, ledgerType: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

Link copied to clipboard

A list of azuread_based_service_principal blocks as defined below.

Link copied to clipboard

A list of certificate_based_security_principal blocks as defined below.

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

Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.

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

Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.

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

Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.

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

The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.

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

A mapping of tags to assign to the Confidential Ledger.