import * as core from "@terrascript/core"; export interface EndTimeArgs extends core.SchemaArgs { hours: number | core.NumberOut; minutes: number | core.NumberOut; } export class EndTime extends core.Schema { @core.attr(Number) public hours!: number | core.NumberOut; @core.attr(Number) public minutes!: number | core.NumberOut; } export interface StartTimeArgs extends core.SchemaArgs { hours: number | core.NumberOut; minutes: number | core.NumberOut; } export class StartTime extends core.Schema { @core.attr(Number) public hours!: number | core.NumberOut; @core.attr(Number) public minutes!: number | core.NumberOut; } export interface ConfigArgs extends core.SchemaArgs { day: string | core.StringOut; endTime: EndTime; startTime: StartTime; } export class Config extends core.Schema { @core.attr(String) public day!: string | core.StringOut; @core.attr(EndTime) public endTime!: EndTime; @core.attr(StartTime) public startTime!: StartTime; } export interface HoursOfOperationArgs extends core.ResourceArgs { /** * (Required) One or more config blocks which define the configuration information for the hours of ope * ration: day, start time, and end time . Config blocks are documented below. */ config: core.Array | core.ArrayOut; /** * (Optional) Specifies the description of the Hours of Operation. */ description?: string | core.StringOut; /** * (Required) Specifies the identifier of the hosting Amazon Connect Instance. */ instanceId: string | core.StringOut; /** * (Required) Specifies the name of the Hours of Operation. */ name: string | core.StringOut; /** * (Optional) Tags to apply to the Hours of Operation. 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; /** * (Required) Specifies the time zone of the Hours of Operation. */ timeZone: string | core.StringOut; } export class HoursOfOperation extends core.Resource { /** * The Amazon Resource Name (ARN) of the Hours of Operation. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) One or more config blocks which define the configuration information for the hours of ope * ration: day, start time, and end time . Config blocks are documented below. */ @core.attr(Config, { kind: "array" }) public config!: core.Array | core.ArrayOut; /** * (Optional) Specifies the description of the Hours of Operation. */ @core.attr(String) public description?: string | core.StringOut; /** * (**Deprecated**) The Amazon Resource Name (ARN) of the Hours of Operation. */ @core.attr(String, { computed: true }) public hoursOfOperationArn!: string | core.StringOut; /** * The identifier for the hours of operation. */ @core.attr(String, { computed: true }) public hoursOfOperationId!: string | core.StringOut; /** * The identifier of the hosting Amazon Connect Instance and identifier of the Hours of Operation separ * ated by a colon (`:`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Specifies the identifier of the hosting Amazon Connect Instance. */ @core.attr(String) public instanceId!: string | core.StringOut; /** * (Required) Specifies the name of the Hours of Operation. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Tags to apply to the Hours of Operation. 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; /** * (Required) Specifies the time zone of the Hours of Operation. */ @core.attr(String) public timeZone!: string | core.StringOut; constructor(name: string, args?: HoursOfOperationArgs) { super(name, "aws_connect_hours_of_operation", args); } public override getNamespace(): string { return "aws_connect"; } }