import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog status page email access policy resource. This can be used to control which email addresses can access a private status page. Deny policies take precedence over allow policies. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create new datadog_status_page_email_access_policy resource * const acmePrivateStatusPage = new datadog.StatusPage("acme_private_status_page", { * name: "Acme Private Status", * type: "private", * domainPrefix: "acme-private-status", * visualizationType: "bars_and_uptime_percentage", * }); * // Allow every address in the example.com domain. * const allowDomain = new datadog.StatusPageEmailAccessPolicy("allow_domain", { * pageId: acmePrivateStatusPage.id, * pattern: "@example.com", * effect: "allow", * }); * // Deny a single address. Deny policies take precedence over allow policies. * const denyAddress = new datadog.StatusPageEmailAccessPolicy("deny_address", { * pageId: acmePrivateStatusPage.id, * pattern: "contractor@example.com", * effect: "deny", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/statusPageEmailAccessPolicy:StatusPageEmailAccessPolicy example "09a89ab4-d622-4fbd-87e5-81b4124bd064:7c4f9a3e-2b1d-4e6a-9f0c-3d8b5a1e6c2f" * ``` */ export declare class StatusPageEmailAccessPolicy extends pulumi.CustomResource { /** * Get an existing StatusPageEmailAccessPolicy 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?: StatusPageEmailAccessPolicyState, opts?: pulumi.CustomResourceOptions): StatusPageEmailAccessPolicy; /** * Check whether an existing StatusPageEmailAccessPolicy 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?: StatusPageEmailAccessPolicyState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of StatusPageEmailAccessPolicy. 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 StatusPageEmailAccessPolicy; /** * Timestamp when the email access policy was created. */ readonly createdAt: pulumi.Output; /** * The effect applied when an email address matches the policy. Deny policies take precedence over allow policies. Valid values are `allow`, `deny`. */ readonly effect: pulumi.Output; /** * The ID of the private status page this email access policy belongs to. */ readonly pageId: pulumi.Output; /** * The email address pattern matched by the policy. Supports an exact address (`user@example.com`), all addresses in a domain (`@example.com`), or all addresses in subdomains (`@*.example.com`). */ readonly pattern: pulumi.Output; /** * Create a StatusPageEmailAccessPolicy 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: StatusPageEmailAccessPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StatusPageEmailAccessPolicy resources. */ export interface StatusPageEmailAccessPolicyState { /** * Timestamp when the email access policy was created. */ createdAt?: pulumi.Input; /** * The effect applied when an email address matches the policy. Deny policies take precedence over allow policies. Valid values are `allow`, `deny`. */ effect?: pulumi.Input; /** * The ID of the private status page this email access policy belongs to. */ pageId?: pulumi.Input; /** * The email address pattern matched by the policy. Supports an exact address (`user@example.com`), all addresses in a domain (`@example.com`), or all addresses in subdomains (`@*.example.com`). */ pattern?: pulumi.Input; } /** * The set of arguments for constructing a StatusPageEmailAccessPolicy resource. */ export interface StatusPageEmailAccessPolicyArgs { /** * The effect applied when an email address matches the policy. Deny policies take precedence over allow policies. Valid values are `allow`, `deny`. */ effect: pulumi.Input; /** * The ID of the private status page this email access policy belongs to. */ pageId: pulumi.Input; /** * The email address pattern matched by the policy. Supports an exact address (`user@example.com`), all addresses in a domain (`@example.com`), or all addresses in subdomains (`@*.example.com`). */ pattern: pulumi.Input; } //# sourceMappingURL=statusPageEmailAccessPolicy.d.ts.map