Skip to content

Commit 3ac8b18

Browse files
author
awstools
committed
feat(client-connect): Release ReplicaConfiguration as part of DescribeInstance
1 parent b54802e commit 3ac8b18

File tree

7 files changed

+377
-135
lines changed

7 files changed

+377
-135
lines changed

clients/client-connect/src/commands/DescribeInstanceCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ export interface DescribeInstanceCommandOutput extends DescribeInstanceResponse,
6868
* // "<keys>": "STRING_VALUE",
6969
* // },
7070
* // },
71+
* // ReplicationConfiguration: { // ReplicationConfiguration
72+
* // ReplicationStatusSummaryList: [ // ReplicationStatusSummaryList
73+
* // { // ReplicationStatusSummary
74+
* // Region: "STRING_VALUE",
75+
* // ReplicationStatus: "INSTANCE_REPLICATION_COMPLETE" || "INSTANCE_REPLICATION_IN_PROGRESS" || "INSTANCE_REPLICATION_FAILED" || "INSTANCE_REPLICA_DELETING" || "INSTANCE_REPLICATION_DELETION_FAILED" || "RESOURCE_REPLICATION_NOT_STARTED",
76+
* // ReplicationStatusReason: "STRING_VALUE",
77+
* // },
78+
* // ],
79+
* // SourceRegion: "STRING_VALUE",
80+
* // GlobalSignInEndpoint: "STRING_VALUE",
81+
* // },
7182
* // };
7283
*
7384
* ```

clients/client-connect/src/commands/ListTaskTemplatesCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ListTaskTemplatesRequest, ListTaskTemplatesResponse } from "../models/models_1";
9+
import { ListTaskTemplatesRequest, ListTaskTemplatesResponse } from "../models/models_2";
1010
import { de_ListTaskTemplatesCommand, se_ListTaskTemplatesCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

clients/client-connect/src/models/models_0.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ export interface AssociateSecurityKeyRequest {
17391739
InstanceId: string | undefined;
17401740

17411741
/**
1742-
* <p>A valid security key in PEM format.</p>
1742+
* <p>A valid security key in PEM format as a String.</p>
17431743
* @public
17441744
*/
17451745
Key: string | undefined;

clients/client-connect/src/models/models_1.ts

+96-116
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,90 @@ export interface Instance {
842842
Tags?: Record<string, string>;
843843
}
844844

845+
/**
846+
* @public
847+
* @enum
848+
*/
849+
export const InstanceReplicationStatus = {
850+
INSTANCE_REPLICATION_COMPLETE: "INSTANCE_REPLICATION_COMPLETE",
851+
INSTANCE_REPLICATION_DELETION_FAILED: "INSTANCE_REPLICATION_DELETION_FAILED",
852+
INSTANCE_REPLICATION_FAILED: "INSTANCE_REPLICATION_FAILED",
853+
INSTANCE_REPLICATION_IN_PROGRESS: "INSTANCE_REPLICATION_IN_PROGRESS",
854+
INSTANCE_REPLICA_DELETING: "INSTANCE_REPLICA_DELETING",
855+
RESOURCE_REPLICATION_NOT_STARTED: "RESOURCE_REPLICATION_NOT_STARTED",
856+
} as const;
857+
858+
/**
859+
* @public
860+
*/
861+
export type InstanceReplicationStatus = (typeof InstanceReplicationStatus)[keyof typeof InstanceReplicationStatus];
862+
863+
/**
864+
* <p>Status information about the replication process, where you use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to create a replica of your Amazon Connect instance in
865+
* another Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/setup-connect-global-resiliency.html">Set up Amazon Connect
866+
* Global Resiliency</a> in the <i>Amazon Connect Administrator Guide</i>.
867+
* </p>
868+
* @public
869+
*/
870+
export interface ReplicationStatusSummary {
871+
/**
872+
* <p>The Amazon Web Services Region. This can be either the source or the replica Region,
873+
* depending where it appears in the summary list.</p>
874+
* @public
875+
*/
876+
Region?: string;
877+
878+
/**
879+
* <p>The state of the replication.</p>
880+
* @public
881+
*/
882+
ReplicationStatus?: InstanceReplicationStatus;
883+
884+
/**
885+
* <p>A description of the replication status. Use this information to resolve any issues that are
886+
* preventing the successful replication of your Amazon Connect instance to another
887+
* Region.</p>
888+
* @public
889+
*/
890+
ReplicationStatusReason?: string;
891+
}
892+
893+
/**
894+
* <p>Details about the status of the replication of a source Amazon Connect instance across
895+
* Amazon Web Services Regions. Use these details to understand the general status of a given
896+
* replication. For information about why a replication process may fail, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html#why-replicateinstance-fails">Why a ReplicateInstance call fails</a> in the <i>Create a replica of your existing
897+
* Amazon Connect instance</i> topic in the <i>Amazon Connect Administrator
898+
* Guide</i>. </p>
899+
* @public
900+
*/
901+
export interface ReplicationConfiguration {
902+
/**
903+
* <p>A list of replication status summaries. The summaries contain details about the replication
904+
* of configuration information for Amazon Connect resources, for each Amazon Web Services
905+
* Region.</p>
906+
* @public
907+
*/
908+
ReplicationStatusSummaryList?: ReplicationStatusSummary[];
909+
910+
/**
911+
* <p>The Amazon Web Services Region where the source Amazon Connect instance was created. This
912+
* is the Region where the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API was
913+
* called to start the replication process.</p>
914+
* @public
915+
*/
916+
SourceRegion?: string;
917+
918+
/**
919+
* <p>The URL that is used to sign-in to your Amazon Connect instance according to your
920+
* traffic distribution group configuration. For more information about sign-in and traffic
921+
* distribution groups, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/setup-traffic-distribution-groups.html">Important things to
922+
* know</a> in the <i>Create traffic distribution groups</i> topic in the
923+
* <i>Amazon Connect Administrator Guide</i>. </p>
924+
* @public
925+
*/
926+
GlobalSignInEndpoint?: string;
927+
}
928+
845929
/**
846930
* @public
847931
*/
@@ -851,6 +935,17 @@ export interface DescribeInstanceResponse {
851935
* @public
852936
*/
853937
Instance?: Instance;
938+
939+
/**
940+
* <p>Status information about the replication process. This field is included only when you are
941+
* using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ReplicateInstance.html">ReplicateInstance</a> API to
942+
* replicate an Amazon Connect instance across Amazon Web Services Regions. For information about
943+
* replicating Amazon Connect instances, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html">Create a replica of your
944+
* existing Amazon Connect instance</a> in the <i>Amazon Connect Administrator
945+
* Guide</i>.</p>
946+
* @public
947+
*/
948+
ReplicationConfiguration?: ReplicationConfiguration;
854949
}
855950

856951
/**
@@ -5544,7 +5639,7 @@ export interface GetMetricDataV2Request {
55445639
* metric.</p>
55455640
* </note>
55465641
* </dd>
5547-
* <dt>SUM_CONTACTS_ABANDONED</dt>
5642+
* <dt>CONTACTS_ABANDONED</dt>
55485643
* <dd>
55495644
* <p>Unit: Count</p>
55505645
* <p>Metric filter: </p>
@@ -9771,121 +9866,6 @@ export interface ListTagsForResourceResponse {
97719866
tags?: Record<string, string>;
97729867
}
97739868

9774-
/**
9775-
* @public
9776-
*/
9777-
export interface ListTaskTemplatesRequest {
9778-
/**
9779-
* <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
9780-
* @public
9781-
*/
9782-
InstanceId: string | undefined;
9783-
9784-
/**
9785-
* <p>The token for the next set of results. Use the value returned in the previous
9786-
* response in the next request to retrieve the next set of results.</p>
9787-
* <important>
9788-
* <p>It is not expected that you set this because the value returned in the previous response is
9789-
* always null.</p>
9790-
* </important>
9791-
* @public
9792-
*/
9793-
NextToken?: string;
9794-
9795-
/**
9796-
* <p>The maximum number of results to return per page.</p>
9797-
* <important>
9798-
* <p>It is not expected that you set this.</p>
9799-
* </important>
9800-
* @public
9801-
*/
9802-
MaxResults?: number;
9803-
9804-
/**
9805-
* <p>Marks a template as <code>ACTIVE</code> or <code>INACTIVE</code> for a task to refer to it.
9806-
* Tasks can only be created from <code>ACTIVE</code> templates.
9807-
* If a template is marked as <code>INACTIVE</code>, then a task that refers to this template cannot be created.</p>
9808-
* @public
9809-
*/
9810-
Status?: TaskTemplateStatus;
9811-
9812-
/**
9813-
* <p>The name of the task template.</p>
9814-
* @public
9815-
*/
9816-
Name?: string;
9817-
}
9818-
9819-
/**
9820-
* <p>Contains summary information about the task template.</p>
9821-
* @public
9822-
*/
9823-
export interface TaskTemplateMetadata {
9824-
/**
9825-
* <p>A unique identifier for the task template.</p>
9826-
* @public
9827-
*/
9828-
Id?: string;
9829-
9830-
/**
9831-
* <p>The Amazon Resource Name (ARN) of the task template.</p>
9832-
* @public
9833-
*/
9834-
Arn?: string;
9835-
9836-
/**
9837-
* <p>The name of the task template.</p>
9838-
* @public
9839-
*/
9840-
Name?: string;
9841-
9842-
/**
9843-
* <p>The description of the task template.</p>
9844-
* @public
9845-
*/
9846-
Description?: string;
9847-
9848-
/**
9849-
* <p>Marks a template as <code>ACTIVE</code> or <code>INACTIVE</code> for a task to refer to it.
9850-
* Tasks can only be created from <code>ACTIVE</code> templates.
9851-
* If a template is marked as <code>INACTIVE</code>, then a task that refers to this template cannot be created.</p>
9852-
* @public
9853-
*/
9854-
Status?: TaskTemplateStatus;
9855-
9856-
/**
9857-
* <p>The timestamp when the task template was last modified.</p>
9858-
* @public
9859-
*/
9860-
LastModifiedTime?: Date;
9861-
9862-
/**
9863-
* <p>The timestamp when the task template was created.</p>
9864-
* @public
9865-
*/
9866-
CreatedTime?: Date;
9867-
}
9868-
9869-
/**
9870-
* @public
9871-
*/
9872-
export interface ListTaskTemplatesResponse {
9873-
/**
9874-
* <p>Provides details about a list of task templates belonging to an instance.</p>
9875-
* @public
9876-
*/
9877-
TaskTemplates?: TaskTemplateMetadata[];
9878-
9879-
/**
9880-
* <p>If there are additional results, this is the token for the next set of results.</p>
9881-
* <important>
9882-
* <p>This is always returned as a null in the response.</p>
9883-
* </important>
9884-
* @public
9885-
*/
9886-
NextToken?: string;
9887-
}
9888-
98899869
/**
98909870
* @internal
98919871
*/

0 commit comments

Comments
 (0)