import * as core from "@terrascript/core"; export interface ClusterEndpointArgs extends core.ResourceArgs { /** * (Required, Forces new resources) The identifier to use for the new endpoint. This parameter is store * d as a lowercase string. */ clusterEndpointIdentifier: string | core.StringOut; /** * (Required, Forces new resources) The cluster identifier. */ clusterIdentifier: string | core.StringOut; /** * (Required) The type of the endpoint. One of: READER , ANY . */ customEndpointType: string | core.StringOut; /** * (Optional) List of DB instance identifiers that aren't part of the custom endpoint group. All other * eligible instances are reachable through the custom endpoint. Only relevant if the list of static me * mbers is empty. Conflicts with `static_members`. */ excludedMembers?: core.Array | core.ArrayOut; /** * (Optional) List of DB instance identifiers that are part of the custom endpoint group. Conflicts wit * h `excluded_members`. */ staticMembers?: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class ClusterEndpoint extends core.Resource { /** * Amazon Resource Name (ARN) of cluster */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required, Forces new resources) The identifier to use for the new endpoint. This parameter is store * d as a lowercase string. */ @core.attr(String) public clusterEndpointIdentifier!: string | core.StringOut; /** * (Required, Forces new resources) The cluster identifier. */ @core.attr(String) public clusterIdentifier!: string | core.StringOut; /** * (Required) The type of the endpoint. One of: READER , ANY . */ @core.attr(String) public customEndpointType!: string | core.StringOut; /** * A custom endpoint for the Aurora cluster */ @core.attr(String, { computed: true }) public endpoint!: string | core.StringOut; /** * (Optional) List of DB instance identifiers that aren't part of the custom endpoint group. All other * eligible instances are reachable through the custom endpoint. Only relevant if the list of static me * mbers is empty. Conflicts with `static_members`. */ @core.attr(String, { kind: "array" }) public excludedMembers?: core.Array | core.ArrayOut; /** * The RDS Cluster Endpoint Identifier */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) List of DB instance identifiers that are part of the custom endpoint group. Conflicts wit * h `excluded_members`. */ @core.attr(String, { kind: "array" }) public staticMembers?: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: ClusterEndpointArgs) { super(name, "aws_rds_cluster_endpoint", args); } public override getNamespace(): string { return "aws_rds"; } }