import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface SecurityGroupRuleSetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#id SecurityGroupRuleSet#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; /** * ID of the security group to be queried. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#security_group_id SecurityGroupRuleSet#security_group_id} */ readonly securityGroupId: string; /** * egress block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#egress SecurityGroupRuleSet#egress} */ readonly egress?: SecurityGroupRuleSetEgress[] | cdktf.IResolvable; /** * ingress block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#ingress SecurityGroupRuleSet#ingress} */ readonly ingress?: SecurityGroupRuleSetIngress[] | cdktf.IResolvable; } export interface SecurityGroupRuleSetEgress { /** * Rule policy of security group. Valid values: `ACCEPT` and `DROP`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#action SecurityGroupRuleSet#action} */ readonly action: string; /** * Specify Group ID of Address template like `ipmg-xxxxxxxx`, conflict with `source_security_id` and `cidr_block`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#address_template_group SecurityGroupRuleSet#address_template_group} */ readonly addressTemplateGroup?: string; /** * Specify Address template ID like `ipm-xxxxxxxx`, conflict with `source_security_id` and `cidr_block`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#address_template_id SecurityGroupRuleSet#address_template_id} */ readonly addressTemplateId?: string; /** * An IP address network or CIDR segment. NOTE: `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` are exclusive and cannot be set in the same time; One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#cidr_block SecurityGroupRuleSet#cidr_block} */ readonly cidrBlock?: string; /** * Description of the security group rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#description SecurityGroupRuleSet#description} */ readonly description?: string; /** * An IPV6 address network or CIDR segment, and conflict with `source_security_id` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#ipv6_cidr_block SecurityGroupRuleSet#ipv6_cidr_block} */ readonly ipv6CidrBlock?: string; /** * Range of the port. The available value can be `all`, a single port, or a port range. E.g. `80`, `80,90`, `80-90` or `all`. Note: If the `Protocol` value is set to `ALL`, the `Port` value also needs to be set to `all`. Default to all ports, and conflicts with `service_template_*`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#port SecurityGroupRuleSet#port} */ readonly port?: string; /** * Type of IP protocol. Valid values: `TCP`, `UDP`, `ICMP`, `ICMPv6` and `ALL`. Default to all types protocol, and conflicts with `service_template_*`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#protocol SecurityGroupRuleSet#protocol} */ readonly protocol?: string; /** * Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `protocol` and `port`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#service_template_group SecurityGroupRuleSet#service_template_group} */ readonly serviceTemplateGroup?: string; /** * Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `protocol` and `port`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#service_template_id SecurityGroupRuleSet#service_template_id} */ readonly serviceTemplateId?: string; /** * ID of the nested security group, and conflicts with `cidr_block` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#source_security_id SecurityGroupRuleSet#source_security_id} */ readonly sourceSecurityId?: string; } export declare function securityGroupRuleSetEgressToTerraform(struct?: SecurityGroupRuleSetEgress | cdktf.IResolvable): any; export declare function securityGroupRuleSetEgressToHclTerraform(struct?: SecurityGroupRuleSetEgress | cdktf.IResolvable): any; export declare class SecurityGroupRuleSetEgressOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): SecurityGroupRuleSetEgress | cdktf.IResolvable | undefined; set internalValue(value: SecurityGroupRuleSetEgress | cdktf.IResolvable | undefined); private _action?; get action(): string; set action(value: string); get actionInput(): string; private _addressTemplateGroup?; get addressTemplateGroup(): string; set addressTemplateGroup(value: string); resetAddressTemplateGroup(): void; get addressTemplateGroupInput(): string; private _addressTemplateId?; get addressTemplateId(): string; set addressTemplateId(value: string); resetAddressTemplateId(): void; get addressTemplateIdInput(): string; private _cidrBlock?; get cidrBlock(): string; set cidrBlock(value: string); resetCidrBlock(): void; get cidrBlockInput(): string; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _ipv6CidrBlock?; get ipv6CidrBlock(): string; set ipv6CidrBlock(value: string); resetIpv6CidrBlock(): void; get ipv6CidrBlockInput(): string; get policyIndex(): any; private _port?; get port(): string; set port(value: string); resetPort(): void; get portInput(): string; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string; private _serviceTemplateGroup?; get serviceTemplateGroup(): string; set serviceTemplateGroup(value: string); resetServiceTemplateGroup(): void; get serviceTemplateGroupInput(): string; private _serviceTemplateId?; get serviceTemplateId(): string; set serviceTemplateId(value: string); resetServiceTemplateId(): void; get serviceTemplateIdInput(): string; private _sourceSecurityId?; get sourceSecurityId(): string; set sourceSecurityId(value: string); resetSourceSecurityId(): void; get sourceSecurityIdInput(): string; } export declare class SecurityGroupRuleSetEgressList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: SecurityGroupRuleSetEgress[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): SecurityGroupRuleSetEgressOutputReference; } export interface SecurityGroupRuleSetIngress { /** * Rule policy of security group. Valid values: `ACCEPT` and `DROP`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#action SecurityGroupRuleSet#action} */ readonly action: string; /** * Specify Group ID of Address template like `ipmg-xxxxxxxx`, conflict with `source_security_id` and `cidr_block`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#address_template_group SecurityGroupRuleSet#address_template_group} */ readonly addressTemplateGroup?: string; /** * Specify Address template ID like `ipm-xxxxxxxx`, conflict with `source_security_id` and `cidr_block`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#address_template_id SecurityGroupRuleSet#address_template_id} */ readonly addressTemplateId?: string; /** * An IP address network or CIDR segment. NOTE: `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` are exclusive and cannot be set in the same time; One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#cidr_block SecurityGroupRuleSet#cidr_block} */ readonly cidrBlock?: string; /** * Description of the security group rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#description SecurityGroupRuleSet#description} */ readonly description?: string; /** * An IPV6 address network or CIDR segment, and conflict with `source_security_id` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#ipv6_cidr_block SecurityGroupRuleSet#ipv6_cidr_block} */ readonly ipv6CidrBlock?: string; /** * Range of the port. The available value can be `all`, a single port, or a port range. E.g. `80`, `80,90`, `80-90` or `all`. Note: If the `Protocol` value is set to `ALL`, the `Port` value also needs to be set to `all`. Default to all ports, and conflicts with `service_template_*`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#port SecurityGroupRuleSet#port} */ readonly port?: string; /** * Type of IP protocol. Valid values: `TCP`, `UDP`, `ICMP`, `ICMPv6` and `ALL`. Default to all types protocol, and conflicts with `service_template_*`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#protocol SecurityGroupRuleSet#protocol} */ readonly protocol?: string; /** * Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `protocol` and `port`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#service_template_group SecurityGroupRuleSet#service_template_group} */ readonly serviceTemplateGroup?: string; /** * Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `protocol` and `port`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#service_template_id SecurityGroupRuleSet#service_template_id} */ readonly serviceTemplateId?: string; /** * ID of the nested security group, and conflicts with `cidr_block` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#source_security_id SecurityGroupRuleSet#source_security_id} */ readonly sourceSecurityId?: string; } export declare function securityGroupRuleSetIngressToTerraform(struct?: SecurityGroupRuleSetIngress | cdktf.IResolvable): any; export declare function securityGroupRuleSetIngressToHclTerraform(struct?: SecurityGroupRuleSetIngress | cdktf.IResolvable): any; export declare class SecurityGroupRuleSetIngressOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): SecurityGroupRuleSetIngress | cdktf.IResolvable | undefined; set internalValue(value: SecurityGroupRuleSetIngress | cdktf.IResolvable | undefined); private _action?; get action(): string; set action(value: string); get actionInput(): string; private _addressTemplateGroup?; get addressTemplateGroup(): string; set addressTemplateGroup(value: string); resetAddressTemplateGroup(): void; get addressTemplateGroupInput(): string; private _addressTemplateId?; get addressTemplateId(): string; set addressTemplateId(value: string); resetAddressTemplateId(): void; get addressTemplateIdInput(): string; private _cidrBlock?; get cidrBlock(): string; set cidrBlock(value: string); resetCidrBlock(): void; get cidrBlockInput(): string; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _ipv6CidrBlock?; get ipv6CidrBlock(): string; set ipv6CidrBlock(value: string); resetIpv6CidrBlock(): void; get ipv6CidrBlockInput(): string; get policyIndex(): any; private _port?; get port(): string; set port(value: string); resetPort(): void; get portInput(): string; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string; private _serviceTemplateGroup?; get serviceTemplateGroup(): string; set serviceTemplateGroup(value: string); resetServiceTemplateGroup(): void; get serviceTemplateGroupInput(): string; private _serviceTemplateId?; get serviceTemplateId(): string; set serviceTemplateId(value: string); resetServiceTemplateId(): void; get serviceTemplateIdInput(): string; private _sourceSecurityId?; get sourceSecurityId(): string; set sourceSecurityId(value: string); resetSourceSecurityId(): void; get sourceSecurityIdInput(): string; } export declare class SecurityGroupRuleSetIngressList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: SecurityGroupRuleSetIngress[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): SecurityGroupRuleSetIngressOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set tencentcloud_security_group_rule_set} */ export declare class SecurityGroupRuleSet extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_security_group_rule_set"; /** * Generates CDKTF code for importing a SecurityGroupRuleSet 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 SecurityGroupRuleSet to import * @param importFromId The id of the existing SecurityGroupRuleSet that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the SecurityGroupRuleSet 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/tencentcloudstack/tencentcloud/1.82.49/docs/resources/security_group_rule_set tencentcloud_security_group_rule_set} 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 SecurityGroupRuleSetConfig */ constructor(scope: Construct, id: string, config: SecurityGroupRuleSetConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _securityGroupId?; get securityGroupId(): string; set securityGroupId(value: string); get securityGroupIdInput(): string; get version(): any; private _egress; get egress(): SecurityGroupRuleSetEgressList; putEgress(value: SecurityGroupRuleSetEgress[] | cdktf.IResolvable): void; resetEgress(): void; get egressInput(): any; private _ingress; get ingress(): SecurityGroupRuleSetIngressList; putIngress(value: SecurityGroupRuleSetIngress[] | cdktf.IResolvable): void; resetIngress(): void; get ingressInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }