import * as pulumi from "@pulumi/pulumi"; import * as enums from "../../types/enums"; /** * Creates a new GatewaySecurityPolicy in a given project and location. * Auto-naming is currently not supported for this resource. */ export declare class Rule extends pulumi.CustomResource { /** * Get an existing Rule 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Rule; /** * Returns true if the given object is an instance of Rule. 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 Rule; /** * Optional. CEL expression for matching on L7/application level criteria. */ readonly applicationMatcher: pulumi.Output; /** * Profile which tells what the primitive action should be. */ readonly basicProfile: pulumi.Output; /** * Time when the rule was created. */ readonly createTime: pulumi.Output; /** * Optional. Free-text description of the resource. */ readonly description: pulumi.Output; /** * Whether the rule is enforced. */ readonly enabled: pulumi.Output; readonly gatewaySecurityPolicyId: pulumi.Output; /** * The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */ readonly gatewaySecurityPolicyRuleId: pulumi.Output; readonly location: pulumi.Output; /** * Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). */ readonly name: pulumi.Output; /** * Priority of the rule. Lower number corresponds to higher precedence. */ readonly priority: pulumi.Output; readonly project: pulumi.Output; /** * CEL expression for matching on session criteria. */ readonly sessionMatcher: pulumi.Output; /** * Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. */ readonly tlsInspectionEnabled: pulumi.Output; /** * Time when the rule was updated. */ readonly updateTime: pulumi.Output; /** * Create a Rule 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: RuleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Optional. CEL expression for matching on L7/application level criteria. */ applicationMatcher?: pulumi.Input; /** * Profile which tells what the primitive action should be. */ basicProfile: pulumi.Input; /** * Optional. Free-text description of the resource. */ description?: pulumi.Input; /** * Whether the rule is enforced. */ enabled: pulumi.Input; gatewaySecurityPolicyId: pulumi.Input; /** * The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */ gatewaySecurityPolicyRuleId?: pulumi.Input; location?: pulumi.Input; /** * Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). */ name: pulumi.Input; /** * Priority of the rule. Lower number corresponds to higher precedence. */ priority: pulumi.Input; project?: pulumi.Input; /** * CEL expression for matching on session criteria. */ sessionMatcher: pulumi.Input; /** * Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. */ tlsInspectionEnabled?: pulumi.Input; }