UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

348 lines (347 loc) 15.4 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface NetworkAclConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#egress NetworkAcl#egress} */ readonly egress?: NetworkAclEgress[] | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#id NetworkAcl#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; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#ingress NetworkAcl#ingress} */ readonly ingress?: NetworkAclIngress[] | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#subnet_ids NetworkAcl#subnet_ids} */ readonly subnetIds?: string[]; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#tags NetworkAcl#tags} */ readonly tags?: { [key: string]: string; }; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#tags_all NetworkAcl#tags_all} */ readonly tagsAll?: { [key: string]: string; }; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#vpc_id NetworkAcl#vpc_id} */ readonly vpcId: string; } export interface NetworkAclEgress { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#action NetworkAcl#action} */ readonly action?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#cidr_block NetworkAcl#cidr_block} */ readonly cidrBlock?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#from_port NetworkAcl#from_port} */ readonly fromPort?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#icmp_code NetworkAcl#icmp_code} */ readonly icmpCode?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#icmp_type NetworkAcl#icmp_type} */ readonly icmpType?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#ipv6_cidr_block NetworkAcl#ipv6_cidr_block} */ readonly ipv6CidrBlock?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#protocol NetworkAcl#protocol} */ readonly protocol?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#rule_no NetworkAcl#rule_no} */ readonly ruleNo?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#to_port NetworkAcl#to_port} */ readonly toPort?: number; } export declare function networkAclEgressToTerraform(struct?: NetworkAclEgress | cdktf.IResolvable): any; export declare function networkAclEgressToHclTerraform(struct?: NetworkAclEgress | cdktf.IResolvable): any; export declare class NetworkAclEgressOutputReference 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(): NetworkAclEgress | cdktf.IResolvable | undefined; set internalValue(value: NetworkAclEgress | cdktf.IResolvable | undefined); private _action?; get action(): string; set action(value: string); resetAction(): void; get actionInput(): string | undefined; private _cidrBlock?; get cidrBlock(): string; set cidrBlock(value: string); resetCidrBlock(): void; get cidrBlockInput(): string | undefined; private _fromPort?; get fromPort(): number; set fromPort(value: number); resetFromPort(): void; get fromPortInput(): number | undefined; private _icmpCode?; get icmpCode(): number; set icmpCode(value: number); resetIcmpCode(): void; get icmpCodeInput(): number | undefined; private _icmpType?; get icmpType(): number; set icmpType(value: number); resetIcmpType(): void; get icmpTypeInput(): number | undefined; private _ipv6CidrBlock?; get ipv6CidrBlock(): string; set ipv6CidrBlock(value: string); resetIpv6CidrBlock(): void; get ipv6CidrBlockInput(): string | undefined; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string | undefined; private _ruleNo?; get ruleNo(): number; set ruleNo(value: number); resetRuleNo(): void; get ruleNoInput(): number | undefined; private _toPort?; get toPort(): number; set toPort(value: number); resetToPort(): void; get toPortInput(): number | undefined; } export declare class NetworkAclEgressList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: NetworkAclEgress[] | 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): NetworkAclEgressOutputReference; } export interface NetworkAclIngress { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#action NetworkAcl#action} */ readonly action?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#cidr_block NetworkAcl#cidr_block} */ readonly cidrBlock?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#from_port NetworkAcl#from_port} */ readonly fromPort?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#icmp_code NetworkAcl#icmp_code} */ readonly icmpCode?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#icmp_type NetworkAcl#icmp_type} */ readonly icmpType?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#ipv6_cidr_block NetworkAcl#ipv6_cidr_block} */ readonly ipv6CidrBlock?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#protocol NetworkAcl#protocol} */ readonly protocol?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#rule_no NetworkAcl#rule_no} */ readonly ruleNo?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#to_port NetworkAcl#to_port} */ readonly toPort?: number; } export declare function networkAclIngressToTerraform(struct?: NetworkAclIngress | cdktf.IResolvable): any; export declare function networkAclIngressToHclTerraform(struct?: NetworkAclIngress | cdktf.IResolvable): any; export declare class NetworkAclIngressOutputReference 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(): NetworkAclIngress | cdktf.IResolvable | undefined; set internalValue(value: NetworkAclIngress | cdktf.IResolvable | undefined); private _action?; get action(): string; set action(value: string); resetAction(): void; get actionInput(): string | undefined; private _cidrBlock?; get cidrBlock(): string; set cidrBlock(value: string); resetCidrBlock(): void; get cidrBlockInput(): string | undefined; private _fromPort?; get fromPort(): number; set fromPort(value: number); resetFromPort(): void; get fromPortInput(): number | undefined; private _icmpCode?; get icmpCode(): number; set icmpCode(value: number); resetIcmpCode(): void; get icmpCodeInput(): number | undefined; private _icmpType?; get icmpType(): number; set icmpType(value: number); resetIcmpType(): void; get icmpTypeInput(): number | undefined; private _ipv6CidrBlock?; get ipv6CidrBlock(): string; set ipv6CidrBlock(value: string); resetIpv6CidrBlock(): void; get ipv6CidrBlockInput(): string | undefined; private _protocol?; get protocol(): string; set protocol(value: string); resetProtocol(): void; get protocolInput(): string | undefined; private _ruleNo?; get ruleNo(): number; set ruleNo(value: number); resetRuleNo(): void; get ruleNoInput(): number | undefined; private _toPort?; get toPort(): number; set toPort(value: number); resetToPort(): void; get toPortInput(): number | undefined; } export declare class NetworkAclIngressList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: NetworkAclIngress[] | 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): NetworkAclIngressOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl aws_network_acl} */ export declare class NetworkAcl extends cdktf.TerraformResource { static readonly tfResourceType = "aws_network_acl"; /** * Generates CDKTF code for importing a NetworkAcl 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 NetworkAcl to import * @param importFromId The id of the existing NetworkAcl that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/network_acl#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the NetworkAcl 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/aws/5.84.0/docs/resources/network_acl aws_network_acl} 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 NetworkAclConfig */ constructor(scope: Construct, id: string, config: NetworkAclConfig); get arn(): string; private _egress; get egress(): NetworkAclEgressList; putEgress(value: NetworkAclEgress[] | cdktf.IResolvable): void; resetEgress(): void; get egressInput(): cdktf.IResolvable | NetworkAclEgress[] | undefined; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _ingress; get ingress(): NetworkAclIngressList; putIngress(value: NetworkAclIngress[] | cdktf.IResolvable): void; resetIngress(): void; get ingressInput(): cdktf.IResolvable | NetworkAclIngress[] | undefined; get ownerId(): string; private _subnetIds?; get subnetIds(): string[]; set subnetIds(value: string[]); resetSubnetIds(): void; get subnetIdsInput(): string[] | undefined; private _tags?; get tags(): { [key: string]: string; }; set tags(value: { [key: string]: string; }); resetTags(): void; get tagsInput(): { [key: string]: string; } | undefined; private _tagsAll?; get tagsAll(): { [key: string]: string; }; set tagsAll(value: { [key: string]: string; }); resetTagsAll(): void; get tagsAllInput(): { [key: string]: string; } | undefined; private _vpcId?; get vpcId(): string; set vpcId(value: string); get vpcIdInput(): string | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }