import * as core from "@terrascript/core"; export interface InstanceArgs extends core.ResourceArgs { /** * (Optional) Specifies whether auto resolve best voices is enabled. Defaults to `true`. */ autoResolveBestVoicesEnabled?: boolean | core.BooleanOut; /** * (Optional) Specifies whether contact flow logs are enabled. Defaults to `false`. */ contactFlowLogsEnabled?: boolean | core.BooleanOut; /** * (Optional) Specifies whether contact lens is enabled. Defaults to `true`. */ contactLensEnabled?: boolean | core.BooleanOut; /** * (Optional) The identifier for the directory if identity_management_type is `EXISTING_DIRECTORY`. */ directoryId?: string | core.StringOut; /** * (Optional) Specifies whether early media for outbound calls is enabled . Defaults to `true` if outbo * und calls is enabled. */ earlyMediaEnabled?: boolean | core.BooleanOut; /** * (Required) Specifies the identity management type attached to the instance. Allowed Values are: `SAM * L`, `CONNECT_MANAGED`, `EXISTING_DIRECTORY`. */ identityManagementType: string | core.StringOut; /** * (Required) Specifies whether inbound calls are enabled. */ inboundCallsEnabled: boolean | core.BooleanOut; /** * (Optional) Specifies the name of the instance. Required if `directory_id` not specified. */ instanceAlias?: string | core.StringOut; /** * (Required) Specifies whether outbound calls are enabled. */ outboundCallsEnabled: boolean | core.BooleanOut; } export class Instance extends core.Resource { /** * Amazon Resource Name (ARN) of the instance. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Specifies whether auto resolve best voices is enabled. Defaults to `true`. */ @core.attr(Boolean) public autoResolveBestVoicesEnabled?: boolean | core.BooleanOut; /** * (Optional) Specifies whether contact flow logs are enabled. Defaults to `false`. */ @core.attr(Boolean) public contactFlowLogsEnabled?: boolean | core.BooleanOut; /** * (Optional) Specifies whether contact lens is enabled. Defaults to `true`. */ @core.attr(Boolean) public contactLensEnabled?: boolean | core.BooleanOut; /** * Specifies when the instance was created. */ @core.attr(String, { computed: true }) public createdTime!: string | core.StringOut; /** * (Optional) The identifier for the directory if identity_management_type is `EXISTING_DIRECTORY`. */ @core.attr(String) public directoryId?: string | core.StringOut; /** * (Optional) Specifies whether early media for outbound calls is enabled . Defaults to `true` if outbo * und calls is enabled. */ @core.attr(Boolean) public earlyMediaEnabled?: boolean | core.BooleanOut; /** * The identifier of the instance. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Specifies the identity management type attached to the instance. Allowed Values are: `SAM * L`, `CONNECT_MANAGED`, `EXISTING_DIRECTORY`. */ @core.attr(String) public identityManagementType!: string | core.StringOut; /** * (Required) Specifies whether inbound calls are enabled. */ @core.attr(Boolean) public inboundCallsEnabled!: boolean | core.BooleanOut; /** * (Optional) Specifies the name of the instance. Required if `directory_id` not specified. */ @core.attr(String) public instanceAlias?: string | core.StringOut; /** * (Required) Specifies whether outbound calls are enabled. */ @core.attr(Boolean) public outboundCallsEnabled!: boolean | core.BooleanOut; /** * The service role of the instance. */ @core.attr(String, { computed: true }) public serviceRole!: string | core.StringOut; /** * The state of the instance. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; constructor(name: string, args?: InstanceArgs) { super(name, "aws_connect_instance", args); } public override getNamespace(): string { return "aws_connect"; } }