import * as core from "@terrascript/core"; export interface NetworkInterfaceArgs extends core.SchemaArgs { availabilityZone: string | core.StringOut; networkInterfaceId: string | core.StringOut; privateIpAddress: string | core.StringOut; subnetId: string | core.StringOut; } export class NetworkInterface extends core.Schema { @core.attr(String, { computed: true }) public availabilityZone!: string | core.StringOut; @core.attr(String, { computed: true }) public networkInterfaceId!: string | core.StringOut; @core.attr(String, { computed: true }) public privateIpAddress!: string | core.StringOut; @core.attr(String, { computed: true }) public subnetId!: string | core.StringOut; } export interface VpcEndpointArgs extends core.SchemaArgs { networkInterface: | core.Array | core.ArrayOut; vpcEndpointId: string | core.StringOut; vpcId: string | core.StringOut; } export class VpcEndpoint extends core.Schema { @core.attr(NetworkInterface, { computed: true, kind: "array" }) public networkInterface!: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public vpcEndpointId!: string | core.StringOut; @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; } export interface EndpointAccessArgs extends core.ResourceArgs { /** * (Required) The cluster identifier of the cluster to access. */ clusterIdentifier: string | core.StringOut; /** * (Required) The Redshift-managed VPC endpoint name. */ endpointName: string | core.StringOut; /** * (Optional) The Amazon Web Services account ID of the owner of the cluster. This is only required if * the cluster is in another Amazon Web Services account. */ resourceOwner?: string | core.StringOut; /** * (Required) The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. */ subnetGroupName: string | core.StringOut; /** * (Optional) The security group that defines the ports, protocols, and sources for inbound traffic tha * t you are authorizing into your endpoint. */ vpcSecurityGroupIds?: core.Array | core.ArrayOut; } export class EndpointAccess extends core.Resource { /** * The DNS address of the endpoint. */ @core.attr(String, { computed: true }) public address!: string | core.StringOut; /** * (Required) The cluster identifier of the cluster to access. */ @core.attr(String) public clusterIdentifier!: string | core.StringOut; /** * (Required) The Redshift-managed VPC endpoint name. */ @core.attr(String) public endpointName!: string | core.StringOut; /** * The Redshift-managed VPC endpoint name. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The port number on which the cluster accepts incoming connections. */ @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; /** * (Optional) The Amazon Web Services account ID of the owner of the cluster. This is only required if * the cluster is in another Amazon Web Services account. */ @core.attr(String, { computed: true }) public resourceOwner?: string | core.StringOut; /** * (Required) The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. */ @core.attr(String) public subnetGroupName!: string | core.StringOut; /** * The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details * below. */ @core.attr(VpcEndpoint, { computed: true, kind: "array" }) public vpcEndpoint!: core.Array | core.ArrayOut; /** * (Optional) The security group that defines the ports, protocols, and sources for inbound traffic tha * t you are authorizing into your endpoint. */ @core.attr(String, { computed: true, kind: "array" }) public vpcSecurityGroupIds?: | core.Array | core.ArrayOut; constructor(name: string, args?: EndpointAccessArgs) { super(name, "aws_redshift_endpoint_access", args); } public override getNamespace(): string { return "aws_redshift"; } }