import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Global configuration extends domain configuration capabilities with the following advantages: increases the capacity of denylist and allowlist. For example, an IP denylist can contain up to 30,000 entries. Improves domain configuration efficiency. A single global configuration can be associated with multiple domains. Provides a common list type that can be used in additional domain configurations. Modifications to a global configuration are immediately applied to all associated domains. * * ## Import * * ```sh * $ pulumi import volcenginecc:cdn/shareConfig:ShareConfig example "config_name" * ``` */ export declare class ShareConfig extends pulumi.CustomResource { /** * Get an existing ShareConfig 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?: ShareConfigState, opts?: pulumi.CustomResourceOptions): ShareConfig; /** * Returns true if the given object is an instance of ShareConfig. 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 ShareConfig; /** * Specifies the configuration for an IP allowlist, where ConfigType is allow*ip*access*rule. */ readonly allowIpAccessRule: pulumi.Output; /** * Indicates a configuration for a Referer allowlist. The corresponding ConfigType is allow*referer*access*rule. */ readonly allowRefererAccessRule: pulumi.Output; /** * Specifies the configuration for a common list, where ConfigType is common*match*list. */ readonly commonMatchList: pulumi.Output; /** * Specifies the name of the global configuration. Naming requirements: Names can include Chinese characters, letters, numbers, and underscores (_), and must be 3–45 characters long. One Chinese character counts as 3 characters. The name cannot be the same as any existing global configuration name under the primary account. */ readonly configName: pulumi.Output; /** * This parameter specifies the type of global configuration. Available values are: deny*ip*access*rule: indicates an IP denylist. allow*ip*access*rule: indicates an IP allowlist. deny*referer*access*rule: indicates a Referer denylist. allow*referer*access*rule: indicates a Referer allowlist. common*match*list: indicates a common list. */ readonly configType: pulumi.Output; /** * Specifies the configuration for an IP denylist, where ConfigType is deny*ip*access*rule. */ readonly denyIpAccessRule: pulumi.Output; /** * Indicates a configuration for a Referer denylist. The corresponding ConfigType is deny*referer*access*rule. */ readonly denyRefererAccessRule: pulumi.Output; /** * Indicates the number of accelerated domains associated with this global configuration. */ readonly domainCount: pulumi.Output; /** * Specifies the project name to which the global configuration belongs. */ readonly project: pulumi.Output; /** * Specifies the HTML code for the custom error page. */ readonly ruleContent: pulumi.Output; /** * Indicates the last modification time of this global configuration, in Unix timestamp. */ readonly updatedTime: pulumi.Output; /** * Create a ShareConfig 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?: ShareConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ShareConfig resources. */ export interface ShareConfigState { /** * Specifies the configuration for an IP allowlist, where ConfigType is allow*ip*access*rule. */ allowIpAccessRule?: pulumi.Input; /** * Indicates a configuration for a Referer allowlist. The corresponding ConfigType is allow*referer*access*rule. */ allowRefererAccessRule?: pulumi.Input; /** * Specifies the configuration for a common list, where ConfigType is common*match*list. */ commonMatchList?: pulumi.Input; /** * Specifies the name of the global configuration. Naming requirements: Names can include Chinese characters, letters, numbers, and underscores (_), and must be 3–45 characters long. One Chinese character counts as 3 characters. The name cannot be the same as any existing global configuration name under the primary account. */ configName?: pulumi.Input; /** * This parameter specifies the type of global configuration. Available values are: deny*ip*access*rule: indicates an IP denylist. allow*ip*access*rule: indicates an IP allowlist. deny*referer*access*rule: indicates a Referer denylist. allow*referer*access*rule: indicates a Referer allowlist. common*match*list: indicates a common list. */ configType?: pulumi.Input; /** * Specifies the configuration for an IP denylist, where ConfigType is deny*ip*access*rule. */ denyIpAccessRule?: pulumi.Input; /** * Indicates a configuration for a Referer denylist. The corresponding ConfigType is deny*referer*access*rule. */ denyRefererAccessRule?: pulumi.Input; /** * Indicates the number of accelerated domains associated with this global configuration. */ domainCount?: pulumi.Input; /** * Specifies the project name to which the global configuration belongs. */ project?: pulumi.Input; /** * Specifies the HTML code for the custom error page. */ ruleContent?: pulumi.Input; /** * Indicates the last modification time of this global configuration, in Unix timestamp. */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a ShareConfig resource. */ export interface ShareConfigArgs { /** * Specifies the configuration for an IP allowlist, where ConfigType is allow*ip*access*rule. */ allowIpAccessRule?: pulumi.Input; /** * Indicates a configuration for a Referer allowlist. The corresponding ConfigType is allow*referer*access*rule. */ allowRefererAccessRule?: pulumi.Input; /** * Specifies the configuration for a common list, where ConfigType is common*match*list. */ commonMatchList?: pulumi.Input; /** * Specifies the name of the global configuration. Naming requirements: Names can include Chinese characters, letters, numbers, and underscores (_), and must be 3–45 characters long. One Chinese character counts as 3 characters. The name cannot be the same as any existing global configuration name under the primary account. */ configName?: pulumi.Input; /** * This parameter specifies the type of global configuration. Available values are: deny*ip*access*rule: indicates an IP denylist. allow*ip*access*rule: indicates an IP allowlist. deny*referer*access*rule: indicates a Referer denylist. allow*referer*access*rule: indicates a Referer allowlist. common*match*list: indicates a common list. */ configType?: pulumi.Input; /** * Specifies the configuration for an IP denylist, where ConfigType is deny*ip*access*rule. */ denyIpAccessRule?: pulumi.Input; /** * Indicates a configuration for a Referer denylist. The corresponding ConfigType is deny*referer*access*rule. */ denyRefererAccessRule?: pulumi.Input; /** * Specifies the project name to which the global configuration belongs. */ project?: pulumi.Input; }