Ledger Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Properties
Link copied to clipboard
val certificateBasedSecurityPrincipals: Output<List<LedgerCertificateBasedSecurityPrincipalArgs>>? = null