import * as pulumi from "@pulumi/pulumi"; /** * Manages HMAC-SHA256 signing keys used to verify HTTP Message Signatures on Network ACL rules. The key material (`value`) is write-only: it is not returned by the API and is not stored in Terraform state. Changes are detected by comparing SHA-256 fingerprints. (EA Only) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Create an HMAC-SHA256 key for Network ACL HTTP Message Signature verification. * // The key material (value) is write-only and not stored in Pulumi state. * const myKey = new auth0.NetworkAclKey("my_key", { * name: "my-hmac-key", * alg: "hmac-sha256", * value: hmacKeyBase64, * }); * // Reference the key in a Network ACL rule to allow only signed requests. * const allowSignedOnly = new auth0.NetworkAcl("allow_signed_only", { * rule: { * action: { * block: true, * }, * notMatch: { * httpMessageSignature: { * keys: [{ * id: myKey.id, * }], * }, * }, * scope: "tenant", * }, * description: "Block requests without a valid HMAC signature", * active: true, * priority: 99, * }); * ``` */ export declare class NetworkAclKey extends pulumi.CustomResource { /** * Get an existing NetworkAclKey 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?: NetworkAclKeyState, opts?: pulumi.CustomResourceOptions): NetworkAclKey; /** * Check whether an existing NetworkAclKey resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: NetworkAclKeyState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of NetworkAclKey. 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 NetworkAclKey; /** * Algorithm used for the key. Currently only `hmac-sha256` is supported. */ readonly alg: pulumi.Output; /** * Time when the key was created. */ readonly createdAt: pulumi.Output; /** * SHA-256 fingerprint of the decoded key material (lowercase hex). Used for drift detection. */ readonly fingerprint: pulumi.Output; /** * User-supplied label for the key. Must be unique across all Network ACL keys for the tenant. Max 255 characters. */ readonly name: pulumi.Output; /** * Time when the key was last updated. */ readonly updatedAt: pulumi.Output; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Base64-encoded raw key material. The decoded value must be between 32 and 512 bytes. This field is write-only: it is not returned by the API and not stored in Terraform state. Changes are detected by comparing SHA-256 fingerprints. */ readonly value: pulumi.Output; /** * Create a NetworkAclKey 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: NetworkAclKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkAclKey resources. */ export interface NetworkAclKeyState { /** * Algorithm used for the key. Currently only `hmac-sha256` is supported. */ alg?: pulumi.Input; /** * Time when the key was created. */ createdAt?: pulumi.Input; /** * SHA-256 fingerprint of the decoded key material (lowercase hex). Used for drift detection. */ fingerprint?: pulumi.Input; /** * User-supplied label for the key. Must be unique across all Network ACL keys for the tenant. Max 255 characters. */ name?: pulumi.Input; /** * Time when the key was last updated. */ updatedAt?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Base64-encoded raw key material. The decoded value must be between 32 and 512 bytes. This field is write-only: it is not returned by the API and not stored in Terraform state. Changes are detected by comparing SHA-256 fingerprints. */ value?: pulumi.Input; } /** * The set of arguments for constructing a NetworkAclKey resource. */ export interface NetworkAclKeyArgs { /** * Algorithm used for the key. Currently only `hmac-sha256` is supported. */ alg: pulumi.Input; /** * User-supplied label for the key. Must be unique across all Network ACL keys for the tenant. Max 255 characters. */ name?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * Base64-encoded raw key material. The decoded value must be between 32 and 512 bytes. This field is write-only: it is not returned by the API and not stored in Terraform state. Changes are detected by comparing SHA-256 fingerprints. */ value: pulumi.Input; } //# sourceMappingURL=networkAclKey.d.ts.map