Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSConnect Update models to latest #5395

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions AWSConnect/AWSConnectModel.h

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions AWSConnect/AWSConnectModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,20 @@ + (NSValueTransformer *)typesJSONTransformer {

@end

@implementation AWSConnectAgentsCriteria

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"agentIds" : @"AgentIds",
};
}

@end

@implementation AWSConnectAllowedCapabilities

+ (BOOL)supportsSecureCoding {
Expand Down Expand Up @@ -1415,12 +1429,17 @@ + (BOOL)supportsSecureCoding {
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"comparisonOperator" : @"ComparisonOperator",
@"matchCriteria" : @"MatchCriteria",
@"name" : @"Name",
@"proficiencyLevel" : @"ProficiencyLevel",
@"value" : @"Value",
};
}

+ (NSValueTransformer *)matchCriteriaJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectMatchCriteria class]];
}

@end

@implementation AWSConnectAudioFeatures
Expand Down Expand Up @@ -15960,6 +15979,24 @@ + (NSValueTransformer *)viewsSummaryListJSONTransformer {

@end

@implementation AWSConnectMatchCriteria

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"agentsCriteria" : @"AgentsCriteria",
};
}

+ (NSValueTransformer *)agentsCriteriaJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectAgentsCriteria class]];
}

@end

@implementation AWSConnectMediaConcurrency

+ (BOOL)supportsSecureCoding {
Expand Down
56 changes: 47 additions & 9 deletions AWSConnect/AWSConnectResources.m

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions AWSConnect/AWSConnectService.h
Original file line number Diff line number Diff line change
Expand Up @@ -3045,7 +3045,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (void)getTrafficDistribution:(AWSConnectGetTrafficDistributionRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectGetTrafficDistributionResponse * _Nullable response, NSError * _Nullable error))completionHandler;

/**
<p>Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.</p>
<p>Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.</p><important><p>Call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html">DescribePhoneNumber</a> API to verify the status of a previous <code>ImportPhoneNumber</code> operation. </p></important><p>If you plan to claim or import numbers and then release numbers frequently, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until up to 180 days past the oldest number released has expired. </p><p> By default you can claim or import and then release up to 200% of your maximum number of active phone numbers. If you claim or import and then release phone numbers using the UI or API during a rolling 180 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming or importing any more numbers until 180 days past the oldest number released has expired. </p><p>For example, if you already have 99 claimed or imported numbers and a service level quota of 99 phone numbers, and in any 180 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services Support ticket. </p>

@param request A container for the necessary parameters to execute the ImportPhoneNumber service method.

Expand All @@ -3057,7 +3057,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (AWSTask<AWSConnectImportPhoneNumberResponse *> *)importPhoneNumber:(AWSConnectImportPhoneNumberRequest *)request;

/**
<p>Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.</p>
<p>Imports a claimed phone number from an external service, such as Amazon Pinpoint, into an Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.</p><important><p>Call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html">DescribePhoneNumber</a> API to verify the status of a previous <code>ImportPhoneNumber</code> operation. </p></important><p>If you plan to claim or import numbers and then release numbers frequently, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until up to 180 days past the oldest number released has expired. </p><p> By default you can claim or import and then release up to 200% of your maximum number of active phone numbers. If you claim or import and then release phone numbers using the UI or API during a rolling 180 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming or importing any more numbers until 180 days past the oldest number released has expired. </p><p>For example, if you already have 99 claimed or imported numbers and a service level quota of 99 phone numbers, and in any 180 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services Support ticket. </p>

@param request A container for the necessary parameters to execute the ImportPhoneNumber service method.
@param completionHandler The completion handler to call when the load request is complete.
Expand Down Expand Up @@ -4742,7 +4742,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (void)startAttachedFileUpload:(AWSConnectStartAttachedFileUploadRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectStartAttachedFileUploadResponse * _Nullable response, NSError * _Nullable error))completionHandler;

/**
<p>Initiates a flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> API in the Amazon Connect Participant Service.</p><p>When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> with WEBSOCKET and CONNECTION_CREDENTIALS. </p><p>A 429 error occurs in the following situations:</p><ul><li><p>API rate limit is exceeded. API TPS throttling returns a <code>TooManyRequests</code> exception.</p></li><li><p>The <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">quota for concurrent active chats</a> is exceeded. Active chat throttling returns a <code>LimitExceededException</code>.</p></li></ul><p>If you use the <code>ChatDurationInMinutes</code> parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support. </p><p>For more information about chat, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat.html">Chat</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
<p>Initiates a flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> API in the Amazon Connect Participant Service.</p><p>When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> with WEBSOCKET and CONNECTION_CREDENTIALS. </p><p>A 429 error occurs in the following situations:</p><ul><li><p>API rate limit is exceeded. API TPS throttling returns a <code>TooManyRequests</code> exception.</p></li><li><p>The <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">quota for concurrent active chats</a> is exceeded. Active chat throttling returns a <code>LimitExceededException</code>.</p></li></ul><p>If you use the <code>ChatDurationInMinutes</code> parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support. </p><p>For more information about chat, see the following topics in the <i>Amazon Connect Administrator Guide</i>: </p><ul><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/web-and-mobile-chat.html">Concepts: Web and mobile messaging capabilities in Amazon Connect</a></p></li><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/security-best-practices.html#bp-security-chat">Amazon Connect Chat security best practices</a></p></li></ul>

@param request A container for the necessary parameters to execute the StartChatContact service method.

Expand All @@ -4754,7 +4754,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (AWSTask<AWSConnectStartChatContactResponse *> *)startChatContact:(AWSConnectStartChatContactRequest *)request;

/**
<p>Initiates a flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> API in the Amazon Connect Participant Service.</p><p>When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> with WEBSOCKET and CONNECTION_CREDENTIALS. </p><p>A 429 error occurs in the following situations:</p><ul><li><p>API rate limit is exceeded. API TPS throttling returns a <code>TooManyRequests</code> exception.</p></li><li><p>The <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">quota for concurrent active chats</a> is exceeded. Active chat throttling returns a <code>LimitExceededException</code>.</p></li></ul><p>If you use the <code>ChatDurationInMinutes</code> parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support. </p><p>For more information about chat, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat.html">Chat</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
<p>Initiates a flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> API in the Amazon Connect Participant Service.</p><p>When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking <a href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html">CreateParticipantConnection</a> with WEBSOCKET and CONNECTION_CREDENTIALS. </p><p>A 429 error occurs in the following situations:</p><ul><li><p>API rate limit is exceeded. API TPS throttling returns a <code>TooManyRequests</code> exception.</p></li><li><p>The <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">quota for concurrent active chats</a> is exceeded. Active chat throttling returns a <code>LimitExceededException</code>.</p></li></ul><p>If you use the <code>ChatDurationInMinutes</code> parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support. </p><p>For more information about chat, see the following topics in the <i>Amazon Connect Administrator Guide</i>: </p><ul><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/web-and-mobile-chat.html">Concepts: Web and mobile messaging capabilities in Amazon Connect</a></p></li><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/security-best-practices.html#bp-security-chat">Amazon Connect Chat security best practices</a></p></li></ul>

@param request A container for the necessary parameters to execute the StartChatContact service method.
@param completionHandler The completion handler to call when the load request is complete.
Expand Down Expand Up @@ -4817,7 +4817,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (void)startContactRecording:(AWSConnectStartContactRecordingRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectStartContactRecordingResponse * _Nullable response, NSError * _Nullable error))completionHandler;

/**
<p> Initiates real-time message streaming for a new chat contact.</p><p> For more information about message streaming, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html">Enable real-time chat message streaming</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
<p> Initiates real-time message streaming for a new chat contact.</p><p> For more information about message streaming, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html">Enable real-time chat message streaming</a> in the <i>Amazon Connect Administrator Guide</i>.</p><p>For more information about chat, see the following topics in the <i>Amazon Connect Administrator Guide</i>: </p><ul><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/web-and-mobile-chat.html">Concepts: Web and mobile messaging capabilities in Amazon Connect</a></p></li><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/security-best-practices.html#bp-security-chat">Amazon Connect Chat security best practices</a></p></li></ul>

@param request A container for the necessary parameters to execute the StartContactStreaming service method.

Expand All @@ -4829,7 +4829,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion;
- (AWSTask<AWSConnectStartContactStreamingResponse *> *)startContactStreaming:(AWSConnectStartContactStreamingRequest *)request;

/**
<p> Initiates real-time message streaming for a new chat contact.</p><p> For more information about message streaming, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html">Enable real-time chat message streaming</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
<p> Initiates real-time message streaming for a new chat contact.</p><p> For more information about message streaming, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-message-streaming.html">Enable real-time chat message streaming</a> in the <i>Amazon Connect Administrator Guide</i>.</p><p>For more information about chat, see the following topics in the <i>Amazon Connect Administrator Guide</i>: </p><ul><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/web-and-mobile-chat.html">Concepts: Web and mobile messaging capabilities in Amazon Connect</a></p></li><li><p><a href="https://docs.aws.amazon.com/connect/latest/adminguide/security-best-practices.html#bp-security-chat">Amazon Connect Chat security best practices</a></p></li></ul>

@param request A container for the necessary parameters to execute the StartContactStreaming service method.
@param completionHandler The completion handler to call when the load request is complete.
Expand Down
10 changes: 10 additions & 0 deletions AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ - (void) test_AWSConnectAgentQualityMetrics API_AVAILABLE(ios(11));
- (void) test_AWSConnectAgentStatus API_AVAILABLE(ios(11));
- (void) test_AWSConnectAgentStatusReference API_AVAILABLE(ios(11));
- (void) test_AWSConnectAgentStatusSummary API_AVAILABLE(ios(11));
- (void) test_AWSConnectAgentsCriteria API_AVAILABLE(ios(11));
- (void) test_AWSConnectAllowedCapabilities API_AVAILABLE(ios(11));
- (void) test_AWSConnectAnalyticsDataAssociationResult API_AVAILABLE(ios(11));
- (void) test_AWSConnectAnswerMachineDetectionConfig API_AVAILABLE(ios(11));
Expand Down Expand Up @@ -454,6 +455,7 @@ - (void) test_AWSConnectListViewVersionsRequest API_AVAILABLE(ios(11));
- (void) test_AWSConnectListViewVersionsResponse API_AVAILABLE(ios(11));
- (void) test_AWSConnectListViewsRequest API_AVAILABLE(ios(11));
- (void) test_AWSConnectListViewsResponse API_AVAILABLE(ios(11));
- (void) test_AWSConnectMatchCriteria API_AVAILABLE(ios(11));
- (void) test_AWSConnectMediaConcurrency API_AVAILABLE(ios(11));
- (void) test_AWSConnectMediaPlacement API_AVAILABLE(ios(11));
- (void) test_AWSConnectMeeting API_AVAILABLE(ios(11));
Expand Down Expand Up @@ -796,6 +798,10 @@ - (void) test_AWSConnectAgentStatusSummary {
[self validateSecureCodingForClass:[AWSConnectAgentStatusSummary class]];
}

- (void) test_AWSConnectAgentsCriteria {
[self validateSecureCodingForClass:[AWSConnectAgentsCriteria class]];
}

- (void) test_AWSConnectAllowedCapabilities {
[self validateSecureCodingForClass:[AWSConnectAllowedCapabilities class]];
}
Expand Down Expand Up @@ -2488,6 +2494,10 @@ - (void) test_AWSConnectListViewsResponse {
[self validateSecureCodingForClass:[AWSConnectListViewsResponse class]];
}

- (void) test_AWSConnectMatchCriteria {
[self validateSecureCodingForClass:[AWSConnectMatchCriteria class]];
}

- (void) test_AWSConnectMediaConcurrency {
[self validateSecureCodingForClass:[AWSConnectMediaConcurrency class]];
}
Expand Down
Loading