Ledger

class Ledger : KotlinCustomResource

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

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 id: Output<String>
Link copied to clipboard

The Identity Service Endpoint for this Confidential Ledger.

Link copied to clipboard
val ledgerEndpoint: Output<String>

The Endpoint for this Confidential Ledger.

Link copied to clipboard
val ledgerType: Output<String>

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>

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>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>>?

A mapping of tags to assign to the Confidential Ledger.

Link copied to clipboard
val urn: Output<String>