diff --git a/AWSConnect/AWSConnectModel.h b/AWSConnect/AWSConnectModel.h index 7d02cde69c3..ae2fc7638f8 100644 --- a/AWSConnect/AWSConnectModel.h +++ b/AWSConnect/AWSConnectModel.h @@ -324,6 +324,17 @@ typedef NS_ENUM(NSInteger, AWSConnectIntegrationType) { AWSConnectIntegrationTypeWisdomAssistant, AWSConnectIntegrationTypeWisdomKnowledgeBase, AWSConnectIntegrationTypeCasesDomain, + AWSConnectIntegrationTypeApplication, +}; + +typedef NS_ENUM(NSInteger, AWSConnectIntervalPeriod) { + AWSConnectIntervalPeriodUnknown, + AWSConnectIntervalPeriodFifteenMin, + AWSConnectIntervalPeriodThirtyMin, + AWSConnectIntervalPeriodHour, + AWSConnectIntervalPeriodDay, + AWSConnectIntervalPeriodWeek, + AWSConnectIntervalPeriodTotal, }; typedef NS_ENUM(NSInteger, AWSConnectLexVersion) { @@ -877,6 +888,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectAgentStatusReference; @class AWSConnectAgentStatusSummary; @class AWSConnectAnswerMachineDetectionConfig; +@class AWSConnectApplication; @class AWSConnectAssignContactCategoryActionDefinition; @class AWSConnectAssociateApprovedOriginRequest; @class AWSConnectAssociateBotRequest; @@ -1123,6 +1135,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectInstanceStorageConfig; @class AWSConnectInstanceSummary; @class AWSConnectIntegrationAssociationSummary; +@class AWSConnectIntervalDetails; @class AWSConnectInvisibleFieldInfo; @class AWSConnectKinesisFirehoseConfig; @class AWSConnectKinesisStreamConfig; @@ -1185,6 +1198,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectListRulesResponse; @class AWSConnectListSecurityKeysRequest; @class AWSConnectListSecurityKeysResponse; +@class AWSConnectListSecurityProfileApplicationsRequest; +@class AWSConnectListSecurityProfileApplicationsResponse; @class AWSConnectListSecurityProfilePermissionsRequest; @class AWSConnectListSecurityProfilePermissionsResponse; @class AWSConnectListSecurityProfilesRequest; @@ -1210,6 +1225,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectMediaConcurrency; @class AWSConnectMetricDataV2; @class AWSConnectMetricFilterV2; +@class AWSConnectMetricInterval; @class AWSConnectMetricResultV2; @class AWSConnectMetricV2; @class AWSConnectMonitorContactRequest; @@ -1680,6 +1696,24 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

This API is in preview release for Amazon Connect and is subject to change.

A third party application's metadata.

+ */ +@interface AWSConnectApplication : AWSModel + + +/** +

The permissions that the agent is granted on the application. Only the ACCESS permission is supported.

+ */ +@property (nonatomic, strong) NSArray * _Nullable applicationPermissions; + +/** +

Namespace of the application that you want to give access to.

+ */ +@property (nonatomic, strong) NSString * _Nullable namespace; + +@end + /**

This action must be set if TriggerEventSource is one of the following values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable. Contact is categorized using the rule name.

RuleName is used as ContactCategory.

*/ @@ -2291,7 +2325,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable arn; /** -

The content of the flow.

+

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

*/ @property (nonatomic, strong) NSString * _Nullable content; @@ -2339,7 +2373,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable arn; /** -

The content of the flow module.

+

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

*/ @property (nonatomic, strong) NSString * _Nullable content; @@ -2578,7 +2612,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { /** -

The content of the flow.

+

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

*/ @property (nonatomic, strong) NSString * _Nullable content; @@ -3036,7 +3070,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable instanceId; /** -

The name of the quick connect.

+

A unique name of the quick connect.

*/ @property (nonatomic, strong) NSString * _Nullable name; @@ -3208,6 +3242,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSDictionary * _Nullable allowedAccessControlTags; +/** +

This API is in preview release for Amazon Connect and is subject to change.

A list of third party applications that the security profile will give access to.

+ */ +@property (nonatomic, strong) NSArray * _Nullable applications; + /**

The description of the security profile.

*/ @@ -6487,7 +6526,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { /** -

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.

The time range between the start and end time must be less than 24 hours.

+

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.

*/ @property (nonatomic, strong) NSDate * _Nullable endTime; @@ -6501,13 +6540,18 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSArray * _Nullable groupings; +/** +

The interval period and timezone to apply to returned metrics.

  • IntervalPeriod: An aggregated grouping applied to request metrics. Valid IntervalPeriod values are: FIFTEEN_MIN | THIRTY_MIN | HOUR | DAY | WEEK | TOTAL.

    For example, if IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL interval period.

    The following list describes restrictions on StartTime and EndTime based on which IntervalPeriod is requested.

    • FIFTEEN_MIN: The difference between StartTime and EndTime must be less than 3 days.

    • THIRTY_MIN: The difference between StartTime and EndTime must be less than 3 days.

    • HOUR: The difference between StartTime and EndTime must be less than 3 days.

    • DAY: The difference between StartTime and EndTime must be less than 35 days.

    • WEEK: The difference between StartTime and EndTime must be less than 35 days.

    • TOTAL: The difference between StartTime and EndTime must be less than 35 days.

  • TimeZone: The timezone applied to requested metrics.

+ */ +@property (nonatomic, strong) AWSConnectIntervalDetails * _Nullable interval; + /**

The maximum number of results to return per page.

*/ @property (nonatomic, strong) NSNumber * _Nullable maxResults; /** -

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

AGENT_ADHERENT_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_OCCUPANCY

Unit: Percentage

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULE_ADHERENCE

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULED_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_ABANDON_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_CONTACT_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_CONVERSATION_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_GREETING_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERACTION_AND_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERACTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERRUPTIONS_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERRUPTION_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_NON_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_CUSTOMER

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HANDLED

Unit: Count

Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HOLD_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_QUEUED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_TRANSFERRED_OUT_BY_AGENT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

SERVICE_LEVEL

You can include up to 20 SERVICE_LEVEL metrics in a request.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_ABANDONED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_DISCONNECTED

Valid metric filter key: DISCONNECT_REASON

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

+

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

ABANDONMENT_RATE

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_ADHERENT_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

AGENT_OCCUPANCY

Unit: Percentage

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULE_ADHERENCE

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULED_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_ABANDON_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

The Negate key in Metric Level Filters is not applicable for this metric.

AVG_CONTACT_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_CONVERSATION_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_GREETING_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME_ALL_CONTACTS

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERACTION_AND_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERACTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERRUPTIONS_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERRUPTION_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_NON_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile

AVG_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_CUSTOMER

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HANDLED

Unit: Count

Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HOLD_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_QUEUED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

CONTACTS_TRANSFERRED_OUT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_TRANSFERRED_OUT_BY_AGENT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

SERVICE_LEVEL

You can include up to 20 SERVICE_LEVEL metrics in a request.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_ABANDONED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for "Less than").

SUM_CONTACTS_DISCONNECTED

Valid metric filter key: DISCONNECT_REASON

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

*/ @property (nonatomic, strong) NSArray * _Nullable metrics; @@ -6522,7 +6566,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable resourceArn; /** -

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The time range between the start and end time must be less than 24 hours. The start time cannot be earlier than 35 days before the time of the request. Historical metrics are available for 35 days.

+

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the IntervalPeriod selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.

*/ @property (nonatomic, strong) NSDate * _Nullable startTime; @@ -7415,6 +7459,24 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

Information about the interval period to use for returning results.

+ */ +@interface AWSConnectIntervalDetails : AWSModel + + +/** +

IntervalPeriod: An aggregated grouping applied to request metrics. Valid IntervalPeriod values are: FIFTEEN_MIN | THIRTY_MIN | HOUR | DAY | WEEK | TOTAL.

For example, if IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL interval period.

The following list describes restrictions on StartTime and EndTime based on what IntervalPeriod is requested.

  • FIFTEEN_MIN: The difference between StartTime and EndTime must be less than 3 days.

  • THIRTY_MIN: The difference between StartTime and EndTime must be less than 3 days.

  • HOUR: The difference between StartTime and EndTime must be less than 3 days.

  • DAY: The difference between StartTime and EndTime must be less than 35 days.

  • WEEK: The difference between StartTime and EndTime must be less than 35 days.

  • TOTAL: The difference between StartTime and EndTime must be less than 35 days.

+ */ +@property (nonatomic, assign) AWSConnectIntervalPeriod intervalPeriod; + +/** +

The timezone applied to requested metrics.

+ */ +@property (nonatomic, strong) NSString * _Nullable timeZone; + +@end + /**

A field that is invisible to an agent.

*/ @@ -8294,7 +8356,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable phoneNumberCountryCodes; /** -

The type of phone number.

+

The type of phone number.

We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID, it incorrectly lists them as TOLL_FREE or DID.

*/ @property (nonatomic, strong) NSArray * _Nullable phoneNumberTypes; @@ -8770,6 +8832,52 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectListSecurityProfileApplicationsRequest : AWSRequest + + +/** +

The instance identifier.

+ */ +@property (nonatomic, strong) NSString * _Nullable instanceId; + +/** +

The maximum number of results to return per page.

+ */ +@property (nonatomic, strong) NSNumber * _Nullable maxResults; + +/** +

The token for the next set of results. The next set of results can be retrieved by using the token value returned in the previous response when making the next request.

+ */ +@property (nonatomic, strong) NSString * _Nullable nextToken; + +/** +

The security profile identifier.

+ */ +@property (nonatomic, strong) NSString * _Nullable securityProfileId; + +@end + +/** + + */ +@interface AWSConnectListSecurityProfileApplicationsResponse : AWSModel + + +/** +

This API is in preview release for Amazon Connect and is subject to change.

A list of the third party application's metadata.

+ */ +@property (nonatomic, strong) NSArray * _Nullable applications; + +/** +

The token for the next set of results. The next set of results can be retrieved by using the token value returned in the previous response when making the next request.

+ */ +@property (nonatomic, strong) NSString * _Nullable nextToken; + +@end + /** */ @@ -9295,6 +9403,34 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSArray * _Nullable metricFilterValues; +/** +

The flag to use to filter on requested metric filter values or to not filter on requested metric filter values. By default the negate is false, which indicates to filter on the requested metric filter.

+ */ +@property (nonatomic, strong) NSNumber * _Nullable negate; + +@end + +/** +

The interval period with the start and end time for the metrics.

+ */ +@interface AWSConnectMetricInterval : AWSModel + + +/** +

The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.

+ */ +@property (nonatomic, strong) NSDate * _Nullable endTime; + +/** +

The interval period provided in the API request.

+ */ +@property (nonatomic, assign) AWSConnectIntervalPeriod interval; + +/** +

The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.

+ */ +@property (nonatomic, strong) NSDate * _Nullable startTime; + @end /** @@ -9313,6 +9449,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSDictionary * _Nullable dimensions; +/** +

The interval period with the start and end time for the metrics.

+ */ +@property (nonatomic, strong) AWSConnectMetricInterval * _Nullable metricInterval; + @end /** @@ -10595,17 +10736,17 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectActionType actionType; /** -

Information about the contact category action.

+

Information about the contact category action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate

*/ @property (nonatomic, strong) AWSConnectAssignContactCategoryActionDefinition * _Nullable assignContactCategoryAction; /** -

Information about the EventBridge action.

+

Information about the EventBridge action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate

*/ @property (nonatomic, strong) AWSConnectEventBridgeActionDefinition * _Nullable eventBridgeAction; /** -

Information about the send notification action.

+

Information about the send notification action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate

*/ @property (nonatomic, strong) AWSConnectSendNotificationActionDefinition * _Nullable sendNotificationAction; @@ -10666,7 +10807,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end /** -

The name of the event source. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate

+

The name of the event source. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate | OnContactEvaluationSubmit | OnMetricDataUpdate.

Required parameters: [EventSourceName] */ @interface AWSConnectRuleTriggerEventSource : AWSModel @@ -12694,7 +12835,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable contactFlowId; /** -

The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language.

+

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

*/ @property (nonatomic, strong) NSString * _Nullable content; @@ -12766,7 +12907,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable contactFlowModuleId; /** -

The content of the flow module.

+

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

*/ @property (nonatomic, strong) NSString * _Nullable content; @@ -13575,6 +13716,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSDictionary * _Nullable allowedAccessControlTags; +/** +

This API is in preview release for Amazon Connect and is subject to change.

A list of the third party application's metadata.

+ */ +@property (nonatomic, strong) NSArray * _Nullable applications; + /**

The description of the security profile.

*/ diff --git a/AWSConnect/AWSConnectModel.m b/AWSConnect/AWSConnectModel.m index 807d1376aa0..c1b4b176eb1 100644 --- a/AWSConnect/AWSConnectModel.m +++ b/AWSConnect/AWSConnectModel.m @@ -464,6 +464,21 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectApplication + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"applicationPermissions" : @"ApplicationPermissions", + @"namespace" : @"Namespace", + }; +} + +@end + @implementation AWSConnectAssignContactCategoryActionDefinition + (BOOL)supportsSecureCoding { @@ -4448,6 +4463,9 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { if ([value caseInsensitiveCompare:@"CASES_DOMAIN"] == NSOrderedSame) { return @(AWSConnectIntegrationTypeCasesDomain); } + if ([value caseInsensitiveCompare:@"APPLICATION"] == NSOrderedSame) { + return @(AWSConnectIntegrationTypeApplication); + } return @(AWSConnectIntegrationTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -4463,6 +4481,8 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { return @"WISDOM_KNOWLEDGE_BASE"; case AWSConnectIntegrationTypeCasesDomain: return @"CASES_DOMAIN"; + case AWSConnectIntegrationTypeApplication: + return @"APPLICATION"; default: return nil; } @@ -4795,6 +4815,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"allowedAccessControlTags" : @"AllowedAccessControlTags", + @"applications" : @"Applications", @"detail" : @"Description", @"instanceId" : @"InstanceId", @"permissions" : @"Permissions", @@ -4804,6 +4825,10 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { }; } ++ (NSValueTransformer *)applicationsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectApplication class]]; +} + @end @implementation AWSConnectCreateSecurityProfileResponse @@ -8627,6 +8652,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"endTime" : @"EndTime", @"filters" : @"Filters", @"groupings" : @"Groupings", + @"interval" : @"Interval", @"maxResults" : @"MaxResults", @"metrics" : @"Metrics", @"nextToken" : @"NextToken", @@ -8647,6 +8673,10 @@ + (NSValueTransformer *)filtersJSONTransformer { return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectFilterV2 class]]; } ++ (NSValueTransformer *)intervalJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectIntervalDetails class]]; +} + + (NSValueTransformer *)metricsJSONTransformer { return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectMetricV2 class]]; } @@ -9828,6 +9858,9 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { if ([value caseInsensitiveCompare:@"CASES_DOMAIN"] == NSOrderedSame) { return @(AWSConnectIntegrationTypeCasesDomain); } + if ([value caseInsensitiveCompare:@"APPLICATION"] == NSOrderedSame) { + return @(AWSConnectIntegrationTypeApplication); + } return @(AWSConnectIntegrationTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -9843,6 +9876,8 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { return @"WISDOM_KNOWLEDGE_BASE"; case AWSConnectIntegrationTypeCasesDomain: return @"CASES_DOMAIN"; + case AWSConnectIntegrationTypeApplication: + return @"APPLICATION"; default: return nil; } @@ -9872,6 +9907,62 @@ + (NSValueTransformer *)sourceTypeJSONTransformer { @end +@implementation AWSConnectIntervalDetails + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"intervalPeriod" : @"IntervalPeriod", + @"timeZone" : @"TimeZone", + }; +} + ++ (NSValueTransformer *)intervalPeriodJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"FIFTEEN_MIN"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodFifteenMin); + } + if ([value caseInsensitiveCompare:@"THIRTY_MIN"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodThirtyMin); + } + if ([value caseInsensitiveCompare:@"HOUR"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodHour); + } + if ([value caseInsensitiveCompare:@"DAY"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodDay); + } + if ([value caseInsensitiveCompare:@"WEEK"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodWeek); + } + if ([value caseInsensitiveCompare:@"TOTAL"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodTotal); + } + return @(AWSConnectIntervalPeriodUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectIntervalPeriodFifteenMin: + return @"FIFTEEN_MIN"; + case AWSConnectIntervalPeriodThirtyMin: + return @"THIRTY_MIN"; + case AWSConnectIntervalPeriodHour: + return @"HOUR"; + case AWSConnectIntervalPeriodDay: + return @"DAY"; + case AWSConnectIntervalPeriodWeek: + return @"WEEK"; + case AWSConnectIntervalPeriodTotal: + return @"TOTAL"; + default: + return nil; + } + }]; +} + +@end + @implementation AWSConnectInvisibleFieldInfo + (BOOL)supportsSecureCoding { @@ -10747,6 +10838,9 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { if ([value caseInsensitiveCompare:@"CASES_DOMAIN"] == NSOrderedSame) { return @(AWSConnectIntegrationTypeCasesDomain); } + if ([value caseInsensitiveCompare:@"APPLICATION"] == NSOrderedSame) { + return @(AWSConnectIntegrationTypeApplication); + } return @(AWSConnectIntegrationTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -10762,6 +10856,8 @@ + (NSValueTransformer *)integrationTypeJSONTransformer { return @"WISDOM_KNOWLEDGE_BASE"; case AWSConnectIntegrationTypeCasesDomain: return @"CASES_DOMAIN"; + case AWSConnectIntegrationTypeApplication: + return @"APPLICATION"; default: return nil; } @@ -12544,6 +12640,42 @@ + (NSValueTransformer *)securityKeysJSONTransformer { @end +@implementation AWSConnectListSecurityProfileApplicationsRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"maxResults" : @"MaxResults", + @"nextToken" : @"NextToken", + @"securityProfileId" : @"SecurityProfileId", + }; +} + +@end + +@implementation AWSConnectListSecurityProfileApplicationsResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"applications" : @"Applications", + @"nextToken" : @"NextToken", + }; +} + ++ (NSValueTransformer *)applicationsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectApplication class]]; +} + +@end + @implementation AWSConnectListSecurityProfilePermissionsRequest + (BOOL)supportsSecureCoding { @@ -13041,11 +13173,85 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"metricFilterKey" : @"MetricFilterKey", @"metricFilterValues" : @"MetricFilterValues", + @"negate" : @"Negate", }; } @end +@implementation AWSConnectMetricInterval + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"endTime" : @"EndTime", + @"interval" : @"Interval", + @"startTime" : @"StartTime", + }; +} + ++ (NSValueTransformer *)endTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)intervalJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"FIFTEEN_MIN"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodFifteenMin); + } + if ([value caseInsensitiveCompare:@"THIRTY_MIN"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodThirtyMin); + } + if ([value caseInsensitiveCompare:@"HOUR"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodHour); + } + if ([value caseInsensitiveCompare:@"DAY"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodDay); + } + if ([value caseInsensitiveCompare:@"WEEK"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodWeek); + } + if ([value caseInsensitiveCompare:@"TOTAL"] == NSOrderedSame) { + return @(AWSConnectIntervalPeriodTotal); + } + return @(AWSConnectIntervalPeriodUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectIntervalPeriodFifteenMin: + return @"FIFTEEN_MIN"; + case AWSConnectIntervalPeriodThirtyMin: + return @"THIRTY_MIN"; + case AWSConnectIntervalPeriodHour: + return @"HOUR"; + case AWSConnectIntervalPeriodDay: + return @"DAY"; + case AWSConnectIntervalPeriodWeek: + return @"WEEK"; + case AWSConnectIntervalPeriodTotal: + return @"TOTAL"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)startTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + @implementation AWSConnectMetricResultV2 + (BOOL)supportsSecureCoding { @@ -13056,6 +13262,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"collections" : @"Collections", @"dimensions" : @"Dimensions", + @"metricInterval" : @"MetricInterval", }; } @@ -13063,6 +13270,10 @@ + (NSValueTransformer *)collectionsJSONTransformer { return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectMetricDataV2 class]]; } ++ (NSValueTransformer *)metricIntervalJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectMetricInterval class]]; +} + @end @implementation AWSConnectMetricV2 @@ -20233,6 +20444,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"allowedAccessControlTags" : @"AllowedAccessControlTags", + @"applications" : @"Applications", @"detail" : @"Description", @"instanceId" : @"InstanceId", @"permissions" : @"Permissions", @@ -20241,6 +20453,10 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { }; } ++ (NSValueTransformer *)applicationsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectApplication class]]; +} + @end @implementation AWSConnectUpdateTaskTemplateRequest diff --git a/AWSConnect/AWSConnectResources.m b/AWSConnect/AWSConnectResources.m index e71a11bee78..4a9617ec1d5 100644 --- a/AWSConnect/AWSConnectResources.m +++ b/AWSConnect/AWSConnectResources.m @@ -561,7 +561,7 @@ - (NSString *)definitionString { {\"shape\":\"ThrottlingException\"},\ {\"shape\":\"InternalServiceException\"}\ ],\ - \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Creates a security profile.

\"\ + \"documentation\":\"

Creates a security profile.

\"\ },\ \"CreateTaskTemplate\":{\ \"name\":\"CreateTaskTemplate\",\ @@ -948,7 +948,7 @@ - (NSString *)definitionString { {\"shape\":\"AccessDeniedException\"},\ {\"shape\":\"ResourceInUseException\"}\ ],\ - \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Deletes a security profile.

\"\ + \"documentation\":\"

Deletes a security profile.

\"\ },\ \"DeleteTaskTemplate\":{\ \"name\":\"DeleteTaskTemplate\",\ @@ -1373,7 +1373,7 @@ - (NSString *)definitionString { {\"shape\":\"ThrottlingException\"},\ {\"shape\":\"InternalServiceException\"}\ ],\ - \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Gets basic information about the security profle.

\"\ + \"documentation\":\"

Gets basic information about the security profle.

\"\ },\ \"DescribeTrafficDistributionGroup\":{\ \"name\":\"DescribeTrafficDistributionGroup\",\ @@ -1757,7 +1757,7 @@ - (NSString *)definitionString { {\"shape\":\"ThrottlingException\"},\ {\"shape\":\"ResourceNotFoundException\"}\ ],\ - \"documentation\":\"

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 35 days, in 24-hour intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

\"\ + \"documentation\":\"

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

\"\ },\ \"GetPromptFile\":{\ \"name\":\"GetPromptFile\",\ @@ -2261,6 +2261,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all security keys associated with the instance.

\"\ },\ + \"ListSecurityProfileApplications\":{\ + \"name\":\"ListSecurityProfileApplications\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/security-profiles-applications/{InstanceId}/{SecurityProfileId}\"\ + },\ + \"input\":{\"shape\":\"ListSecurityProfileApplicationsRequest\"},\ + \"output\":{\"shape\":\"ListSecurityProfileApplicationsResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Returns a list of third party applications in a specific security profile.

\"\ + },\ \"ListSecurityProfilePermissions\":{\ \"name\":\"ListSecurityProfilePermissions\",\ \"http\":{\ @@ -2276,7 +2293,7 @@ - (NSString *)definitionString { {\"shape\":\"ThrottlingException\"},\ {\"shape\":\"InternalServiceException\"}\ ],\ - \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Lists the permissions granted to a security profile.

\"\ + \"documentation\":\"

Lists the permissions granted to a security profile.

\"\ },\ \"ListSecurityProfiles\":{\ \"name\":\"ListSecurityProfiles\",\ @@ -3468,7 +3485,7 @@ - (NSString *)definitionString { {\"shape\":\"ThrottlingException\"},\ {\"shape\":\"InternalServiceException\"}\ ],\ - \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

Updates a security profile.

\"\ + \"documentation\":\"

Updates a security profile.

\"\ },\ \"UpdateTaskTemplate\":{\ \"name\":\"UpdateTaskTemplate\",\ @@ -3988,6 +4005,31 @@ - (NSString *)definitionString { },\ \"documentation\":\"

Configuration of the answering machine detection.

\"\ },\ + \"Application\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Namespace\":{\ + \"shape\":\"Namespace\",\ + \"documentation\":\"

Namespace of the application that you want to give access to.

\"\ + },\ + \"ApplicationPermissions\":{\ + \"shape\":\"ApplicationPermissions\",\ + \"documentation\":\"

The permissions that the agent is granted on the application. Only the ACCESS permission is supported.

\"\ + }\ + },\ + \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

A third party application's metadata.

\"\ + },\ + \"ApplicationPermissions\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"Permission\"},\ + \"max\":10,\ + \"min\":1\ + },\ + \"Applications\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"Application\"},\ + \"max\":10\ + },\ \"ApproximateTotalCount\":{\"type\":\"long\"},\ \"AssignContactCategoryActionDefinition\":{\ \"type\":\"structure\",\ @@ -4666,7 +4708,7 @@ - (NSString *)definitionString { },\ \"Content\":{\ \"shape\":\"ContactFlowContent\",\ - \"documentation\":\"

The content of the flow.

\"\ + \"documentation\":\"

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

\"\ },\ \"Tags\":{\ \"shape\":\"TagMap\",\ @@ -4698,7 +4740,7 @@ - (NSString *)definitionString { },\ \"Content\":{\ \"shape\":\"ContactFlowModuleContent\",\ - \"documentation\":\"

The content of the flow module.

\"\ + \"documentation\":\"

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

\"\ },\ \"Description\":{\ \"shape\":\"ContactFlowModuleDescription\",\ @@ -5057,7 +5099,7 @@ - (NSString *)definitionString { },\ \"Content\":{\ \"shape\":\"ContactFlowContent\",\ - \"documentation\":\"

The content of the flow.

\"\ + \"documentation\":\"

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

\"\ },\ \"Tags\":{\ \"shape\":\"TagMap\",\ @@ -5441,7 +5483,7 @@ - (NSString *)definitionString { },\ \"Name\":{\ \"shape\":\"QuickConnectName\",\ - \"documentation\":\"

The name of the quick connect.

\"\ + \"documentation\":\"

A unique name of the quick connect.

\"\ },\ \"Description\":{\ \"shape\":\"QuickConnectDescription\",\ @@ -5632,6 +5674,10 @@ - (NSString *)definitionString { \"TagRestrictedResources\":{\ \"shape\":\"TagRestrictedResourceList\",\ \"documentation\":\"

The list of resources that a security profile applies tag restrictions to in Amazon Connect. Following are acceptable ResourceNames: User | SecurityProfile | Queue | RoutingProfile

\"\ + },\ + \"Applications\":{\ + \"shape\":\"Applications\",\ + \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

A list of third party applications that the security profile will give access to.

\"\ }\ }\ },\ @@ -9038,11 +9084,15 @@ - (NSString *)definitionString { },\ \"StartTime\":{\ \"shape\":\"Timestamp\",\ - \"documentation\":\"

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The time range between the start and end time must be less than 24 hours. The start time cannot be earlier than 35 days before the time of the request. Historical metrics are available for 35 days.

\"\ + \"documentation\":\"

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the IntervalPeriod selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.

\"\ },\ \"EndTime\":{\ \"shape\":\"Timestamp\",\ - \"documentation\":\"

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.

The time range between the start and end time must be less than 24 hours.

\"\ + \"documentation\":\"

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.

\"\ + },\ + \"Interval\":{\ + \"shape\":\"IntervalDetails\",\ + \"documentation\":\"

The interval period and timezone to apply to returned metrics.

  • IntervalPeriod: An aggregated grouping applied to request metrics. Valid IntervalPeriod values are: FIFTEEN_MIN | THIRTY_MIN | HOUR | DAY | WEEK | TOTAL.

    For example, if IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL interval period.

    The following list describes restrictions on StartTime and EndTime based on which IntervalPeriod is requested.

    • FIFTEEN_MIN: The difference between StartTime and EndTime must be less than 3 days.

    • THIRTY_MIN: The difference between StartTime and EndTime must be less than 3 days.

    • HOUR: The difference between StartTime and EndTime must be less than 3 days.

    • DAY: The difference between StartTime and EndTime must be less than 35 days.

    • WEEK: The difference between StartTime and EndTime must be less than 35 days.

    • TOTAL: The difference between StartTime and EndTime must be less than 35 days.

  • TimeZone: The timezone applied to requested metrics.

\"\ },\ \"Filters\":{\ \"shape\":\"FiltersV2List\",\ @@ -9054,7 +9104,7 @@ - (NSString *)definitionString { },\ \"Metrics\":{\ \"shape\":\"MetricsV2\",\ - \"documentation\":\"

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

AGENT_ADHERENT_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_OCCUPANCY

Unit: Percentage

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULE_ADHERENCE

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULED_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_ABANDON_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_CONTACT_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_CONVERSATION_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_GREETING_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERACTION_AND_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERACTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERRUPTIONS_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERRUPTION_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_NON_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_CUSTOMER

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HANDLED

Unit: Count

Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HOLD_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_QUEUED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_TRANSFERRED_OUT_BY_AGENT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

SERVICE_LEVEL

You can include up to 20 SERVICE_LEVEL metrics in a request.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_ABANDONED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_DISCONNECTED

Valid metric filter key: DISCONNECT_REASON

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

\"\ + \"documentation\":\"

The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

ABANDONMENT_RATE

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_ADHERENT_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

Data for this metric is available starting from October 1, 2023 0:00:00 GMT.

AGENT_OCCUPANCY

Unit: Percentage

Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULE_ADHERENCE

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AGENT_SCHEDULED_TIME

This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_ABANDON_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_AGENT_CONNECTING_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. For now, this metric only supports the following as INITIATION_METHOD: INBOUND | OUTBOUND | CALLBACK | API

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

The Negate key in Metric Level Filters is not applicable for this metric.

AVG_CONTACT_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_CONVERSATION_DURATION

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_GREETING_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_HOLD_TIME_ALL_CONTACTS

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERACTION_AND_HOLD_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERACTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_INTERRUPTIONS_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_INTERRUPTION_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_NON_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile

AVG_TALK_TIME

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_AGENT

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

AVG_TALK_TIME_CUSTOMER

This metric is available only for contacts analyzed by Contact Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HANDLED

Unit: Count

Valid metric filter key: INITIATION_METHOD, DISCONNECT_REASON

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_HOLD_ABANDONS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_QUEUED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

CONTACTS_TRANSFERRED_OUT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature

Feature is a valid filter but not a valid grouping.

CONTACTS_TRANSFERRED_OUT_BY_AGENT

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy

SERVICE_LEVEL

You can include up to 20 SERVICE_LEVEL metrics in a request.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_ABANDONED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For ThresholdValue, enter any whole number from 1 to 604800 (inclusive), in seconds. For Comparison, you must enter LT (for \\\"Less than\\\").

SUM_CONTACTS_DISCONNECTED

Valid metric filter key: DISCONNECT_REASON

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile

\"\ },\ \"NextToken\":{\ \"shape\":\"NextToken2500\",\ @@ -10015,7 +10065,8 @@ - (NSString *)definitionString { \"PINPOINT_APP\",\ \"WISDOM_ASSISTANT\",\ \"WISDOM_KNOWLEDGE_BASE\",\ - \"CASES_DOMAIN\"\ + \"CASES_DOMAIN\",\ + \"APPLICATION\"\ ]\ },\ \"InternalServiceException\":{\ @@ -10030,6 +10081,31 @@ - (NSString *)definitionString { \"error\":{\"httpStatusCode\":500},\ \"exception\":true\ },\ + \"IntervalDetails\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"TimeZone\":{\ + \"shape\":\"String\",\ + \"documentation\":\"

The timezone applied to requested metrics.

\"\ + },\ + \"IntervalPeriod\":{\ + \"shape\":\"IntervalPeriod\",\ + \"documentation\":\"

IntervalPeriod: An aggregated grouping applied to request metrics. Valid IntervalPeriod values are: FIFTEEN_MIN | THIRTY_MIN | HOUR | DAY | WEEK | TOTAL.

For example, if IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the TOTAL interval period.

The following list describes restrictions on StartTime and EndTime based on what IntervalPeriod is requested.

  • FIFTEEN_MIN: The difference between StartTime and EndTime must be less than 3 days.

  • THIRTY_MIN: The difference between StartTime and EndTime must be less than 3 days.

  • HOUR: The difference between StartTime and EndTime must be less than 3 days.

  • DAY: The difference between StartTime and EndTime must be less than 35 days.

  • WEEK: The difference between StartTime and EndTime must be less than 35 days.

  • TOTAL: The difference between StartTime and EndTime must be less than 35 days.

\"\ + }\ + },\ + \"documentation\":\"

Information about the interval period to use for returning results.

\"\ + },\ + \"IntervalPeriod\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"FIFTEEN_MIN\",\ + \"THIRTY_MIN\",\ + \"HOUR\",\ + \"DAY\",\ + \"WEEK\",\ + \"TOTAL\"\ + ]\ + },\ \"InvalidContactFlowException\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -10928,7 +11004,7 @@ - (NSString *)definitionString { },\ \"PhoneNumberTypes\":{\ \"shape\":\"PhoneNumberTypes\",\ - \"documentation\":\"

The type of phone number.

\",\ + \"documentation\":\"

The type of phone number.

We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID, it incorrectly lists them as TOLL_FREE or DID.

\",\ \"location\":\"querystring\",\ \"locationName\":\"phoneNumberTypes\"\ },\ @@ -11388,6 +11464,52 @@ - (NSString *)definitionString { }\ }\ },\ + \"ListSecurityProfileApplicationsRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"SecurityProfileId\",\ + \"InstanceId\"\ + ],\ + \"members\":{\ + \"SecurityProfileId\":{\ + \"shape\":\"SecurityProfileId\",\ + \"documentation\":\"

The security profile identifier.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"SecurityProfileId\"\ + },\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The instance identifier.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"InstanceId\"\ + },\ + \"NextToken\":{\ + \"shape\":\"NextToken\",\ + \"documentation\":\"

The token for the next set of results. The next set of results can be retrieved by using the token value returned in the previous response when making the next request.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"nextToken\"\ + },\ + \"MaxResults\":{\ + \"shape\":\"MaxResult1000\",\ + \"documentation\":\"

The maximum number of results to return per page.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"maxResults\"\ + }\ + }\ + },\ + \"ListSecurityProfileApplicationsResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Applications\":{\ + \"shape\":\"Applications\",\ + \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

A list of the third party application's metadata.

\"\ + },\ + \"NextToken\":{\ + \"shape\":\"NextToken\",\ + \"documentation\":\"

The token for the next set of results. The next set of results can be retrieved by using the token value returned in the previous response when making the next request.

\"\ + }\ + }\ + },\ \"ListSecurityProfilePermissionsRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -11939,6 +12061,10 @@ - (NSString *)definitionString { \"MetricFilterValues\":{\ \"shape\":\"MetricFilterValueList\",\ \"documentation\":\"

The values to use for filtering data.

Valid metric filter values for INITIATION_METHOD: INBOUND | OUTBOUND | TRANSFER | QUEUE_TRANSFER | CALLBACK | API

Valid metric filter values for DISCONNECT_REASON: CUSTOMER_DISCONNECT | AGENT_DISCONNECT | THIRD_PARTY_DISCONNECT | TELECOM_PROBLEM | BARGED | CONTACT_FLOW_DISCONNECT | OTHER | EXPIRED | API

\"\ + },\ + \"Negate\":{\ + \"shape\":\"Boolean\",\ + \"documentation\":\"

The flag to use to filter on requested metric filter values or to not filter on requested metric filter values. By default the negate is false, which indicates to filter on the requested metric filter.

\"\ }\ },\ \"documentation\":\"

Contains information about the filter used when retrieving metrics. MetricFiltersV2 can be used on the following metrics: AVG_AGENT_CONNECTING_TIME, CONTACTS_CREATED, CONTACTS_HANDLED, SUM_CONTACTS_DISCONNECTED.

\"\ @@ -11954,6 +12080,24 @@ - (NSString *)definitionString { \"member\":{\"shape\":\"MetricFilterV2\"},\ \"max\":2\ },\ + \"MetricInterval\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Interval\":{\ + \"shape\":\"IntervalPeriod\",\ + \"documentation\":\"

The interval period provided in the API request.

\"\ + },\ + \"StartTime\":{\ + \"shape\":\"Timestamp\",\ + \"documentation\":\"

The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.

\"\ + },\ + \"EndTime\":{\ + \"shape\":\"Timestamp\",\ + \"documentation\":\"

The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.

\"\ + }\ + },\ + \"documentation\":\"

The interval period with the start and end time for the metrics.

\"\ + },\ \"MetricNameV2\":{\"type\":\"string\"},\ \"MetricResultV2\":{\ \"type\":\"structure\",\ @@ -11962,6 +12106,10 @@ - (NSString *)definitionString { \"shape\":\"DimensionsV2Map\",\ \"documentation\":\"

The dimension for the metrics.

\"\ },\ + \"MetricInterval\":{\ + \"shape\":\"MetricInterval\",\ + \"documentation\":\"

The interval period with the start and end time for the metrics.

\"\ + },\ \"Collections\":{\ \"shape\":\"MetricDataCollectionsV2\",\ \"documentation\":\"

The set of metrics.

\"\ @@ -12062,6 +12210,11 @@ - (NSString *)definitionString { \"min\":1,\ \"pattern\":\"(^[\\\\S].*[\\\\S]$)|(^[\\\\S]$)\"\ },\ + \"Namespace\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1\ + },\ \"NextToken\":{\"type\":\"string\"},\ \"NextToken2500\":{\ \"type\":\"string\",\ @@ -12304,6 +12457,11 @@ - (NSString *)definitionString { \"max\":100,\ \"min\":0\ },\ + \"Permission\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1\ + },\ \"PermissionsList\":{\ \"type\":\"list\",\ \"member\":{\"shape\":\"SecurityProfilePermission\"},\ @@ -13827,15 +13985,15 @@ - (NSString *)definitionString { },\ \"EventBridgeAction\":{\ \"shape\":\"EventBridgeActionDefinition\",\ - \"documentation\":\"

Information about the EventBridge action.

\"\ + \"documentation\":\"

Information about the EventBridge action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate

\"\ },\ \"AssignContactCategoryAction\":{\ \"shape\":\"AssignContactCategoryActionDefinition\",\ - \"documentation\":\"

Information about the contact category action.

\"\ + \"documentation\":\"

Information about the contact category action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate

\"\ },\ \"SendNotificationAction\":{\ \"shape\":\"SendNotificationActionDefinition\",\ - \"documentation\":\"

Information about the send notification action.

\"\ + \"documentation\":\"

Information about the send notification action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnRealTimeCallAnalysisAvailable | OnPostChatAnalysisAvailable | OnContactEvaluationSubmit | OnMetricDataUpdate

\"\ }\ },\ \"documentation\":\"

Information about the action to be performed when a rule is triggered.

\"\ @@ -13928,7 +14086,7 @@ - (NSString *)definitionString { \"documentation\":\"

The identifier for the integration association.

\"\ }\ },\ - \"documentation\":\"

The name of the event source. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate

\"\ + \"documentation\":\"

The name of the event source. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate | OnContactEvaluationSubmit | OnMetricDataUpdate.

\"\ },\ \"S3Config\":{\ \"type\":\"structure\",\ @@ -16007,7 +16165,7 @@ - (NSString *)definitionString { },\ \"Content\":{\ \"shape\":\"ContactFlowContent\",\ - \"documentation\":\"

The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language.

\"\ + \"documentation\":\"

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

Length Constraints: Minimum length of 1. Maximum length of 256000.

\"\ }\ }\ },\ @@ -16076,7 +16234,7 @@ - (NSString *)definitionString { },\ \"Content\":{\ \"shape\":\"ContactFlowModuleContent\",\ - \"documentation\":\"

The content of the flow module.

\"\ + \"documentation\":\"

The JSON string that represents the content of the flow. For an example, see Example contact flow in Amazon Connect Flow language.

\"\ }\ }\ },\ @@ -16921,6 +17079,10 @@ - (NSString *)definitionString { \"TagRestrictedResources\":{\ \"shape\":\"TagRestrictedResourceList\",\ \"documentation\":\"

The list of resources that a security profile applies tag restrictions to in Amazon Connect.

\"\ + },\ + \"Applications\":{\ + \"shape\":\"Applications\",\ + \"documentation\":\"

This API is in preview release for Amazon Connect and is subject to change.

A list of the third party application's metadata.

\"\ }\ }\ },\ diff --git a/AWSConnect/AWSConnectService.h b/AWSConnect/AWSConnectService.h index 06261450c55..ca98cbc252d 100644 --- a/AWSConnect/AWSConnectService.h +++ b/AWSConnect/AWSConnectService.h @@ -804,7 +804,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)createRule:(AWSConnectCreateRuleRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectCreateRuleResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

This API is in preview release for Amazon Connect and is subject to change.

Creates a security profile.

+

Creates a security profile.

@param request A container for the necessary parameters to execute the CreateSecurityProfile service method. @@ -816,7 +816,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)createSecurityProfile:(AWSConnectCreateSecurityProfileRequest *)request; /** -

This API is in preview release for Amazon Connect and is subject to change.

Creates a security profile.

+

Creates a security profile.

@param request A container for the necessary parameters to execute the CreateSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1324,7 +1324,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)deleteRule:(AWSConnectDeleteRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /** -

This API is in preview release for Amazon Connect and is subject to change.

Deletes a security profile.

+

Deletes a security profile.

@param request A container for the necessary parameters to execute the DeleteSecurityProfile service method. @@ -1335,7 +1335,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)deleteSecurityProfile:(AWSConnectDeleteSecurityProfileRequest *)request; /** -

This API is in preview release for Amazon Connect and is subject to change.

Deletes a security profile.

+

Deletes a security profile.

@param request A container for the necessary parameters to execute the DeleteSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1937,7 +1937,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)describeRule:(AWSConnectDescribeRuleRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectDescribeRuleResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

This API is in preview release for Amazon Connect and is subject to change.

Gets basic information about the security profle.

+

Gets basic information about the security profle.

@param request A container for the necessary parameters to execute the DescribeSecurityProfile service method. @@ -1949,7 +1949,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)describeSecurityProfile:(AWSConnectDescribeSecurityProfileRequest *)request; /** -

This API is in preview release for Amazon Connect and is subject to change.

Gets basic information about the security profle.

+

Gets basic information about the security profle.

@param request A container for the necessary parameters to execute the DescribeSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. @@ -2485,7 +2485,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)getMetricData:(AWSConnectGetMetricDataRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectGetMetricDataResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 35 days, in 24-hour intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

+

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

@param request A container for the necessary parameters to execute the GetMetricDataV2 service method. @@ -2497,7 +2497,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)getMetricDataV2:(AWSConnectGetMetricDataV2Request *)request; /** -

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 35 days, in 24-hour intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

+

Gets metric data from the specified Amazon Connect instance.

GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals.

For a description of the historical metrics that are supported by GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's Guide.

@param request A container for the necessary parameters to execute the GetMetricDataV2 service method. @param completionHandler The completion handler to call when the load request is complete. @@ -3260,7 +3260,32 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)listSecurityKeys:(AWSConnectListSecurityKeysRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectListSecurityKeysResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

This API is in preview release for Amazon Connect and is subject to change.

Lists the permissions granted to a security profile.

+

Returns a list of third party applications in a specific security profile.

+ + @param request A container for the necessary parameters to execute the ListSecurityProfileApplications service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSConnectListSecurityProfileApplicationsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSConnectErrorDomain` domain and the following error code: `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorInternalService`. + + @see AWSConnectListSecurityProfileApplicationsRequest + @see AWSConnectListSecurityProfileApplicationsResponse + */ +- (AWSTask *)listSecurityProfileApplications:(AWSConnectListSecurityProfileApplicationsRequest *)request; + +/** +

Returns a list of third party applications in a specific security profile.

+ + @param request A container for the necessary parameters to execute the ListSecurityProfileApplications service method. + @param completionHandler The completion handler to call when the load request is complete. + `response` - A response object, or `nil` if the request failed. + `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSConnectErrorDomain` domain and the following error code: `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorInternalService`. + + @see AWSConnectListSecurityProfileApplicationsRequest + @see AWSConnectListSecurityProfileApplicationsResponse + */ +- (void)listSecurityProfileApplications:(AWSConnectListSecurityProfileApplicationsRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectListSecurityProfileApplicationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; + +/** +

Lists the permissions granted to a security profile.

@param request A container for the necessary parameters to execute the ListSecurityProfilePermissions service method. @@ -3272,7 +3297,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)listSecurityProfilePermissions:(AWSConnectListSecurityProfilePermissionsRequest *)request; /** -

This API is in preview release for Amazon Connect and is subject to change.

Lists the permissions granted to a security profile.

+

Lists the permissions granted to a security profile.

@param request A container for the necessary parameters to execute the ListSecurityProfilePermissions service method. @param completionHandler The completion handler to call when the load request is complete. @@ -4950,7 +4975,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (void)updateRule:(AWSConnectUpdateRuleRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; /** -

This API is in preview release for Amazon Connect and is subject to change.

Updates a security profile.

+

Updates a security profile.

@param request A container for the necessary parameters to execute the UpdateSecurityProfile service method. @@ -4961,7 +4986,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; - (AWSTask *)updateSecurityProfile:(AWSConnectUpdateSecurityProfileRequest *)request; /** -

This API is in preview release for Amazon Connect and is subject to change.

Updates a security profile.

+

Updates a security profile.

@param request A container for the necessary parameters to execute the UpdateSecurityProfile service method. @param completionHandler The completion handler to call when the load request is complete. diff --git a/AWSConnect/AWSConnectService.m b/AWSConnect/AWSConnectService.m index 62bd34842d6..48d34a0aea8 100644 --- a/AWSConnect/AWSConnectService.m +++ b/AWSConnect/AWSConnectService.m @@ -3189,6 +3189,29 @@ - (void)listSecurityKeys:(AWSConnectListSecurityKeysRequest *)request }]; } +- (AWSTask *)listSecurityProfileApplications:(AWSConnectListSecurityProfileApplicationsRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/security-profiles-applications/{InstanceId}/{SecurityProfileId}" + targetPrefix:@"" + operationName:@"ListSecurityProfileApplications" + outputClass:[AWSConnectListSecurityProfileApplicationsResponse class]]; +} + +- (void)listSecurityProfileApplications:(AWSConnectListSecurityProfileApplicationsRequest *)request + completionHandler:(void (^)(AWSConnectListSecurityProfileApplicationsResponse *response, NSError *error))completionHandler { + [[self listSecurityProfileApplications:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectListSecurityProfileApplicationsResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)listSecurityProfilePermissions:(AWSConnectListSecurityProfilePermissionsRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET diff --git a/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m b/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m index 8a3dc6e8984..f99824409d6 100644 --- a/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m +++ b/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m @@ -29,6 +29,7 @@ - (void) test_AWSConnectAgentStatus API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentStatusReference API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentStatusSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectAnswerMachineDetectionConfig API_AVAILABLE(ios(11)); +- (void) test_AWSConnectApplication API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssignContactCategoryActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssociateApprovedOriginRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssociateBotRequest API_AVAILABLE(ios(11)); @@ -275,6 +276,7 @@ - (void) test_AWSConnectInstanceStatusReason API_AVAILABLE(ios(11)); - (void) test_AWSConnectInstanceStorageConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectInstanceSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectIntegrationAssociationSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectIntervalDetails API_AVAILABLE(ios(11)); - (void) test_AWSConnectInvisibleFieldInfo API_AVAILABLE(ios(11)); - (void) test_AWSConnectKinesisFirehoseConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectKinesisStreamConfig API_AVAILABLE(ios(11)); @@ -337,6 +339,8 @@ - (void) test_AWSConnectListRulesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListRulesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListSecurityKeysRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListSecurityKeysResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListSecurityProfileApplicationsRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListSecurityProfileApplicationsResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListSecurityProfilePermissionsRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListSecurityProfilePermissionsResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListSecurityProfilesRequest API_AVAILABLE(ios(11)); @@ -362,6 +366,7 @@ - (void) test_AWSConnectListViewsResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectMediaConcurrency API_AVAILABLE(ios(11)); - (void) test_AWSConnectMetricDataV2 API_AVAILABLE(ios(11)); - (void) test_AWSConnectMetricFilterV2 API_AVAILABLE(ios(11)); +- (void) test_AWSConnectMetricInterval API_AVAILABLE(ios(11)); - (void) test_AWSConnectMetricResultV2 API_AVAILABLE(ios(11)); - (void) test_AWSConnectMetricV2 API_AVAILABLE(ios(11)); - (void) test_AWSConnectMonitorContactRequest API_AVAILABLE(ios(11)); @@ -624,6 +629,10 @@ - (void) test_AWSConnectAnswerMachineDetectionConfig { [self validateSecureCodingForClass:[AWSConnectAnswerMachineDetectionConfig class]]; } +- (void) test_AWSConnectApplication { + [self validateSecureCodingForClass:[AWSConnectApplication class]]; +} + - (void) test_AWSConnectAssignContactCategoryActionDefinition { [self validateSecureCodingForClass:[AWSConnectAssignContactCategoryActionDefinition class]]; } @@ -1608,6 +1617,10 @@ - (void) test_AWSConnectIntegrationAssociationSummary { [self validateSecureCodingForClass:[AWSConnectIntegrationAssociationSummary class]]; } +- (void) test_AWSConnectIntervalDetails { + [self validateSecureCodingForClass:[AWSConnectIntervalDetails class]]; +} + - (void) test_AWSConnectInvisibleFieldInfo { [self validateSecureCodingForClass:[AWSConnectInvisibleFieldInfo class]]; } @@ -1856,6 +1869,14 @@ - (void) test_AWSConnectListSecurityKeysResponse { [self validateSecureCodingForClass:[AWSConnectListSecurityKeysResponse class]]; } +- (void) test_AWSConnectListSecurityProfileApplicationsRequest { + [self validateSecureCodingForClass:[AWSConnectListSecurityProfileApplicationsRequest class]]; +} + +- (void) test_AWSConnectListSecurityProfileApplicationsResponse { + [self validateSecureCodingForClass:[AWSConnectListSecurityProfileApplicationsResponse class]]; +} + - (void) test_AWSConnectListSecurityProfilePermissionsRequest { [self validateSecureCodingForClass:[AWSConnectListSecurityProfilePermissionsRequest class]]; } @@ -1956,6 +1977,10 @@ - (void) test_AWSConnectMetricFilterV2 { [self validateSecureCodingForClass:[AWSConnectMetricFilterV2 class]]; } +- (void) test_AWSConnectMetricInterval { + [self validateSecureCodingForClass:[AWSConnectMetricInterval class]]; +} + - (void) test_AWSConnectMetricResultV2 { [self validateSecureCodingForClass:[AWSConnectMetricResultV2 class]]; } diff --git a/AWSConnectUnitTests/AWSGeneralConnectTests.m b/AWSConnectUnitTests/AWSGeneralConnectTests.m index b2e3d3aa711..1d0cda89da3 100644 --- a/AWSConnectUnitTests/AWSGeneralConnectTests.m +++ b/AWSConnectUnitTests/AWSGeneralConnectTests.m @@ -6123,6 +6123,54 @@ - (void)testListSecurityKeysCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testListSecurityProfileApplications { + NSString *key = @"testListSecurityProfileApplications"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSConnect registerConnectWithConfiguration:configuration forKey:key]; + + AWSConnect *awsClient = [AWSConnect ConnectForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSConnect ConnectForKey:key] listSecurityProfileApplications:[AWSConnectListSecurityProfileApplicationsRequest new]] continueWithBlock:^id(AWSTask *task) { + XCTAssertNotNil(task.error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", task.error.domain); + XCTAssertEqual(8848, task.error.code); + XCTAssertNil(task.result); + return nil; + }] waitUntilFinished]; + + OCMVerify([mockNetworking sendRequest:[OCMArg isNotNil]]); + + [AWSConnect removeConnectForKey:key]; +} + +- (void)testListSecurityProfileApplicationsCompletionHandler { + NSString *key = @"testListSecurityProfileApplications"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSConnect registerConnectWithConfiguration:configuration forKey:key]; + + AWSConnect *awsClient = [AWSConnect ConnectForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSConnect ConnectForKey:key] listSecurityProfileApplications:[AWSConnectListSecurityProfileApplicationsRequest new] completionHandler:^(AWSConnectListSecurityProfileApplicationsResponse* _Nullable response, NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + XCTAssertNil(response); + dispatch_semaphore_signal(semaphore); + }]; + + dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, (int)(2.0 * NSEC_PER_SEC))); + OCMVerify([mockNetworking sendRequest:[OCMArg isNotNil]]); + + [AWSConnect removeConnectForKey:key]; +} + - (void)testListSecurityProfilePermissions { NSString *key = @"testListSecurityProfilePermissions"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil];