1. Packages
  2. Azure Classic
  3. API Docs
  4. confidentialledger
  5. Ledger

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.confidentialledger.Ledger

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a Confidential Ledger.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const current = azure.core.getClientConfig({});
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const ledger = new azure.confidentialledger.Ledger("ledger", {
        name: "example-ledger",
        resourceGroupName: example.name,
        location: example.location,
        ledgerType: "Private",
        azureadBasedServicePrincipals: [{
            principalId: current.then(current => current.objectId),
            tenantId: current.then(current => current.tenantId),
            ledgerRoleName: "Administrator",
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    current = azure.core.get_client_config()
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    ledger = azure.confidentialledger.Ledger("ledger",
        name="example-ledger",
        resource_group_name=example.name,
        location=example.location,
        ledger_type="Private",
        azuread_based_service_principals=[{
            "principal_id": current.object_id,
            "tenant_id": current.tenant_id,
            "ledger_role_name": "Administrator",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/confidentialledger"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = confidentialledger.NewLedger(ctx, "ledger", &confidentialledger.LedgerArgs{
    			Name:              pulumi.String("example-ledger"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			LedgerType:        pulumi.String("Private"),
    			AzureadBasedServicePrincipals: confidentialledger.LedgerAzureadBasedServicePrincipalArray{
    				&confidentialledger.LedgerAzureadBasedServicePrincipalArgs{
    					PrincipalId:    pulumi.String(current.ObjectId),
    					TenantId:       pulumi.String(current.TenantId),
    					LedgerRoleName: pulumi.String("Administrator"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Azure.Core.GetClientConfig.Invoke();
    
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var ledger = new Azure.ConfidentialLedger.Ledger("ledger", new()
        {
            Name = "example-ledger",
            ResourceGroupName = example.Name,
            Location = example.Location,
            LedgerType = "Private",
            AzureadBasedServicePrincipals = new[]
            {
                new Azure.ConfidentialLedger.Inputs.LedgerAzureadBasedServicePrincipalArgs
                {
                    PrincipalId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
                    TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
                    LedgerRoleName = "Administrator",
                },
            },
        });
    
    });
    
    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()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var ledger = new Ledger("ledger", LedgerArgs.builder()
                .name("example-ledger")
                .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());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      ledger:
        type: azure:confidentialledger:Ledger
        properties:
          name: example-ledger
          resourceGroupName: ${example.name}
          location: ${example.location}
          ledgerType: Private
          azureadBasedServicePrincipals:
            - principalId: ${current.objectId}
              tenantId: ${current.tenantId}
              ledgerRoleName: Administrator
    variables:
      current:
        fn::invoke:
          Function: azure:core:getClientConfig
          Arguments: {}
    

    Create Ledger Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ledger(name: string, args: LedgerArgs, opts?: CustomResourceOptions);
    @overload
    def Ledger(resource_name: str,
               args: LedgerArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ledger(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               azuread_based_service_principals: Optional[Sequence[LedgerAzureadBasedServicePrincipalArgs]] = None,
               ledger_type: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               certificate_based_security_principals: Optional[Sequence[LedgerCertificateBasedSecurityPrincipalArgs]] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
    func NewLedger(ctx *Context, name string, args LedgerArgs, opts ...ResourceOption) (*Ledger, error)
    public Ledger(string name, LedgerArgs args, CustomResourceOptions? opts = null)
    public Ledger(String name, LedgerArgs args)
    public Ledger(String name, LedgerArgs args, CustomResourceOptions options)
    
    type: azure:confidentialledger:Ledger
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LedgerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LedgerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LedgerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LedgerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LedgerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ledgerResource = new Azure.ConfidentialLedger.Ledger("ledgerResource", new()
    {
        AzureadBasedServicePrincipals = new[]
        {
            new Azure.ConfidentialLedger.Inputs.LedgerAzureadBasedServicePrincipalArgs
            {
                LedgerRoleName = "string",
                PrincipalId = "string",
                TenantId = "string",
            },
        },
        LedgerType = "string",
        ResourceGroupName = "string",
        CertificateBasedSecurityPrincipals = new[]
        {
            new Azure.ConfidentialLedger.Inputs.LedgerCertificateBasedSecurityPrincipalArgs
            {
                LedgerRoleName = "string",
                PemPublicKey = "string",
            },
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := confidentialledger.NewLedger(ctx, "ledgerResource", &confidentialledger.LedgerArgs{
    	AzureadBasedServicePrincipals: confidentialledger.LedgerAzureadBasedServicePrincipalArray{
    		&confidentialledger.LedgerAzureadBasedServicePrincipalArgs{
    			LedgerRoleName: pulumi.String("string"),
    			PrincipalId:    pulumi.String("string"),
    			TenantId:       pulumi.String("string"),
    		},
    	},
    	LedgerType:        pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	CertificateBasedSecurityPrincipals: confidentialledger.LedgerCertificateBasedSecurityPrincipalArray{
    		&confidentialledger.LedgerCertificateBasedSecurityPrincipalArgs{
    			LedgerRoleName: pulumi.String("string"),
    			PemPublicKey:   pulumi.String("string"),
    		},
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var ledgerResource = new Ledger("ledgerResource", LedgerArgs.builder()
        .azureadBasedServicePrincipals(LedgerAzureadBasedServicePrincipalArgs.builder()
            .ledgerRoleName("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .ledgerType("string")
        .resourceGroupName("string")
        .certificateBasedSecurityPrincipals(LedgerCertificateBasedSecurityPrincipalArgs.builder()
            .ledgerRoleName("string")
            .pemPublicKey("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    ledger_resource = azure.confidentialledger.Ledger("ledgerResource",
        azuread_based_service_principals=[{
            "ledger_role_name": "string",
            "principal_id": "string",
            "tenant_id": "string",
        }],
        ledger_type="string",
        resource_group_name="string",
        certificate_based_security_principals=[{
            "ledger_role_name": "string",
            "pem_public_key": "string",
        }],
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const ledgerResource = new azure.confidentialledger.Ledger("ledgerResource", {
        azureadBasedServicePrincipals: [{
            ledgerRoleName: "string",
            principalId: "string",
            tenantId: "string",
        }],
        ledgerType: "string",
        resourceGroupName: "string",
        certificateBasedSecurityPrincipals: [{
            ledgerRoleName: "string",
            pemPublicKey: "string",
        }],
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:confidentialledger:Ledger
    properties:
        azureadBasedServicePrincipals:
            - ledgerRoleName: string
              principalId: string
              tenantId: string
        certificateBasedSecurityPrincipals:
            - ledgerRoleName: string
              pemPublicKey: string
        ledgerType: string
        location: string
        name: string
        resourceGroupName: string
        tags:
            string: string
    

    Ledger Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ledger resource accepts the following input properties:

    AzureadBasedServicePrincipals List<LedgerAzureadBasedServicePrincipal>
    A list of azuread_based_service_principal blocks as defined below.
    LedgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    CertificateBasedSecurityPrincipals List<LedgerCertificateBasedSecurityPrincipal>
    A list of certificate_based_security_principal blocks as defined below.
    Location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the Confidential Ledger.
    AzureadBasedServicePrincipals []LedgerAzureadBasedServicePrincipalArgs
    A list of azuread_based_service_principal blocks as defined below.
    LedgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    CertificateBasedSecurityPrincipals []LedgerCertificateBasedSecurityPrincipalArgs
    A list of certificate_based_security_principal blocks as defined below.
    Location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<LedgerAzureadBasedServicePrincipal>
    A list of azuread_based_service_principal blocks as defined below.
    ledgerType String
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    certificateBasedSecurityPrincipals List<LedgerCertificateBasedSecurityPrincipal>
    A list of certificate_based_security_principal blocks as defined below.
    location String
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals LedgerAzureadBasedServicePrincipal[]
    A list of azuread_based_service_principal blocks as defined below.
    ledgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    certificateBasedSecurityPrincipals LedgerCertificateBasedSecurityPrincipal[]
    A list of certificate_based_security_principal blocks as defined below.
    location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the Confidential Ledger.
    azuread_based_service_principals Sequence[LedgerAzureadBasedServicePrincipalArgs]
    A list of azuread_based_service_principal blocks as defined below.
    ledger_type str
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    certificate_based_security_principals Sequence[LedgerCertificateBasedSecurityPrincipalArgs]
    A list of certificate_based_security_principal blocks as defined below.
    location str
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<Property Map>
    A list of azuread_based_service_principal blocks as defined below.
    ledgerType String
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    certificateBasedSecurityPrincipals List<Property Map>
    A list of certificate_based_security_principal blocks as defined below.
    location String
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the Confidential Ledger.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ledger resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    LedgerEndpoint string
    The Endpoint for this Confidential Ledger.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    LedgerEndpoint string
    The Endpoint for this Confidential Ledger.
    id String
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint String
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint String
    The Endpoint for this Confidential Ledger.
    id string
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint string
    The Endpoint for this Confidential Ledger.
    id str
    The provider-assigned unique ID for this managed resource.
    identity_service_endpoint str
    The Identity Service Endpoint for this Confidential Ledger.
    ledger_endpoint str
    The Endpoint for this Confidential Ledger.
    id String
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint String
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint String
    The Endpoint for this Confidential Ledger.

    Look up Existing Ledger Resource

    Get an existing Ledger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LedgerState, opts?: CustomResourceOptions): Ledger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            azuread_based_service_principals: Optional[Sequence[LedgerAzureadBasedServicePrincipalArgs]] = None,
            certificate_based_security_principals: Optional[Sequence[LedgerCertificateBasedSecurityPrincipalArgs]] = None,
            identity_service_endpoint: Optional[str] = None,
            ledger_endpoint: Optional[str] = None,
            ledger_type: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Ledger
    func GetLedger(ctx *Context, name string, id IDInput, state *LedgerState, opts ...ResourceOption) (*Ledger, error)
    public static Ledger Get(string name, Input<string> id, LedgerState? state, CustomResourceOptions? opts = null)
    public static Ledger get(String name, Output<String> id, LedgerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AzureadBasedServicePrincipals List<LedgerAzureadBasedServicePrincipal>
    A list of azuread_based_service_principal blocks as defined below.
    CertificateBasedSecurityPrincipals List<LedgerCertificateBasedSecurityPrincipal>
    A list of certificate_based_security_principal blocks as defined below.
    IdentityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    LedgerEndpoint string
    The Endpoint for this Confidential Ledger.
    LedgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the Confidential Ledger.
    AzureadBasedServicePrincipals []LedgerAzureadBasedServicePrincipalArgs
    A list of azuread_based_service_principal blocks as defined below.
    CertificateBasedSecurityPrincipals []LedgerCertificateBasedSecurityPrincipalArgs
    A list of certificate_based_security_principal blocks as defined below.
    IdentityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    LedgerEndpoint string
    The Endpoint for this Confidential Ledger.
    LedgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<LedgerAzureadBasedServicePrincipal>
    A list of azuread_based_service_principal blocks as defined below.
    certificateBasedSecurityPrincipals List<LedgerCertificateBasedSecurityPrincipal>
    A list of certificate_based_security_principal blocks as defined below.
    identityServiceEndpoint String
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint String
    The Endpoint for this Confidential Ledger.
    ledgerType String
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals LedgerAzureadBasedServicePrincipal[]
    A list of azuread_based_service_principal blocks as defined below.
    certificateBasedSecurityPrincipals LedgerCertificateBasedSecurityPrincipal[]
    A list of certificate_based_security_principal blocks as defined below.
    identityServiceEndpoint string
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint string
    The Endpoint for this Confidential Ledger.
    ledgerType string
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    location string
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the Confidential Ledger.
    azuread_based_service_principals Sequence[LedgerAzureadBasedServicePrincipalArgs]
    A list of azuread_based_service_principal blocks as defined below.
    certificate_based_security_principals Sequence[LedgerCertificateBasedSecurityPrincipalArgs]
    A list of certificate_based_security_principal blocks as defined below.
    identity_service_endpoint str
    The Identity Service Endpoint for this Confidential Ledger.
    ledger_endpoint str
    The Endpoint for this Confidential Ledger.
    ledger_type str
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    location str
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<Property Map>
    A list of azuread_based_service_principal blocks as defined below.
    certificateBasedSecurityPrincipals List<Property Map>
    A list of certificate_based_security_principal blocks as defined below.
    identityServiceEndpoint String
    The Identity Service Endpoint for this Confidential Ledger.
    ledgerEndpoint String
    The Endpoint for this Confidential Ledger.
    ledgerType String
    Specifies the type of Confidential Ledger. Possible values are Private and Public. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the Confidential Ledger exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Confidential Ledger. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group where the Confidential Ledger exists. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the Confidential Ledger.

    Supporting Types

    LedgerAzureadBasedServicePrincipal, LedgerAzureadBasedServicePrincipalArgs

    LedgerRoleName string
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    PrincipalId string
    Specifies the Principal ID of the AzureAD Service Principal.
    TenantId string
    Specifies the Tenant ID for this AzureAD Service Principal.
    LedgerRoleName string
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    PrincipalId string
    Specifies the Principal ID of the AzureAD Service Principal.
    TenantId string
    Specifies the Tenant ID for this AzureAD Service Principal.
    ledgerRoleName String
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    principalId String
    Specifies the Principal ID of the AzureAD Service Principal.
    tenantId String
    Specifies the Tenant ID for this AzureAD Service Principal.
    ledgerRoleName string
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    principalId string
    Specifies the Principal ID of the AzureAD Service Principal.
    tenantId string
    Specifies the Tenant ID for this AzureAD Service Principal.
    ledger_role_name str
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    principal_id str
    Specifies the Principal ID of the AzureAD Service Principal.
    tenant_id str
    Specifies the Tenant ID for this AzureAD Service Principal.
    ledgerRoleName String
    Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are Administrator, Contributor and Reader.
    principalId String
    Specifies the Principal ID of the AzureAD Service Principal.
    tenantId String
    Specifies the Tenant ID for this AzureAD Service Principal.

    LedgerCertificateBasedSecurityPrincipal, LedgerCertificateBasedSecurityPrincipalArgs

    LedgerRoleName string
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    PemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    LedgerRoleName string
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    PemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName String
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    pemPublicKey String
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName string
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    pemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledger_role_name str
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    pem_public_key str
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName String
    Specifies the Ledger Role to grant this Certificate Security Principal. Possible values are Administrator, Contributor and Reader.
    pemPublicKey String
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.

    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi