import * as pulumi from "@pulumi/pulumi"; /** * Manages an Automation Connection with type `AzureServicePrincipal`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as std from "@pulumi/std"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "resourceGroup-example", * location: "West Europe", * }); * const example = azure.core.getClientConfig({}); * const exampleAccount = new azure.automation.Account("example", { * name: "account-example", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * skuName: "Basic", * }); * const exampleConnectionServicePrincipal = new azure.automation.ConnectionServicePrincipal("example", { * name: "connection-example", * resourceGroupName: exampleResourceGroup.name, * automationAccountName: exampleAccount.name, * applicationId: "00000000-0000-0000-0000-000000000000", * tenantId: example.then(example => example.tenantId), * subscriptionId: example.then(example => example.subscriptionId), * certificateThumbprint: std.file({ * input: "automation_certificate_test.thumb", * }).then(invoke => invoke.result), * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Automation` - 2024-10-23 * * ## Import * * Automation Connection can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:automation/connectionServicePrincipal:ConnectionServicePrincipal conn1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/connections/conn1 * ``` */ export declare class ConnectionServicePrincipal extends pulumi.CustomResource { /** * Get an existing ConnectionServicePrincipal resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ConnectionServicePrincipalState, opts?: pulumi.CustomResourceOptions): ConnectionServicePrincipal; /** * Returns true if the given object is an instance of ConnectionServicePrincipal. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ConnectionServicePrincipal; /** * The (Client) ID of the Service Principal. */ readonly applicationId: pulumi.Output; /** * The name of the automation account in which the Connection is created. Changing this forces a new resource to be created. */ readonly automationAccountName: pulumi.Output; /** * The thumbprint of the Service Principal Certificate. */ readonly certificateThumbprint: pulumi.Output; /** * A description for this Connection. */ readonly description: pulumi.Output; /** * Specifies the name of the Connection. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which the Connection is created. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The subscription GUID. */ readonly subscriptionId: pulumi.Output; /** * The ID of the Tenant the Service Principal is assigned in. */ readonly tenantId: pulumi.Output; /** * Create a ConnectionServicePrincipal resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConnectionServicePrincipalArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ConnectionServicePrincipal resources. */ export interface ConnectionServicePrincipalState { /** * The (Client) ID of the Service Principal. */ applicationId?: pulumi.Input; /** * The name of the automation account in which the Connection is created. Changing this forces a new resource to be created. */ automationAccountName?: pulumi.Input; /** * The thumbprint of the Service Principal Certificate. */ certificateThumbprint?: pulumi.Input; /** * A description for this Connection. */ description?: pulumi.Input; /** * Specifies the name of the Connection. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Connection is created. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The subscription GUID. */ subscriptionId?: pulumi.Input; /** * The ID of the Tenant the Service Principal is assigned in. */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a ConnectionServicePrincipal resource. */ export interface ConnectionServicePrincipalArgs { /** * The (Client) ID of the Service Principal. */ applicationId: pulumi.Input; /** * The name of the automation account in which the Connection is created. Changing this forces a new resource to be created. */ automationAccountName: pulumi.Input; /** * The thumbprint of the Service Principal Certificate. */ certificateThumbprint: pulumi.Input; /** * A description for this Connection. */ description?: pulumi.Input; /** * Specifies the name of the Connection. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Connection is created. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The subscription GUID. */ subscriptionId: pulumi.Input; /** * The ID of the Tenant the Service Principal is assigned in. */ tenantId: pulumi.Input; }