UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

158 lines (157 loc) 7.79 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface AppEngineFirewallRuleConfig extends cdktf.TerraformMetaArguments { /** * The action to take if this rule matches. Possible values: ["UNSPECIFIED_ACTION", "ALLOW", "DENY"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#action AppEngineFirewallRule#action} */ readonly action: string; /** * An optional string description of this rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#description AppEngineFirewallRule#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#id AppEngineFirewallRule#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * A positive integer that defines the order of rule evaluation. * Rules with the lowest priority are evaluated first. * * A default rule at priority Int32.MaxValue matches all IPv4 and * IPv6 traffic when no previous rule matches. Only the action of * this rule can be modified by the user. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#priority AppEngineFirewallRule#priority} */ readonly priority?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#project AppEngineFirewallRule#project} */ readonly project?: string; /** * IP address or range, defined using CIDR notation, of requests that this rule applies to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#source_range AppEngineFirewallRule#source_range} */ readonly sourceRange: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#timeouts AppEngineFirewallRule#timeouts} */ readonly timeouts?: AppEngineFirewallRuleTimeouts; } export interface AppEngineFirewallRuleTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#create AppEngineFirewallRule#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#delete AppEngineFirewallRule#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#update AppEngineFirewallRule#update} */ readonly update?: string; } export declare function appEngineFirewallRuleTimeoutsToTerraform(struct?: AppEngineFirewallRuleTimeouts | cdktf.IResolvable): any; export declare function appEngineFirewallRuleTimeoutsToHclTerraform(struct?: AppEngineFirewallRuleTimeouts | cdktf.IResolvable): any; export declare class AppEngineFirewallRuleTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): AppEngineFirewallRuleTimeouts | cdktf.IResolvable | undefined; set internalValue(value: AppEngineFirewallRuleTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string | undefined; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string | undefined; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule google_app_engine_firewall_rule} */ export declare class AppEngineFirewallRule extends cdktf.TerraformResource { static readonly tfResourceType = "google_app_engine_firewall_rule"; /** * Generates CDKTF code for importing a AppEngineFirewallRule resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the AppEngineFirewallRule to import * @param importFromId The id of the existing AppEngineFirewallRule that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the AppEngineFirewallRule to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource; /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/app_engine_firewall_rule google_app_engine_firewall_rule} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options AppEngineFirewallRuleConfig */ constructor(scope: Construct, id: string, config: AppEngineFirewallRuleConfig); private _action?; get action(): string; set action(value: string); get actionInput(): string | undefined; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _priority?; get priority(): number; set priority(value: number); resetPriority(): void; get priorityInput(): number | undefined; private _project?; get project(): string; set project(value: string); resetProject(): void; get projectInput(): string | undefined; private _sourceRange?; get sourceRange(): string; set sourceRange(value: string); get sourceRangeInput(): string | undefined; private _timeouts; get timeouts(): AppEngineFirewallRuleTimeoutsOutputReference; putTimeouts(value: AppEngineFirewallRuleTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | AppEngineFirewallRuleTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }