import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface VpcSecurityGroupRuleConfig extends cdktf.TerraformMetaArguments { /** * The resource description. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#description VpcSecurityGroupRule#description} */ readonly description?: string; /** * Direction of the Security group rule. Can be `ingress` (inbound network traffic to the VPC network) or `egress` (outbound network traffic from the VPC network). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#direction VpcSecurityGroupRule#direction} */ readonly direction: string; /** * Minimum port number. Applicable for TCP and UDP protocols. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#from_port VpcSecurityGroupRule#from_port} */ readonly fromPort?: number; /** * A set of key/value label pairs which assigned to resource. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#labels VpcSecurityGroupRule#labels} */ readonly labels?: { [key: string]: string; }; /** * Port number (if applied to a single port). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#port VpcSecurityGroupRule#port} */ readonly port?: number; /** * Special-purpose targets. The `self_security_group` target refers to this particular security group. The `loadbalancer_healthchecks` target represents [NLB health check nodes](https://yandex.cloud/docs/network-load-balancer/concepts/health-check). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#predefined_target VpcSecurityGroupRule#predefined_target} */ readonly predefinedTarget?: string; /** * Specific network protocol. Can be one of `ANY`, `TCP`, `UDP`, `ICMP`, `IPV6_ICMP`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#protocol VpcSecurityGroupRule#protocol} */ readonly protocol?: string; /** * The id of target security group which rule belongs to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#security_group_binding VpcSecurityGroupRule#security_group_binding} */ readonly securityGroupBinding: string; /** * Target security group ID for this Security group rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#security_group_id VpcSecurityGroupRule#security_group_id} */ readonly securityGroupId?: string; /** * Maximum port number. Applicable for TCP and UDP protocols. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#to_port VpcSecurityGroupRule#to_port} */ readonly toPort?: number; /** * The list of IPv4 CIDR prefixes for this Security group rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#v4_cidr_blocks VpcSecurityGroupRule#v4_cidr_blocks} */ readonly v4CidrBlocks?: string[]; /** * The list of IPv6 CIDR prefixes for this Security group rule. Not supported yet. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#v6_cidr_blocks VpcSecurityGroupRule#v6_cidr_blocks} */ readonly v6CidrBlocks?: string[]; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#timeouts VpcSecurityGroupRule#timeouts} */ readonly timeouts?: VpcSecurityGroupRuleTimeouts; } export interface VpcSecurityGroupRuleTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#create VpcSecurityGroupRule#create} */ readonly create?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#delete VpcSecurityGroupRule#delete} */ readonly delete?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#update VpcSecurityGroupRule#update} */ readonly update?: string; } export declare function vpcSecurityGroupRuleTimeoutsToTerraform(struct?: VpcSecurityGroupRuleTimeouts | cdktf.IResolvable): any; export declare function vpcSecurityGroupRuleTimeoutsToHclTerraform(struct?: VpcSecurityGroupRuleTimeouts | cdktf.IResolvable): any; export declare class VpcSecurityGroupRuleTimeoutsOutputReference 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(): VpcSecurityGroupRuleTimeouts | cdktf.IResolvable | undefined; set internalValue(value: VpcSecurityGroupRuleTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule yandex_vpc_security_group_rule} */ export declare class VpcSecurityGroupRule extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_vpc_security_group_rule"; /** * Generates CDKTF code for importing a VpcSecurityGroupRule resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the VpcSecurityGroupRule to import * @param importFromId The id of the existing VpcSecurityGroupRule that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the VpcSecurityGroupRule to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/vpc_security_group_rule yandex_vpc_security_group_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 VpcSecurityGroupRuleConfig */ constructor(scope: Construct, id: string, config: VpcSecurityGroupRuleConfig); private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _direction?; get direction(): string; set direction(value: string); get directionInput(): string; private _fromPort?; get fromPort(): number; set fromPort(value: number); resetFromPort(): void; get fromPortInput(): number; get id(): any; private _labels?; get labels(): { [key: string]: string; }; set labels(value: { [key: string]: string; }); resetLabels(): void; get labelsInput(): { [key: string]: string; }; private _port?; get port(): number; set port(value: number); resetPort(): void; get portInput(): number; private _predefinedTarget?; get predefinedTarget(): string; set predefinedTarget(value: string); resetPredefinedTarget(): void; get predefinedTargetInput(): string; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string; private _securityGroupBinding?; get securityGroupBinding(): string; set securityGroupBinding(value: string); get securityGroupBindingInput(): string; private _securityGroupId?; get securityGroupId(): string; set securityGroupId(value: string); resetSecurityGroupId(): void; get securityGroupIdInput(): string; private _toPort?; get toPort(): number; set toPort(value: number); resetToPort(): void; get toPortInput(): number; private _v4CidrBlocks?; get v4CidrBlocks(): string[]; set v4CidrBlocks(value: string[]); resetV4CidrBlocks(): void; get v4CidrBlocksInput(): string[]; private _v6CidrBlocks?; get v6CidrBlocks(): string[]; set v6CidrBlocks(value: string[]); resetV6CidrBlocks(): void; get v6CidrBlocksInput(): string[]; private _timeouts; get timeouts(): VpcSecurityGroupRuleTimeoutsOutputReference; putTimeouts(value: VpcSecurityGroupRuleTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }