import * as pulumi from "@pulumi/pulumi"; /** * Manages a certificate in an Azure Batch account. * * > **Note:** The `azure.batch.Certificate` resource has been deprecated due to Azure retiring the Azure Batch Account Certificates Feature, and will be removed in v5.0 of the AzureRM provider. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as std from "@pulumi/std"; * * const example = new azure.core.ResourceGroup("example", { * name: "testbatch", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "teststorage", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleAccount2 = new azure.batch.Account("example", { * name: "testbatchaccount", * resourceGroupName: example.name, * location: example.location, * poolAllocationMode: "BatchService", * storageAccountId: exampleAccount.id, * storageAccountAuthenticationMode: "StorageKeys", * tags: { * env: "test", * }, * }); * const exampleCertificate = new azure.batch.Certificate("example", { * resourceGroupName: example.name, * accountName: exampleAccount2.name, * certificate: std.filebase64({ * input: "certificate.pfx", * }).then(invoke => invoke.result), * format: "Pfx", * password: "password", * thumbprint: "42C107874FD0E4A9583292A2F1098E8FE4B2EDDA", * thumbprintAlgorithm: "SHA1", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Batch` - 2024-07-01 * * ## Import * * Batch Certificates can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:batch/certificate:Certificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Batch/batchAccounts/batch1/certificates/certificate1 * ``` */ export declare class Certificate extends pulumi.CustomResource { /** * Get an existing Certificate 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?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate; /** * Returns true if the given object is an instance of Certificate. 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 Certificate; /** * Specifies the name of the Batch account. Changing this forces a new resource to be created. */ readonly accountName: pulumi.Output; /** * The base64-encoded contents of the certificate. */ readonly certificate: pulumi.Output; /** * The format of the certificate. Possible values are `Cer` or `Pfx`. */ readonly format: pulumi.Output; /** * The generated name of the certificate. */ readonly name: pulumi.Output; /** * The password to access the certificate's private key. This can only be specified when `format` is `Pfx`. */ readonly password: pulumi.Output; /** * The public key of the certificate. */ readonly publicData: pulumi.Output; /** * The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The thumbprint of the certificate. Changing this forces a new resource to be created. */ readonly thumbprint: pulumi.Output; /** * The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created. */ readonly thumbprintAlgorithm: pulumi.Output; /** * Create a Certificate 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: CertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Certificate resources. */ export interface CertificateState { /** * Specifies the name of the Batch account. Changing this forces a new resource to be created. */ accountName?: pulumi.Input; /** * The base64-encoded contents of the certificate. */ certificate?: pulumi.Input; /** * The format of the certificate. Possible values are `Cer` or `Pfx`. */ format?: pulumi.Input; /** * The generated name of the certificate. */ name?: pulumi.Input; /** * The password to access the certificate's private key. This can only be specified when `format` is `Pfx`. */ password?: pulumi.Input; /** * The public key of the certificate. */ publicData?: pulumi.Input; /** * The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The thumbprint of the certificate. Changing this forces a new resource to be created. */ thumbprint?: pulumi.Input; /** * The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created. */ thumbprintAlgorithm?: pulumi.Input; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { /** * Specifies the name of the Batch account. Changing this forces a new resource to be created. */ accountName: pulumi.Input; /** * The base64-encoded contents of the certificate. */ certificate: pulumi.Input; /** * The format of the certificate. Possible values are `Cer` or `Pfx`. */ format: pulumi.Input; /** * The password to access the certificate's private key. This can only be specified when `format` is `Pfx`. */ password?: pulumi.Input; /** * The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The thumbprint of the certificate. Changing this forces a new resource to be created. */ thumbprint: pulumi.Input; /** * The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created. */ thumbprintAlgorithm: pulumi.Input; }