Definition

class Definition : KotlinCustomResource

Manages a Lighthouse Definition.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.authorization.AuthorizationFunctions;
import com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;
import com.pulumi.azure.lighthouse.Definition;
import com.pulumi.azure.lighthouse.DefinitionArgs;
import com.pulumi.azure.lighthouse.inputs.DefinitionAuthorizationArgs;
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 contributor = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()
.roleDefinitionId("b24988ac-6180-42a0-ab88-20f7382dd24c")
.build());
var example = new Definition("example", DefinitionArgs.builder()
.description("This is a lighthouse definition created IaC")
.managingTenantId("00000000-0000-0000-0000-000000000000")
.scope("/subscriptions/00000000-0000-0000-0000-000000000000")
.authorizations(DefinitionAuthorizationArgs.builder()
.principalId("00000000-0000-0000-0000-000000000000")
.roleDefinitionId(contributor.applyValue(getRoleDefinitionResult -> getRoleDefinitionResult.roleDefinitionId()))
.principalDisplayName("Tier 1 Support")
.build())
.build());
}
}

Import

Lighthouse Definitions can be imported using the resource id, e.g.

$ pulumi import azure:lighthouse/definition:Definition example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedServices/registrationDefinitions/00000000-0000-0000-0000-000000000000

Properties

Link copied to clipboard

An authorization block as defined below.

Link copied to clipboard
val description: Output<String>?

A description of the Lighthouse Definition.

Link copied to clipboard

An eligible_authorization block as defined below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A unique UUID/GUID which identifies this lighthouse definition - one will be generated if not specified. Changing this forces a new resource to be created.

Link copied to clipboard

The ID of the managing tenant. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

The name of the Lighthouse Definition. Changing this forces a new resource to be created.

Link copied to clipboard
val plan: Output<DefinitionPlan>?

A plan block as defined below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: Output<String>

The ID of the managed subscription. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>