import * as core from "@terrascript/core"; export interface IpSetsArgs extends core.SchemaArgs { ipAddresses: core.Array | core.ArrayOut; ipFamily: string | core.StringOut; } export class IpSets extends core.Schema { @core.attr(String, { computed: true, kind: "array" }) public ipAddresses!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public ipFamily!: string | core.StringOut; } export interface AttributesArgs extends core.SchemaArgs { flowLogsEnabled?: boolean | core.BooleanOut; flowLogsS3Bucket?: string | core.StringOut; flowLogsS3Prefix?: string | core.StringOut; } export class Attributes extends core.Schema { @core.attr(Boolean) public flowLogsEnabled?: boolean | core.BooleanOut; @core.attr(String) public flowLogsS3Bucket?: string | core.StringOut; @core.attr(String) public flowLogsS3Prefix?: string | core.StringOut; } export interface AcceleratorArgs extends core.ResourceArgs { /** * (Optional) The attributes of the accelerator. Fields documented below. */ attributes?: Attributes; /** * (Optional) Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, ` * false`. */ enabled?: boolean | core.BooleanOut; /** * (Optional) The value for the address type. Defaults to `IPV4`. Valid values: `IPV4`, `DUAL_STACK`. */ ipAddressType?: string | core.StringOut; /** * (Required) The name of the accelerator. */ name: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 Accelerator extends core.Resource { /** * (Optional) The attributes of the accelerator. Fields documented below. */ @core.attr(Attributes) public attributes?: Attributes; /** * The DNS name of the accelerator. For example, `a5d53ff5ee6bca4ce.awsglobalaccelerator.com`. */ @core.attr(String, { computed: true }) public dnsName!: string | core.StringOut; /** * (Optional) Indicates whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, ` * false`. */ @core.attr(Boolean) public enabled?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public hostedZoneId!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the accelerator. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The value for the address type. Defaults to `IPV4`. Valid values: `IPV4`, `DUAL_STACK`. */ @core.attr(String) public ipAddressType?: string | core.StringOut; /** * IP address set associated with the accelerator. */ @core.attr(IpSets, { computed: true, kind: "array" }) public ipSets!: core.Array | core.ArrayOut; /** * (Required) The name of the accelerator. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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?: AcceleratorArgs) { super(name, "aws_globalaccelerator_accelerator", args); } public override getNamespace(): string { return "aws_globalaccelerator"; } }