import * as pulumi from "@pulumi/pulumi"; /** * Manages an Attestation 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: "example-resources", * location: "West Europe", * }); * const exampleProvider = new azure.attestation.Provider("example", { * name: "exampleprovider", * resourceGroupName: example.name, * location: example.location, * policySigningCertificateData: std.file({ * input: "./example/cert.pem", * }).then(invoke => invoke.result), * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Attestation` - 2020-10-01 * * ## Import * * Attestation Providers can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:attestation/provider:Provider example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Attestation/attestationProviders/provider1 * ``` */ export declare class Provider extends pulumi.CustomResource { /** * Get an existing Provider 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?: ProviderState, opts?: pulumi.CustomResourceOptions): Provider; /** * Returns true if the given object is an instance of Provider. 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 Provider; /** * The URI of the Attestation Service. */ readonly attestationUri: pulumi.Output; /** * The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Attestation Provider. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ readonly openEnclavePolicyBase64: pulumi.Output; /** * A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created. * * > **Note:** If the `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used. */ readonly policySigningCertificateData: pulumi.Output; /** * The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. * * > **Note:** [More information on the JWT Policies can be found in this article on `learn.microsoft.com`](https://learn.microsoft.com/azure/attestation/author-sign-policy). */ readonly sevSnpPolicyBase64: pulumi.Output; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ readonly sgxEnclavePolicyBase64: pulumi.Output; /** * A mapping of tags which should be assigned to the Attestation Provider. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ readonly tpmPolicyBase64: pulumi.Output; /** * Trust model used for the Attestation Service. */ readonly trustModel: pulumi.Output; /** * Create a Provider 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: ProviderArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Provider resources. */ export interface ProviderState { /** * The URI of the Attestation Service. */ attestationUri?: pulumi.Input; /** * The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Attestation Provider. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ openEnclavePolicyBase64?: pulumi.Input; /** * A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created. * * > **Note:** If the `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used. */ policySigningCertificateData?: pulumi.Input; /** * The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. * * > **Note:** [More information on the JWT Policies can be found in this article on `learn.microsoft.com`](https://learn.microsoft.com/azure/attestation/author-sign-policy). */ sevSnpPolicyBase64?: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ sgxEnclavePolicyBase64?: pulumi.Input; /** * A mapping of tags which should be assigned to the Attestation Provider. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ tpmPolicyBase64?: pulumi.Input; /** * Trust model used for the Attestation Service. */ trustModel?: pulumi.Input; } /** * The set of arguments for constructing a Provider resource. */ export interface ProviderArgs { /** * The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name which should be used for this Attestation Provider. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ openEnclavePolicyBase64?: pulumi.Input; /** * A valid X.509 certificate (Section 4 of [RFC4648](https://tools.ietf.org/html/rfc4648)). Changing this forces a new resource to be created. * * > **Note:** If the `policySigningCertificateData` argument contains more than one valid X.509 certificate only the first certificate will be used. */ policySigningCertificateData?: pulumi.Input; /** * The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. * * > **Note:** [More information on the JWT Policies can be found in this article on `learn.microsoft.com`](https://learn.microsoft.com/azure/attestation/author-sign-policy). */ sevSnpPolicyBase64?: pulumi.Input; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ sgxEnclavePolicyBase64?: pulumi.Input; /** * A mapping of tags which should be assigned to the Attestation Provider. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy. */ tpmPolicyBase64?: pulumi.Input; }